Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update locales-zh-CN.xml #242

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

zepinglee
Copy link
Contributor

@zepinglee zepinglee commented Nov 13, 2021

Description

  1. Correct the short form of edition term.
    The short form of edition term should be "版" not "本". See https://translate.google.com/?sl=en&tl=zh-CN&text=edition&op=translate.

  2. Correct quotation marks.
    The quotation marks in Simplified Chinese should be U+201C, U+201C, U+2018, and U+2019 as specified in the China national standard GB/T 15834—2011 General rules for punctuation (in Chinese). See also https://en.wikipedia.org/wiki/Quotation_mark#Summary_table. The original fullwidth angled brackets "《》〈〉" are actually used for indicating book titles in Chinese.

  3. Change page-range-delimiter to fullwidth tilde "~" (U+FF5E).
    The fullwidth tilde "~" (U+FF5E) is used as the delimiter of numeric range in general Chinese language, which is also specified in GB/T 15834—2011. See also https://en.wikipedia.org/wiki/Tilde#Range. As an exception, the page-range-delimiter is hyphen in the GB/T 7714—2015 China national bibliography style. Thus the china-national-standard-gb-t-7714-2015-*.csl from https://github.com/citation-style-language/styles need to be updated after this PR is merged.

BTW, there are a lot of trailing spaces in the file which may need to be cleaned.

Checklist

  • Check that you're listed as a <translator> in the <info> block at the beginning of the file.

@zepinglee
Copy link
Contributor Author

Additional commit:

  1. The official date form format in China is YYYY-MM-DD as specified in GB/T 7408—2005 Data elements and interchange formats—Representation of dates and times (in Chinese) which is based on ISO 8601. See also entry China in https://en.wikipedia.org/wiki/Date_format_by_country#Listing. This format is also used in the GB/T 7714—2015 China national bibliography style.

@bwiernik
Copy link
Member

With respect to the quote marks, in citation styles, quote marks are mostly used for book and article titles, so the angle brackets would be correct, no?

@zepinglee
Copy link
Contributor Author

With respect to the quote marks, in citation styles, quote marks are mostly used for book and article titles, so the angle brackets would be correct, no?

@bwiernik It may cause problem for a title with quoted text such as Foo "bar" baz. CSL converts those quotation marks to angle brackets and the result is Foo 《bar》 baz. But it doesn't make sense since the bar itself is not an article or book title.

@bwiernik
Copy link
Member

@adam3smith Not sure how to handle this here because CSL doesn't distinguish between types of quotes like that.

The context where angle brackets would be used is by far the most common case, so even if CSL can't currently handle all cases correctly, reverting the outer brackets to angle brackets should be done.

@zepinglee
Copy link
Contributor Author

It sounds reasonable if the *-quote terms are specific to article titles. I'll revert that change.

I also checked the following example.

<style xmlns="http://purl.org/net/xbiblio/csl" class="note" version="1.0" default-locale="zh-CN">
  <info>
    <id />
    <title />
    <updated>2009-08-10T04:49:00+09:00</updated>
  </info>
  <locale xml:lang="zh-CN">
    <terms>
      <term name="open-quote">《</term>
      <term name="close-quote">》</term>
      <term name="open-inner-quote">〈</term>
      <term name="close-inner-quote">〉</term>
    </terms>
  </locale>
  <citation>
    <layout>
      <text value="Foo &#34;bar&#34; baz" quotes="true"/>
      <text value="Foo “bar” baz" quotes="true"/>
      <text value="&#34;&#34;" quotes="true"/>
      <text value="甲“乙”丙" quotes="true"/>
    </layout>
  </citation>
</style>

Citeproc-js gives 《Foo 〈bar〉 baz》《Foo “bar” baz》《甲"乙"丙》《甲“乙”丙》 thus it is ok for unicode quotation marks as well as pure Chinese.

@zepinglee
Copy link
Contributor Author

The reverting is done. I've also added changes about the date range.

  • Em dash is used in text form of date. This is specified in GB/T 15834—2011 General rules for punctuation (in Chinese) where an example "2011 年 2 月 3 日—10 日" is directly given in section 4.13..3.2.
  • The date range-delimiter in numeric form is changed "/" as specified in GB/T 7408—2005 Data elements and interchange formats—Representation of dates and times (in Chinese) which is based on ISO 8601.

Besides, can I squash these changes to one commit before merging?

1. Change range-delimiter of text-form date to em dash.

2. Change range-delimiter of numeric-form date to slash.

3. Correct the short form of `edition` term.

4. Change `page-range-delimiter` to fullwidth tilde "~" (U+FF5E).
@zepinglee
Copy link
Contributor Author

The changes are rebased on master branch (4a551a8) to solve the conflicts.

I also added zh-CN translations for new terms in v1.0.2 and they are reviewed by @redleafnew (zepinglee#1 in Chinese).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants