/usr/share/doc/latex-cjk-chinese-arphic-bsmi00lp/README.Debian is in latex-cjk-chinese-arphic-bsmi00lp 1.21+nmu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | latex-cjk-chinese-arphic for Debian
-----------------------------------
[This part will later be moved to an extra document in
latex-cjk-common explaining how to get extra fonts.]
Here's a step-by-step explanation what you have to do to obtain GBK
fonts to be used with CJK. I assume that you have already installed
the Unicode TFM/PFB/AFM/VF fonts with the correct .map files. As
example I've taken the Arphic "gkai" font, even though it only
contains GB2312.
First of all you should install the following packages:
latex-cjk-common, texlive-font-utils (>= 2007.dfsg.2), texlive-font-utils,
and of course the Arphic TrueType font "ttf-arphic-gkai00mp" (install
"ttf-arphic-gbsn00lp" if you want Arphic "gbsn").
We'll build all the subfonts in a separate directory, then download,
copy or link all the necessary files and process everything with
Fontforge.
$ mkdir ~/gkaigbk; cd ~/gkaigbk
# Copy all the necessary tools to the current directory.
$ wget http://partners.adobe.com/public/developer/en/opentype/aglfn13.txt
$ cp /usr/share/latex-cjk-common/utils/subfonts/{clonevf,makefdx,uni2sfd}.pl .
# If you want vertical glyphs, copy the vertical fonts from the Unicode version.
$ cp /usr/share/texmf/fonts/{afm,tfm,type1}/arphic/gkaiu/gkaiu* .
$ ln -s /usr/share/fonts/truetype/arphic/gkai00mp.ttf
# I'm not sure about the CODINGSCHEME variable in VF; you might try "cjkgbk".
$ perl uni2sfd.pl gkaiu /usr/share/texmf-texlive/fonts/sfd/UGBK.sfd gkaigbk cjkgbk
# Vertical fonts.
$ perl clonevf.pl gkaiuv gkaigbkv
# The font definition files for the regular and vertical version.
$ perl makefdx.pl gkaiuvr.afm /usr/share/texmf-texlive/fonts/sfd/UGBK.sfd c19gkai.fdx
$ echo "% This is the file c19gkai.fd of the CJK package
% for using Asian logographs (Chinese/Japanese/Korean) with LaTeX2e
%
% created for CJK Version 4.7.0 (17-Oct-2006).
\def\fileversion{4.7.0}
\def\filedate{2006/10/17}
\ProvidesFile{c19gkai.fd}[\filedate\space\fileversion]
% character set: UGBK
% font encoding: UGBK
% AR PL KaitiM GB
\DeclareFontFamily{C19}{gkai}{\hyphenchar \font\m@ne}
\DeclareFontShape{C19}{gkai}{m}{n}{<-> CJK * gkaigbk}{}
\DeclareFontShape{C19}{gkai}{bx}{n}{<-> CJKb * gkaigbk}{\CJKbold}
\endinput" > c19gkai.fd
# Now we'll install the fonts into our personal TEXMF directory, which
# is ~/texmf. If you want these fonts to be available for every user
# on your computer, install them in /usr/local/share/texmf/ as root.
$ mkdir ~/texmf; cd ~/texmf
$ mkdir -p fonts/{tfm,vf}/arphic/gkaigbk tex/latex/CJK/GB
$ cp ~/gkaigbk/gkaigbk*.tfm fonts/tfm/arphic/gkaigbk/
$ cp ~/gkaigbk/gkaigbk*.vf fonts/vf/arphic/gkaigbk/
$ cp ~/gkaigbk/c19gkai.fd* tex/latex/CJK/GB/
# Update the TeX tree. If you installed the fonts in
# /usr/local/share/texmf, run the next command as root.
$ mktexlsr
Now you can use GBK-encoded LaTeX documents with:
\begin{CJK*}{GBK}{gkai}
-- Danai SAE-HAN (韓達耐) <danai.sae-han@edpnet.be>, Tue, 5 Aug 2008 04:22:54 +0200
If you're switching from tfm-arphic-* to latex-cjk-chinese-arphic-*,
please make sure that you also remove *ALL* PK files in your local
TEXMF cache directory, which you can find in
~/.texmf-var/fonts/pk/modeless/arphic/ or something similar.
-- Danai SAE-HAN (韓達耐) <danai.sae-han@edpnet.be>, Sun, 29 Oct 2006 02:07:23 +0100
This package contains fonts in different formats built from Arphic
TrueType Fonts, using the fontforge scripts that are provided in the
CJK macro for LaTeX.
All fonts should appear in xdvi, dvips, dvipdfm(x) and pdflatex
directly without the need for ttf2pk. However, xdvi doesn't recognize
PS rotation (yet), so vertically written characters will show up
horizontally. Run dvips or dvipdfm(x) and view the final result with
gv or evince to view the final result.
-- Danai SAE-HAN (韓達耐) <danai.sae-han@skynet.be>, Mon, Nov 28 15:22:37 2005
|