Debian Codegraph @

doc/txi-ja.tex

raw
1 % txi-ja.tex -- adaptation to Japanese for texinfo.tex.
2 % This is read when a source document says @documentlanguage ja
3 % (which might happen after another @documentlanguage).
4 %
5 % Copyright 1999, 2007, 2008 Free Software Foundation.
6 %
7 % This program is free software; you can redistribute it and/or modify
8 % it under the terms of the GNU General Public License as published by
9 % the Free Software Foundation; either version 3 of the License, or
10 % (at your option) any later version.
11 %
12 % This program is distributed in the hope that it will be useful,
13 % but WITHOUT ANY WARRANTY; without even the implied warranty of
14 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 % GNU General Public License for more details.
16 %
17 % You should have received a copy of the GNU General Public License
18 % along with this program. If not, see <http://www.gnu.org/licenses/>.
19
20 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
21 % for dvipdfmx
22
23 \def\csdef#1{\expandafter\def\csname#1\endcsname}
24
25 \gdef\usedvipdfmx{
26
27 \ifnum 42146=\euc"A4A2 \special{pdf:tounicode EUC-UCS2}\else
28 \special{pdf:tounicode 90ms-RKSJ-UCS2}\fi
29
30 \global\pdfmakepagedesttrue
31 \gdef\pdfdest name##1 xyz{%
32 \iffinishedtitlepage\else
33 \special{pdf:dest (name##1) [\@thispage /XYZ \@xpos \@ypos]}%
34 \fi
35 }
36
37 \gdef\dopdfoutline##1##2##3##4{%
38 \special{pdf:out [] ##2 << /Title (##1) /A << /S /GoTo /D (name##4) >> >> }%
39 }
40
41 \gdef\entryaddpdfoutline##1##2{%
42 \global\cslet{orig##1}{##1}%
43 \csdef{##1}####1####2####3####4{%
44 \expandafter\empty\csname orig##1\endcsname{####1}{####2}{####3}{####4}%
45 \dopdfoutline{####1}{##2}{####3}{####4}%
46 }
47 }
48
49 \entryaddpdfoutline{numchapentry}{1}
50 \entryaddpdfoutline{numsecentry}{2}
51 \entryaddpdfoutline{numsubsecentry}{3}
52 \entryaddpdfoutline{numsubsubsecentry}{4}
53
54 \entryaddpdfoutline{unnchapentry}{1}
55 \entryaddpdfoutline{unnsecentry}{2}
56 \entryaddpdfoutline{unnsubsecentry}{3}
57 \entryaddpdfoutline{unnsubsubsecentry}{4}
58
59 \entryaddpdfoutline{appentry}{1}
60 \let\appsecentry=\numsecentry
61 \let\appsubsecentry=\numsubsecentry
62 \let\appsubsubsecentry=\numsubsubsecentry
63
64 }
65 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%