Skip to content

Commit

Permalink
Start moving to a new repository
Browse files Browse the repository at this point in the history
  • Loading branch information
frianasoa committed Oct 14, 2023
1 parent 033cd1e commit 45c8303
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='UTF-8'?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="display-and-sort" page-range-format="expanded" default-locale="en-US">
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="display-and-sort" page-range-format="expanded" default-locale="en-US" katakana-display="normal-order">
<info>
<title>Africa Educational Research Journal (Japanese)</title>
<id>http://www.zotero.org/styles/chicago-author-date-aerj-ja</id>
Expand Down Expand Up @@ -38,7 +38,7 @@
<category citation-format="author-date"/>
<category field="generic-base"/>
<summary>The author-date variant of the Chicago style - Edited for Africa Educational Research Journal (Japanese)</summary>
<updated>2023-08-04T00:05:22+09:00</updated>
<updated>2023-08-10T12:26:02+09:00</updated>
<rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
</info>
<locale xml:lang="en">
Expand Down
Binary file not shown.
4 changes: 2 additions & 2 deletions Journal - Mirai Kyoso/chicago-author-date-kyoso-ja.csl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='UTF-8'?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="display-and-sort" page-range-format="expanded" default-locale="en-US">
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="display-and-sort" page-range-format="expanded" default-locale="en-US" katakana-display="normal-order">
<info>
<title>Journal - Mirai Kyoso (Japanese)</title>
<id>http://www.zotero.org/styles/chicago-author-date-kyoso-ja</id>
Expand Down Expand Up @@ -38,7 +38,7 @@
<category citation-format="author-date"/>
<category field="generic-base"/>
<summary>The author-date variant of the Chicago style - Edited for Journal - Mirai Kyoso (Japanese)</summary>
<updated>2023-08-04T00:05:22+09:00</updated>
<updated>2023-08-10T12:26:02+09:00</updated>
<rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
</info>
<locale xml:lang="en">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='UTF-8'?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="display-and-sort" page-range-format="expanded" default-locale="en-US">
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="display-and-sort" page-range-format="expanded" default-locale="en-US" katakana-display="normal-order">
<info>
<title>Journal of International Development Studies (English)</title>
<id>http://www.zotero.org/styles/chicago-author-date-jids-en</id>
Expand Down Expand Up @@ -39,7 +39,7 @@
<category citation-format="author-date"/>
<category field="generic-base"/>
<summary>The author-date variant of the Chicago style - Edited for Journal of International Development Studies (English)</summary>
<updated>2023-08-04T00:05:22+09:00</updated>
<updated>2023-08-10T12:26:02+09:00</updated>
<rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
</info>
<locale xml:lang="en">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='UTF-8'?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="display-and-sort" page-range-format="expanded" default-locale="en-US">
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="display-and-sort" page-range-format="expanded" default-locale="en-US" katakana-display="normal-order">
<info>
<title>Journal of International Development Studies (Japanese)</title>
<id>http://www.zotero.org/styles/chicago-author-date-jids-ja</id>
Expand Down Expand Up @@ -39,7 +39,7 @@
<category citation-format="author-date"/>
<category field="generic-base"/>
<summary>The author-date variant of the Chicago style - Edited for Journal of International Development Studies (Japanese)</summary>
<updated>2023-08-04T00:05:22+09:00</updated>
<updated>2023-08-10T12:26:02+09:00</updated>
<rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
</info>
<locale xml:lang="en">
Expand Down
4 changes: 2 additions & 2 deletions Journal of Kyosei Studies/chicago-author-date-kyosei-en.csl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='UTF-8'?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="display-and-sort" page-range-format="expanded" default-locale="en-US">
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="display-and-sort" page-range-format="expanded" default-locale="en-US" katakana-display="normal-order">
<info>
<title>Journal of Kyosei Studies (English)</title>
<id>http://www.zotero.org/styles/chicago-author-date-kyosei-en</id>
Expand Down Expand Up @@ -38,7 +38,7 @@
<category citation-format="author-date"/>
<category field="generic-base"/>
<summary>The author-date variant of the Chicago style - Edited for Journal of Kyosei Studies (English)</summary>
<updated>2023-08-04T00:05:22+09:00</updated>
<updated>2023-08-10T12:26:02+09:00</updated>
<rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
</info>
<locale xml:lang="en">
Expand Down
10 changes: 5 additions & 5 deletions Journal of Kyosei Studies/chicago-author-date-kyosei-ja.csl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='UTF-8'?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="display-and-sort" page-range-format="expanded" default-locale="en-US">
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="display-and-sort" page-range-format="expanded" default-locale="en-US" katakana-display="normal-order">
<info>
<title>Journal of Kyosei Studies (Japanese)</title>
<id>http://www.zotero.org/styles/chicago-author-date-kyosei-ja</id>
Expand Down Expand Up @@ -38,7 +38,7 @@
<category citation-format="author-date"/>
<category field="generic-base"/>
<summary>The author-date variant of the Chicago style - Edited for Journal of Kyosei Studies (Japanese)</summary>
<updated>2023-08-04T00:05:22+09:00</updated>
<updated>2023-08-10T12:26:02+09:00</updated>
<rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
</info>
<locale xml:lang="en">
Expand Down Expand Up @@ -187,9 +187,9 @@
<choose>
<if variable="name-kana">
<names variable="author">
<name delimiter="" delimiter-precedes-last="never">
<name-part name="family"/>
<name-part name="given" prefix=" "/>
<name name-as-sort-order="first" delimiter="" delimiter-precedes-last="never" sort-separator="">
<name-part name="family" suffix=" "/>
<name-part name="given"/>
</name>
<substitute>
<names variable="editor" suffix="">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='UTF-8'?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="display-and-sort" page-range-format="expanded" default-locale="en-US">
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="display-and-sort" page-range-format="expanded" default-locale="en-US" katakana-display="normal-order">
<info>
<title>Osaka University - International Collaboration and Development Studies (Japanese)</title>
<id>http://www.zotero.org/styles/chicago-author-date-iczemi-ja</id>
Expand Down Expand Up @@ -38,7 +38,7 @@
<category citation-format="author-date"/>
<category field="generic-base"/>
<summary>The author-date variant of the Chicago style - Edited for Osaka University - International Collaboration and Development Studies (Japanese)</summary>
<updated>2023-08-04T00:05:22+09:00</updated>
<updated>2023-08-10T12:26:02+09:00</updated>
<rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
</info>
<locale xml:lang="en">
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# About
## Migrating to a new repository
Please check this new repository for newer style files. <br/>
[https://github.com/frianasoa/pycsl](https://github.com/frianasoa/pycsl)

## Zotero styles for Japanese publications
This is a repository for Zotero styles used by several Academic Societies I belong to. I originally created these styles for personal use but considered sharing them to benefit more people. \
It also includes the python scripts I used to generate each style. I am cleaning the code from time to time. I will add new styles as they become available. I did my best to rigorously follow the guidelines of the societies but in doubt please see the societies' manuals and edit accordingly.\
Expand Down
1 change: 1 addition & 0 deletions scripts/chicago.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ def dateintext(self):
def setroot(self):
self.root.attrib["default-locale"] = "en-US"
self.root.attrib["page-range-format"] = "expanded"
self.root.attrib["katakana-display"] = "normal-order"

def setissue(self):
issue = self.macros.get("issue", None)
Expand Down
6 changes: 3 additions & 3 deletions scripts/kyosei.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ def custom(self):

# Bibliography author
c = self.conds["contributors"]
self.setattr(c["if"], "z:names/z:name", {"name-as-sort-order": None})
self.render({"tag": "name-part", "attrib": {"name": "family"}}, c["if"], path="z:names/z:name")
self.render({"tag": "name-part", "attrib": {"name": "given", "prefix": " "}}, c["if"], path="z:names/z:name")
self.setattr(c["if"], "z:names/z:name", {"name-as-sort-order": "first", "sort-separator":"、"})
self.render({"tag": "name-part", "attrib": {"name": "family", "suffix": " "}}, c["if"], path="z:names/z:name")
self.render({"tag": "name-part", "attrib": {"name": "given"}}, c["if"], path="z:names/z:name")

self.setattr(c["else"], "z:names", {"suffix": ". "})
self.setattr(c["else"], "z:names/z:name", {"initialize": "false", "and": "text"})
Expand Down

0 comments on commit 45c8303

Please sign in to comment.