Juris-M / citeproc-js

A JavaScript implementation of the Citation Style Language (CSL) https://citeproc-js.readthedocs.io
Other
310 stars 85 forks source link

font-style="italic" doesn't work for Chinese publication #180

Open redleafnew opened 3 years ago

redleafnew commented 3 years ago

I post this issue on https://github.com/citation-style-language/styles/issues/5323 and https://forums.zotero.org/discussion/88346/font-style-italic-doesnt-work-for-chinese-publication#latest

@ocouch suggest to post here.

The original contents:

I edited a csl file, and used font-style="italic" for , the code is ,

and the English publication italicizes, however the Chinese publication remains unchanged.

the snapshot: italic

111126340-8f015e00-85ad-11eb-931d-79f947924537

the gist: https://gist.github.com/redleafnew/1139eb32d6204ca4eebfd2e90dd75d18

an example item:https://gist.github.com/redleafnew/9b71ab6b5577bb32a7504ee0916d9939

IEEE.csl also can be used as the example csl.

Many thanks.

ocouch commented 3 years ago

His copy paste hasn't come through well. I've confirmed this bug using @redleafnew 's example files. Here's the TL:DR;

Notably, it works correctly in the Zotero quick drop-down box in the MS-Word Add in (not sure if that's using a different implementation of cite-proc).

image

Only Chinese: image

A single non-Chinese character: image

Test File: https://www.dropbox.com/s/eqvihiwdbcx9ox3/Exported%20Items.json?dl=0 I modified only the publication (container-title) field of this item to test this.

For reference, I tested with Zotero 5.0.96

fbennett commented 3 years ago

Yes, italic type is blocked for Chinese characters. Is this now an accepted font style in Chinese publishing? (If possible, please provide a link to a published sample---this would be a significant change, and would adversely affect users that don't need it if not done carefully).

On Sun, Apr 4, 2021, 20:03 redleafnew @.***> wrote:

I post this issue on citation-style-language/styles#5323 https://github.com/citation-style-language/styles/issues/5323 and https://forums.zotero.org/discussion/88346/font-style-italic-doesnt-work-for-chinese-publication#latest

@ocouch https://github.com/ocouch suggest to post here.

The original contents:

I edited a csl file, and used font-style="italic" for , the code is ,

and the English publication italicizes, however the Chinese publication remains unchanged.

the snapshot: italic [image: 111126340-8f015e00-85ad-11eb-931d-79f947924537] https://user-images.githubusercontent.com/22135631/113506570-37389000-9578-11eb-8a25-6b518220dfdb.png

the gist: https://gist.github.com/redleafnew/1139eb32d6204ca4eebfd2e90dd75d18

an example item: https://gist.github.com/redleafnew/9b71ab6b5577bb32a7504ee0916d9939

IEEE.csl also can be used as the example csl.

Many thanks.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Juris-M/citeproc-js/issues/180, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAASMSVY7U6NJOLIHZM7UUTTHBBQZANCNFSM42LJCORQ .

ocouch commented 3 years ago

Haha - "It's not a bug, it's a feature!"

I'm not familiar with the standards, just reproducing the issue. I'll leave that for @redleafnew, he maintains a repository of Chinese styles: https://github.com/redleafnew/Chinese-STD-GB-T-7714-related-csl

Making it an option to enable italics might be the way to go?

redleafnew commented 3 years ago

thanks @ocouch and @fbennett , I checked some Journals' and thesis requirements, which mention foreign publication title should be italic, but for Chinese one, no specification is regulated. When I prepared a project, italic publication title is required. As @ocouch mentioned, making it an option is indeed a good way to go.

bwiernik commented 3 years ago

When I prepared a project, italic publication title is required

What do you mean by that? Is there a publisher or institution that is asking for italic typesetting for Chinese characters?

redleafnew commented 3 years ago

yes, the institution asked us for italic typesetting for Chinese publication title?

ocouch commented 3 years ago

@redleafnew Which institution(s), specifically? @bwiernik said it's a major change - ie. lots of work so gotta give him some evidence to do it

bwiernik commented 3 years ago

Can you give a link to a style guide?

redleafnew commented 3 years ago

@ocouch Maybe a little complex, NSFC (https://isisn.nsfc.gov.cn/egrantweb/) project uses a personal publication list from ScholarMate (https://www.scholarmate.com/oauth/index?sys=SNS, which your own publication could be claimed or added, like Researchgate), this publication list is generated automatically with ScholarMate, however the publication list of the project participant have to be generated with Zotero or Endnote, and my university required me to use the same style with ScholarMate, that is, the Chinese publication title should italic. Snipaste_2021-04-07_08-18-12

Note: both websites could only be accessed with registered member

fbennett commented 3 years ago

So ... there is an automated tool that incorrectly italicizes Chinese text, and your institution is requiring you to mimic the formatting produced by the tool? (That's not intended as personal criticism. If that is an accurate description of where the need comes from, it's a very strange position for them to put you in, and we'll need to think about this.)

redleafnew commented 3 years ago

yes, this is the application scenarios, I will contact ScholarMate and inquire him if italic Chinese publication title is correct.

redleafnew commented 3 years ago

@fbennett It is not totally automated tool that incorrectly italicizes Chinese text. I contacted ScholarMate, he said NSFC provided him a template (p2 of the file, 01.参与者模板-简历2021通用版-20210104.docx , which require the publication title italic. Snipaste_2021-04-07_11-58-03

zepinglee commented 3 years ago

Italic or slanted fonts are never used for Chinese characters in serious publishing. Yet there are still some unskilled editors who just simply copy the style of western scripts without understanding it. I suggest a further discussion with the style provider.

ttrepka commented 2 years ago

We are using citeproc-js in our product and received a user complaint about the same thing in Korean - journal names are not in italics unless they contain a Latin character. I honestly have no idea if it's correct or not, but apparently some journals require that so it might be useful to have an option to enable italics in Chinese or Korean.

Here's a link for one such journal: http://www.koreahrd.or.kr/html/sub11.asp It is necessary to click the right tab and then look for section 6.

image Screenshot 2021-12-22 at 13 31 38

More info from the user:

Even if it is written only in Korean, the journal name needs to be written in italics. Below is a screenshot of the recently published article's reference.

image

retorquere commented 2 years ago

There's a whole bunch op places that has a-z regexen. The culprit is bound to be among those.

bwiernik commented 2 years ago

As noted above, Chinese, Japanese, and Korean typesetting does not as a rule have italics. Most CJK fonts do not even have italic glyphs, so if italic glyphs are forced they are automatically generated slanted characters, not proper italics (eg, https://catalog.monotype.com/font/microsoft-corporation/meiryo/italic).

All of the examples I have seen of journals using italics with CJK characters have been verbatim copying rules do English Latin-character styles like APA, which were not written with non-Latin scripts in mind (and indeed APA generally calls for non-Latin titles to be translated or transliterated). So, I'm hesitant to introduce a change into citeproc-js that produces improper CJK typesetting without clear indication that this is a deliberate choice to format characters in a way that is supported by almost no fonts, rather than merely copying Western citation styles without careful thought.

01keeper commented 2 years ago

Please refer to the following manual and the Chinese book name is actually cited as italic.

https://www.tyndale.ca/sites/default/files/2020-05/CCSTStyleManual2016.pdf

螢幕截圖 2022-09-07 上午10 18 27 螢幕截圖 2022-09-07 上午10 18 36