polyglossia icon indicating copy to clipboard operation
polyglossia copied to clipboard

Enhancement: support Chinese

Open cscott opened this issue 11 years ago • 9 comments

I'm using polyglossia as part of a PDF rendering backend for Wikipedia (see https://npmjs.org/package/mw-ocg-latexer). It would be nice if polyglossia had even rudimentary support for CJK languages, so I could support ko.wikipedia.org, ja.wikipedia.org, zh.wikipedia.org and embedded CJK text in the other wikis.

cscott avatar Dec 09 '13 21:12 cscott

Note that Korean and Japanese are supported (at least rudimentally). Thus changing title.

jspitz avatar Aug 28 '19 04:08 jspitz

+1

hpvd avatar Jul 24 '20 11:07 hpvd

Currently ctex is my workaround.

jmcelroy01 avatar Aug 05 '22 16:08 jmcelroy01

I tried to create ldf files for Chinese by referring Japanese ldf and tex/latex/ctex/config/ctex-name-utf8.cfg I do not speak Chinese and I'm not sure whether they are appropriate or not.

https://github.com/t-tk/upmendex-package/blob/master/doc/samples/latex/gloss-chinese.ldf https://github.com/t-tk/upmendex-package/blob/master/doc/samples/latex/gloss-zh-CN.ldf https://github.com/t-tk/upmendex-package/blob/master/doc/samples/latex/gloss-zh-TW.ldf

t-tk avatar Sep 19 '22 06:09 t-tk

Thanks, @t-tk! As I do not speak Chinese either, we need a volunteer to audit and test these files.

jspitz avatar Oct 01 '22 11:10 jspitz

I added examples of XeLaTeX & polyglossia with multilingual texts:

https://github.com/t-tk/upmendex-package/blob/master/doc/samples/latex/city0.tex https://github.com/t-tk/upmendex-package/blob/master/doc/samples/latex/china002.tex https://github.com/t-tk/upmendex-package/blob/master/doc/samples/latex/china002.pdf

t-tk avatar Oct 02 '22 10:10 t-tk

@t-tk, @reutenauer what do you think: shall we add Tanaka-san's gloss file and flag them experimental? This way we probably get most chance for testing and feedback.

jspitz avatar Oct 28 '22 10:10 jspitz

@zepinglee in CTeX-org kindly sent a feedback: https://github.com/CTeX-org/ctex-kit/issues/639#issuecomment-1265011929 I can send pull request if you do not mind.

t-tk avatar Oct 28 '22 13:10 t-tk

Excellent. Yes, please do. If you could also add documentation, it would be perfect.

jspitz avatar Oct 28 '22 13:10 jspitz