summaryrefslogtreecommitdiff
path: root/docs/manual-mutool-create.html
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-09-05 15:27:22 +0200
committerTor Andersson <tor.andersson@artifex.com>2018-09-21 14:21:05 +0200
commit48b026e7500c5f7239e173d14d09b9e2e272e874 (patch)
treed6231e9b0c39d7a6eb361eff3762855ea05102d8 /docs/manual-mutool-create.html
parent60103f2af83eb04c1e74b32fa9d29c74bf01c118 (diff)
downloadmupdf-48b026e7500c5f7239e173d14d09b9e2e272e874.tar.xz
Regularize language and script names.
Drop the unused 'serif' argument to the CJK lookup functions. Use the BCP 47 names for CJK scripts and languages: zh-Hant for traditional Chinese, zh-Hans for simplified Chinese, ja for Japanese, ko for Korean. The lookup function also allows commonly used language+country codes: zh-TW and zh-HK for traditional Chinese, zh-CN for simplified Chinese.
Diffstat (limited to 'docs/manual-mutool-create.html')
-rw-r--r--docs/manual-mutool-create.html19
1 files changed, 10 insertions, 9 deletions
diff --git a/docs/manual-mutool-create.html b/docs/manual-mutool-create.html
index 41a640eb..2bdd7b0e 100644
--- a/docs/manual-mutool-create.html
+++ b/docs/manual-mutool-create.html
@@ -83,15 +83,16 @@ font will be encoded using ISO 8859-7 or KOI8-U, respectively.
</pre>
<p>
-CJK fonts can also be created by passing a code for one of the 4 CID orderings:
-CN, TW, JP, or KR (Simplified Chinese, Traditional Chinese, Japanese, and Korean).
+CJK fonts can be created by passing a language tag for one of the 4 CID orderings:
+zh-Hant, zh-Hans, ja, or ko (Traditional Chinese, Simplified Chinese, Japanese, Korean).
+The CJK font will use the UTF-16 encoding.
A font file will not be embedded, so a PDF viewer will use a substitute font.
<pre>
-%%CJKFont Batang KR
-%%CJKFont Mincho JP
-%%CJKFont Ming TW
-%%CJKFont Song CN
+%%CJKFont Batang ko
+%%CJKFont Mincho ja
+%%CJKFont Ming zh-Hant
+%%CJKFont Song zh-Hans
</pre>
<p>
@@ -102,9 +103,9 @@ An example input file:
%%Font TmRm Times-Roman
%%Font Helv-C Helvetica Cyrillic
%%Font Helv-G Helvetica Greek
-%%CJKFont Song CN
-%%CJKFont Mincho JP
-%%CJKFont Batang KR
+%%CJKFont Song zh-Hant
+%%CJKFont Mincho ja
+%%CJKFont Batang ko
%%Image I0 logo/mupdf-simplified-logo.png
% Draw an image.