source: people/munepi/ptl09vl6/00README.munepi @ 7081

Revision 7081, 7.0 KB checked in by munepi, 12 years ago (diff)

HOWTO embed IPA/IPAEX fonts to PDF

Line 
1* 最小環境
2$ sudo apt-get install task-texlive
3$ sudo apt-get install TrueType-ipafont OpenType-ipaexfont
4
5* IPA/IPAEX 用の map ファイルを追加
6
7/usr/share/texmf/fonts/map/dvipdfm/ptexlive
8|-- ...
9|-- ptex-ipa.map
10`-- ptex-ipaex.map
11
12/usr/share/texmf/fonts/map/dvipdfm/otf
13|-- ...
14|-- otf-ipa.map
15`-- otf-ipaex.map
16
17* ls-R を更新
18$ sudo mktexlsr /usr/share/texmf
19
20* /usr/share/texmf-config/web2c/updmap.cfg を以下のようになるように「直接」編集
21** IPA 明朝、IPA ゴシックフォントを埋め込む
22** ptex-ipa.map, otf-ipa.map を有効
23** vine.map を無効
24
25# kanjiEmbed {noEmbed|hiragino|kozuka|morisawa|ipa-ttf|ipa-otf|etc..}
26kanjiEmbed ipa
27
28# Japanese font map
29KanjiMap ptex-@kanjiEmbed@.map
30#! KanjiMap utf-@kanjiEmbed@.map
31KanjiMap otf-@kanjiEmbed@.map
32#! KanjiMap otf-cktx.map
33KanjiMap morisawa.map
34
35#! KanjiMap vine.map
36#! KanjiMap otf-noEmbed.map
37
38
39* updmap を実行
40$ sudo updmap-sys
41
42
43* テスト
44pdffonts コマンドが必要
45$ sudo apt-get install poppler-utils
46
47beefplate.tex, test1.tex test2.tex から
48
49$ x=beefplate && platex $x && dvipdfmx $x && pdffonts $x.pdf
50This is pTeXk, Version 3.1415926-p3.1.11 (utf8.euc) (Web2C 2009)
51(./beefplate.tex
52pLaTeX2e <2006/11/10>+0 (based on LaTeX2e <2009/09/24> patch level 0)
53(/usr/share/texmf/ptex/platex/js/jsarticle.cls
54Document Class: jsarticle 2010/03/14 okumura
55) (/usr/share/texmf/ptex/platex/otf/otf.sty
56(/usr/share/texmf/ptex/platex/otf/ajmacros.sty)) (./beefplate.aux) [1]
57(./beefplate.aux) )
58Output written on beefplate.dvi (1 page, 580 bytes).
59Transcript written on beefplate.log.
60beefplate.dvi -> beefplate.pdf
61[1]
62** WARNING ** UCS-4 TrueType cmap table...
63
6417315 bytes written
65name                                 type              emb sub uni object ID
66------------------------------------ ----------------- --- --- --- ---------
67EOYNBB+IPAMincho                     CID TrueType      yes yes no       5  0
68QFICKX+CMR10                         Type 1C           yes yes no       6  0
69
70$ x=test1 && platex $x && dvipdfmx $x && pdffonts $x.pdf
71This is pTeXk, Version 3.1415926-p3.1.11 (utf8.euc) (Web2C 2009)
72(./test1.tex
73pLaTeX2e <2006/11/10>+0 (based on LaTeX2e <2009/09/24> patch level 0)
74(/usr/share/texmf/ptex/platex/base/jarticle.cls
75Document Class: jarticle 2006/06/27 v1.6 Standard pLaTeX class
76(/usr/share/texmf/ptex/platex/base/jsize10.clo))
77No file test1.aux.
78[1] (./test1.aux) )
79Output written on test1.dvi (1 page, 328 bytes).
80Transcript written on test1.log.
81test1.dvi -> test1.pdf
82[1]
83** WARNING ** UCS-4 TrueType cmap table...
84** WARNING ** UCS-4 TrueType cmap table...
85
866817 bytes written
87name                                 type              emb sub uni object ID
88------------------------------------ ----------------- --- --- --- ---------
89ECDAMY+IPAMincho                     CID TrueType      yes yes no       5  0
90LGHAGF+IPAGothic                     CID TrueType      yes yes no       7  0
91KLQNXS+CMR10                         Type 1C           yes yes no       8  0
92
93$ x=test2 && platex $x && dvipdfmx $x && pdffonts $x.pdf
94This is pTeXk, Version 3.1415926-p3.1.11 (utf8.euc) (Web2C 2009)
95(./test2.tex
96pLaTeX2e <2006/11/10>+0 (based on LaTeX2e <2009/09/24> patch level 0)
97(/usr/share/texmf/ptex/platex/base/jarticle.cls
98Document Class: jarticle 2006/06/27 v1.6 Standard pLaTeX class
99(/usr/share/texmf/ptex/platex/base/jsize10.clo))
100(/usr/share/texmf/ptex/platex/otf/otf.sty
101(/usr/share/texmf/ptex/platex/otf/ajmacros.sty))
102No file test2.aux.
103[1] (./test2.aux) )
104Output written on test2.dvi (1 page, 448 bytes).
105Transcript written on test2.log.
106test2.dvi -> test2.pdf
107[1]
108** WARNING ** UCS-4 TrueType cmap table...
109** WARNING ** UCS-4 TrueType cmap table...
110
1119265 bytes written
112name                                 type              emb sub uni object ID
113------------------------------------ ----------------- --- --- --- ---------
114CUFWZD+IPAMincho                     CID TrueType      yes yes no       5  0
115OOJODJ+IPAGothic                     CID TrueType      yes yes no       7  0
116CKHEOT+CMR10                         Type 1C           yes yes no       8  0
117
118
119
120* IPAEX に変更してもいけます
121$ sudo updmap-sys --setoption kanjiEmbed ipaex
122
123$ x=beefplate && platex $x && dvipdfmx $x && pdffonts $x.pdf
124This is pTeXk, Version 3.1415926-p3.1.11 (utf8.euc) (Web2C 2009)
125(./beefplate.tex
126pLaTeX2e <2006/11/10>+0 (based on LaTeX2e <2009/09/24> patch level 0)
127(/usr/share/texmf/ptex/platex/js/jsarticle.cls
128Document Class: jsarticle 2010/03/14 okumura
129) (/usr/share/texmf/ptex/platex/otf/otf.sty
130(/usr/share/texmf/ptex/platex/otf/ajmacros.sty)) (./beefplate.aux) [1]
131(./beefplate.aux) )
132Output written on beefplate.dvi (1 page, 580 bytes).
133Transcript written on beefplate.log.
134beefplate.dvi -> beefplate.pdf
135[1]
136** WARNING ** UCS-4 TrueType cmap table...
137
13816960 bytes written
139name                                 type              emb sub uni object ID
140------------------------------------ ----------------- --- --- --- ---------
141ZBIQZB+IPAexMincho                   CID TrueType      yes yes no       5  0
142WNEUSF+CMR10                         Type 1C           yes yes no       6  0
143$ x=test1 && platex $x && dvipdfmx $x && pdffonts $x.pdf
144This is pTeXk, Version 3.1415926-p3.1.11 (utf8.euc) (Web2C 2009)
145(./test1.tex
146pLaTeX2e <2006/11/10>+0 (based on LaTeX2e <2009/09/24> patch level 0)
147(/usr/share/texmf/ptex/platex/base/jarticle.cls
148Document Class: jarticle 2006/06/27 v1.6 Standard pLaTeX class
149(/usr/share/texmf/ptex/platex/base/jsize10.clo)) (./test1.aux) [1] (./test1.aux
150) )
151Output written on test1.dvi (1 page, 328 bytes).
152Transcript written on test1.log.
153test1.dvi -> test1.pdf
154[1]
155** WARNING ** UCS-4 TrueType cmap table...
156** WARNING ** UCS-4 TrueType cmap table...
157
1586877 bytes written
159name                                 type              emb sub uni object ID
160------------------------------------ ----------------- --- --- --- ---------
161NAZAQI+IPAexMincho                   CID TrueType      yes yes no       5  0
162ITXSBP+IPAexGothic                   CID TrueType      yes yes no       7  0
163GHJCDN+CMR10                         Type 1C           yes yes no       8  0
164$ x=test2 && platex $x && dvipdfmx $x && pdffonts $x.pdf
165This is pTeXk, Version 3.1415926-p3.1.11 (utf8.euc) (Web2C 2009)
166(./test2.tex
167pLaTeX2e <2006/11/10>+0 (based on LaTeX2e <2009/09/24> patch level 0)
168(/usr/share/texmf/ptex/platex/base/jarticle.cls
169Document Class: jarticle 2006/06/27 v1.6 Standard pLaTeX class
170(/usr/share/texmf/ptex/platex/base/jsize10.clo))
171(/usr/share/texmf/ptex/platex/otf/otf.sty
172(/usr/share/texmf/ptex/platex/otf/ajmacros.sty)) (./test2.aux) [1] (./test2.aux
173) )
174Output written on test2.dvi (1 page, 448 bytes).
175Transcript written on test2.log.
176test2.dvi -> test2.pdf
177[1]
178** WARNING ** UCS-4 TrueType cmap table...
179** WARNING ** UCS-4 TrueType cmap table...
180
1819036 bytes written
182name                                 type              emb sub uni object ID
183------------------------------------ ----------------- --- --- --- ---------
184QTIFFT+IPAexMincho                   CID TrueType      yes yes no       5  0
185BVXWPR+IPAexGothic                   CID TrueType      yes yes no       7  0
186MBSKXS+CMR10                         Type 1C           yes yes no       8  0
Note: See TracBrowser for help on using the repository browser.