Login  Register

Re: CJK support in PDF: state of the art?

Posted by danyill on Feb 21, 2021; 8:43pm
URL: https://discuss.asciidoctor.org/CJK-support-in-PDF-state-of-the-art-tp8529p8530.html

Have you tried using https://github.com/Mogztter/asciidoctor-web-pdf?
Although this hasn't had a formal release yet (still in alpha), I've had good experience with it. 
More generally the use of web technologies generally will probably allow higher complexity than asciidoctor-pdf supports at present because of the considerable investment for i18n in browsers 

On Mon, Feb 22, 2021 at 3:50 AM craftyjon [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi all,

I'm working on a project to move a translated documentation package to
asciidoctor (hi Marco!)

We need PDF output support with CJK characters, and I've hit a dead
end trying to get this to work.

It seems like back in 2015 this was solved by Rei's work on
asciidoctor-pdf-cjk-kai_gen_gothic, but this package is no longer
maintained and the font KaiGen Gothic seems to not be widely available
anymore, so this option seems to not be a good idea.

I assumed that using Noto Serif CJK would be a good path, as this font
family looks good, has an appropriate license, and has lots of
characters supported.

Unfortunately, I have not been able to make it work with
asciidoctor-pdf.  As it seems like people have noted before on other
threads, it causes ttfunk to crash.

I have tried various things suggested in the asciidoctor-pdf
documentation for "repairing" the font in FontForge, however FontForge
seems to have trouble dealing with this font, and none of the steps
suggested in the docs result in a font that ttfunk can use.

So, before I get into the weeds with any of the particulars of getting
Noto Serif to work, I ask the community: is anyone generating PDFs
with CJK characters using anything other than the (now-unsupported)
KaiGen Gothic gem and an openly-licensed font?  If so, can you please
advise which font you used and if you had to do any magic steps to get
ttfunk to accept it?

Best,
Jon



If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/CJK-support-in-PDF-state-of-the-art-tp8529.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--

--
Private or confidential message? Public Key available here