AsciidocFX icon indicating copy to clipboard operation
AsciidocFX copied to clipboard

.adoc to pdf with 3rd header is# in Chinese

Open hanbing5210 opened this issue 4 years ago • 3 comments

the file of exported pdf image

code in .adoc image

hanbing5210 avatar Oct 30 '21 07:10 hanbing5210

Could you copy/paste your .adoc or add it as an attachment to make reproducing the issue easier ?

Ayowel avatar Nov 16 '21 12:11 Ayowel

  • You can reference https://github.com/life888888/asciidocfx-pdf-cjk-patch to fix it.
  • AsciidocFX/conf/docbook-config/fo-pdf.xsl
  • AsciidocFX/conf/docbook-config/fop.xconf.xml
  • 根本問題是 中文字型的 斜體字 , 粗斜體 字型 沒有被設定, 那些中文顯示成為 # 都是因為 被設定為 斜體 , 只要有斜體 或 粗斜體 或 斜粗體,

life888888 avatar Mar 12 '22 06:03 life888888

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

hanbing5210 avatar Mar 12 '22 06:03 hanbing5210

  1. After AsciidocFX 1.7.6+, PDF Engine Default is ASCIIDOCTOR。Not FOP。 You can use https://github.com/asciidocfx/Asciidoctor-CJK-Demo and custom you CJK Font and Theme. But You will missing Bold, Italic , Bold Italic style fonts.

  2. You can use https://github.com/life888888/asciidoctor-pdf-cjk-ext#asciidocfx support Chinese, Japanese, Korean. Fonts: Noto Sans CJK, Noto Sans Mono CJK, Noto Serif CJK Suppoty 4 style fonts: Regular, Bold, Italic , Bold Italic.

life888888 avatar Oct 24 '22 12:10 life888888

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

hanbing5210 avatar Oct 24 '22 13:10 hanbing5210