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

CJK characters not visible when reader's font face set to 'Publisher Default' #378

Open
zxtom opened this issue Oct 27, 2020 · 1 comment

Comments

@zxtom
Copy link

zxtom commented Oct 27, 2020

I'm new to creating epub documents with asciidoctor and currently trying to generate an epub3 with mixed text in English and Chinese Simplified (scripts set to 'multilingual').

The source file is converted to epub with: asciidoctor-epub3 -D output document.adoc

After uploading the resulting epub to a reader (an app, or Kobo) the CJK text is invisible (blank space). I can make it visible by switching the reader's font face from 'Publisher Default' to one that supports CJK script (e.g. AR UDJingxihei on Kobo), however I'd like a font of my choice (ideally the NotoSans CJK SC) to be embedded in the epub.

Am I missing something in my setup? If it's not natively supported in asciidoctor-epub3, could someone point me in the right direction please, or would it be possible to request an enhancement?

When searching for a solution I came across a FontForge script that prepares a NotoCJK font to work with asciidoctor-epub3 and -pdf (https://gist.github.com/mojavelinux/c74162d44ca77d1a7c25), but I'm struggling to find further information on what to do with the resulting ttf. There is also an old post (2014) to which Dan Allen has contributed so I suspect some work has been done in the past on the support of CJK in EPUB3.

@mojavelinux
Copy link
Member

FYI, the updated version of that FontForge script can be found here: https://github.com/asciidoctor/asciidoctor-pdf/tree/master/scripts.

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

No branches or pull requests

3 participants