ソースコードの管理場所
リビジョン | 31197b355f0e970536d52ac2be76d316028ee724 (tree) |
---|---|
日時 | 2011-12-04 15:38:54 |
作者 | Hironori Kitagawa <h_kitagawa2001@yaho...> |
コミッター | Hironori Kitagawa |
Add \@ at ...TeX.
@@ -56,9 +56,9 @@ | ||
56 | 56 | \keywords{\TeX, p\TeX, \LuaTeX, \LuaTeX-ja, Japanese} |
57 | 57 | \abstract{% |
58 | 58 | \LuaTeX-ja package is a macro package for typesetting Japanese |
59 | -documents under \LuaTeX. The package has more flexibility of | |
59 | +documents under \LuaTeX\@. The package has more flexibility of | |
60 | 60 | typesetting than \pTeX, which is widely used Japanese extension of \TeX, |
61 | -and has corrected some unwanted features of \pTeX. | |
61 | +and has corrected some unwanted features of \pTeX\@. | |
62 | 62 | In this paper, we describe specifications, the current status and some |
63 | 63 | internal processing methods of \LuaTeX-ja. |
64 | 64 | } |
@@ -96,11 +96,11 @@ because \LuaTeX\ has an ability to hook \TeX's internal process by using | ||
96 | 96 | Lua callbacks. |
97 | 97 | |
98 | 98 | Before our \LuaTeX-ja project, there were several experimental attempts to typeset |
99 | -Japanese documents with \LuaTeX. Here we cite three examples: | |
99 | +Japanese documents with \LuaTeX\@. Here we cite three examples: | |
100 | 100 | \begin{itemize} |
101 | 101 | \item |luaums.sty|~\cite{luaums} developed by the author. This |
102 | 102 | experimental package is for creating a certain Japanese-based presentation |
103 | - with \LuaTeX. | |
103 | + with \LuaTeX\@. | |
104 | 104 | \item the \emph{luajalayout} package~\cite{luajalayout}, formerly known as the |
105 | 105 | \emph{jafontspec} package, by Kazuki Maeda (前田一貴). This package is based on |
106 | 106 | \LaTeXe\ and \emph{fontspec} package. |
@@ -117,7 +117,7 @@ these situations. | ||
117 | 117 | \label{ssec-pol} |
118 | 118 | The first aim of \LuaTeX-ja project was to implement features (from the |
119 | 119 | `primitive' level) of \pTeX\ as macros under \LuaTeX, therefore \LuaTeX-ja is |
120 | -much affected by \pTeX. However, as development proceeded, some | |
120 | +much affected by \pTeX\@. However, as development proceeded, some | |
121 | 121 | technical/conceptual difficulties arose. Hence we changed the aim |
122 | 122 | of the project as follows: |
123 | 123 | \begin{itemize} |
@@ -272,7 +272,7 @@ useful under the verbatim environment.} One might jump to a conclusion | ||
272 | 272 | that the treatment of a line-break by \pTeX\ and that of \LuaTeX-ja are |
273 | 273 | totally same, however they are different in the respect that \LuaTeX-ja's |
274 | 274 | judgment whether a comment letter will be appended the line is done |
275 | -\emph{before} the line is actually processed by \LuaTeX. | |
275 | +\emph{before} the line is actually processed by \LuaTeX\@. | |
276 | 276 | |
277 | 277 | Figure~\ref{fig-linebreak} shows an example of this situation; the |
278 | 278 | command at the second line marks most of Japanese characters as |
@@ -358,7 +358,7 @@ done just when a (sequence of) character is appended to the current | ||
358 | 358 | list. Thus we can interrupt this process by writing as |
359 | 359 | |f{}irm|. However, \LuaTeX's process is \emph{node-based}, that is, the |
360 | 360 | process will be done when a horizontal box or a paragraph is ended, so |
361 | -|f{}irm| and |firm| yield same outputs under \LuaTeX. | |
361 | +|f{}irm| and |firm| yield same outputs under \LuaTeX\@. | |
362 | 362 | |
363 | 363 | The situation for Japanese characters is more complicated. |
364 | 364 | Glues (and kerns) which are needed for Japanese |
@@ -463,7 +463,7 @@ By the way, around a \emph{glyph\_node} $p$ there may be some nodes | ||
463 | 463 | correction\footnote{\TeX82 (and \LuaTeX) does not distinguish |
464 | 464 | between explicit kern and a kern for italic correction. To |
465 | 465 | distinguish them, an additional subtype for a kern is introduced |
466 | - in \pTeX. On the other hand, \LuaTeX-ja uses an additional attribute and | |
466 | + in \pTeX\@. On the other hand, \LuaTeX-ja uses an additional attribute and | |
467 | 467 | redefines \texttt{\char`\\/} to set this attribute.} for $p$. It is natural that |
468 | 468 | these attachments should be ignored inside the process. Hence |
469 | 469 | \LuaTeX-ja takes this approach, as the latest version of |
@@ -580,14 +580,14 @@ of `negative' in Japan. | ||
580 | 580 | |
581 | 581 | \subsection{Character ranges} |
582 | 582 | Before we describe the approach taken in \LuaTeX-ja, we review the |
583 | -approach taken by u\pTeX. u\pTeX\ extends the |\kcatcode| primitive in | |
583 | +approach taken by u\pTeX\@. u\pTeX\ extends the |\kcatcode| primitive in | |
584 | 584 | \pTeX, to use this primitive for setting how a character is treated |
585 | 585 | among alphabetic characters~(15), \emph{kanji}~(16), \emph{kana}~(17), |
586 | 586 | \emph{Hangul}~(17), or~\emph{other CJK characters}~(18). |
587 | 587 | The assignment to |\kcatcode| can be done by a Unicode |
588 | 588 | block.\footnote{There are some exceptions. For example, U+FF00--FFEF |
589 | 589 | (Halfwidth and Fullwidth Forms) are divided into three blocks in recent |
590 | -u\pTeX.} | |
590 | +u\pTeX\@.} | |
591 | 591 | |
592 | 592 | \LuaTeX-ja adopted a different approach. There are many Unicode blocks |
593 | 593 | in Basic Multilingual Plane which are not included in |
@@ -936,7 +936,7 @@ In \pTeX, there are three slots for maintaining current fonts, namely | ||
936 | 936 | |\font| for alphabetic fonts, |\jfont| for Japanese fonts (in horizontal |
937 | 937 | direction) and |\tfont| for Japanese fonts (in vertical direction). With |
938 | 938 | these slots, we can manage the current font for alphabetic characters |
939 | -and that for Japanese characters separately in \pTeX. However, \LuaTeX\ | |
939 | +and that for Japanese characters separately in \pTeX\@. However, \LuaTeX\ | |
940 | 940 | has only one slot for maintaining the current font, as \TeX82. This |
941 | 941 | situation leads a problem: how can we maintain the `current Japanese |
942 | 942 | font'? |
@@ -951,7 +951,7 @@ since \LuaTeX-ja is much affected by \pTeX\ as we noted in | ||
951 | 951 | Subsection~\ref{ssec-pol}. |
952 | 952 | |
953 | 953 | As in Figure~\ref{fig-jfdef}, \LuaTeX-ja uses |\jfont| for defining |
954 | -Japanese fonts, as \pTeX. However, because the information of the current | |
954 | +Japanese fonts, as \pTeX\@. However, because the information of the current | |
955 | 955 | Japanese font is stored into an attribute, control sequences defined by |
956 | 956 | |\jfont| (e.g.,~|\foo| and |\bar| in Figure~\ref{fig-jfdef}) is |
957 | 957 | not representing a font by the means of \TeX82. In other words, each of |
@@ -972,7 +972,7 @@ these callbacks for now. | ||
972 | 972 | As we noted in Subsection~\ref{ssec-csname}, parameters that the values |
973 | 973 | at the end of a horizontal box or that of a paragraph are valid in |
974 | 974 | whole box or paragraph, such as \emph{kanjiskip}, cannot be implemented |
975 | -by internal integers or registers of other types in \TeX. We explain it | |
975 | +by internal integers or registers of other types in \TeX\@. We explain it | |
976 | 976 | in this subsection. |
977 | 977 | |
978 | 978 | \begin{figure} |
@@ -990,7 +990,7 @@ void package(int c) | ||
990 | 990 | subtype(cur_box) = HLIST_SUBTYPE_HBOX; |
991 | 991 | } else { |
992 | 992 | \end{lstlisting} |
993 | -\caption{An extract of a CWEB-source \texttt{tex/packaging.w} of \LuaTeX.} | |
993 | +\caption{An extract of a CWEB-source \texttt{tex/packaging.w} of \LuaTeX\@.} | |
994 | 994 | \label{fig-ltsrc} |
995 | 995 | \end{figure} |
996 | 996 |
@@ -1173,14 +1173,14 @@ he/she needs to scale a Japanese font by | ||
1173 | 1173 | |
1174 | 1174 | \section{Conclusion} |
1175 | 1175 | We have discussed about our \LuaTeX-ja package, which is much affected |
1176 | -by \pTeX. For now, it can be used for experimental use, however there | |
1176 | +by \pTeX\@. For now, it can be used for experimental use, however there | |
1177 | 1177 | are much refinements which are needed for regular use. The author hopes |
1178 | 1178 | that this paper and \LuaTeX-ja project contribute the typesetting Japanese, |
1179 | -and possibly other Asian languages, under \LuaTeX. | |
1179 | +and possibly other Asian languages, under \LuaTeX\@. | |
1180 | 1180 | |
1181 | 1181 | \section*{Acknowledgements} |
1182 | 1182 | The author would like to thank Ken Nakano and Hideaki Togashi for their |
1183 | -development and management of ASCII \pTeX. The author is very grateful to Haruhiko | |
1183 | +development and management of ASCII \pTeX\@. The author is very grateful to Haruhiko | |
1184 | 1184 | Okumura for his leadership in the Japanese \TeX\ community. The author |
1185 | 1185 | is also very grateful to members of \LuaTeX-ja project team for their |
1186 | 1186 | valuable cooperation in development. |