Skip to content

Commit

Permalink
add hint about setting text-align=left when using a CJK language
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Mar 25, 2024
1 parent 821afab commit 372d54d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/modules/theme/pages/font-support.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,9 @@ Notice the `-a scripts=cjk` option.
That's important.
It tells the converter to insert break opportunities between CJK characters so that lines wrap properly when mixing English and a CJK language like Japanese.

When using a CJK language, you probably don't want text justification either, which is the default behavior.
You can overridde this setting using the `text-align` document attribute (or a custom theme).

$ asciidoctor-pdf -a scripts=cjk -a text-align=left --theme default-with-font-fallbacks document.adoc

If the built-in theme with the fallback font doesn't go far enough, you'll need to create a xref:cjk.adoc[custom CJK theme].

0 comments on commit 372d54d

Please sign in to comment.