asciidoctor / asciidoctorj

:coffee: Java bindings for Asciidoctor. Asciidoctor on the JVM!
http://asciidoctor.org
Apache License 2.0
625 stars 173 forks source link

How to support Chinese parsing #535

Open a373953795 opened 7 years ago

a373953795 commented 7 years ago

now,I can't resolve display Chinese while pdf document generate.I hope it's right,but chinese characters are not display.How should I solve this problem qq 20161115120231 qq 20161115120335

mojavelinux commented 7 years ago

In order to use the full set of Chinese characters with Asciidoctor PDF, you must add the gem that provides a CJK-focused theme. See https://github.com/chloerei/asciidoctor-pdf-cjk-kai_gen_gothic. See https://github.com/asciidoctor/asciidoctorj/issues/412 for how I got it working in a Maven build.

abelsromero commented 7 years ago

I am thinking we could add this as an example in the maven's example repo. wdyt?

mojavelinux commented 7 years ago

Certainly.

a373953795 commented 7 years ago

sorry,I'm not familiar with ruby.I have tried half of the day but not succeed.Where should I put asciidoctor-pdf-cjk-kai_gen_gothic.

abelsromero commented 7 years ago

@a373953795 we have included an full example in the examples repository, you can check it here https://github.com/asciidoctor/asciidoctor-maven-examples/tree/master/asciidoctor-pdf-cjk-example.

If you have any comment or question, feel free to open an issue in the examples repository.

a373953795 commented 7 years ago

Thank you very much