blob: 76cfbcd91b96019f558347d26c96e8af7e794df9 (
plain)
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
|
%
% luatexja-otf.sty
%
%% Avoid multiple loading.
\csname\if11luatexjaotfLoaded\fi\endcsname
\edef\x{%
\catcode32=\the\catcode32%
\catcode33=\the\catcode33%
\catcode35=\the\catcode35%
\catcode40=\the\catcode40%
\catcode41=\the\catcode41%
\catcode42=\the\catcode42%
\catcode43=\the\catcode43%
\catcode44=\the\catcode44%
\catcode45=\the\catcode45%
\catcode46=\the\catcode46%
\catcode58=\the\catcode58%
\catcode59=\the\catcode59%
\catcode60=\the\catcode60%
\catcode61=\the\catcode61%
\catcode62=\the\catcode62%
\catcode64=\the\catcode64%
\catcode91=\the\catcode91%
\catcode93=\the\catcode93%
\catcode94=\the\catcode94%
\catcode95=\the\catcode95%
\catcode126=\the\catcode126%
\endlinechar=\the\endlinechar
\relax}
\catcode32=10 %< >
\catcode33=12 %<">
\catcode35=6 %<#>
\catcode40=12 %<(>
\catcode41=12 %<)>
\catcode42=12 %<*>
\catcode43=12 %<+>
\catcode44=12 %<,>
\catcode45=12 %<->
\catcode46=12 %<.>
\catcode58=12 %<:>
\catcode59=12 %<;>
\catcode60=12 %<<>
\catcode61=12 %<=>
\catcode62=12 %<>>
\catcode64=11 %<@>
\catcode91=12 %<[>
\catcode93=12 %<]>
\catcode94=7 %<^>
\catcode95=8 %<_>
\catcode126=13 %<~>
\endlinechar=-1 %
\edef\ltj@otf@AtEnd{\x
\noexpand\let\noexpand\ltj@otf@AtEnd\relax}
\def\luatexjaotfLoaded{\endinput}
%% Check if LaTeX is used.
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname RequirePackage\endcsname\relax %<*!LaTeX>
\expandafter\let\csname ifltj@in@latex\expandafter\endcsname
\csname iffalse\endcsname
\else %<*LaTeX>
\expandafter\let\csname ifltj@in@latex\expandafter\endcsname
\csname iftrue\endcsname
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{luatexja-otf}[2017/05/20]
\fi %</LaTeX>
% Load core module if not yet.
\ifx\luatexjacoreLoaded\@undefined
\ifltj@in@latex %<*LaTeX>
\RequirePackage{luatexja}
\else %<*!LaTeX>
\input luatexja.sty %
\fi %</LaTeX>
\fi
%% When environment check fails, exit now.
\ifx\LuaTeXjaAvailable\@undefined
\ltj@otf@AtEnd
\expandafter\endinput\fi\relax
%%------------------
%! Main part of luatexja-otf
\RequireLuaTeXjaSubmodule{otf}
\newcount\ltj@tempcnta
\protected\def\CID#1{\ifvmode\leavevmode\fi\ltj@tempcnta#1\relax\directlua{luatexja.otf.cid(\the\ltj@tempcnta)}\relax}
%% \UTF compatible with the OTF package for pLaTeX
\protected\def\UTF#1{\ifvmode\leavevmode\fi\directlua{luatexja.otf.append_jglyph(0x#1)}}
%% Load ajmacros
\ifltj@in@latex %<*LaTeX>
\RequirePackage{luatexja-ajmacros}
\else %<*!LaTeX>
\input luatexja-ajmacros.sty %
% \bou is defined in lltjext, \mbox is defined in LaTeX kernel
\def\boutenchar{\char\euc"A1A2}%"
\def\bou#1{\ifvmode\leavevmode\fi\@bou#1\end}
\def\@bou#1{%
\ifx#1\end \let\ltj@@next=\relax
\else
\ifnum\ltjgetparameter{direction}=3\relax
\hbox to\z@{\vbox to\z@{\boxmaxdepth\maxdimen
\vss\moveleft0.2\zw\hbox{\yoko\boutenchar}\nointerlineskip
\hbox{\char\euc"A1A1}}\hss}\nobreak#1\relax
\else
\hbox to\z@{\vbox to\z@{\boxmaxdepth\maxdimen
\vss\moveleft-0.2\zw\hbox{\boutenchar}\nointerlineskip
\hbox{\char\euc"A1A1}}\hss}\nobreak#1\relax
\fi
\let\ltj@@next=\@bou
\fi\ltj@@next}
\long\def\mbox#1{\leavevmode\hbox{#1}}
\fi %</LaTeX>
% macros from otf.sty
%for literature
\protected\def\ajKunoji{%
\ifnum\ltjgetparameter{direction}=3 \mbox{\UTF{3033}\UTF{3035}}\else
\@PackageError{luatexja-otf}{A TATE character in YOKO mode!}{Change a direction to TATE.}%2003/03/12
\fi}
\protected\def\ajKunojiwithBou{%
\ifnum\ltjgetparameter{direction}=3 \mbox{\bou{\mbox{\UTF{3033}}}\bou{\mbox{\UTF{3035}}}}\else
\@PackageError{luatexja-otf}{A TATE character in YOKO mode!}{Change a direction to TATE.}%2003/03/12
\fi}
\protected\def\ajDKunoji{%
\ifnum\ltjgetparameter{direction}=3 \mbox{\UTF{3034}\UTF{3035}}\else
\@PackageError{luatexja-otf}{A TATE character in YOKO mode!}{Change a direction to TATE.}%2003/03/12
\fi}
\protected\def\ajDKunojiwithBou{%
\ifnum\ltjgetparameter{direction}=3 \mbox{\bou{\mbox{\UTF{3034}}}\bou{\mbox{\UTF{3035}}}}\else
\@PackageError{luatexja-otf}{A TATE character in YOKO mode!}{Change a direction to TATE.}%2003/03/12
\fi}
\protected\def\ajNinoji{\CID{12106}}
\protected\def\ajvarNinoji{%
\ifnum\ltjgetparameter{direction}=3 \CID{12107}\else
\@PackageError{luatexja-otf}{A TATE character in YOKO mode!}{Change a direction to TATE.}%2003/03/12
\fi}
\protected\def\ajYusuriten{%
\ifnum\ltjgetparameter{direction}=3 \CID{16193}\else
\@PackageError{luatexja-otf}{A TATE character in YOKO mode!}{Change a direction to TATE.}%2003/03/12
\fi}
\protected\def\ajMasu{\UTF{303c}}
\protected\def\ajYori{\UTF{309f}}
\protected\def\ajKoto{\UTF{30ff}}
\protected\def\ajUta{\UTF{303d}}
%dingbats
\protected\def\ajCommandKey{\UTF{2318}}
\protected\def\ajReturnKey{\UTF{23ce}}
\protected\def\ajCheckmark{\UTF{2713}}
\protected\def\ajVisibleSpace{\UTF{2423}}
\protected\def\ajSenteMark{\UTF{2617}}
\protected\def\ajGoteMark{\UTF{2616}}
\protected\def\ajClub{\UTF{2663}}
\protected\def\ajHeart{\UTF{2661}}
\protected\def\ajSpade{\UTF{2660}}
\protected\def\ajDiamond{\UTF{2662}}
\protected\def\ajvarClub{\UTF{2667}}
\protected\def\ajvarHeart{\UTF{2665}}
\protected\def\ajvarSpade{\UTF{2664}}
\protected\def\ajvarDiamond{\UTF{2666}}
\protected\def\ajPhone{\UTF{260e}}
\protected\def\ajPostal{\UTF{3020}}
\protected\def\ajvarPostal{\UTF{3036}}
\protected\def\ajSun{\UTF{2600}}
\protected\def\ajCloud{\UTF{2601}}
\protected\def\ajUmbrella{\UTF{2602}}
\protected\def\ajSnowman{\UTF{2603}}
\protected\def\ajJIS{\UTF{3004}}
\protected\def\ajJAS{\CID{12088}}
\protected\def\ajBall{\CID{12097}}
\protected\def\ajHotSpring{\UTF{2668}}
\protected\def\ajWhiteSesame{\UTF{fe46}}
\protected\def\ajBlackSesame{\UTF{fe45}}
\protected\def\ajWhiteFlorette{\UTF{2740}}
\protected\def\ajBlackFlorette{\UTF{273f}}
\protected\def\ajRightBArrow{\CID{8206}}
\protected\def\ajLeftBArrow{\CID{8207}}
\protected\def\ajUpBArrow{\CID{8208}}
\protected\def\ajDownBArrow{\CID{8209}}
\protected\def\ajRightHand{\CID{8219}}
\protected\def\ajLeftHand{\CID{8220}}
\protected\def\ajUpHand{\CID{8221}}
\protected\def\ajDownHand{\CID{8222}}
\protected\def\ajRightScissors{\CID{12176}}
\protected\def\ajLeftScissors{\CID{12175}}
\protected\def\ajUpScissors{\CID{12177}}
\protected\def\ajDownScissors{\CID{12178}}
\protected\def\ajRightWArrow{\CID{12197}}
\protected\def\ajLeftWArrow{\CID{12196}}
\protected\def\ajUpWArrow{\CID{12198}}
\protected\def\ajDownWArrow{\CID{12199}}
\protected\def\ajRightDownArrow{\CID{12202}}
\protected\def\ajLeftDownArrow{\CID{12203}}
\protected\def\ajLeftUpArrow{\CID{12204}}
\protected\def\ajRightUpArrow{\CID{12205}}
%%------------------ all done
\ltj@otf@AtEnd
\endinput
%% EOF
|