X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=doc%2Fluatexja.dtx;h=b57cf9e3273ecf79451e4e9270a88004533fdc77;hb=a30d2cd05f130df85c943dd8195c302f6deb5d49;hp=dedc7dff38d2384ce847ecc0ccb19021984107be;hpb=b470e92153b991fb21371ccf82dab74e3314e886;p=luatex-ja%2Fluatexja.git
diff --git a/doc/luatexja.dtx b/doc/luatexja.dtx
index dedc7df..b57cf9e 100644
--- a/doc/luatexja.dtx
+++ b/doc/luatexja.dtx
@@ -1,44 +1,125 @@
-%#! lualatex -shell-escape manual.ins
+%<*!showexpl>
+%#! lualatex -shell-escape
-%<*en>
-\documentclass[a4paper,titlepage]{article}
-\usepackage[margin=25mm,footskip=5mm]{geometry}
+% To typeset this manual, you need following two fonts:
+% - KozMinPr6N-Regular.otf
+% - KozGoPr6N-Medium.otf
+
+
+%\documentclass[a4paper,titlepage]{article}
+%\documentclass[a4paper,titlepage]{ltjsarticle}
+
+%%%%%%%%
+\makeatletter
+%%%%%%%%
+
+%%%%%%%% record loaded packages
+\let\ltjpkglist\empty
+\newif\if@real@append@list
+\def\@append@newentry#1#2{{%
+ \@real@append@listtrue \def\@tempa{#2}%
+ \let\@pkglist\@append@newentry@pkglist#1%
+ \if@real@append@list
+ \let\@pkglist=\relax\xdef#1{#1\@pkglist{#2}}%
+ \fi}}
+\def\@append@newentry@pkglist#1{%
+ \def\@tempb{#1}%
+ \ifx\@tempa\@tempb\@real@append@listfalse\fi}
+\def\@addtofilelist#1{\@append@newentry\ltjpkglist{#1}}
+\let\@listfiles\empty
+
+%<*en>
+\usepackage[margin=25mm,footskip=6mm]{geometry}
+\usepackage{luatexja-adjust}\ltjdisableadjust
+\parskip=\smallskipamount
+\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
+ {3.25ex \@plus1ex \@minus.2ex}%
+ {-1em}%
+ {\normalfont\normalsize\bfseries\raisebox{.2ex}{$\mdlgblksquare\mkern1mu$}}}
%
%<*ja>
-\documentclass[a4paper,titlepage]{ltjsarticle}
-\usepackage[margin=25mm, footskip=5mm]{geometry}
+\usepackage[textwidth=45\zw, lines=45, footskip=6mm]{geometry}
+\usepackage{luatexja-adjust}%\ltjdisableadjust
\advance\leftmargini-1\zw\advance\leftmarginii-1\zw
%
-\usepackage{amsmath,amssymb,xcolor,pict2e,multienum,amsthm,float,makecell}
-\usepackage{mathptmx}
-\usepackage{booktabs,listings,showexpl,multicol}
+\usepackage{amsmath,array,tikz,pict2e,multienum,float}
+\usepackage{booktabs,multicol}
+
+%%%%%%%% listings
+\usepackage{listings,showexpl}
+\lstset{
+ basicstyle=\ttfamily\small, pos=r, breaklines=true,
+ numbers=none, rframe={}, basewidth=0.5em, numberstyle=\tiny, numbersep=0.5em,
+ explpreset={numberstyle=\tiny, numbers=left, numbersep=1em}
+}
+% Suppress output from showexpl to stdout.
+\let\SX@Info\relax
+
+%%%%%%%% hyperref
+\usepackage{hyperref}
+%<*en>
+\title{The \LuaTeX-ja package}
+\author{The \LuaTeX-ja project team}
+%
+%<*ja>
+\title{\LuaTeX-jaããã±ã¼ã¸}
+\author{\LuaTeX-jaããã¸ã§ã¯ããã¼ã }
+%
+\hypersetup{%
+ unicode,
+ colorlinks,
+ allbordercolors=1 1 1,
+ allcolors=blue,
+%<*en>
+ pdfauthor={The LuaTeX-ja project team},
+ pdftitle={The LuaTeX-ja package}
+%
+%<*ja>
+ pdfauthor={LuaTeX-jaããã¸ã§ã¯ããã¼ã },
+ pdftitle={LuaTeX-jaããã±ã¼ã¸}
+%
+}
+
+%%%%%%%% definition env.
+\usepackage{amsthm}
+\theoremstyle{definition}
+%\newtheorem{defn}{Definition}
+%\newtheorem{defn}{å®ç¾©}
+
+%%%%%%%% fonts
\usepackage{luatexja-otf}
-\usepackage{luatexja-fontspec}
-\usepackage[unicode=true]{hyperref}
-\usepackage[all]{xy}
-% \SelectTips{cm}{}
+\usepackage[kozuka-pr6n]{luatexja-preset}
+%<*ja>
+\def\emph#1{\textbf{\textgt{#1}}}
+\def\headfont{\normalfont\bfseries\gtfamily}
+\usepackage{amssymb}
+%
%<*en>
-\usepackage{mathptmx}
+\usepackage{unicode-math}
\setmainfont[Ligatures=TeX]{TeX Gyre Termes}
-\setsansfont[Ligatures=TeX]{TeX Gyre Heros}
+\setsansfont[Scale=0.95,Ligatures=TeX]{TeX Gyre Heros}
+\setmathfont{xits-math.otf}
\frenchspacing
%
-\def\labelenumii{(\arabic{enumii})}
+\DeclareRobustCommand\ttfamily
+ {\not@math@alphabet\ttfamily\mathtt
+ \romanfamily\ttdefault\ttjfam\selectfont}
+\newjfontfamily\ttjfam{KozGoPr6N-Regular.otf}
+
+%%%%%%%% logo
+\usepackage{metalogo}
\DeclareRobustCommand\eTeX{\ensuremath{\varepsilon}-\kern-.125em\TeX}
\DeclareRobustCommand\LuaTeX{Lua\TeX}
\DeclareRobustCommand\pdfTeX{pdf\TeX}
-\DeclareRobustCommand\pTeX{p\kern-.05em\TeX}
-\DeclareRobustCommand\upTeX{up\kern-.05em\TeX}
+\DeclareRobustCommand\pTeX{p\kern-.15em\TeX}
+\DeclareRobustCommand\upTeX{up\kern-.15em\TeX}
\DeclareRobustCommand\pLaTeX{p\kern-.05em\LaTeX}
\DeclareRobustCommand\pLaTeXe{p\kern-.05em\LaTeXe}
\DeclareRobustCommand\epTeX{\ensuremath{\varepsilon}-\kern-.125em\pTeX}
-\theoremstyle{definition}
-%\newtheorem{defn}{Definition}
-%\newtheorem{defn}{å®ç¾©}
-
+%%%%%%%% other macros
\newenvironment{cslist}{%
\leftskip2em\parindent=0pt\def\makelabel##1{{\tt\char92##1}}
\def\{{\char`\{}\def\}{\char`\}}
@@ -46,7 +127,7 @@
\def\item[##1]{\par\smallskip\par\hskip-\leftskip\makelabel{##1}\par}
}{}
-\makeatletter
+\def\labelenumii{(\arabic{enumii})}
\long\def\@makecaption#1#2{%
\vskip\abovecaptionskip
\sbox\@tempboxa{{\small #1. #2}}%
@@ -57,31 +138,18 @@
\hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
\fi
\vskip\belowcaptionskip}
-% Suppress output from showexpl to stdout.
-\let\SX@Info\relax
+
+%%%%%%%%
\makeatother
+%%%%%%%%
\def\Node#1#2{\,\vcenter{\hbox{\fboxsep=1pt\fbox{\vbox{\small\halign{\hfil##\hfil\cr
#1\mathstrut\cr\noalign{\hrule height.4pt}\strut#2\cr}}}}\,}}
-%<*en>
-\title{The \LuaTeX-ja package}
-\author{The \LuaTeX-ja project team}
-%
-%<*ja>
-\title{\LuaTeX-jaããã±ã¼ã¸}
-\author{\LuaTeX-jaããã¸ã§ã¯ããã¼ã }
-%
-
-\lstset{
- basicstyle=\ttfamily\small, pos=o, breaklines=true,
- numbers=none, rframe={}, basewidth=0.5em
-}
-
-\parskip=\smallskipamount
\protected\def\Param#1{\textsf{#1}} % parameter name
\protected\def\Pkg#1{\underline{\smash{\texttt{#1}}}} % packages/classes
+
\begin{document}
\catcode`\<=13
\def<#1>{{\normalfont\rm\itshape$\langle$#1$\rangle$}}
@@ -93,10 +161,10 @@
%<*en>
\textbf{This documentation is far from complete. It may have many
grammatical (and contextual) errors.} Also, several parts
-(especially, Section~\ref{sec-jfmglue}) are written in Japanese only.
+are written in Japanese only.
%
%<*ja>
-\textbf{\large æ¬ããã¥ã¡ã³ãã¯ã¾ã ã¾ã æªå®æã§ãï¼}
+\emph{\large æ¬ããã¥ã¡ã³ãã¯ã¾ã ã¾ã æªå®æã§ãï¼}
%
\clearpage
@@ -106,6 +174,7 @@ grammatical (and contextual) errors.} Also, several parts
%\section{Introduction}
%\section{ã¯ããã«}
+
%<*en>
The \LuaTeX-ja package is a macro package for typesetting high-quality
Japanese documents when using \LuaTeX.
@@ -114,7 +183,6 @@ Japanese documents when using \LuaTeX.
\LuaTeX-jaããã±ã¼ã¸ã¯ï¼æ¬¡ä¸ä»£æ¨æº\TeX ã§ãã\LuaTeX ã®ä¸ã§ï¼\pTeX ã¨åç
ï¼ãã以ä¸ã®å質ã®æ¥æ¬èªçµçãå®ç¾ããããã¨ãããã¯ãããã±ã¼ã¸ã§ããï¼
%
-
%\subsection{Backgrounds}
%\subsection{èæ¯}
@@ -133,7 +201,7 @@ ASCII \pTeX ãããã®æ¡å¼µç©ãç¨ãããããã¨ãä¸è¬çã§ãã£
ã®ã¨ã³ã¸ã³æ¡å¼µã§ããï¼ï¼å°ã
ä»æ§ä¸ä¸ä¾¿ãªç¹ã¯ãããã®ã®ï¼åæ¥å°å·ã®åéã«
ãç¨ããããã»ã©ã®é«å質ãªæ¥æ¬èªçµçãå¯è½ã¨ãã¦ããï¼ã ãï¼ããã¯å¼±ç¹ã«
ããªã£ã¦ãã¾ã£ãï¼\pTeX ã¨ããï¼çµççã«ï¼æºè¶³ãªãã®ããã£ãããï¼æµ·å¤ã§
-è¡ããã¦ããæ°ã
ã®\TeX ã®æ¡å¼µââä¾ãã°\eTeX ã\pdfTeX ââãï¼TrueType,
+è¡ããã¦ããæ°ã
ã®\TeX ã®æ¡å¼µââä¾ãã°\eTeX ã\pdfTeX ââãï¼TrueType,
OpenType, Unicodeã¨ãã£ãè¨ç®æ©ã§æ¥æ¬èªãæ±ãéã®ç¶æ³ã®å¤åã«è¿½å¾ãããã¨
ãæ ã£ã¦ãã¾ã£ãã®ã ï¼
%
@@ -173,6 +241,7 @@ scripts for appropriate callbacks.
%\subsection{Major Changes from \pTeX}
%\subsection{\pTeX ããã®ä¸»ãªå¤æ´ç¹}
+\label{ssec:chgptex}
%<*en>
The \LuaTeX-ja package is under much influence of \pTeX\ engine. The initial
@@ -184,7 +253,7 @@ specifications/behaviors of \pTeX\ were not adopted}.
\LuaTeX-jaã¯ï¼\pTeX ã«å¤å¤§ãªå½±é¿ãåãã¦ããï¼åæã®éçºç®æ¨ã¯ï¼\pTeX ã®æ©
è½ãLuaã³ã¼ãã«ããå®è£
ãããã¨ã§ãã£ãï¼ãããï¼éçºãé²ãã«ã¤ãï¼\pTeX
ã®å®å
¨ãªç§»æ¤ã¯ä¸å¯è½ã§ããï¼ã¾ã\pTeX ã«ãããå®è£
ãããããä¸å¯è§£ã«ãªã£
-ã¦ãããããªç¶æ³ãçºè¦ãããï¼ãã®ããï¼\textbf{\LuaTeX-jaã¯ï¼ãã¯ã
+ã¦ãããããªç¶æ³ãçºè¦ãããï¼ãã®ããï¼\emph{\LuaTeX-jaã¯ï¼ãã¯ã
\pTeX ã®å®å
¨ãªç§»æ¤ã¯ç®æ¨ã¨ã¯ããªãï¼\pTeX ã«ãããä¸èªç¶ãªä»æ§ã»æåãã
ãã°ï¼ããã¯ç©æ¥µçã«æ¹ããï¼}
%
@@ -199,12 +268,13 @@ The followings are major changes from \pTeX:
\begin{itemize}
%<*en>
\item A Japanese font is a tuple of a `real' font, a Japanese font
- metric (\textbf{JFM}, for short), and an optional string called
- `variation'.
+ metric (\emph{JFM}, for short).
%
%<*ja>
-\item åæãã©ã³ãã¯ï¼å°å¡ææï¼IPAææãªã©ã®ï¼å®éã®ãã©ã³ãï¼åæãã©ã³ãã¡ããªãã¯ï¼JFMã¨å¼ã¶ï¼ï¼ã
- ãã¦`variation'ã¨å¼ã°ããæååã®çµã§ããï¼
+\item åæãã©ã³ãã¯ï¼å°å¡ææï¼IPAææãªã©ã®ï¼å®éã®ãã©ã³ãï¼åæãã©ã³
+ ãã¡ããªãã¯ï¼JFMã¨å¼ã¶\footnote{æ··ä¹±ãé²ãããï¼p\TeX ã®æå³ã§ã®
+ JFM (\texttt{min10.tfm}) ãªã©ã¯æ¬ããã¥ã¡ã³ãã§ã¯\emph{åæç¨
+ TFM}ã¨ãã¶ãã¨ã«ããï¼}ï¼ã®çµã§ããï¼
%
%<*en>
@@ -223,12 +293,12 @@ The followings are major changes from \pTeX:
%<*en>
\item The insertion process of glues/kerns between two Japanese
characters and between a Japanese character and other characters
- (we refer these glues/kerns as \textbf{JAglue}) is rewritten from
+ (we refer glues/kerns of both kinds as \textbf{JAglue}) is rewritten from
scratch.
%
%<*ja>
-\item 2ã¤ã®åææåã®éï¼åææåã¨æ¬§ææåã®éã«å
¥ãã°ã«ã¼ï¼ã«ã¼ã³
- ï¼\textbf{JAglue} ã¨å¼ã¶ï¼ã®æ¿å
¥å¦çã0ããæ¸ãç´ããã¦ããï¼
+\item 2ã¤ã®åææåã®éãï¼åææåã¨æ¬§ææåã®éã«å
¥ãã°ã«ã¼ï¼ã«ã¼ã³
+ ï¼ä¸¡è
ããããã¦\textbf{JAglue}ã¨å¼ã¶ï¼ã®æ¿å
¥å¦çã0ããæ¸ãç´ããã¦ããï¼
%
\begin{itemize}
@@ -259,11 +329,11 @@ The followings are major changes from \pTeX:
effective anymore.} In concrete terms, the following two methods are not effective anymore:
%
%<*ja>
-\item \textbf{注æï¼ä¸ã®2ã¤ã®å¤æ´ã«ããï¼å¾æ¥\textbf{JAglue}ã®æ¿å
¥å¦çãåæããã®ã«
+\item \emph{注æï¼ä¸ã®2ã¤ã®å¤æ´ã«ããï¼å¾æ¥\textbf{JAglue}ã®æ¿å
¥å¦çãåæããã®ã«
使ããã¦ããããã¤ãã®æ¹æ³ã¯ç¨ãããã¨ãã§ããªãï¼å
·ä½çã«ã¯ï¼æ¬¡ã®æ¹æ³ã¯ãã¯ãç¡å¹ã§ããï¼}
%
\begin{verbatim}
-ããã¡ã{}ã£ã¨ããã¡ã\/ã£ã¨
+\hskip2\zw ã¡ã{}ã£ã¨\hskip2\zw ã¡ã\/ã£ã¨
\end{verbatim}
%<*en>
If you want to do so, please put an empty hbox between it instead:
@@ -272,20 +342,26 @@ The followings are major changes from \pTeX:
ããåããã¨ããããããã°ï¼ç©ºã®æ°´å¹³ããã¯ã¹ãéã«æãã°ããï¼
%
\begin{verbatim}
-ããã¡ã\hbox{}ã£ã¨
+\hskip2\zw ã¡ã\hbox{}ã£ã¨
\end{verbatim}
%<*en>
\item In the process, two Japanese fonts which only differ in their `real'
- fonts are identified.
+ fonts are identified.
%
%<*ja>
-\item å¦çä¸ã§ã¯ï¼2ã¤ã®åæãã©ã³ãã¯ï¼ãå®éã®ããã©ã³ãã®ã¿ãç°ãªãå ´åã«åä¸è¦
+\item å¦çä¸ã§ã¯ï¼2ã¤ã®åæãã©ã³ãã¯ï¼ãå®éã®ããã©ã³ããç°ãªãã ãã®å ´åã«ã¯åä¸è¦
ãããï¼
%
\end{itemize}
+%<*ja>
+\item \LuaTeX-jaã§ã¯ï¼\pTeX ã¨åæ§ã«æ¼¢åã»ä»®åãå¶å¾¡ç¶´å
ã«ç¨ãããã¨ãã§ãï¼
+\verb+\西æ¦+ ãªã©ãæ£ããåä½ããããã«ãã¦ããï¼
+ä½ãï¼å¶å¾¡ç¶´ä¸ã«ä½¿ããåææåã\pTeXã»\upTeX ã¨å
¨ãåãã§ã¯ãªããã¨ã«æ³¨æãããã¨ï¼
+%
+
%<*en>
\item At the present, vertical typesetting (\emph{tategaki}), is not
supported in \LuaTeX-ja.
@@ -293,14 +369,13 @@ The followings are major changes from \pTeX:
%<*ja>
\item ç¾æç¹ã§ã¯ï¼ç¸¦æ¸ãã¯\LuaTeX-jaã§ã¯ãµãã¼ãããã¦ããªãï¼
%
-
\end{itemize}
%<*en>
For detailed information, see Part~\ref{part-imp}.
%
%<*ja>
-詳細ã«ã¤ãã¦ã¯ç¬¬ \ref{part-imp} é¨ãåç
§ï¼
+詳細ã«ã¤ãã¦ã¯ç¬¬\ref{part-imp}é¨ãåç
§ï¼
%
%\subsection{Notations}
@@ -312,7 +387,6 @@ In this document, the following terms and notations are used:
%<*ja>
æ¬ããã¥ã¡ã³ãã§ã¯ï¼ä»¥ä¸ã®ç¨èªã¨è¨æ³ãç¨ããï¼
%
-
\begin{itemize}
%<*en>
\item Characters are divided into two types:
@@ -322,21 +396,16 @@ In this document, the following terms and notations are used:
%
\begin{itemize}
%<*en>
-\item \textbf{JAchar}: standing for Japanese characters such as
- Hiragana, Katakana, Kanji and other punctuation marks for
- Japanese.
+\item \textbf{JAchar}: standing for characters which used in Japanese typesetting,
+ such as Hiragana, Katakana, Kanji and other Japanese punctuation marks.
%
%<*ja>
-\item \textbf{JAchar}: ã²ãããªï¼ã«ã¿ã«ãï¼æ¼¢åï¼åæç¨ã®ç´ç©ã¨ãã£ãåææåã®
- ãã¨ãæãï¼
+\item \textbf{JAchar}: ã²ãããªï¼ã«ã¿ã«ãï¼æ¼¢åï¼åæç¨ã®ç´ç©ã¨ãã£ã
+ æ¥æ¬èªçµçã«ä½¿ãããæåã®ãã¨ãæãï¼
%
-%<*en>
-\item \textbf{ALchar}: standing for all other characters like alphabets.
-%
-%<*ja>
-\item \textbf{ALchar}: ã¢ã«ãã¡ããããå§ãã¨ããï¼ãã®ä»å
¨ã¦ã®æåãæãï¼
-%
+%\item \textbf{ALchar}: standing for all other characters like alphabets.
+%\item \textbf{ALchar}: ã¢ã«ãã¡ããããå§ãã¨ããï¼ãã®ä»å
¨ã¦ã®æåãæãï¼
\end{itemize}
%<*en>
@@ -346,37 +415,24 @@ We say `alphabetic fonts' for fonts used in \textbf{ALchar}, and `Japanese fonts
ããã¦ï¼\textbf{ALchar}ã®åºåã«ç¨ãããããã©ã³ããã欧æãã©ã³ããã¨å¼ã³ï¼
\textbf{JAchar}ã®åºåã«ç¨ãããããã©ã³ãããåæãã©ã³ããã¨å¼ã¶ï¼
%
-
%<*en>
-\item A word in a sans-serif font (like \Param{prebreakpenalty})
+\item A word in a sans-serif font (like \Param{\hyperlink{fld:prebp}{prebreakpenalty}})
means an internal parameter for Japanese typesetting, and it
is used as a key in \verb+\ltjsetparameter+ command.
%
%<*ja>
-\item ãµã³ã»ãªãä½ã§æ¸ãããèªï¼ä¾ï¼\Param{prebreakpenalty}ï¼ã¯æ¥æ¬èªçµçç¨ã®
+\item ãµã³ã»ãªãä½ã§æ¸ãããèªï¼ä¾ï¼\Param{\hyperlink{fld:prebp}{prebreakpenalty}}ï¼ã¯æ¥æ¬èªçµçç¨ã®
ãã©ã¡ã¼ã¿ã表ãï¼ããã㯠\verb+\ltjsetparameter+ ã³ãã³ãã®ãã¼ã¨ãã¦
ç¨ããããï¼
%
-
%<*en>
\item A word in typewriter font with underline (like \Pkg{fontspec})
means a package or a class of \LaTeX.
%
%<*ja>
-\item ä¸ç·ä»ãã®ã¿ã¤ãã©ã¤ã¿ä½ã§æ¸ãããèªï¼ä¾ï¼\Pkg{fontspec}ï¼ã¯\LaTeX ã®
+\item ä¸ç·ä»ãã¿ã¤ãã©ã¤ã¿ä½ã®èªï¼ä¾ï¼\Pkg{fontspec}ï¼ã¯\LaTeX ã®
ããã±ã¼ã¸ãã¯ã©ã¹ã表ãï¼
%
-
-%<*en>
-\item The word `primitive' is used not only for primitives in \LuaTeX,
- but also for control sequences that defined in the core module of
- \LuaTeX-ja.
-%
-%<*ja>
-\item ãããªããã£ããã¨ããèªãï¼\LuaTeX ã®ããªããã£ãã ãã§ã¯ãªã \LuaTeX-ja
- ã®ã³ã¢ã¢ã¸ã¥ã¼ã«ã§å®ç¾©ãããã³ã³ããã¼ã«ã·ã¼ã±ã³ã¹ã«å¯¾ãã¦ãç¨ããï¼
-%
-
%<*en>
\item In this document, natural numbers start from~0.
%
@@ -388,35 +444,29 @@ We say `alphabetic fonts' for fonts used in \textbf{ALchar}, and `Japanese fonts
%\subsection{About the project}
%\subsection{ããã¸ã§ã¯ãã«ã¤ãã¦}
-%<*en>
-\paragraph{Project Wiki} Project Wiki is under construction.
-%
-%<*ja>
-\paragraph{ããã¸ã§ã¯ãWiki} ããã¸ã§ã¯ãWikiã¯æ§ç¯ä¸ã§ããï¼
-%
-
+%\paragraph{Project Wiki} Project Wiki is under construction.
+%\paragraph{ããã¸ã§ã¯ãWiki} ããã¸ã§ã¯ãWikiã¯æ§ç¯ä¸ã§ããï¼
%<*en>
\begin{itemize}
\item \url{http://sourceforge.jp/projects/luatex-ja/wiki/FrontPage%28en%29} (English)
\item \url{http://sourceforge.jp/projects/luatex-ja/wiki/FrontPage} (Japanese)
+\item \url{http://sourceforge.jp/projects/luatex-ja/wiki/FrontPage%28zh%29} (Chinese)
\end{itemize}
%
%<*ja>
\begin{itemize}
\item \url{http://sourceforge.jp/projects/luatex-ja/wiki/FrontPage}ï¼æ¥æ¬èªï¼
\item \url{http://sourceforge.jp/projects/luatex-ja/wiki/FrontPage%28en%29}ï¼è±èªï¼
+\item \url{http://sourceforge.jp/projects/luatex-ja/wiki/FrontPage%28zh%29}ï¼ä¸å½èªï¼
\end{itemize}
%
-%<*en>
-This project is hosted by SourceForge.JP.
-%
-%<*ja>
-æ¬ããã¸ã§ã¯ãã¯SourceForge.JPã®ãµã¼ãã¹ãç¨ãã¦éå¶ããã¦ããï¼
-%
+%This project is hosted by SourceForge.JP.
+%æ¬ããã¸ã§ã¯ãã¯SourceForge.JPã®ãµã¼ãã¹ãç¨ãã¦éå¶ããã¦ããï¼
%\paragraph{Members}\
%\paragraph{éçºã¡ã³ãã¼}\
+
%<*en>
\begin{multienumerate}
\def\labelenumi{$\bullet$}
@@ -434,7 +484,6 @@ This project is hosted by SourceForge.JP.
\end{multienumerate}
%
-
% \paragraph{Acknowledgments} -- æ¿å
¥ãããªããã
\clearpage
@@ -443,44 +492,67 @@ This project is hosted by SourceForge.JP.
%\subsection{Installation}
%\subsection{ã¤ã³ã¹ãã¼ã«}
-%<*en>
-To install the \LuaTeX-ja\ package, you will need:
-%
-%<*ja>
-\LuaTeX-jaããã±ã¼ã¸ã®ã¤ã³ã¹ãã¼ã«ã«ã¯ï¼æ¬¡ã®ãã®ãå¿
è¦ã§ããï¼
-%
+%To install the \LuaTeX-ja\ package, you will need:
+%\LuaTeX-jaããã±ã¼ã¸ã®ã¤ã³ã¹ãã¼ã«ã«ã¯ï¼æ¬¡ã®ãã®ãå¿
è¦ã§ããï¼
\begin{itemize}
-%<*en>
-\item \LuaTeX\ (version 0.65.0-beta or later) and its supporting packages.\\
-If you are using \TeX~Live~2011 or current W32\TeX, you don't have to worry.
-%
-%<*ja>
-\item \LuaTeXï¼ãã¼ã¸ã§ã³ 0.65.0-beta 以éï¼ã¨ãã®æ¯æ´ããã±ã¼ã¸ï¼
- \TeX~Live~2011ãW32\TeX ã®ææ°çãªãã°åé¡ãªãï¼
-%
-%<*en>
-\item The source archive of \LuaTeX-ja, of course\texttt{:)}
-%
-%<*ja>
-\item \LuaTeX-jaã®ã½ã¼ã¹ã¢ã¼ã«ã¤ãï¼ãã¡ãã\texttt{:)}ï¼ï¼
-%
-%<*en>
-\item The \Pkg{xunicode} package, which version is \emph{just v0.981 (2011/09/09)}.\\
-If you have the \Pkg{fontspec} package, this \Pkg{xunicode} package must be exist.
-But be careful about the version; other versions may not work correctly with \LuaTeX-ja.
-%
-%<*ja>
-\item \Pkg{xunicode}ããã±ã¼ã¸(\textbf{2011/09/09,~v0.981})ï¼\\
-\Pkg{fontspec}ããã±ã¼ã¸ãå°å
¥ããã¦ããã°ãã®ããã±ã¼ã¸ãå°å
¥ããã¦ããã¯ãã§ãããï¼
-ãã®v0.981以å¤ã®ãã¼ã¸ã§ã³ã§ã¯\LuaTeX-jaä¸ã§æ£ããåä½ããªãå±éºæ§ãããï¼
-%
+\item \LuaTeX\ beta-0.74.0 (or later)
+\item \Pkg{luaotfload} v2.2
+\item \Pkg{luatexbase} v0.6~(2013/05/04)
+\item \Pkg{xunicode} v0.981~(2011/09/09)
+\item \Pkg{adobemapping} (Adobe cmap and pdfmapping files)
\end{itemize}
%<*en>
-The installation methods are as follows:
+\emph{From this version of \LuaTeX-ja, \TeX~Live~2012 (or older version) is
+no longer supported, since \LuaTeX\ binary and \Pkg{luaotfload} is updated in
+\TeX~Live~2013.}
+And conversely, older versions of \LuaTeX-ja (20130318.1 or earlier) don't work in
+\TeX~Live~2013.
+
+\medskip
+
+Now \LuaTeX-ja is available from the following archive and distributions:
+ \begin{itemize}
+ \item CTAN (in the \texttt{macros/luatex/generic/luatexja} directory)
+ \item MiK\TeX\ (in \texttt{luatexja.tar.lzma})
+ \item \TeX\ Live (in \texttt{texmf-dist/tex/luatex/luatexja})
+ \item W32\TeX\ (in \texttt{luatexja.tar.xz})
+ \end{itemize}
+
+If you are using \TeX~Live~2013, you can install \LuaTeX-ja
+from \TeX~Live manager (\texttt{tlmgr}):
+\begin{verbatim}
+$ tlmgr install luatexja
+\end{verbatim}
+
+\medskip
+
+If you want to install manually, do the following instruvtions:
%
%<*ja>
-ã¤ã³ã¹ãã¼ã«æ¹æ³ã¯ä»¥ä¸ã®ããã«ãªãï¼
+\emph{æ¬ãã¼ã¸ã§ã³ä»¥éã®\LuaTeX-jaã¯\TeX~Live~2012以åã§ã¯åä½ããªãï¼}
+ããã¯ï¼\LuaTeX ã¨\Pkg{luaotfload}ã\TeX~Live~2013ã«ããã¦æ´æ°ããããã¨ã«ããï¼
+éã«ï¼20130318.1以åã®\LuaTeX-jaã¯\TeX~Live~2013ã§ã¯åä½ããªãï¼
+
+\medskip
+
+ç¾å¨ï¼\LuaTeX-jaã¯ä»¥ä¸ã®ã¢ã¼ã«ã¤ãï¼ããã³ãã£ã¹ããªãã¥ã¼ã·ã§ã³ã«åé²ããã¦ããï¼
+ \begin{itemize}
+ \item CTAN (\texttt{macros/luatex/generic/luatexja})
+ \item MiK\TeX\ (\texttt{luatexja.tar.lzma})
+ \item \TeX\ Live (\texttt{texmf-dist/tex/luatex/luatexja})
+ \item W32\TeX\ (\texttt{luatexja.tar.xz})
+ \end{itemize}
+
+ä¾ãã°\TeX~Live~2013ãå©ç¨ãã¦ãããªãï¼\LuaTeX-jaã¯\TeX~Live manager (\texttt{tlmgr})ã
+使ã£ã¦ã¤ã³ã¹ãã¼ã«ãããã¨ãã§ããï¼
+\begin{verbatim}
+$ tlmgr install luatexja
+\end{verbatim}
+
+\medskip
+
+æåã§ã¤ã³ã¹ãã¼ã«ããå ´åã®æ¹æ³ã¯ä»¥ä¸ã®ããã«ãªãï¼
%
\begin{enumerate}
%<*en>
@@ -496,14 +568,7 @@ $ git clone git://git.sourceforge.jp/gitroot/luatex-ja/luatexja.git
\begin{flushleft}
\url{http://git.sourceforge.jp/view?p=luatex-ja/luatexja.git;a=snapshot;h=HEAD;sf=tgz}.
\end{flushleft}
-\item Now \LuaTeX-ja is available from the following archive and distributions:
- \begin{itemize}
- \item CTAN (in the \texttt{macros/luatex/generic/luatexja} directory)
- \item \TeX\ Live (in \texttt{texmf-dist/tex/luatex/luatexja})
- \item W32\TeX\ (in \texttt{luatexja.tar.xz})
- \end{itemize}
- These are based on the \texttt{master} branch.
-\end{itemize}
+\end{itemize}
Note that the \texttt{master} branch, and hence the archive in CTAN, are not updated frequently;
the forefront of development is not the \texttt{master} branch.
@@ -521,15 +586,7 @@ $ git clone git://git.sourceforge.jp/gitroot/luatex-ja/luatexja.git
\begin{flushleft}
\url{http://git.sourceforge.jp/view?p=luatex-ja/luatexja.git;a=snapshot;h=HEAD;sf=tgz}.
\end{flushleft}
-\item ä»ãï¼\LuaTeX-jaã¯ä»¥ä¸ã®ã¢ã¼ã«ã¤ãï¼ããã³ãã£ã¹ããªãã¥ã¼ã·ã§ã³ã«ãåé²ããã¦ããï¼
- \begin{itemize}
- \item CTAN (\texttt{macros/luatex/generic/luatexja})
- \item \TeX\ Live (\texttt{texmf-dist/tex/luatex/luatexja})
- \item W32\TeX\ (\texttt{luatexja.tar.xz})
- \end{itemize}
- ãããã¯\texttt{master}ãã©ã³ãã®å
容ãå
ã«ãã¦ããï¼
\end{itemize}
-
\texttt{master}ãã©ã³ãï¼å¾ã£ã¦ï¼CTANå
ã®ã¢ã¼ã«ã¤ããï¼ã¯ãã¾ã«ããæ´æ°ãããªããã¨ã«æ³¨æï¼
主ãªéçºã¯\texttt{master}ã®å¤ã§è¡ããï¼æ¯è¼çã¾ã¨ã¾ã£ã¦ãããããã\texttt{master}ã«
åæ ããããã¨ã«ãã¦ããï¼
@@ -546,18 +603,45 @@ But only the contents in \texttt{src/} are needed to work \LuaTeX-ja.
%
%<*en>
+\item If you downloaded this package from CTAN, you have to run following commands
+ to generate classes
+ and \texttt{ltj-kinsoku.lua} (the file which stores default ``\textit{kinsoku}'' parameters):
+%
+%<*ja>
+\item ããCTANããæ¬ããã±ã¼ã¸ãåå¾ããã®ã§ããã°ï¼æ¥æ¬èªç¨ã¯ã©ã¹ãã¡ã¤ã«ã
+æ¨æºã®ç¦åå¦çç¨ãã©ã¡ã¼ã¿ã
+æ ¼ç´ãã \texttt{ltj-kinsoku.lua} ãçæããããã«ï¼
+以ä¸ãå®è¡ããå¿
è¦ãããï¼
+%
+\begin{verbatim}
+$ cd src
+$ lualatex ltjclasses.ins
+$ lualatex ltjsclasses.ins
+$ lualatex ltjltxdoc.ins
+$ luatex ltj-kinsoku_make.tex
+\end{verbatim}
+%<*en>
+Note that \texttt{*.\{dtx,ins\}} and \texttt{ltj-kinsoku\_make.tex} are not needed in regular use.
+%
+%<*ja>
+ããã§ä½¿ç¨ãã \texttt{*.\{dtx,ins\}} 㨠\texttt{ltj-kinsoku\_make.tex} ã¯
+é常ã®ä½¿ç¨ã«ããã£ã¦ã¯å¿
è¦ãªãï¼
+%
+
+
+
+%<*en>
\item Copy all the contents of \texttt{src/} into one of your \texttt{TEXMF} tree.
\texttt{TEXMF/tex/luatex/luatexja/} is an example location.
If you cloned entire Git repository, making a symbolic link of \texttt{src/}
instead copying is also good.
%
%<*ja>
-\item \texttt{src/}ã®ä¸èº«ãèªåã®\texttt{TEXMF}ããªã¼ã«ã³ãã¼ããï¼
+\item \texttt{src}ã®ä¸èº«ãèªåã®\texttt{TEXMF}ããªã¼ã«ã³ãã¼ããï¼
å ´æã®ä¾ã¨ãã¦ã¯ï¼ä¾ãã°\texttt{TEXMF/tex/luatex/luatexja/}ãããï¼
ã·ã³ããªãã¯ãªã³ã¯ãå©ç¨ã§ããç°å¢ã§ï¼ãã¤ãªãã¸ããªãç´æ¥åå¾ããã®ã§ããã°ï¼
ï¼æ´æ°ã容æã«ããããã«ï¼ã³ãã¼ã§ã¯ãªããªã³ã¯ãè²¼ããã¨ãå§ããï¼
%
-
%<*en>
\item If \texttt{mktexlsr} is needed to update the file name database, make it so.
%
@@ -566,7 +650,6 @@ But only the contents in \texttt{src/} are needed to work \LuaTeX-ja.
%
\end{enumerate}
-
%\subsection{Cautions}
%\subsection{注æç¹}
@@ -579,32 +662,53 @@ But only the contents in \texttt{src/} are needed to work \LuaTeX-ja.
\item å稿ã®ã½ã¼ã¹ãã¡ã¤ã«ã®æåã³ã¼ãã¯UTF-8åºå®ã§ããï¼
å¾æ¥æ¥æ¬èªã®æåã³ã¼ãã¨ãã¦ç¨ãããã¦ããEUC-JPãShift-JISã¯ä½¿ç¨ã§ããªãï¼
%
+%<*en>
+\item \LuaTeX-ja is very slower than \pTeX. Using LuaJIT\TeX\ slightly improve the situation.
+%
+%<*ja>
+\item \LuaTeX-jaã¯åä½ã\pTeX ã«æ¯ã¹ã¦é常ã«é
ãï¼ã³ã¼ããå¤æ´ãã¦å¾ã
ã«éããã¦ãããï¼
+ã¾ã æºè¶³ã§ããé度ã§ã¯ãªãï¼LuaJIT\TeX ãç¨ããã¨\LuaTeX ã®ã ããã1.3åã®é度ã§åãããã§ããï¼
+%
+
+%<*en>
+\item \emph{Note for MiK\TeX\ users:} \LuaTeX-ja requires that two CMap files,
+\texttt{UniJIS2004-UTF32-H} and \texttt{Adobe-Japan1-UCS2}, must be found
+by Kpathsearch.
+You can check this by \texttt{kpsewhich} command (the output may be changed):
+%
+%<*ja>
+\item \emph{MiK\TeX å©ç¨è
ã¸ã®æ³¨æï¼}\LuaTeX-jaãåä½ããããã«ã¯ï¼
+\texttt{UniJIS2004-UTF32-H}, \texttt{Adobe-Japan1-UCS2}ã¨ãã2ã¤ã®CMapã
+Kpathsearchã«ãã£ã¦è¦ã¤ãããããã¨ãå¿
è¦ã§ããï¼\TeX\ LiveãW32\TeX ã¦ã¼ã¶ã¯
+æ®éã«ã¤ã³ã¹ãã¼ã«ããã°ãã®ããã«ãªã£ã¦ããã¯ãã§ããï¼
+
+確èªããã«ã¯ï¼ä»¥ä¸ã®ããã« \texttt{kpsewhich} ã³ãã³ããå®è¡ããã°ããï¼
+%
+\begin{verbatim}
+$ kpsewhich -format=cmap UniJIS2004-UTF32-H
+/opt/texlive/2013/texmf-dist/fonts/cmap/adobemapping/aj16/CMap/UniJIS2004-UTF32-H
+$ kpsewhich -format=cmap Adobe-Japan1-UCS2
+/opt/texlive/2013/texmf-dist/fonts/cmap/adobemapping/ToUnicode/Adobe-Japan1-UCS2
+\end{verbatim}
+
\end{itemize}
%\subsection{Using in plain \TeX}
%\subsection{plain \TeX ã§ä½¿ã}
\label{ssec-plain}
-%<*en>
-To use \LuaTeX-ja in plain \TeX, simply put the following at the beginning of the document:
-%
-%<*ja>
-\LuaTeX-jaã plain \TeX ã§ä½¿ãããã«ã¯ï¼åã«æ¬¡ã®è¡ãã½ã¼ã¹ãã¡ã¤ã«ã®åé ã«è¿½å ããã°ããï¼
-%
+%To use \LuaTeX-ja in plain \TeX, simply put the following at the beginning of the document:
+%\LuaTeX-jaã plain \TeX ã§ä½¿ãããã«ã¯ï¼åã«æ¬¡ã®è¡ãã½ã¼ã¹ãã¡ã¤ã«ã®åé ã«è¿½å ããã°ããï¼
\begin{verbatim}
\input luatexja.sty
\end{verbatim}
-%<*en>
-This does minimal settings (like \texttt{ptex.tex}) for typesetting Japanese documents:
-%
-%<*ja>
-ããã§ï¼\texttt{ptex.tex}ã®ããã«ï¼æ¥æ¬èªçµçã®ããã®æä½éã®è¨å®ããªãããï¼
-%
+%This does minimal settings (like \texttt{ptex.tex}) for typesetting Japanese documents:
+%ããã§ï¼\texttt{ptex.tex}ã®ããã«ï¼æ¥æ¬èªçµçã®ããã®æä½éã®è¨å®ããªãããï¼
\begin{itemize}
%<*en>
\item The following 6~Japanese fonts are preloaded:
-\begin{center}
+\begin{center}\small
\begin{tabular}{ccccc}
\toprule
\textbf{classification}&\textbf{font name}&\bf `10\,pt'&\bf`7\,pt'&\bf`5\,pt'\\\midrule
@@ -616,10 +720,10 @@ This does minimal settings (like \texttt{ptex.tex}) for typesetting Japanese doc
%
%<*ja>
\item 以ä¸ã®6ã¤ã®åæãã©ã³ããå®ç¾©ãããï¼
-\begin{center}
+\begin{center}\small
\begin{tabular}{ccccc}
\toprule
-\textbf{åä½}&\textbf{ãã©ã³ãå}&\bf `10\,pt'&\bf`7\,pt'&\bf`5\,pt'\\\midrule
+\emph{åä½}&\emph{ãã©ã³ãå}&\bf `10\,pt'&\bf`7\,pt'&\bf`5\,pt'\\\midrule
ææä½&Ryumin-Light &\verb+\tenmin+&\verb+\sevenmin+&\verb+\fivemin+\\
ã´ã·ãã¯ä½&GothicBBB-Medium&\verb+\tengt+ &\verb+\sevengt+ &\verb+\fivegt+\\
\bottomrule
@@ -628,21 +732,11 @@ This does minimal settings (like \texttt{ptex.tex}) for typesetting Japanese doc
%
\begin{itemize}
%<*en>
-\item The `Qï¼ç´ï¼' is a unit used in Japanese phototypesetting, and
- $1\,\textrm{Q}=0.25\,\textrm{mm}$. This length is stored in a
- dimension \verb+\jQ+.
-%
-%<*ja>
-\item `Qï¼ç´ï¼'ã¯æ¥æ¬ã®åæ¤ã§ç¨ããããåä½ã§ï¼$1\,\textrm{Q}=0.25\,\textrm{mm}$
- ã§ããï¼ãã®é·ã㯠\verb+\jQ+ ã«ä¿æããã¦ããï¼
-%
-
-%<*en>
-\item It is widely accepted that the font `Ryumin-Light' and
- `GothicBBB-Medium' aren't embedded into PDF files, and PDF reader
+\item It is widely accepted that fonts `Ryumin-Light' and
+ `GothicBBB-Medium' aren't embedded into PDF files, and a PDF reader
substitute them by some external Japanese fonts (\textit{e.g.},
- Kozuka Mincho is used for Ryumin-Light in Adobe Reader). We adopt this custom to
- the default setting.
+ Ryumin-Light is substituted with Kozuka Mincho in Adobe Reader).
+ We adopt this custom to the default setting.
%
%<*ja>
\item `Ryumin-Light'ã¨`GothicBBB-Medium'ã¯PDFãã¡ã¤ã«ã«åãè¾¼ã¾ãã«
@@ -668,10 +762,10 @@ This does minimal settings (like \texttt{ptex.tex}) for typesetting Japanese doc
%<*en>
\item The amount of glue that are inserted between a \textbf{JAchar} and
- an \textbf{ALchar} (the parameter \Param{xkanjiskip}) is set to
+ an \textbf{ALchar} (the parameter \Param{\hyperlink{fld:xks}{xkanjiskip}}) is set to
%
%<*ja>
-\item \textbf{JAchar}ã¨\textbf{ALchar}ã®éã«å
¥ãã°ã«ã¼(\Param{xkanjiskip})ã®
+\item \textbf{JAchar}ã¨\textbf{ALchar}ã®éã«å
¥ãã°ã«ã¼(\Param{\hyperlink{fld:xks}{xkanjiskip}})ã®
éã¯æ¬¡ã®ããã«è¨å®ããã¦ããï¼
%
\[
@@ -718,43 +812,65 @@ When vertical typesetting is supported by \LuaTeX-ja in the future, \texttt{JT3}
%
%<*en>
-\item Two font families \texttt{mc} and \texttt{gt} are defined:
-\begin{center}
+\item Traditionally, Japanese documents use two typeface category: \emph{mincho}~(ææä½) and
+ \emph{gothic}~(\textgt{ã´ã·ãã¯ä½}). \emph{mincho} is used in the main text, while \emph{gothic}
+ is used in the headings or for emphasis.
+\begin{center}\small
+\begin{tabular}{lllc}
+\toprule
+\textbf{classification}&&&\textbf{family name}\\\midrule
+\emph{mincho} (ææä½)&\verb+\textmc{...}+&\verb+{\mcfamily ...}+&\verb+\mcdefault+\\
+\emph{gothic} (\textgt{ã´ã·ãã¯ä½})&\verb+\textgt{...}+&\verb+{\gtfamily ...}+&\verb+\gtdefault+\\
+\bottomrule
+\end{tabular}
+\end{center}
+\item
+By default, the following fonts are used for \emph{mincho} and \emph{gothic}:
+\begin{center}\small
\begin{tabular}{ccccc}
\toprule
-\textbf{classification}&\textbf{family}&\verb+\mdseries+&\verb+\bfseries+&\textbf{scale}\\\midrule
-\emph{mincho}&\tt mc&Ryumin-Light &GothicBBB-Medium&0.962216\\
-\emph{gothic}&\tt gt&GothicBBB-Medium&GothicBBB-Medium&0.962216\\
+\textbf{classification}&\textbf{family name}&\verb+\mdseries+&\verb+\bfseries+&\textbf{scale}\\\midrule
+\emph{mincho} (ææä½)&\tt mc&Ryumin-Light &GothicBBB-Medium&0.962216\\
+\emph{gothic} (\textgt{ã´ã·ãã¯ä½})&\tt gt&GothicBBB-Medium&GothicBBB-Medium&0.962216\\
\bottomrule
\end{tabular}
\end{center}
-Remark that the bold series in both family are same as the medium series of \emph{gothic} family.
-This is a convention in \pLaTeX. This is a trace that there were only 2~fonts (these are Ryumin-Light
-and GothicBBB-Medium) in early years of DTP.
+Note that the bold series in both family are same as the medium series of \emph{gothic} family.
+This is a convention in \pLaTeX. This is trace that there were only 2~fonts (these are Ryumin-Light
+and GothicBBB-Medium) in early years of DTP. There is no italic nor slanted shape for
+ these \texttt{mc}~and~\texttt{gt}.
%
%<*ja>
-\item 2ã¤ã®ãã©ã³ããã¡ããª\texttt{mc}ã¨\texttt{gt}ãå®ç¾©ããã¦ããï¼
-\begin{center}
+\item \pLaTeX ã¨åæ§ã«ï¼æ¨æºã§ã¯ãææä½ããã´ã·ãã¯ä½ãã®2種é¡ãç¨ããï¼
+\begin{center}\small
+\begin{tabular}{cllc}
+\toprule
+\emph{åä½}&&&\emph{ãã¡ããªå}\\\midrule
+ææä½&\verb+\textmc{...}+&\verb+{\mcfamily ...}+&\verb+\mcdefault+\\
+\textgt{ã´ã·ãã¯ä½}&\verb+\textgt{...}+&\verb+{\gtfamily ...}+&\verb+\gtdefault+\\
+\bottomrule
+\end{tabular}
+\end{center}
+\item æ¨æºã§ã¯ï¼æ¬¡ã®ãã©ã³ããã¡ããªãç¨ããããï¼
+\begin{center}\small
\begin{tabular}{ccccc}
\toprule
-\textbf{åä½}&\textbf{ãã¡ããª}&\verb+\mdseries+&\verb+\bfseries+&\textbf{ã¹ã±ã¼ã«}\\\midrule
+\emph{åä½}&\emph{ãã¡ããª}&\verb+\mdseries+&\verb+\bfseries+&\emph{ã¹ã±ã¼ã«}\\\midrule
ææä½&\tt mc&Ryumin-Light &GothicBBB-Medium&0.962216\\
ã´ã·ãã¯ä½&\tt gt&GothicBBB-Medium&GothicBBB-Medium&0.962216\\
\bottomrule
\end{tabular}
\end{center}
-ã©ã¡ãã®ãã¡ããªã«ããã¦ãï¼ãã®boldã·ãªã¼ãºã¯ã´ã·ãã¯ä½ã®mediumã·ãªã¼ãºã§
-ãããã¨ã«æ³¨æï¼ããã¯åæã®DTPã«ããã¦åæãã©ã³ãã2ã¤ï¼ãããã¡ããã©\
+ã©ã¡ãã®ãã¡ããªã«ããã¦ãï¼ãã®boldã·ãªã¼ãºã§ä½¿ããããã©ã³ãã¯
+ã´ã·ãã¯ä½ã®mediumã·ãªã¼ãºã§ä½¿ããããã©ã³ãã¨åããããã¨ã«æ³¨æï¼
+ããã¯åæã®DTPã«ããã¦åæãã©ã³ãã2ã¤ï¼ãããã¡ããã©\
Ryumin-Light, GothicBBB-Mediumã ã£ãï¼ããå©ç¨ã§ããªãã£ãæã®åæ®ã§ããï¼\pLaTeX{}
ã§ã®æ¨æºè¨å®ã¨ãåãã§ããï¼
%
-%<*en>
-\item Japanese characters in math mode are typeset by the font family \texttt{mc}.
-%
-%<*ja>
-\item æ°å¼ã¢ã¼ãä¸ã®åææåã¯\texttt{mc}ãã¡ããªã§åºåãããï¼
-%
+
+%\item Japanese characters in math mode are typeset by the font family \texttt{mc}.
+%\item æ°å¼ã¢ã¼ãä¸ã®åææåã¯ææä½(\texttt{mc})ã§åºåãããï¼
\end{itemize}
%<*en>
@@ -774,33 +890,107 @@ Okumura), namely, \Pkg{ltjclasses} and \Pkg{ltjsclasses}.
\Pkg{ltjsclasses}ãããããç¨æããã¦ããï¼
%
+%\section{Changing Fonts}
+%\section{ãã©ã³ãã®å¤æ´}
+
+\subsection{plain \TeX~and~\LaTeXe}
+\label{ssub-chgfnt}
+
+\paragraph{plain \TeX}
%<*en>
-\paragraph{\texttt{\char92 CID}, \texttt{\char92 UTF} and macros in OTF package}
-Under \pLaTeX, \Pkg{otf} package (developed by Shuzaburo Saito) is
-used for typesetting characters which is in Adobe-Japan1-6 CID but not
-in JIS~X~0208. Since this package is widely used, \LuaTeX-ja
-supports some of functions in \Pkg{otf} package.
-If you want to use these functions, load \Pkg{luatexja-otf} package.
+To change Japanese fonts in plain \TeX, you must use the control sequence
+\verb+\jfont+. So please see Subsection~\ref{ssec-jfont}.
%
%<*ja>
-\paragraph{\texttt{\char92 CID}, \texttt{\char92 UTF}ã¨OTFããã±ã¼ã¸ã®ãã¯ã}
-\pLaTeX ã§ã¯ï¼JIS~X~0208ã«ãªãAdobe-Japan1-6ã®æåãåºåããããã«ï¼
-é½è¤ä¿®ä¸éæ°ã«ãã\Pkg{otf}ããã±ã¼ã¸ãç¨ãããã¦ããï¼ãã®ããã±ã¼ã¸ã¯
-åºãç¨ãããã¦ããããï¼\LuaTeX-jaã«ããã¦ã\Pkg{otf}ããã±ã¼ã¸ã®æ©è½ã®
-ä¸é¨ããµãã¼ããã¦ããï¼ãããã®æ©è½ãç¨ããããã«ã¯\Pkg{luatexja-otf}ããã±ã¼ã¸
-ãèªã¿è¾¼ãã°ããï¼
+plain \TeX ã§åæãã©ã³ããå¤æ´ããããã«ã¯ï¼\pTeX ã®ããã« \verb+\jfont+ å½ä»¤ãç´æ¥ç¨ããï¼
+\ref{ssec-jfont}ç¯ãåç
§ï¼
%
-\begin{LTXexample}
-森\UTF{9DD7}å¤ã¨å
ç°ç¾\UTF{9592}ã¨ã\UTF{9AD9}島å±ã«è¡ãã
+\paragraph{\LaTeXe\ (NFSS2)}
+%<*en>
+For \LaTeXe, \LuaTeX-ja adopted most of the font selection system of \pLaTeXe\ (in \texttt{plfonts.dtx}).
+%
+%<*ja>
+\LaTeXe ã«ã¤ãã¦ã¯ï¼\LuaTeX-jaã§ã¯ãã©ã³ãé¸æã·ã¹ãã ã\pLaTeXe\ (\texttt{plfonts.dtx})
+ã®å¤§é¨åããã®ã¾ã¾æ¡ç¨ãã¦ããï¼
+%
+\begin{itemize}
+%<*en>
+\item Commands \verb+\fontfamily+, \verb+\fontseries+,
+ \verb+\fontshape+ and \verb+\selectfont+ can be used to change
+ attributes of Japanese fonts.
+%
+%<*ja>
+\item \verb+\fontfamily+, \verb+\fontseries+, \verb+\fontshape+, ããã¦
+ \verb+\selectfont+ ãåæãã©ã³ãã®å±æ§ãå¤æ´ããããã«ä½¿ç¨ã§ããï¼
+%
-\CID{7652}飾åºã®\CID{13706}é家ï¼
-è飾åºã®åé家
-\end{LTXexample}
+%<*en>
+\begin{center}\small
+\begin{tabular}{cccccc}
+\toprule
+&\textbf{encoding}&\textbf{family}&\textbf{series}&\textbf{shape}&\textbf{selection}\\\midrule
+alphabetic fonts
+&\verb+\romanencoding+&\verb+\romanfamily+&\verb+\romanseries+&\verb+\romanshape+
+&\verb+\useroman+\\
+Japanese fonts
+&\verb+\kanjiencoding+&\verb+\kanjifamily+&\verb+\kanjiseries+&\verb+\kanjishape+
+&\verb+\usekanji+\\
+both&---&--&\verb+\fontseries+&\verb+\fontshape+&---\\
+auto select&\verb+\fontencoding+&\verb+\fontfamily+&---&---&\verb+\usefont+\\
+\bottomrule
+\end{tabular}
+\end{center}
+%
+%<*ja>
+\begin{center}\small
+\begin{tabular}{cccccc}
+\toprule
+&\emph{ã¨ã³ã³ã¼ãã£ã³ã°}&\emph{ãã¡ããª}&\emph{ã·ãªã¼ãº}&\emph{ã·ã§ã¼ã}&\emph{é¸æ}\\\midrule
+欧æ
+&\verb+\romanencoding+&\verb+\romanfamily+&\verb+\romanseries+&\verb+\romanshape+
+&\verb+\useroman+\\
+åæ
+&\verb+\kanjiencoding+&\verb+\kanjifamily+&\verb+\kanjiseries+&\verb+\kanjishape+
+&\verb+\usekanji+\\
+両æ¹&---&--&\verb+\fontseries+&\verb+\fontshape+&---\\
+èªåé¸æ&\verb+\fontencoding+&\verb+\fontfamily+&---&---&\verb+\usefont+\\
+\bottomrule
+\end{tabular}
+\end{center}
+%
-%\subsection{Changing Fonts}
-%\subsection{ãã©ã³ãã®å¤æ´}
-\label{ssub-chgfnt}
+%<*en>
+ \verb+\fontencoding{}+ changes the encoding of alphabetic fonts
+ or Japanese fonts depending on the argument. For example,
+ \verb+\fontencoding{JY3}+ changes the encoding of Japanese fonts to
+ \texttt{JY3} and \verb+\fontencoding{T1}+ changes the encoding of
+ alphabetic fonts to \texttt{T1}.
+ \verb+\fontfamily+ also changes the family of Japanese fonts, alphabetic
+ fonts, \emph{or both}. For detail, see Subsection~\ref{ssub-nfsspat}.
+%
+%<*ja>
+ ããã§ï¼\verb+\fontencoding{}+ ã¯ï¼å¼æ°ã«ããåæå´ã欧æ
+ å´ãã®ã©ã¡ããã®ã¨ã³ã³ã¼ãã£ã³ã°ãå¤æ´ããï¼ä¾ãã°ï¼
+ \verb+\fontencoding{JY3}+ ã¯åæãã©ã³ãã®ã¨ã³ã³ã¼ãã£ã³ã°ã
+ \texttt{JY3}ã«å¤æ´ãï¼\verb+\fontencoding{T1}+ ã¯æ¬§æãã©ã³ãå´ã
+ \texttt{T1}ã¸ã¨å¤æ´ããï¼\verb+\fontfamily+ ãå¼æ°ã«ããåæå´ï¼æ¬§æ
+ å´ï¼\emph{ãããã¯ä¸¡æ¹}ã®ãã©ã³ããã¡ããªãå¤æ´ããï¼è©³ç´°ã¯
+ \ref{ssub-nfsspat}ç¯ãåç
§ãããã¨ï¼
+%
+
+%<*en>
+\item For defining a Japanese font family, use
+ \verb+\DeclareKanjiFamily+ instead of
+ \verb+\DeclareFontFamily+. However, in the present implementation,
+ using \verb+\DeclareFontFamily+ doesn't cause any problem.
+%
+%<*ja>
+\item åæãã©ã³ããã¡ããªã®å®ç¾©ã«ã¯ \verb+\DeclareFontFamily+ ã®
+ 代ããã« \verb+\DeclareKanjiFamily+ ãç¨ããï¼ãããï¼ç¾å¨ã®
+ å®è£
ã§ã¯ \verb+\DeclareFontFamily+ ãç¨ãã¦ãåé¡ã¯çããªãï¼
+%
+\end{itemize}
%<*en>
\paragraph{Remark: Japanese Characters in Math Mode}
@@ -808,10 +998,11 @@ Since \pTeX\ supports Japanese characters in math mode, there are
sources like the following:
%
%<*ja>
-\paragraph{æè¦ï¼æ°å¼ã¢ã¼ãä¸ã®åææå}
+\paragraph{注æï¼æ°å¼ã¢ã¼ãä¸ã®åææå}
\pTeX ã§ã¯ï¼ç¹ã«ä½ãããªãã§ãæ°å¼ä¸ã«åææåãè¨è¿°ãããã¨ãã§ããï¼ãã®ããï¼
以ä¸ã®ãããªã½ã¼ã¹ãè¦ãããï¼
%
+
\begin{LTXexample}
$f_{é«æ¸©}$~($f_{\text{high temperature}}$).
\[ y=(x-1)^2+2\quad ãã£ã¦\quad y>0 \]
@@ -827,6 +1018,7 @@ In this point of view,
ã¨ãã®ã¿è¨±ãããã¨èãã¦ããï¼
ãã®è¦³ç¹ããï¼
%
+
\begin{itemize}
%<*en>
\item The lines 1~and~2 above are not correct, since `é«æ¸©' in above is used as a textual label, and
@@ -836,20 +1028,11 @@ In this point of view,
\item ä¸è¨æ°å¼ã®ãã¡1, 2è¡ç®ã¯æ£ãããªãï¼ãªããªãã°`é«æ¸©'ãæå³ã®ããã©ãã«ã¨
ãã¦ï¼`ãã£ã¦'ãæ¥ç¶è©ã¨ãã¦ç¨ãããã¦ããããã§ããï¼
%
-%<*en>
-\item However, the line~3 is correct, since `ç´ ' is used as an identifier.
-%
-%<*ja>
-\item ããããªããï¼3è¡ç®ã¯`ç´ 'ãèå¥åã¨ãã¦ç¨ãããã¦ããã®ã§æ£ããï¼
-%
+%\item However, the line~3 is correct, since `ç´ ' is used as an identifier.
+%\item ããããªããï¼3è¡ç®ã¯`ç´ 'ãèå¥åã¨ãã¦ç¨ãããã¦ããã®ã§æ£ããï¼
\end{itemize}
-%<*en>
-Hence, in our opinion, the above input should be corrected as:
-%
-%<*ja>
-ãããã£ã¦ï¼\LuaTeX-jaããã¸ã§ã¯ãã®æè¦ã¨ãã¦ã¯ï¼ä¸è¨ã®å
¥åã¯æ¬¡ã®ããã«ç´ãããã¹ã
-ã§ããï¼
-%
+%Hence, in our opinion, the above input should be corrected as:
+%ãããã£ã¦ï¼\LuaTeX-jaããã¸ã§ã¯ãã®æè¦ã¨ãã¦ã¯ï¼ä¸è¨ã®å
¥åã¯æ¬¡ã®ããã«ç´ãããã¹ãã§ããï¼
\begin{LTXexample}
$f_{\text{é«æ¸©}}$~%
($f_{\text{high temperature}}$).
@@ -857,7 +1040,6 @@ $f_{\text{é«æ¸©}}$~%
\mathrel{\text{ãã£ã¦}}\quad y>0 \]
$5\in ç´ :=\{\,p\in\mathbb N:\text{$p$ is a prime}\,\}$.
\end{LTXexample}
-%BUG?: \{\}ããªããã°ãç´ ããã§ãªãï¼ä¸ã®æ®µè½ã®ããã£ã¦ããã§ã¦ãªãï¼
%<*en>
We also believe that using Japanese characters as identifiers is rare,
hence we don't describe how to change Japanese fonts in math mode in
@@ -866,196 +1048,517 @@ this chapter. For the method, please see Subsection~\ref{ssec-math}.
%<*ja>
ã¾ã\LuaTeX-jaããã¸ã§ã¯ãã§ã¯ï¼åææåãèå¥åã¨ãã¦ç¨ãããããã¨ã¯ã»ã¨ãã©ãªã
ã¨èãã¦ããï¼ãããã£ã¦ãã®ç¯ã§ã¯æ°å¼ã¢ã¼ãä¸ã®åæãã©ã³ããå¤æ´ããæ¹æ³ã«ã¤ãã¦ã¯
-è¨è¿°ããªãï¼ãã®æ¹æ³ã«ã¤ãã¦ã¯ \ref{ssec-math} ç¯ãåç
§ã®ãã¨ï¼
+è¨è¿°ããªãï¼ãã®æ¹æ³ã«ã¤ãã¦ã¯\ref{ssec-math}ç¯ãåç
§ã®ãã¨ï¼
%
+
+\subsection{fontspec}
+\label{ssec-fontspec}
%<*en>
-\paragraph{plain \TeX}
-To change Japanese fonts in plain \TeX, you must use the primitive
-\verb+\jfont+. So please see Subsection~\ref{ssec-jfont}.
+To coexist with the \Pkg{fontspec} package, it is needed to load
+\Pkg{luatexja-fontspec} package in the preamble. This additional
+package automatically loads \Pkg{luatexja} and \Pkg{fontspec}
+package, if needed.
%
%<*ja>
-\paragraph{plain \TeX}
-plain \TeX ã§åæãã©ã³ããå¤æ´ããããã«ã¯ï¼\verb+\jfont+ ããªããã£ããç¨ããªãã
-ã°ãªããªãï¼\ref{ssec-jfont} ç¯ãåç
§ï¼
+\Pkg{fontspec}ããã±ã¼ã¸ã¨åæ§ã®æ©è½ãåæãã©ã³ãã«å¯¾ãã¦ãç¨ããããã«ã¯ï¼
+\Pkg{luatexja-fontspec}ããã±ã¼ã¸ãããªã¢ã³ãã«ã§èªã¿è¾¼ãå¿
è¦ãããï¼ãã®ããã±ã¼ã¸
+ã¯å¿
è¦ãªãã°èªåã§\Pkg{luatexja}ããã±ã¼ã¸ã¨\Pkg{fontspec}ããã±ã¼ã¸ãèªã¿è¾¼ãï¼
%
%<*en>
-\paragraph{NFSS2}
-For \LaTeXe, \LuaTeX-ja adopted most of the font selection system of \pLaTeXe\ (in \texttt{plfonts.dtx}).
+In \Pkg{luatexja-fontspec} package, the following 7~commands are defined as
+counterparts of original commands in the \Pkg{fontspec} package:
%
%<*ja>
-\paragraph{NFSS2}
-\LaTeXe ã«ã¤ãã¦ã¯ï¼\LuaTeX-jaã§ã¯ãã©ã³ãé¸æã·ã¹ãã ã\pLaTeXe\ (\texttt{plfonts.dtx})
-ã®å¤§é¨åããã®ã¾ã¾æ¡ç¨ãã¦ããï¼
+\Pkg{luatexja-fontspec}ããã±ã¼ã¸ã§ã¯ï¼ä»¥ä¸ã®7ã¤ã®ã³ãã³ãã\Pkg{fontspec}
+ããã±ã¼ã¸ã®å
ã®ã³ãã³ãã«å¯¾å¿ãããã®ã¨ãã¦å®ç¾©ãã¦ããï¼
%
-\begin{itemize}
+
%<*en>
-\item Two control sequences \verb+\mcdefault+ and \verb+\gtdefault+ are
- used to specify the default font families for \emph{mincho} and
- \emph{gothic}, respectively. Default values: \texttt{mc} for
- \verb+\mcdefault+ and \texttt{gt} for \verb+\gtdefault+.
+\begin{center}\small
+\begin{tabular}{ccccc}
+\toprule
+Japanese fonts
+&\verb+\jfontspec+&\verb+\setmainjfont+&\verb+\setsansjfont+&\verb+\newjfontfamily+\\
+alphabetic fonts
+&\verb+\fontspec+&\verb+\setmainfont+&\verb+\setsansfont+&\verb+\newfontfamily+\\
+\midrule
+Japanese fonts
+&\verb+\newjfontface+&\verb+\defaultjfontfeatures+&\verb+\addjfontfeatures+\\
+alphabetic fonts
+&\verb+\newfontface+&\verb+\defaultfontfeatures+&\verb+\addfontfeatures+\\
+\bottomrule
+\end{tabular}
+\end{center}
%
%<*ja>
-\item 2ã¤ã®ã³ã³ããã¼ã«ã·ã¼ã±ã³ã¹ \verb+\mcdefault+ 㨠\verb+\gtdefault+ ãããã
- ãææä½ã¨ã´ã·ãã¯ä½ã®ããã©ã«ãã®ãã©ã³ããã¡ããªãæå®ããããã«ç¨ããããï¼
- åæå¤ï¼\verb+\mcdefault+ ã¯\texttt{mc}ï¼\verb+\gtdefault+ ã¯\texttt{gt}ï¼
+\begin{center}\small
+\begin{tabular}{cccc}
+\toprule
+åæ
+&\verb+\jfontspec+&\verb+\setmainjfont+&\verb+\setsansjfont+\\
+欧æ
+&\verb+\fontspec+&\verb+\setmainfont+&\verb+\setsansfont+\\
+\midrule
+åæ
+&\verb+\newjfontfamily+&\verb+\newjfontface+&\verb+\defaultjfontfeatures+\\
+欧æ
+&\verb+\newfontfamily+&\verb+\newfontface+&\verb+\defaultfontfeatures+\\
+\midrule
+åæ
+&\verb+\addjfontfeatures+\\
+欧æ
+&\verb+\addfontfeatures+\\
+\bottomrule
+\end{tabular}
+\end{center}
%
+\begin{LTXexample}[width=0.4\textwidth]
+\fontspec[Numbers=OldStyle]{LMSans10-Regular}
+\jfontspec{IPAexMincho}
+JIS~X~0213:2004âè¾»
+
+\jfontspec[CJKShape=JIS1990]{IPAexMincho}
+JIS~X~0208:1990âè¾»
+\end{LTXexample}
+
%<*en>
-\item Commands \verb+\fontfamily+, \verb+\fontseries+,
- \verb+\fontshape+ and \verb+\selectfont+ can be used to change
- attributes of Japanese fonts.
+Note that there is no command named \verb+\setmonojfont+, since it is
+popular for Japanese fonts that nearly all Japanese glyphs have same
+widths. Also note that the kerning feature is set off by default in
+these 7~commands, since this feature and \textbf{JAglue} will clash (see
+\ref{para-kern}).
%
%<*ja>
-\item \verb+\fontfamily+, \verb+\fontseries+, \verb+\fontshape+, ããã¦
- \verb+\selectfont+ ãåæãã©ã³ãã®å±æ§ãå¤æ´ããããã«ä½¿ç¨ã§ããï¼
+åæãã©ã³ãã«ã¤ãã¦ã¯å
¨ã¦ã®åææåã®ã°ãªããã»ã¼çå¹
ã§ããã®ãæ®éã§ããããï¼
+\verb+\setmonojfont+ ã³ãã³ãã¯åå¨ããªããã¨ã«æ³¨æï¼ã¾ãï¼ãããã®åæç¨ã®7ã¤ã®ã³ã
+ã³ãã§ã¯Kerning featureã¯ããã©ã«ãã§ã¯offã¨ãªã£ã¦ããï¼ããã¯ãã®
+featureã\textbf{JAglue}ã¨è¡çªããããã§ããï¼\ref{para-kern}ç¯ãåç
§ï¼ï¼
%
+%\subsection{Preset}
+%\subsection{ããªã»ããè¨å®}
+\label{ssec-preset}
+
%<*en>
-\begin{center}
-\begin{tabular}{cccccc}
+To use standard Japanese font settings easily, one can load \Pkg{luatexja-preset}
+package with several options. This package provides functions in a part of
+\Pkg{otf} package and a part of \Pkg{PXchfon} package by Takayuki Yato,
+and loads \Pkg{luatexja-fontspec}, hence \Pkg{fontspec} internally.
+
+If you need to pass some options to \Pkg{fontspec}, load \Pkg{fontspec} manually
+before \Pkg{luatexja-preset}:
+%
+%<*ja>
+ãã使ããã¦ããåæãã©ã³ãè¨å®ãä¸è¡ã§æå®ã§ããããã«ããã®ã
+\Pkg{luatexja-preset}ããã±ã¼ã¸ã§ããï¼ãã®ããã±ã¼ã¸ã¯ï¼
+\Pkg{otf}ããã±ã¼ã¸ã®ä¸é¨æ©è½ã¨å
«ç»å´ä¹æ°ã«ãã\Pkg{PXchfon}ããã±ã¼ã¸ã®ä¸é¨æ©è½ã¨ã
+åããããããªæ ¼å¥½ããã¦ããï¼å
é¨ã§\Pkg{luatexja-fontspec}ï¼å¾ã£ã¦
+\Pkg{fontspec}ãèªã¿è¾¼ãã§ããï¼
+
+ãã\Pkg{fontspec}ããã±ã¼ã¸ã«ä½ããã®ãªãã·ã§ã³ã渡ãå¿
è¦ããã
+\footnote{ä¾ãã°ï¼æ°å¼ãã©ã³ãã¾ã§ç½®æããã¦ãã¾ãï¼\texttt{\char92mathit}ã«ãã£ã¦ã®ãªã·ã£æåã®
+æä½å¤§æåãåºãªããªãï¼ãªã©ï¼}å ´åã¯ï¼
+次ã®ããã«\Pkg{luatexja-preset}ã®åã«\Pkg{fontspec}ãæåã§èªã¿ããã°è¯ãï¼
+%
+\begin{verbatim}
+\usepackage[no-math]{fontspec}
+\usepackage[...]{luatexja-preset}
+\end{verbatim}
+
+%\paragraph{General options}
+%\paragraph{ä¸è¬çãªãªãã·ã§ã³}
+\begin{list}{}{\def\makelabel{\ttfamily}\def\{{\char`\{}\def\}{\char`\}}\advance\leftmargin1\zw}
+\item[nodeluxe]
+%<*en>
+Use one-weighted \textit{mincho} and \textit{gothic} font families.
+This means that \verb+\mcfamily\bfseries+, \verb+\gtfamily\bfseries+ and
+\verb+\gtfamily\mdseries+ use the same font.
+\emph{This option is enabled by default.}
+%
+%<*ja>
+\LaTeXe ç°å¢ä¸ã§ã®æ¨æºè¨å®ã®ããã«ï¼ææä½ã»ã´ã·ãã¯ä½ãå1ã¦ã§ã¤ãã§ä½¿ç¨ããï¼
+ããå
·ä½çã«è¨ãã¨ï¼ãã®è¨å®ã®ä¸ã§ã¯
+\verb+\mcfamily\bfseries+, \verb+\gtfamily\bfseries+, \verb+\gtfamily\mdseries+ã¯
+ã¿ãªåããã©ã³ãã¨ãªãï¼\emph{ãã®ãªãã·ã§ã³ã¯æ¨æºã§æå¹ã«ãªã£ã¦ããï¼}
+%
+\item[deluxe]
+%<*en>
+Use \textit{mincho} with two weights (medium~and~bold),
+\textit{gothic} with three weights (medium, bold~and~heavy), and \textit{rounded gothic}%
+\footnote{Provided by \texttt{\char92mgfamily} and \texttt{\char92textmg\{...\}},
+because \textit{rounded gothic} is called \textit{maru gothic} (丸ã´ã·ãã¯) in Japanese.}.
+The heavy weight of \textit{gothic} can be used by ``changing the family'' \verb+\gtebfamily+,
+or \verb+\textgteb{...}+.
+This is because \Pkg{fontspec} package can handle only medium (\verb+\mdseries+) and
+bold (\verb+\bfseries+).
+%
+%<*ja>
+ææä½2ã¦ã§ã¤ãã»ã´ã·ãã¯ä½3ã¦ã§ã¤ãã¨ï¼
+丸ã´ã·ãã¯ä½ (\verb+\mgfamily+, \verb+\textmg{...}+) ã使ç¨å¯è½ã¨ããï¼
+ã´ã·ãã¯ä½ã¯ç´°åã»å¤ªåã»æ¥µå¤ªã®3ã¦ã§ã¤ãããããï¼
+極太ã´ã·ãã¯ä½ã¯ãã¡ããªã®åãæ¿ã (\verb+\gtebfamily+, \verb+\textgteb{...}+) %
+ã§å®ç¾ãã¦ããï¼\Pkg{fontspec}ã§ã¯é常 (\verb+\mdseries+) ã¨å¤ªå (\verb+\bfseries+) ããæ±ããªãããã«
+ãã®ãããªä¸éå端ãªå®è£
ã«ãªã£ã¦ããï¼
+%
+\item[expert]
+%<*en>
+Use horizontal kana alternates, and define a control sequence \verb+\rubyfamily+ to use kana
+characters designed for ruby.
+%
+%横çµå°ç¨ä»®åãç¨ããï¼ã¾ãï¼\verb+\rubyfamily+ ã§ã«ãç¨ä»®åã使ç¨å¯è½ã¨ãªãï¼
+\item[bold]
+%Substitute bold series of \textit{gothic} for bold series of \textit{mincho}.
+%ãææã®å¤ªåããã´ã·ãã¯ä½ã®å¤ªåã«ãã£ã¦ä»£æ¿ããï¼
+\item[90jis]
+%Use 90JIS glyph variants if possible.
+%åºæ¥ãéã90JISã®åå½¢ã使ãï¼
+\item[jis2004]
+%Use JIS2004 glyph variants if possible.
+%åºæ¥ãéãJIS2004ã®åå½¢ã使ãï¼
+\item[jis]
+%<*en>
+Use the JFM \texttt{jfm-jis.lua}, instead of \texttt{jfm-ujis.lua}, which is the default JFM of
+\LuaTeX-ja.
+%
+%<*ja>
+ç¨ããJFMãï¼JISãã©ã³ãã¡ããªãã¯é¡ä¼¼ã®ï¼\texttt{jfm-jis.lua}ã«ããï¼ãã®ãªãã·ã§ã³ããªãæã¯
+\LuaTeX-jaæ¨æºã®\texttt{jfm-ujis.lua}ãç¨ããããï¼
+%
+\end{list}
+%<*en>
+Note that \texttt{90jis} and \texttt{jis2004} only affect with \textit{mincho},
+\textit{gothic} (and possibly \textit{rounded gothic}) defined by this package.
+We didn't taken account of when both \texttt{90jis} and \texttt{jis2004} are specified.
+%
+%<*ja>
+\texttt{90jis}ã¨\texttt{jis2004}ã«ã¤ãã¦ã¯æ¬ããã±ã¼ã¸ã§å®ç¾©ããã
+ææä½ã»ã´ã·ãã¯ä½ï¼ã»ä¸¸ã´ã·ãã¯ä½ï¼ã«ã®ã¿æå¹ã§ããï¼ä¸¡ãªãã·ã§ã³ã
+åæã«æå®ãããå ´åã®åä½ã«ã¤ãã¦ã¯å
¨ãèæ
®ãã¦ããªãï¼
+%
+
+%\paragraph{Presets for multi weight settings}
+%\paragraph{å¤ã¦ã§ã¤ãç¨ããªã»ããã®ä¸è¦§}
+%<*en>
+Besides \texttt{morisawa-pro}~and~\texttt{morisawa-pr6n} presets,
+fonts are specified by fontname, not by filename.
+%
+%<*ja>
+\texttt{morisawa-pro}, \texttt{morisawa-pr6n}以å¤ã¯ãã©ã³ãã®æå®ã¯
+ï¼ãã¡ã¤ã«åã§ãªãï¼ãã©ã³ãåã§è¡ãããï¼
+%
+\begin{list}{}{\def\makelabel{\ttfamily}\def\{{\char`\{}\def\}{\char`\}}\advance\leftmargin1\zw}
+ \item[kozuka-pro] Kozuka Pro (Adobe-Japan1-4) fonts.
+% \\[-\dimexpr\medskipamount+\baselineskip\relax]
+ \item[kozuka-pr6] Kozuka Pr6 (Adobe-Japan1-6) fonts.
+% \\[-\dimexpr\medskipamount+\baselineskip\relax]
+ \item[kozuka-pr6n] Kozuka Pr6N (Adobe-Japan1-6, JIS04-savvy) fonts.
+
+%<*en>
+Kozuka Pro/Pr6N fonts are bundled with Adobe's software, such as Adobe~InDesign.
+There is not rounded gothic family in Kozuka fonts.
+%
+%<*ja>
+å°å¡Proæ¸ä½ã»Pr6Næ¸ä½ã¯Adobe InDesignçã®Adobe製åã«ãã³ãã«ããã¦ããï¼
+ãå°å¡ä¸¸ã´ã·ãã¯ãã¯åå¨ããªãã®ã§ï¼ä¾¿å®çã«å°å¡ã´ã·ãã¯Hã«ãã£ã¦ä»£ç¨ãã¦ããï¼
+%
+\begin{center}\small
+\begin{tabular}{cllll}
\toprule
-&\textbf{encoding}&\textbf{family}&\textbf{series}&\textbf{shape}&\textbf{selection}\\\midrule
-alphabetic fonts
-&\verb+\romanencoding+&\verb+\romanfamily+&\verb+\romanseries+&\verb+\romanshape+
-&\verb+\useroman+\\
-Japanese fonts
-&\verb+\kanjiencoding+&\verb+\kanjifamily+&\verb+\kanjiseries+&\verb+\kanjishape+
-&\verb+\usekanji+\\
-both&---&--&\verb+\fontseries+&\verb+\fontshape+&---\\
-auto select&\verb+\fontencoding+&\verb+\fontfamily+&---&---&\verb+\usefont+\\
+\bf family&\bf series&\tt kozuka-pro&\tt kozuka-pr6&\tt kozuka-pr6n\\
+\midrule
+ &medium&KozMinPro-Regular&KozMinProVI-Regular&KozMinPr6N-Regular\\
+%\smash{\raisebox{1.5ex}{\textit{mincho}}}%
+%\smash{\raisebox{1.5ex}{\gt ææ}}%
+ &bold&KozMinPro-Bold&KozMinProVI-Bold&KozMinPr6N-Bold\\
+\midrule
+ &&KozGoPro-Regular*&KozGoProVI-Regular*&KozGoPr6N-Regular*\\
+ &\smash{\raisebox{1.5ex}{medium}}
+ &KozGoPro-Medium&KozGoProVI-Medium&KozGoPr6N-Medium\\
+\cmidrule(l){2-5}
+%\smash{\raisebox{2ex}{\textit{gothic}}}%
+%\smash{\raisebox{2ex}{\gt ã´ã·ãã¯}}%
+ &bold&KozGoPro-Bold&KozGoProVI-Bold&KozGoPr6N-Bold\\
+ &heavy&KozGoPro-Heavy&KozGoProVI-Heavy&KozGoPr6N-Heavy\\
+\midrule
+%\textit{rounded gothic}
+%\gt 丸ã´ã·ãã¯
+&&KozGoPro-Heavy&KozGoProVI-Heavy&KozGoPr6N-Heavy\\
\bottomrule
\end{tabular}
\end{center}
+
+%<*en>
+In above table, starred fonts (KozGo\dots-Regular) are used for medium series of \textit{gothic},
+\emph{if and only if \texttt{deluxe} option is specified}.
%
%<*ja>
-\begin{center}
-\begin{tabular}{cccccc}
+ä¸ã®è¡¨ã«ããã¦ï¼*ã¤ãã®ãã©ã³ã(KozGo\dots-Regular)ã¯ï¼\emph{\texttt{deluxe}ãªãã·ã§ã³éæå®æã«}
+ã´ã·ãã¯ä½ç´°åã¨ãã¦ç¨ããããï¼
+%
+
+%\medskip
+
+ \item[hiragino-pro] Hiragino Pro (Adobe-Japan1-5) fonts.
+% \\[-\dimexpr\medskipamount+\baselineskip\relax]
+ \item[hiragino-pron] Hiragino ProN (Adobe-Japan1-5, JIS04-savvy) fonts.
+
+%<*en>
+Hiragino fonts are bundled with Mac OS~X 10.5 or later.
+Some editions of a Japanese word-processor ``ä¸å¤ªé2012'' includes Hiragino ProN fonts.
+Note that the heavy weight of \textit{gothic} family only supports
+Adobe-Japan1-3 character collection (Std/StdN).
+%
+%<*ja>
+ãã©ã®ããã©ã³ãã¯ï¼Mac OS~X以å¤ã«ãï¼ä¸å¤ªé2012ã®ä¸ä½ã¨ãã£ã·ã§ã³ã«ããã³ãã«ããã¦ããï¼
+極太ã´ã·ãã¯ã¨ãã¦ç¨ãããã©ã®ãè§ã´W8ã¯ï¼Adobe-Japan1-3ã®ç¯å²ããã«ãã¼ãã¦ããªã
+Std/StdNãã©ã³ãã§ããï¼ãã®ä»ã¯Adobe-Japan1-5対å¿ã§ããï¼
+%
+\begin{center}\small
+\begin{tabular}{clll}
\toprule
-&\textbf{ã¨ã³ã³ã¼ãã£ã³ã°}&\textbf{ãã¡ããª}&\textbf{ã·ãªã¼ãº}&\textbf{ã·ã§ã¼ã}&\textbf{é¸æ}\\\midrule
-欧æãã©ã³ã
-&\verb+\romanencoding+&\verb+\romanfamily+&\verb+\romanseries+&\verb+\romanshape+
-&\verb+\useroman+\\
-åæãã©ã³ã
-&\verb+\kanjiencoding+&\verb+\kanjifamily+&\verb+\kanjiseries+&\verb+\kanjishape+
-&\verb+\usekanji+\\
-両æ¹&---&--&\verb+\fontseries+&\verb+\fontshape+&---\\
-èªåé¸æ&\verb+\fontencoding+&\verb+\fontfamily+&---&---&\verb+\usefont+\\
+\bf family&\bf series&\tt hiragino-pro&\tt hiragino-pron\\
+\midrule
+ &medium&Hiragino~Mincho~Pro~W3&Hiragino~Mincho~ProN~W3\\
+%\smash{\raisebox{1.5ex}{\textit{mincho}}}%
+%\smash{\raisebox{1.5ex}{\gt ææ}}%
+ &bold&Hiragino~Mincho~Pro~W6&Hiragino~Mincho~ProN~W6\\
+\midrule
+ &&Hiragino~Kaku~Gothic~Pro~W3*&Hiragino~Kaku~Gothic~ProN~W3*\\
+ &\smash{\raisebox{1.5ex}{medium}}
+ &Hiragino~Kaku~Gothic~Pro~W6&Hiragino~Kaku~Gothic~ProN~W6\\
+\cmidrule(l){2-4}
+%\smash{\raisebox{2ex}{\textit{gothic}}}%
+%\smash{\raisebox{2ex}{\gt ã´ã·ãã¯}}%
+ &bold&Hiragino~Kaku~Gothic~Pro~W6&Hiragino~Kaku~Gothic~ProN~W6\\
+ &heavy&Hiragino~Kaku~Gothic~Std~W8&Hiragino~Kaku~Gothic~StdN~W8\\
+\midrule
+%\textit{rounded gothic}
+%\gt 丸ã´ã·ãã¯
+&&Hiragino~Maru~Gothic~ProN~W4&Hiragino~Maru~Gothic~ProN~W4\\
+\bottomrule
+\end{tabular}
+\end{center}
+
+%\medskip
+
+ \item[morisawa-pro] Morisawa Pro (Adobe-Japan1-4) fonts.
+% \\[-\dimexpr\medskipamount+\baselineskip\relax]
+ \item[morisawa-pr6n] Morisawa Pr6N (Adobe-Japan1-6, JIS04-savvy) fonts.
+\begin{center}\small
+\begin{tabular}{cl>{\tt}l>{\tt}l}
+\toprule
+\bf family&\bf series&morisawa-pro&morisawa-pr6n\\
+\midrule
+ &medium&A-OTF-RyuminPro-Light.otf&A-OTF-RyuminPr6N-Light.otf\\
+%\smash{\raisebox{1.5ex}{\textit{mincho}}}%
+%\smash{\raisebox{1.5ex}{\gt ææ}}%
+ &bold&A-OTF-FutoMinA101Pro-Bold.otf&A-OTF-FutoMinA101Pr6N-Bold.otf\\
+\midrule
+ &medium
+ &A-OTF-GothicBBBPro-Medium.otf&A-OTF-GothicBBBPr6N-Medium.otf\\
+%\textit{gothic}%
+%\gt ã´ã·ãã¯
+ &bold&A-OTF-FutoGoB101Pro-Bold.otf&A-OTF-FutoGoB101Pr6N-Bold.otf\\
+ &heavy&A-OTF-MidashiGoPro-MB31.otf&A-OTF-MidashiGoPr6N-MB31.otf\\
+\midrule
+%\textit{rounded gothic}
+%\gt 丸ã´ã·ãã¯
+&&A-OTF-Jun101Pro-Light.otf&A-OTF-Jun101Pr6N-Light.otf\\
+\bottomrule
+\end{tabular}
+\end{center}
+
+ \item[yu-win] Yu fonts bundled with Windows~8.1.
+% \\[-\dimexpr\medskipamount+\baselineskip\relax]
+ \item[yu-osx] Yu fonts bundled with OSX~Mavericks.
+%They cover Adobe-Japan1-6 character collection.
+%ä¸ã® \texttt{yu-win} ã¨ã¯ãã©ã³ãåãå¾®å¦ã«ç°ãªããã¨ã«æ³¨æï¼
+\begin{center}\small
+\begin{tabular}{clll}
+\toprule
+\bf family&\bf series&\tt yu-win&\tt yu-osx\\
+\midrule
+ &medium&YuMincho-Regular&YuMincho~Medium\\
+%\smash{\raisebox{1.5ex}{\textit{mincho}}}%
+%\smash{\raisebox{1.5ex}{\gt ææ}}%
+ &bold&YuMincho-Demibold&YuMincho~Demibold\\
+\midrule
+ &&YuGothic-Regular*&YuGothic~Medium*\\
+ &\smash{\raisebox{1.5ex}{medium}}
+ &YuGothic-Bold&YuGothic~Bold\\
+\cmidrule(l){2-4}
+%\textit{gothic}%
+%\gt ã´ã·ãã¯
+ &bold&YuGothic-Bold&YuGothic~Bold\\
+ &heavy&YuGothic-Bold&YuGothic~Bold\\
+\midrule
+%\textit{rounded gothic}
+%\gt 丸ã´ã·ãã¯
+&&YuGothic-Bold&YuGothic~Bold\\
\bottomrule
\end{tabular}
\end{center}
-%
+\end{list}
+%\paragraph{Presets for single weight}
+%\paragraph{åã¦ã§ã¤ãç¨ããªã»ããä¸è¦§}
%<*en>
- \verb+\fontencoding{}+ changes the encoding of alphabetic fonts
- or Japanese fonts depending on the argument. For example,
- \verb+\fontencoding{JY3}+ changes the encoding of Japanese fonts to
- \texttt{JY3} and \verb+\fontencoding{T1}+ changes the encoding of
- alphabetic fonts to \texttt{T1}.
- \verb+\fontfamily+ also changes the family of Japanese fonts, alphabetic
- fonts, \emph{or both}. For detail, see Subsection~\ref{ssub-nfsspat}.
+Next, we describe settings for using only single weight.
+In four settings below, we use same fonts for medium and bold (and heavy) weights.
+(Hence \verb+\mcfamily\bfseries+ and \verb+\mcfamily\mdseries+ yields same Japanese fonts,
+even if \texttt{deluxe} option is also specified).
%
%<*ja>
- ããã§ï¼\verb+\fontencoding{}+ ã¯ï¼å¼æ°ã«ããåæå´ã欧æ
- å´ãã®ã©ã¡ããã®ã¨ã³ã³ã¼ãã£ã³ã°ãå¤æ´ããï¼ä¾ãã°ï¼
- \verb+\fontencoding{JY3}+ ã¯åæãã©ã³ãã®ã¨ã³ã³ã¼ãã£ã³ã°ã
- \texttt{JY3}ã«å¤æ´ãï¼\verb+\fontencoding{T1}+ ã¯æ¬§æãã©ã³ãå´ã
- \texttt{T1}ã¸ã¨å¤æ´ããï¼\verb+\fontfamily+ ãå¼æ°ã«ããåæå´ï¼æ¬§æ
- å´ï¼\textbf{ãããã¯ä¸¡æ¹}ã®ãã©ã³ããã¡ããªãå¤æ´ããï¼è©³ç´°ã¯
- \ref{ssub-nfsspat} ç¯ãåç
§ãããã¨ï¼
+次ã«ï¼åã¦ã§ã¤ãç¨ã®è¨å®ãè¿°ã¹ãï¼ãã®4è¨å®ã§ã¯ãç´°åãã太åãã®åºå¥ã¯ãªãï¼
+ã¾ãï¼ä¸¸ã´ã·ãã¯ä½ã¯ã´ã·ãã¯ä½ã¨åããã©ã³ããç¨ããï¼
%
-
+\par\nobreak\medskip
+{\centering\small
+\begin{tabular}{lllll}
+\toprule
+&\tt noembed&\tt ipa&\tt ipaex&\tt ms\\
+\midrule
%<*en>
-\item For defining a Japanese font family, use
- \verb+\DeclareKanjiFamily+ instead of
- \verb+\DeclareFontFamily+. However, in the present implementation,
- using \verb+\DeclareFontFamily+ doesn't cause any problem.
+\it mincho&Ryumin-Light (non-embedded)
+&IPAMincho&IPAexMincho&MS Mincho\\
+\it gothic&GothicBBB-Medium (non-embedded)
+&IPAGothic&IPAexGothic&MS Gothic\\
%
%<*ja>
-\item åæãã©ã³ããã¡ããªã®å®ç¾©ã«ã¯ \verb+\DeclareFontFamily+ ã®
- 代ããã« \verb+\DeclareKanjiFamily+ ãç¨ããï¼ãããï¼ç¾å¨ã®
- å®è£
ã§ã¯ \verb+\DeclareFontFamily+ ãç¨ãã¦ãåé¡ã¯çããªãï¼
+\gtfamily ææä½&Ryumin-Lightï¼éåè¾¼ï¼
+&IPAææ&IPAexææ&MSææ\\
+\gtfamily ã´ã·ãã¯ä½&GothicBBB-Mediumï¼éåè¾¼ï¼
+&IPAã´ã·ãã¯&IPAexã´ã·ãã¯&MSã´ã·ãã¯\\
%
-\end{itemize}
+\bottomrule
+\end{tabular}\par\medskip}
-\subsection{fontspec}
-\label{ssec-fontspec}
+
+%\paragraph{Using HG fonts}
+%\paragraph{HGãã©ã³ãã®å©ç¨}
%<*en>
-To coexist with the \Pkg{fontspec} package, it is needed to load
-\Pkg{luatexja-fontspec} package in the preamble. This additional
-package automatically loads \Pkg{luatexja} and \Pkg{fontspec}
-package, if needed.
+We can use HG~fonts bundled with Microsoft~Office for realizing multiple weights.
%
%<*ja>
-\Pkg{fontspec}ããã±ã¼ã¸ã¨åæ§ã®æ©è½ãåæãã©ã³ãã«å¯¾ãã¦ãç¨ããããã«ã¯ï¼
-\Pkg{luatexja-fontspec}ããã±ã¼ã¸ãããªã¢ã³ãã«ã§èªã¿è¾¼ãå¿
è¦ãããï¼ãã®ããã±ã¼ã¸
-ã¯å¿
è¦ãªãã°èªåã§\Pkg{luatexja}ããã±ã¼ã¸ã¨\Pkg{fontspec}ããã±ã¼ã¸ãèªã¿è¾¼ãï¼
+ããåã«æ¸ããåã¦ã§ã¤ãç¨è¨å®ãï¼Microsoft Officeçã«ä»å±ããHGãã©ã³ãã使ã£ã¦
+å¤ã¦ã§ã¤ãåããè¨å®ãããï¼
+%
+\par\nobreak\medskip
+{\centering\small
+\begin{tabular}{llll}
+\toprule
+&\tt ipa-hg&\tt ipaex-hg&\tt ms-hg\\
+\midrule
+%<*en>
+\bf mincho medium
+&IPAMincho&IPAexMincho&MS Mincho\\\midrule
+\bf mincho bold&
+\multicolumn{3}{c}{HG Mincho E}\\\midrule
+\bf Gothic medium\\
+~~without \texttt{deluxe}
+&IPAGothic&IPAexGothic&MS Gothic\\
+~~with {\tt jis2004}
+&IPAGothic&IPAexGothic&MS Gothic\\
+\cmidrule(lr){1-4}
+~~otherwise&
+\multicolumn{3}{c}{HG Gothic M}\\\midrule
+\bf gothic bold&
+\multicolumn{3}{c}{HG Gothic E}\\\midrule
+\bf gothic heavy&
+\multicolumn{3}{c}{HG Soei Kaku Gothic UB}\\\midrule
+\bf rounded gothic&
+\multicolumn{3}{c}{HG Maru Gothic PRO}\\
+%
+%<*ja>
+\gtfamily ææä½ç´°å
+&IPAææ&IPAexææ&MSææ\\\midrule
+\gtfamily ææä½å¤ªå&
+\multicolumn{3}{c}{HGææE}\\\midrule
+\gtfamily ã´ã·ãã¯ä½ç´°å\\
+ãåã¦ã§ã¤ãæ
+&IPAã´ã·ãã¯&IPAexã´ã·ãã¯&MSã´ã·ãã¯\\
+ã{\tt jis2004}æå®æ
+&IPAã´ã·ãã¯&IPAexã´ã·ãã¯&MSã´ã·ãã¯\\
+\cmidrule(lr){1-4}
+ããã以å¤ã®æ&
+\multicolumn{3}{c}{HGã´ã·ãã¯M}\\\midrule
+\gtfamily ã´ã·ãã¯ä½å¤ªå&
+\multicolumn{3}{c}{HGã´ã·ãã¯E}\\\midrule
+\gtfamily ã´ã·ãã¯ä½æ¥µå¤ª&
+\multicolumn{3}{c}{HGåµè±è§ã´ã·ãã¯UB}\\\midrule
+\gtfamily 丸ã´ã·ãã¯ä½&
+\multicolumn{3}{c}{HG丸ã´ã·ãã¯ä½PRO}\\
%
+\bottomrule
+\end{tabular}\par\medskip}
%<*en>
-In \Pkg{luatexja-fontspec} package, the following 7~commands are defined as
-counterparts of original commands in the \Pkg{fontspec} package:
+Note that HG~Mincho~E, HG~Gothic~E, HG Soei Kaku Gothic UB and HG Maru Gothic PRO
+are internally specified by:
+\begin{description}
+\item[default] by font name (\texttt{HGMinchoE}, etc.).
+\item[{\tt 90jis}] by filename (\texttt{hgrme.ttc}, \texttt{hgrge.ttc}, \texttt{hgrsgu.ttc}, \texttt{hgrsmp.ttf}).
+\item[{\tt jis2004}] by filename (\texttt{hgrme04.ttc}, \texttt{hgrge04.ttc}, \texttt{hgrsgu04.ttc}, \texttt{hgrsmp04.ttf}).
+\end{description}
%
%<*ja>
-\Pkg{luatexja-fontspec}ããã±ã¼ã¸ã§ã¯ï¼ä»¥ä¸ã®7ã¤ã®ã³ãã³ãã\Pkg{fontspec}
-ããã±ã¼ã¸ã®å
ã®ã³ãã³ãã«å¯¾å¿ãããã®ã¨ãã¦å®ç¾©ãã¦ããï¼
+ãªãï¼HGææEã»HGã´ã·ãã¯Eã»HGåµè±è§ã´ã·ãã¯UBã»HG丸ã´ã·ãã¯ä½PROã®4ã¤ã«ã¤ãã¦ã¯ï¼å
é¨ã§
+\begin{description}
+\item[æ¨æº] ãã©ã³ãåï¼\texttt{HGMinchoE} ãªã©ï¼
+\item[{\tt 90jis}æå®æ] ãã¡ã¤ã«å (%
+\texttt{hgrme.ttc}, \texttt{hgrge.ttc}, \texttt{hgrsgu.ttc}, \texttt{hgrsmp.ttf})
+\item[{\tt jis2004}æå®æ] ãã¡ã¤ã«å (%
+\texttt{hgrme04.ttc}, \texttt{hgrge04.ttc}, \texttt{hgrsgu04.ttc}, \texttt{hgrsmp04.ttf})
+\end{description}
+ã¨ãã¦æå®ãè¡ã£ã¦ããã®ã§æ³¨æãããã¨ï¼
%
+
+
%<*en>
-\begin{center}
-\begin{tabular}{ccccc}
-\toprule
-Japanese fonts
-&\verb+\jfontspec+&\verb+\setmainjfont+&\verb+\setsansjfont+&\verb+\newjfontfamily+\\
-alphabetic fonts
-&\verb+\fontspec+&\verb+\setmainfont+&\verb+\setsansfont+&\verb+\newfontfamily+\\
-\midrule
-Japanese fonts
-&\verb+\newjfontface+&\verb+\defaultjfontfeatures+&\verb+\addjfontfeatures+\\
-alphabetic fonts
-&\verb+\newfontface+&\verb+\defaultfontfeatures+&\verb+\addfontfeatures+\\
-\bottomrule
-\end{tabular}
-\end{center}
+\subsection{\texttt{\char92 CID}, \texttt{\char92 UTF} and macros in \Pkg{otf} package}
+Under \pLaTeX, \Pkg{otf} package (developed by Shuzaburo Saito) is
+used for typesetting characters which is in Adobe-Japan1-6 CID but not
+in JIS~X~0208. Since this package is widely used, \LuaTeX-ja
+supports some of functions in \Pkg{otf} package.
+If you want to use these functions, load \Pkg{luatexja-otf} package.
%
%<*ja>
-\begin{center}
-\begin{tabular}{ccccc}
-\toprule
-åæãã©ã³ã
-&\verb+\jfontspec+&\verb+\setmainjfont+&\verb+\setsansjfont+&\verb+\newjfontfamily+\\
-欧æãã©ã³ã
-&\verb+\fontspec+&\verb+\setmainfont+&\verb+\setsansfont+&\verb+\newfontfamily+\\
-\midrule
-åæãã©ã³ã
-&\verb+\newjfontface+&\verb+\defaultjfontfeatures+&\verb+\addjfontfeatures+\\
-欧æãã©ã³ã
-&\verb+\newfontface+&\verb+\defaultfontfeatures+&\verb+\addfontfeatures+\\
-\bottomrule
-\end{tabular}
-\end{center}
+\subsection{\texttt{\char92 CID}, \texttt{\char92 UTF}ã¨\Pkg{otf}ããã±ã¼ã¸ã®ãã¯ã}
+\pLaTeX ã§ã¯ï¼JIS~X~0208ã«ãªãAdobe-Japan1-6ã®æåãåºåããããã«ï¼
+é½è¤ä¿®ä¸éæ°ã«ãã\Pkg{otf}ããã±ã¼ã¸ãç¨ãããã¦ããï¼ãã®ããã±ã¼ã¸ã¯
+åºãç¨ãããã¦ããããï¼\LuaTeX-jaã«ããã¦ã\Pkg{otf}ããã±ã¼ã¸ã®æ©è½ã®
+ä¸é¨ããµãã¼ããã¦ããï¼ãããã®æ©è½ãç¨ããããã«ã¯\Pkg{luatexja-otf}ããã±ã¼ã¸
+ãèªã¿è¾¼ãã°ããï¼
%
\begin{LTXexample}
-\fontspec[Numbers=OldStyle]{TeX Gyre Termes}
-\jfontspec{IPAexMincho}
-JIS~X~0213:2004âè¾»
+\jfontspec{KozMinPr6N-Regular.otf}
+森\UTF{9DD7}å¤ã¨å
ç°ç¾\UTF{9592}ã¨ã\UTF{9AD9}島å±ã«è¡ãã
-\addjfontfeatures{CJKShape=JIS1990}
-JIS~X~0208:1990âè¾»
+\CID{7652}飾åºã®\CID{13706}é家ï¼
+\CID{1481}åå¸ï¼è西é§
ï¼
+é«å´ã¨\CID{8705}\UTF{FA11}
+
+\ajåè§{ã¯ãããã«ã¿ã«ã}
\end{LTXexample}
-%<*en>
-Note that there is no command named \verb+\setmonojfont+, since it is
-popular for Japanese fonts that nearly all Japanese glyphs have same
-widths. Also note that the kerning feature is set off by default in
-these 7~commands, since this feature and \textbf{JAglue} will clash (see
-\ref{para-kern}).
-%
%<*ja>
-åæãã©ã³ãã«ã¤ãã¦ã¯å
¨ã¦ã®åææåã®ã°ãªããã»ã¼çå¹
ã§ããã®ãæ®éã§ããããï¼
-\verb+\setmonojfont+ ã³ãã³ãã¯åå¨ããªããã¨ã«æ³¨æï¼ã¾ãï¼ãããã®åæç¨ã®7ã¤ã®ã³ã
-ã³ãã§ã¯Kerning featureã¯ããã©ã«ãã§ã¯offã¨ãªã£ã¦ããï¼ããã¯ãã®
-featureã\textbf{JAglue}ã¨è¡çªããããã§ããï¼\ref{para-kern} ç¯ãåç
§ï¼ï¼
+\Pkg{otf}ããã±ã¼ã¸ã§ã¯ï¼ãããã次ã®ãããªãªãã·ã§ã³ãåå¨ããï¼
+\begin{description}
+\item[\texttt{deluxe}] ææä½ã»ã´ã·ãã¯ä½å2ã¦ã§ã¤ãã¨ï¼ä¸¸ã´ã·ãã¯ä½ãæ±ããããã«ãªãï¼
+\item[\texttt{expert}] ä»®åã横çµã»ç¸¦çµå°ç¨ã®ãã®ã«åãæ¿ããï¼ã«ãç¨ä»®åãæ±ããããã«ãªãï¼
+\item[\texttt{bold}] ã´ã·ãã¯ä½ãæ¨æºã§å¤ªãã¦ã§ã¤ãã®ãã®ã«è¨å®ããï¼
+\end{description}
+ããããããã®ãªãã·ã§ã³ã¯\Pkg{luatexja-otf}ããã±ã¼ã¸ã«ã¯åå¨ããªãï¼
+\Pkg{otf}ããã±ã¼ã¸ãææ¸ä¸ã§ä½¿ç¨ããåæç¨TFMãèªåã®ç©ã«ç½®ãæãã¦ããã®ã«å¯¾ãï¼
+\Pkg{luatexja-otf}ããã±ã¼ã¸ã§ã¯ï¼ãã®ãããªãã¨ã¯è¡ããªãããã§ããï¼
+
+ããã3ãªãã·ã§ã³ã«ã¤ãã¦ã¯ï¼
+\Pkg{luatexja-preset} ããã±ã¼ã¸ã«ããªã»ããã使ãæã«ä¸ç·ã«æå®ãããï¼
+ãããã¯å¯¾å¿ããå
容ã\ref{ssub-chgfnt}ç¯ (NFSS2) ã
+\ref{ssec-fontspec}ç¯ (\Pkg{fontspec}) ã®æ¹æ³ã§æåã§æå®ããå¿
è¦ãããï¼
%
%\section{Changing Parameters}
@@ -1077,22 +1580,23 @@ parameters, you have to use commands \verb+\ltjsetparameter+ and
%\subsection{Editing the range of \textbf{JAchar}s}
%\subsection{\textbf{JAchar}ã®ç¯å²ã®è¨å®}
+\label{ssec-setrange}
%<*en>
To edit the range of \textbf{JAchar}s, you have to assign a non-zero
natural number which is less than 217 to the character range first. This
-can be done by using \verb+\ltjdefcharrange+ primitive. For example, the
+can be done by using \verb+\ltjdefcharrange+. For example, the
next line assigns whole characters in Supplementary Ideographic Plane
and the character `æ¼¢' to the range number~100.
%
%<*ja>
\textbf{JAchar}ã®ç¯å²ãè¨å®ããããã«ã¯ï¼ã¾ãåæåã«0ãã大ãã217ããå°ããindexã
-å²ãå½ã¦ãå¿
è¦ãããï¼ããã«ã¯ \verb+\ltjdefcharrange+ ããªããã£ããç¨ããï¼
+å²ãå½ã¦ãå¿
è¦ãããï¼ããã«ã¯ \verb+\ltjdefcharrange+ ãç¨ããï¼
ä¾ãã°ï¼æ¬¡ã®ããã«æ¸ããã¨ã§è¿½å æ¼¢åé¢(SIP)ã«ããå
¨ã¦ã®æåã¨`æ¼¢'ã
ã100çªã®æåç¯å²ãã«å±ããããã«è¨å®ãããï¼
%
\begin{lstlisting}
-\ltjdefcharrange{100}{"10000-"1FFFF,`æ¼¢}
+\ltjdefcharrange{100}{"20000-"2FFFF,`æ¼¢}
\end{lstlisting}
%<*en>
This assignment of numbers to ranges are always global, so you should
@@ -1153,25 +1657,12 @@ determined from the following data:
ããï¼
%
\begin{itemize}
-%<*en>
-\item Blocks in Unicode~6.0.
-%
-%<*ja>
-\item Unicode~6.0ã®ãããã¯ï¼
-%
-%<*en>
-\item The \texttt{Adobe-Japan1-UCS2} mapping between a CID Adobe-Japan1-6 and Unicode.
-%
-%<*ja>
-\item \texttt{Adobe-Japan1-UCS2}ã«ããAdobe-Japan1-6ã®CIDã¨Unicodeã®éã®
- ãããã³ã°ï¼
-%
-%<*en>
-\item The \texttt{PXbase} bundle for \upTeX\ by Takayuki Yato.
-%
-%<*ja>
-\item å
«ç»å´ä¹æ°ã«ãã\upTeX ç¨ã®\texttt{PXbase}ãã³ãã«ï¼
-%
+%\item Blocks in Unicode~6.0.
+%\item Unicode~6.0ã®ãããã¯ï¼
+%\item The \texttt{Adobe-Japan1-UCS2} mapping between a CID Adobe-Japan1-6 and Unicode.
+%\item Adobe-Japan1-6ã®CIDã¨Unicodeã®éã®å¯¾å¿è¡¨\texttt{Adobe-Japan1-UCS2}ï¼
+%\item The \Pkg{PXbase} bundle for \upTeX\ by Takayuki Yato.
+%\item å
«ç»å´ä¹æ°ã«ãã\upTeX ç¨ã®\Pkg{PXbase}ãã³ãã«ï¼
\end{itemize}
%<*en>
@@ -1199,7 +1690,6 @@ number shows whether characters in the range is treated as
\begin{multicols}{2}
\begin{itemize}
\def\ch#1#2{\item \char"#1\ (\texttt{U+00#1}, #2)}%"
-%<*en>
\ch{A7}{Section Sign}
\ch{A8}{Diaeresis}
\ch{B0}{Degree sign}
@@ -1208,17 +1698,6 @@ number shows whether characters in the range is treated as
\ch{B6}{Paragraph sign}
\ch{D7}{Multiplication sign}
\ch{F7}{Division Sign}
-%
-%<*ja>
-\ch{A7}{ç¯è¨å·}
-\ch{A8}{ãã¬ã}
-\ch{B0}{度}
-\ch{B1}{æ£åã¯è² 符å·}
-\ch{B4}{ã¢ãã¥ã¼ãã»ã¢ã¯ã»ã³ã}
-\ch{B6}{段è½è¨å·}
-\ch{D7}{ä¹ç®è¨å·}
-\ch{F7}{é¤ç®è¨å·}
-%
\end{itemize}
\end{multicols}
@@ -1229,11 +1708,10 @@ This range consist of the following Unicode ranges, \emph{except characters in t
%<*ja>
\item[ç¯å²1${}^{\text{A}}$] ã©ãã³æåï¼ä¸é¨ã¯Adobe-Japan1-6ã«ãå«ã¾ãã¦ããï¼
ãã®ç¯å²ã¯ä»¥ä¸ã®Unicodeã®ãããã¯ããæ§æããã¦ããï¼
- \textbf{ãã ãï¼ç¯å²8ã¯é¤ãï¼}
+ \emph{ãã ãï¼ç¯å²8ã¯é¤ãï¼}
%
\begin{multicols}{2}
\begin{itemize}
-%<*en>
\item \texttt{U+0080}--\texttt{U+00FF}: Latin-1 Supplement
\item \texttt{U+0100}--\texttt{U+017F}: Latin Extended-A
\item \texttt{U+0180}--\texttt{U+024F}: Latin Extended-B
@@ -1241,16 +1719,6 @@ This range consist of the following Unicode ranges, \emph{except characters in t
\item \texttt{U+02B0}--\texttt{U+02FF}: Spacing Modifier Letters
\item \texttt{U+0300}--\texttt{U+036F}: Combining Diacritical Marks
\item \texttt{U+1E00}--\texttt{U+1EFF}: Latin Extended Additional
-%
-%<*ja>
-\item \texttt{U+0080}--\texttt{U+00FF}: ã©ãã³1è£å©
-\item \texttt{U+0100}--\texttt{U+017F}: ã©ãã³æåæ¡å¼µA
-\item \texttt{U+0180}--\texttt{U+024F}: ã©ãã³æåæ¡å¼µB
-\item \texttt{U+0250}--\texttt{U+02AF}: IPAæ¡å¼µï¼å½éé³å£°è¨å·ï¼
-\item \texttt{U+02B0}--\texttt{U+02FF}: åé²ãä¼´ã修飾æå
-\item \texttt{U+0300}--\texttt{U+036F}: ãã¤ã¢ã¯ãªãã£ã«ã«ãã¼ã¯ï¼åæå¯è½ï¼
-\item \texttt{U+1E00}--\texttt{U+1EFF}: ã©ãã³æåæ¡å¼µè¿½å
-%
\par\
\end{itemize}
\end{multicols}
@@ -1259,7 +1727,7 @@ This range consist of the following Unicode ranges, \emph{except characters in t
fonts) has some of these characters.
%
%<*ja>
-\item[ç¯å²2${}^{\text{J}}$] ã®ãªã·ã£æåã¨ããªã«æåï¼JIS~X~0208ï¼ãããã£ã¦å¤ãã®
+\item[ç¯å²2${}^{\text{J}}$] ã®ãªã·ã£æåã¨ããªã«æåï¼JIS~X~0208ï¼ãããã£ã¦ã»ã¨ãã©ã®
åæãã©ã³ãï¼ã¯ãããã®æåãæã¤ï¼
%
\begin{multicols}{2}
@@ -1270,7 +1738,7 @@ This range consist of the following Unicode ranges, \emph{except characters in t
\item \texttt{U+1F00}--\texttt{U+1FFF}: Greek Extended
%
%<*ja>
-\item \texttt{U+0370}--\texttt{U+03FF}: ã®ãªã·ã¢æååã³ã³ããæå
+\item \texttt{U+0370}--\texttt{U+03FF}: ã®ãªã·ã¢æåã»ã³ããæå
\item \texttt{U+0400}--\texttt{U+04FF}: ããªã«æå
\item \texttt{U+1F00}--\texttt{U+1FFF}: ããªã«æåè£å©
%
@@ -1282,21 +1750,16 @@ This range consist of the following Unicode ranges, \emph{except characters in t
indicated in Table~\ref{table-rng3}.
%
%<*ja>
-\item[ç¯å²3${}^{\text{J}}$] å¥èªç¹ã¨è¨å·é¡ï¼ãããã¯ã®ãªã¹ãã¯è¡¨ \ref{table-rng3}
+\item[ç¯å²3${}^{\text{J}}$] å¥èªç¹ã¨è¨å·é¡ï¼ãããã¯ã®ãªã¹ãã¯è¡¨\ref{table-rng3}%
ã«ç¤ºãã¦ããï¼
%
\begin{table}[!tb]
-%<*en>
-\caption{Unicode blocks in predefined character range~3.}
-%
-%<*ja>
-\caption{æåç¯å²3ã«æå®ããã¦ããUnicodeãããã¯ï¼}
-%
+%\caption{Unicode blocks in predefined character range~3.}
+%\caption{æåç¯å²3ã«æå®ããã¦ããUnicodeãããã¯ï¼}
\label{table-rng3}
\catcode`\"=13\def"#1#2#3#4{\texttt{U+#1#2#3#4}}%"
-\begin{center}\small
+\centering\small
\begin{tabular}{llll}
-%<*en>
"2000--"206F&General Punctuation&
"2070--"209F&Superscripts and Subscripts\\
"20A0--"20CF&Currency Symbols&
@@ -1314,32 +1777,8 @@ This range consist of the following Unicode ranges, \emph{except characters in t
"2700--"27BF&Dingbats&
"2900--"297F&Supplemental Arrows-B\\
"2980--"29FF&Misc.\ Mathematical Symbols-B&
-"2B00--"2BFF&Miscellaneous Symbols and Arrows\\
-"E000--"F8FF&Private Use Area&
-%
-%<*ja>
-"2000--"206F&ä¸è¬å¥èªç¹&
-"2070--"209F&ä¸ä»ãã»ä¸ä»ã\\
-"20A0--"20CF&é貨è¨å·&
-"20D0--"20FF&è¨å·ç¨ãã¤ã¢ã¯ãªãã£ã«ã«ãã¼ã¯ï¼åæå¯è½ï¼\\
-"2100--"214F&æåæ§è¨å·&
-"2150--"218F&æ°åã«æºãããã®\\
-"2190--"21FF&ç¢å°&
-"2200--"22FF&æ°å¦è¨å·ï¼æ¼ç®åï¼\\
-"2300--"23FF&ãã®ä»ã®æè¡ç¨è¨å·&
-"2400--"243F&å¶å¾¡æ©è½ç¨è¨å·\\
-"2500--"257F&罫ç·ç´ ç&
-"2580--"259F&ãããã¯è¦ç´ \\
-"25A0--"25FF&å¹¾ä½å¦æ¨¡æ§&
-"2600--"26FF&ãã®ä»ã®è¨å·\\
-"2700--"27BF&è£
飾è¨å·&
-"2900--"297F&è£å©ç¢å°B\\
-"2980--"29FF&ãã®ä»ã®æ°å¦è¨å·B&
-"2B00--"2BFF&ãã®ä»ã®è¨å·åã³ç¢å°\\
-"E000--"F8FF&ç§ç¨é åï¼å¤åé åï¼&
-%
+"2B00--"2BFF&Miscellaneous Symbols and Arrows
\end{tabular}
-\end{center}
\end{table}
%<*en>
\item[Range~4${}^{\text{A}}$] Characters usually not in Japanese fonts. This range consists
@@ -1356,34 +1795,20 @@ This range consist of the following Unicode ranges, \emph{except characters in t
\begin{lstlisting}
\ltjdefcharrange{4}{%
"500-"10FF, "1200-"1DFF, "2440-"245F, "27C0-"28FF, "2A00-"2AFF,
- "2C00-"2E7F, "4DC0-"4DFF, "A4D0-"A82F, "A840-"ABFF, "FB50-"FE0F,
- "FE20-"FE2F, "FE70-"FEFF, "FB00-"FB4F, "10000-"1FFFF} % non-Japanese
+ "2C00-"2E7F, "4DC0-"4DFF, "A4D0-"A82F, "A840-"ABFF, "FB00-"FE0F,
+ "FE20-"FE2F, "FE70-"FEFF, "10000-"1FFFF, "E000-"F8FF} % non-Japanese
\end{lstlisting}
-%<*en>
-\item[Range~5${}^{\text{A}}$] Surrogates and Supplementary Private Use Areas.
-%
-%<*ja>
-\item[ç¯å²5${}^{\text{A}}$] 代ç¨ç¬¦å·ã¨è£å©ç§ç¨é åï¼
-%
-%<*en>
-\item[Range~6${}^{\text{J}}$] Characters used in Japanese. The block list is indicated in Table~\ref{table-rng6}.
-%
-%<*ja>
-\item[ç¯å²6${}^{\text{J}}$] æ¥æ¬èªã§ç¨ããããæåï¼ãããã¯ã®ãªã¹ãã¯
- 表 \ref{table-rng6} ã«ç¤ºãï¼
-%
+%\item[Range~5${}^{\text{A}}$] Surrogates and Supplementary Private Use Areas.
+%\item[ç¯å²5${}^{\text{A}}$] 代ç¨ç¬¦å·ã¨è£å©ç§ç¨é åï¼
+%\item[Range~6${}^{\text{J}}$] Characters used in Japanese. The block list is indicated in Table~\ref{table-rng6}.
+%\item[ç¯å²6${}^{\text{J}}$] æ¥æ¬èªã§ç¨ããããæåï¼ãããã¯ã®ãªã¹ãã¯è¡¨\ref{table-rng6}ã«ç¤ºãï¼
\begin{table}[!tb]
-%<*en>
-\caption{Unicode blocks in predefined character range~6.}
-%
-%<*ja>
-\caption{æåç¯å²6ã«æå®ããã¦ããUnicodeãããã¯ï¼}
-%
+%\caption{Unicode blocks in predefined character range~6.}
+%\caption{æåç¯å²6ã«æå®ããã¦ããUnicodeãããã¯ï¼}
\label{table-rng6}
\catcode`\"=13\def"#1#2#3#4{\texttt{U+#1#2#3#4}}%"
-\begin{center}\small
+\centering\small
\begin{tabular}{llll}
-%<*en>
"2460--"24FF&Enclosed Alphanumerics&
"2E80--"2EFF&CJK Radicals Supplement\\
"3000--"303F&CJK Symbols and Punctuation&
@@ -1400,27 +1825,7 @@ This range consist of the following Unicode ranges, \emph{except characters in t
"FE30--"FE4F&CJK Compatibility Forms\\
"FE50--"FE6F&Small Form Variants&
"{20}000--"{2F}FFF&(Supplementary Ideographic Plane)
-%
-%<*ja>
-"2460--"24FF&å²ã¿è±æ°å&
-"2E80--"2EFF&CJKé¨é¦è£å©\\
-"3000--"303F&CJKã®è¨å·åã³å¥èªç¹&
-"3040--"309F&平仮å\\
-"30A0--"30FF&çä»®å&
-"3190--"319F&æ¼¢æç¨è¨å·ï¼è¿ãç¹ï¼\\
-"31F0--"31FF&çä»®åæ¡å¼µ&
-"3200--"32FF&å²ã¿CJKæåã»æ\\
-"3300--"33FF&CJKäºæç¨æå&
-"3400--"4DBF&CJKçµ±åæ¼¢åæ¡å¼µA\\
-"4E00--"9FFF&CJKçµ±åæ¼¢å&
-"F900--"FAFF&CJKäºææ¼¢å\\
-"FE10--"FE1F&縦æ¸ãå½¢&
-"FE30--"FE4F&CJKäºæå½¢\\
-"FE50--"FE6F&å°åå½¢&
-"{20}000--"{2F}FFF&ï¼è¿½å æ¼¢åé¢ï¼
-%
\end{tabular}
-\end{center}
\end{table}
%<*en>
\item[Range~7${}^{\text{J}}$] Characters used in CJK languages, but not included in Adobe-Japan1-6.
@@ -1429,20 +1834,15 @@ The block list is indicated in Table~\ref{table-rng7}.
%<*ja>
\item[ç¯å²7${}^{\text{J}}$] CJKè¨èªã§ç¨ããããæåã®ãã¡ï¼Adobe-Japan1-6ã«
å«ã¾ãã¦ããªããã®ï¼
- ãããã¯ã®ãªã¹ãã¯è¡¨ \ref{table-rng7} ã«ç¤ºãï¼
+ ãããã¯ã®ãªã¹ãã¯è¡¨\ref{table-rng7}ã«ç¤ºãï¼
%
\begin{table}[!tb]
-%<*en>
-\caption{Unicode blocks in predefined character range~7.}
-%
-%<*ja>
-\caption{æåç¯å²7ã«æå®ããã¦ããUnicodeãããã¯ï¼}
-%
+%\caption{Unicode blocks in predefined character range~7.}
+%\caption{æåç¯å²7ã«æå®ããã¦ããUnicodeãããã¯ï¼}
\label{table-rng7}
\catcode`\"=13\def"#1#2#3#4{\texttt{U+#1#2#3#4}}%"
-\begin{center}\small
+\centering\small
\begin{tabular}{llll}
-%<*en>
"1100--"11FF&Hangul Jamo&
"2F00--"2FDF&Kangxi Radicals\\
"2FF0--"2FFF&Ideographic Description Characters&
@@ -1455,23 +1855,7 @@ The block list is indicated in Table~\ref{table-rng7}.
"A830--"A83F&Common Indic Number Forms\\
"AC00--"D7AF&Hangul Syllables&
"D7B0--"D7FF&Hangul Jamo Extended-B
-%
-%<*ja>
-"1100--"11FF&ãã³ã°ã«åæ¯&
-"2F00--"2FDF&康çé¨é¦\\
-"2FF0--"2FFF&æ¼¢åæ§æè¨è¿°æå&
-"3100--"312F&注é³åæ¯ ï¼æ³¨é³ç¬¦å·ï¼\\
-"3130--"318F&ãã³ã°ã«äºæåæ¯&
-"31A0--"31BF&注é³åæ¯æ¡å¼µ\\
-"31C0--"31EF&CJKã®çç»&
-"A000--"A48F&ã¤æå\\
-"A490--"A4CF&ã¤æåé¨é¦&
-"A830--"A83F&å
±éã¤ã³ãæ°åã«æºãããã®\\
-"AC00--"D7AF&ãã³ã°ã«é³ç¯æå&
-"D7B0--"D7FF&ãã³ã°ã«åæ¯æ¡å¼µB
-%
\end{tabular}
-\end{center}
\end{table}
\end{description}
@@ -1480,12 +1864,8 @@ The block list is indicated in Table~\ref{table-rng7}.
%\subsection{\Param{kanjiskip}ã¨\Param{xkanjiskip}}
\label{subs-kskip}
-%<*en>
-\textbf{JAglue} is divided into the following three categories:
-%
-%<*ja>
-\textbf{JAglue}ã¯ä»¥ä¸ã®3ã¤ã®ã«ãã´ãªã«åé¡ãããï¼
-%
+%\textbf{JAglue} is divided into the following three categories:
+%\textbf{JAglue}ã¯ä»¥ä¸ã®3ã¤ã®ã«ãã´ãªã«åé¡ãããï¼
\begin{itemize}
%<*en>
\item Glues/kerns specified in JFM. If \verb+\inhibitglue+ is issued
@@ -1501,22 +1881,22 @@ The block list is indicated in Table~\ref{table-rng7}.
kanjiskip}).
%
%<*ja>
-\item ããã©ã«ãã§2ã¤ã®\textbf{JAchar}ã®éã«æ¿å
¥ãããã°ã«ã¼(\Param{kanjiskip})ï¼
+\item ããã©ã«ãã§2ã¤ã®\textbf{JAchar}ã®éã«æ¿å
¥ãããã°ã«ã¼(\Param{\hyperlink{fld:kanjiskip}{kanjiskip}})ï¼
%
%<*en>
\item The default glue which inserted between a \textbf{JAchar} and an
- \textbf{ALchar} (\Param{xkanjiskip}).
+ \textbf{ALchar} (\Param{\hyperlink{fld:xks}{xkanjiskip}}).
%
%<*ja>
-\item ããã©ã«ãã§\textbf{JAchar}ã¨\textbf{ALchar}ã®éã«æ¿å
¥ãããã°ã«ã¼(\Param{xkanjiskip})ï¼
+\item ããã©ã«ãã§\textbf{JAchar}ã¨\textbf{ALchar}ã®éã«æ¿å
¥ãããã°ã«ã¼(\Param{\hyperlink{fld:xks}{xkanjiskip}})ï¼
%
\end{itemize}
%<*en>
-The value (a skip) of \Param{kanjiskip} or \Param{xkanjiskip} can be
+The value (a skip) of \Param{\hyperlink{fld:kanjiskip}{kanjiskip}} or \Param{\hyperlink{fld:xks}{xkanjiskip}} can be
changed as the following.
%
%<*ja>
-\Param{kanjiskip}ã\Param{xkanjiskip}ã®å¤ã¯ä»¥ä¸ã®ããã«ãã¦å¤æ´å¯è½ã§ãã.
+\Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ã\Param{\hyperlink{fld:xks}{xkanjiskip}}ã®å¤ã¯ä»¥ä¸ã®ããã«ãã¦å¤æ´å¯è½ã§ãã.
%
\begin{lstlisting}
\ltjsetparameter{kanjiskip={0pt plus 0.4pt minus 0.4pt},
@@ -1524,36 +1904,36 @@ changed as the following.
\end{lstlisting}
%<*en>
-It may occur that JFM contains the data of `ideal width of \Param{kanjiskip}'
-and/or `ideal width of \Param{xkanjiskip}'.
-To use these data from JFM, set the value of \Param{kanjiskip} or
-\Param{xkanjiskip} to \verb+\maxdimen+.
+It may occur that JFM contains the data of `ideal width of \Param{\hyperlink{fld:kanjiskip}{kanjiskip}}'
+and/or `ideal width of \Param{\hyperlink{fld:xks}{xkanjiskip}}'.
+To use these data from JFM, set the value of \Param{\hyperlink{fld:kanjiskip}{kanjiskip}} or
+\Param{\hyperlink{fld:xks}{xkanjiskip}} to \verb+\maxdimen+.
%
%<*ja>
-JFMã¯ãæã¾ãã\Param{kanjiskip}ã®å¤ãããæã¾ãã\Param{xkanjiskip}ã®å¤ãã
+JFMã¯ãæã¾ãã\Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ã®å¤ãããæã¾ãã\Param{\hyperlink{fld:xks}{xkanjiskip}}ã®å¤ãã
æã£ã¦ãããã¨ãããï¼
-ãããã®ãã¼ã¿ã使ãããã«ã¯ï¼\Param{kanjiskip}ã\Param{xkanjiskip}ã®
+ãããã®ãã¼ã¿ã使ãããã«ã¯ï¼\Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ã\Param{\hyperlink{fld:xks}{xkanjiskip}}ã®
å¤ã \verb+\maxdimen+ ã®å¤ã«è¨å®ããã°ããï¼
%
%\subsection{Insertion Setting of \Param{xkanjiskip}}
-%\subsection{\Param{xkanjiskip} ã®è¨å®ã®æ¿å
¥}
+%\subsection{\Param{xkanjiskip} ã®æ¿å
¥è¨å®}
%<*en>
-It is not desirable that \Param{xkanjiskip} is inserted into every
+It is not desirable that \Param{\hyperlink{fld:xks}{xkanjiskip}} is inserted into every
boundary between \textbf{JAchar}s and \textbf{ALchar}s. For example,
-\Param{xkanjiskip} should not be inserted after opening parenthesis
+\Param{\hyperlink{fld:xks}{xkanjiskip}} should not be inserted after opening parenthesis
(\textit{e.g.}, compare `(ã' and `(\hskip\ltjgetparameter{xkanjiskip}ã').
-\LuaTeX-ja can control whether \Param{xkanjiskip} can be inserted
+\LuaTeX-ja can control whether \Param{\hyperlink{fld:xks}{xkanjiskip}} can be inserted
before/after a character, by changing \Param{jaxspmode} for \textbf{JAchar}s and
\Param{alxspmode} parameters \textbf{ALchar}s respectively.
%
%<*ja>
-\Param{xkanjiskip}ããã¹ã¦ã®\textbf{JAchar}ã¨\textbf{ALchar}ã®å¢çã«
-æ¿å
¥ãããã®ã¯æã¾ãããã¨ã§ã¯ãªãï¼ä¾ãã°ï¼\Param{xkanjiskip}ã¯éãæ¬å¼§ã®
+\Param{\hyperlink{fld:xks}{xkanjiskip}}ããã¹ã¦ã®\textbf{JAchar}ã¨\textbf{ALchar}ã®å¢çã«
+æ¿å
¥ãããã®ã¯æã¾ãããã¨ã§ã¯ãªãï¼ä¾ãã°ï¼\Param{\hyperlink{fld:xks}{xkanjiskip}}ã¯éãæ¬å¼§ã®
å¾ã«ã¯æ¿å
¥ãããã¹ãã§ã¯ãªãï¼`(ã'ã¨`(\hskip\ltjgetparameter{xkanjiskip}ã'ã
æ¯ã¹ã¦ã¿ãï¼ï¼
-\LuaTeX-jaã§ã¯\Param{xkanjiskip}ãããæåã®åï¼å¾ã«æ¿å
¥ãããã©ãããï¼
+\LuaTeX-jaã§ã¯\Param{\hyperlink{fld:xks}{xkanjiskip}}ãããæåã®åï¼å¾ã«æ¿å
¥ãããã©ãããï¼
\textbf{JAchar}ã«å¯¾ãã¦ã¯\Param{jaxspmode}ãï¼\textbf{ALchar}ã«å¯¾ãã¦ã¯
\Param{alxspmode}ãããããå¤ãããã¨ã§å¶å¾¡ãããã¨ãã§ããï¼
%
@@ -1564,12 +1944,12 @@ pãq ã!ã
%<*en>
The second argument \texttt{preonly} means `the insertion of
-\Param{xkanjiskip} is allowed before this character, but not after'.
+\Param{\hyperlink{fld:xks}{xkanjiskip}} is allowed before this character, but not after'.
the other possible values are \texttt{postonly}, \texttt{allow} and \texttt{
inhibit}.
%
%<*ja>
-2ã¤ç®ã®å¼æ°ã® \texttt{preonly}ã¯ã\Param{xkanjiskip}ã®æ¿å
¥ã¯ãã®æåã®
+2ã¤ç®ã®å¼æ°ã® \texttt{preonly}ã¯ã\Param{\hyperlink{fld:xks}{xkanjiskip}}ã®æ¿å
¥ã¯ãã®æåã®
åã§ã®ã¿è¨±ããï¼å¾ã§ã¯è¨±ããªãããã¨ãæå³ããï¼ä»ã«æå®å¯è½ãªå¤ã¯
\texttt{postonly}, \texttt{allow}, \texttt{inhibit}ã§ããï¼
%
@@ -1588,31 +1968,30 @@ as follows:
\ltjsetparameter{alxspmode={`ã,preonly}, jaxspmode={`\!,postonly}}
\end{verbatim}
%<*en>
-One can use also numbers to specify these two parameters (see Subsection \ref{ssec-param}).
+One can use also numbers to specify these two parameters (see Subsection~\ref{ssec-param}).
%
%<*ja>
-ã¾ãï¼ããã2ãã©ã¡ã¼ã¿ã«ã¯æ°å¤ã§å¤ãæå®ãããã¨ãã§ããï¼\ref{ssec-param} ç¯ãåç
§ï¼ï¼
+ã¾ãï¼ããã2ãã©ã¡ã¼ã¿ã«ã¯æ°å¤ã§å¤ãæå®ãããã¨ãã§ããï¼\ref{ssec-param}ç¯ãåç
§ï¼ï¼
%
%<*en>
-If you want to enable/disable all insertions of \Param{kanjiskip} and
-\Param{xkanjiskip}, set \Param{autospacing} and \Param{autoxspacing}
+If you want to enable/disable all insertions of \Param{\hyperlink{fld:kanjiskip}{kanjiskip}} and
+\Param{\hyperlink{fld:xks}{xkanjiskip}}, set \Param{autospacing} and \Param{autoxspacing}
parameters to \texttt{true}/\texttt{false}, respectively.
%
%<*ja>
-ããå
¨ã¦ã®\Param{kanjiskip}ã¨\Param{xkanjiskip}ã®æ¿å
¥ãæå¹åï¼ç¡å¹å
+ããå
¨ã¦ã®\Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ã¨\Param{\hyperlink{fld:xks}{xkanjiskip}}ã®æ¿å
¥ãæå¹åï¼ç¡å¹å
ããããã°ï¼ãããã\Param{autospacing}ã¨\Param{autoxspacing}ã
\texttt{true}/\texttt{false}ã«è¨å®ããã°ããï¼
%
%\subsection{Shifting Baseline}
%\subsection{ãã¼ã¹ã©ã¤ã³ã®ç§»å}
-
%<*en>
To make a match between a Japanese font and an alphabetic font, sometimes
shifting of the baseline of one of the pair is needed. In \pTeX, this is achieved
by setting \verb+\ybaselineshift+ to a non-zero length (the
-baseline of alphabetic fonts is shifted below). However, for documents
+baseline of \textbf{ALchar} is shifted below). However, for documents
whose main language is not Japanese, it is good to shift the baseline of
Japanese fonts, but not that of alphabetic fonts.
Because of this, \LuaTeX-ja can independently set the shifting amount
@@ -1622,8 +2001,8 @@ parameter).
%
%<*ja>
åæãã©ã³ãã¨æ¬§æãã©ã³ããåãããããã«ã¯ï¼æã
ã©ã¡ããã®ãã¼ã¹ã©ã¤ã³ã®ç§»åã
-å¿
è¦ã«ãªãï¼\pTeX ã§ã¯ãã㯠\verb+\ybaselineshift+ ãéé¶ã®é·ãã«è¨å®ãããã¨ã§
-ãªããã¦ããï¼æ¬§æãã©ã³ãã®ãã¼ã¹ã©ã¤ã³ãä¸ããï¼ï¼ãããï¼æ¥æ¬èªã主ã§ã¯ãªã
+å¿
è¦ã«ãªãï¼\pTeX ã§ã¯ãã㯠\verb+\ybaselineshift+ ãè¨å®ãããã¨ã§
+ãªããã¦ããï¼\textbf{ALchar}ã®ãã¼ã¹ã©ã¤ã³ããã®åã ãä¸ããï¼ï¼ãããï¼æ¥æ¬èªã主ã§ã¯ãªã
ææ¸ã«å¯¾ãã¦ã¯ï¼æ¬§æãã©ã³ãã§ã¯ãªãåæãã©ã³ãã®ãã¼ã¹ã©ã¤ã³ã移åããæ¹ãããï¼
ãã®ããï¼\LuaTeX-jaã§ã¯æ¬§æãã©ã³ãã®ãã¼ã¹ã©ã¤ã³ã®ã·ããé
ï¼\Param{yalbaselineshift}ãã©ã¡ã¼ã¿ï¼ã¨åæãã©ã³ãã®ãã¼ã¹ã©ã¤ã³ã®ã·ããé
@@ -1631,7 +2010,7 @@ parameter).
%
\begin{LTXexample}
-\vrule width 150pt height 0.4pt depth 0pt\hskip-120pt
+\vrule width 150pt height 0.4pt depth 0pt \hskip-120pt
\ltjsetparameter{yjabaselineshift=0pt, yalbaselineshift=0pt}abcããã
\ltjsetparameter{yjabaselineshift=5pt, yalbaselineshift=2pt}abcããã
\end{LTXexample}
@@ -1649,7 +2028,7 @@ The following is an example (beware the value is not well tuned):
%
%<*ja>
ãã®æ©è½ã«ã¯é¢ç½ã使ãæ¹ãããï¼2ã¤ã®ãã©ã¡ã¼ã¿ãé©åã«è¨å®ãããã¨ã§ï¼ãµã¤ãºã®
-ç°ãªãæåãä¸å¿ç·ã«æãããã¨ãã§ããã®ã ï¼
+ç°ãªãæåãä¸å¿ç·ã«æãããã¨ãã§ããï¼
以ä¸ã¯ä¸ã¤ã®ä¾ã§ããï¼å¤ã¯ãã¾ã調æ´ããã¦ããªããã¨ã«æ³¨æï¼ï¼
%
\begin{LTXexample}
@@ -1662,78 +2041,82 @@ xyzæ¼¢å
\end{LTXexample}
-%\subsection{Cropmark}
-%\subsection{ãã³ã}
-
-%<*en>
-Cropmark is a mark for indicating 4~corners and horizontal/vertical
-center of the paper. In Japanese, we call cropmark as tombo(w).
-\pLaTeX\ and this \LuaTeX-ja support `tombow' by their kernel.
-The following steps are needed to typeset cropmark:
-%
-%<*ja>
-ãã³ãã¯ç¨ç´ã®åã¤è§ã¨æ°´å¹³ï¼åç´æ¹åã®ä¸å¿ã表ãå°ã§ããï¼
-\pLaTeX 㨠\LuaTeX-jaã§ã¯ãã³ãã®åºåããµãã¼ããã¦ããï¼
-ãã³ããåºåããããã«ã¯ä»¥ä¸ã®æé ãå¿
è¦ã§ããï¼
-%
-
-\begin{enumerate}
-%<*en>
-\item First, define the banner which will be printed at the upper left
- of the paper. This is done by assigning a token list to
- \verb+\@bannertoken+.
-
-For example, the following sets banner as `\texttt{filename (YYYY-MM-DD hh:mm)}':
-%
%<*ja>
-\item ã¾ãï¼ç¨ç´ã®å·¦ä¸ã«å°å·ãããããã¼ãå®ç¾©ããï¼ãã㯠\verb+\@bannertoken+
- ã«ãã¼ã¯ã³ãªã¹ããä¸ãããã¨ã§ãªãããï¼
-
-ä¾ãã°ï¼ä»¥ä¸ã¯ããã¼ã¨ãã¦`\texttt{filename (YYYY-MM-DD hh:mm)}'ãè¨å®ãã:
-%
-
+\paragraph{æ°å¼ã«ãããæåï¼\pTeX ã¨ã®éã}
+\textbf{ALchar}ã®ãã¼ã¹ã©ã¤ã³ãè£æ£ãã \Param{yalbaselineshift} ãã©ã¡ã¼ã¿ã¯
+ã»ã¼\pTeX ã«ããã \verb+\ybaselineshift+ ã«å¯¾å¿ãã¦ãããã®ã§ãããï¼
+æ°å¼ä¸ã®æåã¯ç°ãªã£ã¦ããã®ã§æ³¨æãå¿
è¦ã§ããï¼
+ä¾ãã°ï¼è¡¨\ref{tab:math_bsa}ã®ããã«ï¼æ°å¼ä¸ã«æ示çã«ç¾ãã \verb+\hbox+ ã¯ï¼
+\begin{itemize}
+ \item \pTeX ã§ã¯ï¼ããã¯ã¹å
¨ä½ã \verb+\ybaselineshift+ ã ã¨ã·ãããããã®ã§ï¼
+ 表\ref{tab:math_bsa}ä¸ã®``ã''ã®ããã«ï¼ããã¯ã¹ä¸ã®åææåã¯
+ \verb+\ybaselineshift+ã ãã·ããããï¼ä¸æ¹ï¼``for all''ã®ããã«ï¼
+ ããã¯ã¹å
ã®æ¬§ææåã¯2éã«ã·ããããããã¨ã«ãªãï¼
+ \item ä¸æ¹ï¼\LuaTeX-jaã§ã¯ãã®ãããªãã¨ã¯ããããï¼
+ æ°å¼ä¸ã«æ示çã«ç¾ãã \verb+\hbox+ ã¯ã·ããããªãï¼ãã®ããï¼
+ 表\ref{tab:math_bsa}ä¸ã®``ã''ã``for all''ãï¼ããããæ¬æä¸ã«
+ æ¸ãããã¨ãã¨åãä¸ä¸ä½ç½®ã«çµã¾ããï¼
+\end{itemize}
+\begin{table}
+\small\centering
+\caption{æ°å¼é¢ä¿ã®ãã¼ã¹ã©ã¤ã³è£æ£($\Param{yalbaselineshift}=10\,\textrm{pt}$)}
+\label{tab:math_bsa}
+\newdimen\origbaselineskip
+\origbaselineskip=\baselineskip
+\begin{tabular}{lp{30\zw}}
+\toprule
+\emph{å
¥å}&\vspace*{-\origbaselineskip}
\begin{verbatim}
-\makeatletter
-
-\hour\time \divide\hour by 60 \@tempcnta\hour \multiply\@tempcnta 60\relax
-\minute\time \advance\minute-\@tempcnta
-\@bannertoken{%
- \jobname\space(\number\year-\two@digits\month-\two@digits\day
- \space\two@digits\hour:\two@digits\minute)}%
-\end{verbatim}
-
-\item ...
-\end{enumerate}
-
+æ°å¼abc: $ãa\hbox{ã}$, $\int_0^x t\,dt=x^2\!/2$,
+$\Phi\vdash F(x)\ \hbox{for all}\ x\in A$
+\end{verbatim}\\
+\noalign{\vskip-\origbaselineskip}
+\midrule
+\emph{\pTeX}&
+{\ltjsetparameter{yalbaselineshift=10pt}%
+æ°å¼abc: $ãa\lower10pt\hbox{ã}$, $\int_0^x t\,dt=x^2\!/2$,
+$\Phi\vdash F(x)\ \lower10pt\hbox{for all}\ x\in A$
+\par}\\
+\midrule
+\emph{\LuaTeX-ja}&
+{\ltjsetparameter{yalbaselineshift=10pt}%
+æ°å¼abc: $ãa\hbox{ã}$, $\int_0^x t\,dt=x^2\!/2$,
+$\Phi\vdash F(x)\ \hbox{for all}\ x\in A$
+\par}\\
+\noalign{\vskip-\origbaselineskip}
+\bottomrule
+\end{tabular}
+\end{table}
+%
%\part{Reference}
%\part{ãªãã¡ã¬ã³ã¹}
\label{part-ref}
%\section{Font Metric and Japanese Font}
%\section{ãã©ã³ãã¡ããªãã¯ã¨åæãã©ã³ã}
-%\subsection{\texttt{\char92jfont} primitive}
-%\subsection{\texttt{\char92jfont}ããªããã£ã}
+%\subsection{\texttt{\char92jfont}}
+%\subsection{\texttt{\char92jfont} å½ä»¤}
\label{ssec-jfont}
%<*en>
To load a font as a Japanese font, you must use the
-\verb+\jfont+ primitive instead of~\verb+\font+, while
+\verb+\jfont+ instead of~\verb+\font+, while
\verb+\jfont+ admits the same syntax used in~\verb+\font+.
\LuaTeX-ja automatically loads \Pkg{luaotfload} package,
so TrueType/OpenType fonts with features can be used for Japanese fonts:
%
%<*ja>
-ãã©ã³ããåæãã©ã³ãã¨ãã¦èªã¿è¾¼ãããã«ã¯ï¼\verb+\jfont+ ããªããã£ãã
+ãã©ã³ããåæãã©ã³ãã¨ãã¦èªã¿è¾¼ãããã«ã¯ï¼\verb+\jfont+ ã
\verb+\font+ ããªããã£ãã®ä»£ããã«ç¨ããï¼
-\verb+\jfont+ ããªããã£ãã®ææ³ã¯ \verb+\font+ ã¨åãã§ããï¼
+\verb+\jfont+ ã®ææ³ã¯ \verb+\font+ ã¨åãã§ããï¼
\LuaTeX-jaã¯\Pkg{luaotfload}ããã±ã¼ã¸ãèªåçã«èªã¿è¾¼ãã®ã§ï¼
TrueType/OpenTypeãã©ã³ãã«featureãæå®ãããã®ãåæãã©ã³ãã¨ãã¦ç¨ãã
ãã¨ãã§ããï¼
%
-\begin{LTXexample}
-\jfont\tradgt={file:ipaexg.ttf:script=latn;%
+\begin{LTXexample}[width=0.3\textwidth]
+\jfont\tradgt={file:KozMinPr6N-Regular.otf:script=latn;%
+trad;-kern;jfm=ujis} at 14pt
-\tradgt{}å½ï¼ä½ï¼å»ï¼åº
+\tradgt å½ï¼ä½ï¼å»ï¼åº
\end{LTXexample}
%<*en>
@@ -1755,13 +2138,13 @@ causes a error. We denote control sequences which are defined in
As noted in Introduction, a JFM has measurements of characters and
glues/kerns that are automatically inserted for Japanese
typesetting. The structure of JFM will be described in the next
-subsection. At the calling of \verb+\jfont+ primitive, you must specify
+subsection. At the calling of \verb+\jfont+, you must specify
which JFM will be used for this font by the following keys:
%
%<*ja>
ãã¯ããã«ãã®ç¯ã§è¿°ã¹ãããã«ï¼JFMã¯æåã¨åæçµçã§èªåçã«æ¿å
¥ããã
ã°ã«ã¼ï¼ã«ã¼ã³ã®å¯¸æ³æ
å ±ãæã£ã¦ããï¼JFMã®æ§é ã¯æ¬¡ã®å°ç¯ã§è¿°ã¹ãï¼
-\verb+\jfont+ ããªããã£ãã®å¼ã³åºãã®éã«ã¯ï¼ã©ã®JFMãç¨ããã®ãã以ä¸ã®ãã¼ã§
+\verb+\jfont+ å½ä»¤ã®å¼ã³åºãã®éã«ã¯ï¼ã©ã®JFMãç¨ããã®ãã以ä¸ã®ãã¼ã§
æå®ããå¿
è¦ãããï¼
%
@@ -1775,9 +2158,7 @@ The following JFMs are shipped with \LuaTeX-ja:
%
%<*ja>
JFMã®ååãæå®ããï¼ãã以åã«æå®ãããJFMãèªã¿è¾¼ã¾ãã¦ããªããã°ï¼
-\texttt{jfm-.lua}ãèªã¿è¾¼ãï¼
-
-以ä¸ã®JFMã\LuaTeX-jaã«ã¯å梱ããã¦ããï¼
+\texttt{jfm-.lua}ãèªã¿è¾¼ãï¼ä»¥ä¸ã®JFMã\LuaTeX-jaã«ã¯å梱ããã¦ããï¼
%
\begin{description}
%<*en>
@@ -1787,7 +2168,7 @@ JFMã®ååãæå®ããï¼ãã以åã«æå®ãããJFMãèªã¿è¾¼ã¾
%
%<*ja>
\item[\tt jfm-ujis.lua] \LuaTeX-jaã®æ¨æºJFMã§ããï¼ãã®JFMã¯\upTeX ã§
- ç¨ããããUTF/OTFããã±ã¼ã¸ç¨ã®ã¡ããªãã¯ã§ãã \verb+upnmlminr-h.tfm+ ã
+ ç¨ããããUTF/OTFããã±ã¼ã¸ç¨ã®åæç¨TFMã§ãã \verb+upnmlminr-h.tfm+ ã
å
ã«ãã¦ããï¼\Pkg{luatexja-otf}ããã±ã¼ã¸ã使ãã¨ãã¯ãã®JFMãæå®ããã¹ãã§ããï¼
%
%<*en>
@@ -1811,13 +2192,35 @@ JFMã®ååãæå®ããï¼ãã以åã«æå®ãããJFMãèªã¿è¾¼ã¾
shown in Table~\ref{tab-difjfm}.
%
%<*ja>
-\item[\tt jfm-min.lua] \pTeX ã«å梱ããã¦ããããã©ã«ãã®åæãã©ã³ãã¡ããªãã¯
+\item[\tt jfm-min.lua] \pTeX ã«å梱ããã¦ããããã©ã«ãã®åæç¨TFM
ã§ãã \verb+min10.tfm+ ã«ç¸å½ããJFMã§ããï¼ãã®JFMã¨ä»ã®2ã¤ã®JFMã®éã«ã¯
- 表 \ref{tab-difjfm} ã«ç¤ºããããªç¹çãã¹ãéããããï¼
+ 表\ref{tab-difjfm}ã«ç¤ºããããªç¹çãã¹ãéããããï¼
%
\end{description}
-\item[jfmvar=] Sometimes there is a need that ...
+%<*en>
+\item[jfmvar=] Sometimes there is a need that \ldots.
+%
+%<*ja>
+\item[jfmvar=] æ¨æºã§ã¯ï¼JFMã¨ãµã¤ãºãåãã§ï¼
+ å®ãã©ã³ãã ããç°ãªã2ã¤ã®åæãã©ã³ãã¯ãåºå¥ãããªããï¼ä¾ãã°
+ä¸ã®ä¾ã«ããã¦ï¼æåã®ãï¼ãã¨ãããã®å®ãã©ã³ãã¯ç°ãªããï¼
+JFMããµã¤ãºãåããªã®ã§ï¼æ®éã«ãï¼ããã¨å
¥åããæã¨åãããã«åè§ç©ºãã¨ãªãï¼
+
+ãããï¼æã«ã¯â¦â¦
+
+%
+\begin{LTXexample}[width=0.3\textwidth]
+\ltjsetparameter{differentjfm=both}
+\jfont\F=file:KozMinPr6N-Regular.otf:jfm=ujis
+\jfont\G=file:KozGoPr6N-Medium.otf:jfm=ujis
+\jfont\H=file:KozGoPr6N-Medium.otf:jfm=ujis;jfmvar=hoge
+
+\F ï¼{\G ãã}ï¼ % halfwidth space
+ ï¼{\H ãã}ï¼ % fullwidth space
+
+\ltjsetparameter{differentjfm=paverage}
+\end{LTXexample}
\end{list}
\begin{table}[t]
@@ -1825,14 +2228,14 @@ JFMã®ååãæå®ããï¼ãã以åã«æå®ãããJFMãèªã¿è¾¼ã¾
%\caption{\LuaTeX-ja ã«å梱ããã¦ãã JFM ã®éã}
\label{tab-difjfm}
\ltjsetparameter{jacharrange={+3}}
-\begin{center}
-\def\r#1{{\jfont\g=psft:Ryumin-Light:jfm=#1 at 14.43324pt \g
+\centering\small
+\def\r#1{{\jfont\g=file:KozMinPr6N-Regular.otf:jfm=#1 at 14.43324pt \g
\setbox0=\vtop{\hsize=7\zw\noindent âââââââ
ããæ¥ã¢ã¢ã¡ãããã使ãã§è¿·åã«ãªã£ã¦æ³£ãã¾ããï¼}\copy0
\vrule height 0pt depth \dp0}}
-\def\s#1{{\jfont\g=psft:Ryumin-Light:jfm=#1 at 14.43324pt \g
+\def\s#1{{\jfont\g=file:KozMinPr6N-Regular.otf:jfm=#1 at 14.43324pt \g
\setbox0=\vtop{\hsize=7\zw\noindent ã¡ãã£ã¨ï¼ä½}\copy0}}
-\def\t#1{{\jfont\g=psft:Ryumin-Light:jfm=#1 at 19.24432pt \g
+\def\t#1{{\jfont\g=file:KozMinPr6N-Regular.otf:jfm=#1 at 19.24432pt \g
\setbox0=\hbox{æ¼¢}%
\vrule width 0.4pt height\ht0 depth\dp0\kern-.2pt\copy0
\kern-\wd0\vrule width\wd0height .2pt depth .2pt
@@ -1843,8 +2246,8 @@ JFMã®ååãæå®ããï¼ãã以åã«æå®ãããJFMãèªã¿è¾¼ã¾
\toprule
&\tt jfm-ujis.lua&\tt jfm-jis.lua&\tt jfm-min.lua\\
\midrule
-%Example~1\footnotemark
-%ä¾1\footnotemark
+%Example~1\cite{min10}
+%ä¾1\cite{min10}
&\r{ujis}&\r{jis}&\r{min}\\
%Example~2
%ä¾2
@@ -1852,11 +2255,8 @@ JFMã®ååãæå®ããï¼ãã以åã«æå®ãããJFMãèªã¿è¾¼ã¾
Bounding Box&\t{ujis}&\t{jis}&\t{min}\\
\bottomrule
\end{tabular}
-\end{center}
\ltjsetparameter{jacharrange={-3}}
\end{table}
-\footnotetext{from: ä¹é¨å³å·±, min10ãã©ã³ãã«ã¤ãã¦.
-\texttt{http://argent.shinshu-u.ac.jp/\~{\ }otobe/tex/files/min10.pdf}.}
%\paragraph{Note: kern feature}
%\paragraph{注æï¼kern feature}
@@ -1876,70 +2276,166 @@ and it from JFM are present.
JFMã«åºã¥ãã°ã«ã¼ï¼ã«ã¼ã³ãæ¿å
¥ãããå ´åã«ã¯2æåéã®æå³ããªãã¹ãã¼ã¹ã®åå ã¨
ãªãï¼
%
-
\begin{itemize}
%<*en>
\item You should specify \texttt{-kern} in
- \verb+jfont+ primitive, when you want to use other font features,
+ \verb+jfont+ when you want to use other font features,
such as \texttt{script=...}\,.
%
%<*ja>
\item \texttt{script=...}ã¨ãã£ãfeatureã使ãããå ´åã«ã¯ï¼\verb+\jfont+
- ããªããã£ãã«\texttt{-kern}ãæå®ããã¹ãã§ããï¼
+ ã«\texttt{-kern}ãæå®ããã¹ãã§ããï¼
%
%<*en>
\item If you want to use Japanese fonts in proportional width, and use
- information from this font, use \texttt{jfm-prop.lua} for its JFM, and ...
+ information from this font, use \texttt{jfm-prop.lua} for its JFM, and\,\ldots.
%
%<*ja>
\item ãããããã¼ã·ã§ãã«å¹
ã®åæãã©ã³ãããã®ãã©ã³ãã®æ
å ±ã«åºã¥ãã¦ä½¿ããã
ãªãã°ï¼\texttt{jfm-prop.lua}ãJFMã¨ãã¦æå®ãï¼â¦â¦
%
-
TODO: kanjiskip?
\end{itemize}
+%<*ja>
+\paragraph{\texttt{extend}ã¨\texttt{slant}}
+OpenType font featureã¨è¦ããä¸åããããªå½¢å¼ã§æå®ã§ãããã®ã«ï¼
+\begin{description}
+\item[\texttt{extend=}] 横æ¹åã«åæ¡å¤§ããï¼
+\item[\texttt{slant=}] ã«æå®ãããå²åã ãå¾ããï¼
+\end{description}
+ã®2ã¤ãããï¼
+\texttt{extend}ã\texttt{slant}ãæå®ããå ´åã¯ï¼ããã«å¿ããJFMãæå®ãã¹ãã§ãã%
+\footnote{\LuaTeX-jaã§ã¯ï¼ãããã«å¯¾ããJFMãç¹ã«æä¾ãããã¨ã¯ããªãäºå®ã§ããï¼}ï¼
+ä¾ãã°ï¼æ¬¡ã®ä¾ã§ã¯ç¡çããé常ã®JFMã使ã£ã¦ããããã«ï¼æåééãã¤ã¿ãªãã¯è£æ£éã
+æ£ãããªãï¼
+%
+%<*en>
+\paragraph{\texttt{extend} and \texttt{slant}}
+The following setting can be specified as OpenType font features:
+\begin{description}
+\item[\texttt{extend=}] expand the font horizontally by .
+\item[\texttt{slant=}] slant the font.
+\end{description}
+Note that \LuaTeX-ja doesn't adjust JFMs by these \texttt{extend} and \texttt{slant}
+settings; you have to write new JFMs on purpose.
+For example, the following example uses the standard JFM \texttt{jfm-ujis.lua}, hence
+letter-spacing and the width of italic correction are not correct:
+%
+\begin{LTXexample}[width=0.3\textwidth]
+\jfont\E=file:KozMinPr6N-Regular.otf:extend=1.5;jfm=ujis
+\E ããããã
+
+\jfont\S=file:KozMinPr6N-Regular.otf:slant=1;jfm=ujis
+\S ããã\/ABC
+\end{LTXexample}
+
+
%\subsection{Prefix \texttt{psft}}
-%\subsection{\texttt{psft} ãã¬ãã£ãã¯ã¹}
+%\subsection{\texttt{psft}ããªãã£ãã¯ã¹}
\label{ssec-psft}
%<*en>
-Besides \texttt{file:}\ and \texttt{name:}\ prefixes, one can use \texttt{psft:}\
-prefix in \verb+\jfont+ (and~\verb+\font+) primitive,
+Besides `\texttt{file:}'\ and `\texttt{name:}'\ prefixes, one can use `\texttt{psft:}'\
+prefix in \verb+\jfont+ (and~\verb+\font+),
to specify a `name-only' Japanese font which
will not be embedded to PDF. Typical use of this prefix is to specify
the `standard' Japanese fonts, namely, `Ryumin-Light' and
-`GothicBBB-Medium'. For kerning or other information, that of Kozuka
-Mincho Pr6N Regular (this is a font by Adobe Inc., and included in
-Japanese Font Packs for Adobe Reader) will be used.
+`GothicBBB-Medium'.
+
+\emph{OpenType font features, such as `{\tt +jp90}',
+have no meaning in `name-only' fonts using this `{\tt psft:}'\ prefix.
+This is because we can't expect what fonts are actually used by the PDF reader.}
+Note that \texttt{extend}~and~\texttt{slant} settings (see~above) are supported
+with \texttt{psft} prefix, because they are only simple linear transformations.
%
%<*ja>
-\texttt{file:}ã¨\texttt{name:}ã®ãã¬ãã£ãã¯ã¹ã«å ãã¦ï¼
-\verb+\jfont+ ããªããã£ãï¼ã¨ \verb+\font+ ããªããã£ãï¼ã§ã¯
-\texttt{psft:}ãã¬ãã£ãã¯ã¹ãç¨ãããã¨ãã§ããï¼
-ãã®ãã¬ãã£ãã¯ã¹ãç¨ãããã¨ã§ï¼PDFã«ã¯åãè¾¼ã¾ããªããååã ãã®ã
-åæãã©ã³ããæå®ãããã¨ãã§ããï¼å
¸åçãªä½¿ãæ¹ã¯ãæ¨æºçãªãåæãã©ã³ãï¼
-ã¤ã¾ã`Ryumin-Light'ã¨`GothicBBB-Medium'ãæå®ãããã¨ã§ããï¼
-ãã®å ´åï¼ã«ã¼ãã³ã°ä»ã®æ
å ±ã¯å°å¡ææ Pr6N Regular
-ï¼Adobe社ã«ãããã©ã³ãã§ï¼Adobe Readerã®æ¥æ¬èªãã©ã³ãããã¯ã«å«ã¾ãã¦ããï¼
-ãç¨ããããï¼
+\texttt{file:} 㨠\texttt{name:} ã®ããªãã£ãã¯ã¹ã«å ãã¦ï¼
+\verb+\jfont+ï¼ã¨ \verb+\font+ ããªããã£ãï¼ã§ã¯
+\texttt{psft:}ããªãã£ãã¯ã¹ãç¨ãããã¨ãã§ããï¼
+ãã®ããªãã£ãã¯ã¹ãç¨ãããã¨ã§ï¼PDFã«ã¯åãè¾¼ã¾ããªããååã ãã®ã
+åæãã©ã³ããæå®ãããã¨ãã§ããï¼ãæ¨æºçãªãåæãã©ã³ãï¼
+ã¤ã¾ã`Ryumin-Light'ã¨`GothicBBB-Medium'ã®æå®ã§ãã®ããªãã£ãã¯ã¹ã使ãããï¼
+
+\emph{\texttt{psft}ããªãã£ãã¯ã¹ã®ä¸ã§ã¯
+\texttt{+jp90} ãªã©ã®OpenType font featureã®å¹åã¯ãªãï¼
+éåè¾¼ãã©ã³ããPDFã«ä½¿ç¨ããã¨ï¼å®éã«ã©ã®ãããªãã©ã³ãã
+表示ã«ç¨ãããããäºæ¸¬ã§ããªãããã§ããï¼}
+\texttt{extend}ã¨\texttt{slant}æå®ã¯åãªãå¤å½¢ã®ãã
+\texttt{psft}ããªãã£ãã¯ã¹ã§ã使ç¨å¯è½ã§ããï¼
%
-\paragraph{\texttt{cid} key}
+%\paragraph{\texttt{cid} key}
+%\paragraph{\texttt{cid}ãã¼}
\label{para-cid}
- \texttt{cid} key, ...
-
+%<*en>
+The default font defined by using \texttt{psft:} prefix is for Japanese typesetting;
+it is Adobe-Japan1-6 CID-keyed font.
+One can specify \texttt{cid} key to use other CID-keyed non-embedded fonts
+for Chinese or Korean typesetting.
+%
+%<*ja>
+æ¨æºã§\texttt{psft:}ããªãã£ãã¯ã¹ã§å®ç¾©ããããã©ã³ãã¯æ¥æ¬èªç¨ã®ãã®ã§
+ããï¼Adobe-Japan1-6ã®CIDã«å¯¾å¿ãããã®ã¨ãªãï¼ãããï¼\LuaTeX-jaã¯ä¸å½èª
+ã®çµçã«ãå¨åãçºæ®ãããã¨ãåããï¼æ¥æ¬èªãã©ã³ãã§ãªãéåè¾¼ãã©ã³ã
+ã®å¯¾å¿ãå¿
è¦ã¨ãªã£ãï¼ãã®ããã«è¿½å ãããã®ã\texttt{cid}ãã¼ã§ããï¼
-%\subsection{Structure of JFM file}
-%\subsection{JFMãã¡ã¤ã«ã®æ§é }
+\texttt{cid}ãã¼ã«å¤ãæå®ããã¨ï¼ãã®CIDãæã£ãéåè¾¼ãã©ã³ããå®ç¾©ãããã¨ãã§ããï¼
+%
+\begin{lstlisting}[numbers=left]
+\jfont\testJ={psft:Ryumin-Light:cid=Adobe-Japan1-6;jfm=jis} % Japanese
+\jfont\testD={psft:Ryumin-Light:jfm=jis} % default value is Adobe-Japan1-6
+\jfont\testC={psft:AdobeMingStd-Light:cid=Adobe-CNS1-6;jfm=jis} % Traditional Chinese
+\jfont\testG={psft:SimSun:cid=Adobe-GB1-5;jfm=jis} % Simplified Chinese
+\jfont\testK={psft:Batang:cid=Adobe-Korea1-2;jfm=jis} % Korean
+\end{lstlisting}
+%<*en>
+Note that the code above specifies \texttt{jfm-jis.lua}, which is for Japanese fonts,
+as JFM for Chinese and Korean fonts.
+%
+%<*ja>
+ä¸ã®ã³ã¼ãã§ã¯ä¸å½èªã»éå½èªç¨ãã©ã³ãã«å¯¾ãã¦ãJFMã«
+æ¥æ¬èªç¨ã®\texttt{jfm-jis.lua}ãæå®ãã¦ããã®ã§æ³¨æããããï¼
+%
%<*en>
-A JFM file is a Lua script which has only one function call:
+At present, \LuaTeX-ja supports only 4 values written in the sample code above.
+Specifying other values, e.g.,
+%
+%<*ja>
+ä»ã®ã¨ããï¼\LuaTeX-jaã¯ä¸ã®ãµã³ãã«ã³ã¼ãä¸ã«æ¸ãã4ã¤ã®å¤ãããµãã¼ããã¦ããªãï¼
+%
+\begin{lstlisting}
+\jfont\test={psft:Ryumin-Light:cid=Adobe-Japan2;jfm=jis}
+\end{lstlisting}
+%<*en>
+produces the following error:
%
%<*ja>
-JFMãã¡ã¤ã«ã¯ãã ä¸ã¤ã®é¢æ°å¼ã³åºããå«ãLuaã¹ã¯ãªããã§ããï¼
+ã®ããã«ããã以å¤ã®å¤ãæå®ããã¨ï¼ã¨ã©ã¼ãçºçããï¼
%
+\begin{lstlisting}[numbers=left]
+! Package luatexja Error: bad cid key `Adobe-Japan2'.
+
+See the luatexja package documentation for explanation.
+Type H for immediate help.
+
+ \par
+l.78
+
+? h
+I couldn't find any non-embedded font information for the CID
+`Adobe-Japan2'. For now, I'll use `Adobe-Japan1-6'.
+Please contact the LuaTeX-ja project team.
+?
+\end{lstlisting}
+
+%\subsection{Structure of JFM file}
+%\subsection{JFMãã¡ã¤ã«ã®æ§é }
+
+%A JFM file is a Lua script which has only one function call:
+%JFMãã¡ã¤ã«ã¯ãã ä¸ã¤ã®é¢æ°å¼ã³åºããå«ãLuaã¹ã¯ãªããã§ããï¼
\begin{verbatim}
luatexja.jfont.define_jfm { ... }
\end{verbatim}
@@ -1963,7 +2459,7 @@ floating-point numbers in design-size unit.
%ï¼å¿
é ï¼
%The direction of JFM. At the present, only \texttt{'yoko'} is supported.
-%JFMã®æ¸åæ¹åï¼ç¾æç¹ã§ã¯\texttt{'yoko'}ã®ã¿ããµãã¼ããããï¼
+%JFMã®æ¸åæ¹åï¼ç¾æç¹ã§ã¯æ¨ªæ¸ã(\texttt{'yoko'})ã®ã¿ããµãã¼ããããï¼
\item[zw=]
%(required)
@@ -1976,7 +2472,7 @@ floating-point numbers in design-size unit.
%(required)
%ï¼å¿
é ï¼
-%The amount of the length of the `full-height' (height + depth).
+%The amount of the `full-height' (height + depth).
%ãå
¨è§é«ãã(height + depth)ã®é·ãï¼
\item[kanjiskip=\{, , \}]
@@ -1984,16 +2480,16 @@ floating-point numbers in design-size unit.
%ï¼ä»»æï¼
%<*en>
-This field specifies the `ideal' amount of \Param{kanjiskip}. As noted
+This field specifies the `ideal' amount of \Param{\hyperlink{fld:kanjiskip}{kanjiskip}}. As noted
in Subsection~\ref{subs-kskip}, if the parameter
- \Param{kanjiskip} is \verb+\maxdimen+, the value specified
+ \Param{\hyperlink{fld:kanjiskip}{kanjiskip}} is \verb+\maxdimen+, the value specified
in this field is actually used (if this field is not specified in
JFM, it is regarded as 0\,pt). Note that and
fields are in design-size unit too.
%
%<*ja>
-ãçæ³çãªã\Param{kanjiskip}ã®éãæå®ããï¼\ref{subs-kskip} ç¯ã§è¿°ã¹ãããã«ï¼
-ãã\Param{kanjiskip}ã \verb+\maxdimen+ ã®å¤ãªãã°ï¼ãã®ãã£ã¼ã«ãã§æå®ããã
+ãçæ³çãªã\Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ã®éãæå®ããï¼\ref{subs-kskip}ç¯ã§è¿°ã¹ãããã«ï¼
+ãã\Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ã \verb+\maxdimen+ ã®å¤ãªãã°ï¼ãã®ãã£ã¼ã«ãã§æå®ããã
å¤ãå®éã«ã¯ç¨ããããï¼ãããã®ãã£ã¼ã«ããJFMã§æå®ããã¦ããªããã°ï¼
0\,ptã§ãããã®ã¨ãã¦æ±ãããï¼ï¼ã¨ã®ãã£ã¼ã«ããdesign-size
ãåä½ã§ãããã¨ã«æ³¨æããï¼
@@ -2004,16 +2500,17 @@ This field specifies the `ideal' amount of \Param{kanjiskip}. As noted
%ï¼ä»»æï¼
%<*en>
-Like the \Param{kanjiskip} field, this field specifies the `ideal'
- amount of \Param{xkanjiskip}.
+Like the \texttt{kanjiskip} field, this field specifies the `ideal'
+ amount of \Param{\hyperlink{fld:xks}{xkanjiskip}}.
%
%<*ja>
-\Param{kanjiskip}ãã£ã¼ã«ãã¨åæ§ã«ï¼\Param{xkanjiskip}ã®ãçæ³çãªãéã
+\texttt{kanjiskip}ãã£ã¼ã«ãã¨åæ§ã«ï¼\Param{\hyperlink{fld:xks}{xkanjiskip}}ã®ãçæ³çãªãéã
æå®ããï¼
%
\end{list}
%<*en>
+\paragraph{Character classes}
Besides from above fields, a JFM file have several sub-tables those
indices are natural numbers. The table indexed by~$i\in\omega$ stores
information of `character class'~$i$. At least, the character class~0 is
@@ -2022,6 +2519,7 @@ always present, so each JFM file must have a sub-table whose index is
the following fields:
%
%<*ja>
+\paragraph{æåã¯ã©ã¹}
ä¸è¨ã®ãã£ã¼ã«ãã«å ãã¦ï¼JFMãã¡ã¤ã«ã¯ãã®ã¤ã³ããã¯ã¹ãèªç¶æ°ã§ããããã¤ãã®
ãµããã¼ãã«ãæã¤ï¼ã¤ã³ããã¯ã¹ã$i\in\omega$ã§ãããã¼ãã«ã¯ãæåã¯ã©ã¹ã$i$ã®
æ
å ±ãæ ¼ç´ããï¼å°ãªãã¨ãï¼æåã¯ã©ã¹0ã¯å¸¸ã«åå¨ããã®ã§ï¼JFMãã¡ã¤ã«ã¯ã¤ã³ããã¯ã¹
@@ -2036,22 +2534,28 @@ the following fields:
%<*en>
This field is a list of characters which are in this character
- type~$i$. This field is not required if $i=0$, since all
- \textbf{JAchar} which are not in any character class other
+ type~$i$. This field is optional if $i=0$, since all
+ \textbf{JAchar} which do not belong any character classes other
than 0 are in the character class 0
(hence, the character class~0 contains most of
- \textbf{JAchar}s). In the list, a character can be
- specified by its code number, or by the character itself
- (as a string of length~1). Moreover, there are `imaginary
- characters' which specified in the list. We will describe these later.
+ \textbf{JAchar}s). In the list, character(s) can be specified in the following form:
+\begin{itemize}
+\item a Unicode code point
+\item the character itself (as a Lua string, like \hbox{\ltjsetparameter{autoxspacing=false}\verb+'ã'+})
+\item a string like \hbox{\ltjsetparameter{autoxspacing=false}\verb+'ã*'+} (the character followed by an asterisk)
+\item several ``imaginary'' characters (We will describe these later.)
+\end{itemize}
%
%<*ja>
ãã®ãã£ã¼ã«ãã¯æåã¯ã©ã¹$i$ã«å±ããæåã®ãªã¹ãã§ããï¼ãã®ãã£ã¼ã«ãã¯$i=0$ã®
-å ´åã«ã¯å¿
é ã§ã¯ãªãï¼ãªããªãã°ï¼æåã¯ã©ã¹0ã«ã¯ï¼0以å¤ã®æåã¯ã©ã¹ã«å±ãããã®ã
-é¤ããå
¨ã¦ã®\textbf{JAchar}ãå±ããããã§ããï¼ãã£ã¦ï¼æåã¯ã©ã¹0ã¯ã»ã¨ãã©ã®
-\textbf{JAchar}ãå«ãï¼ï¼ãã®ãªã¹ãã§ã¯ï¼æåã¯ãã®æåã³ã¼ããç¨ãã¦ï¼ãããã¯
-æåããèªä½ï¼é·ã1ã®æååï¼ã«ãã£ã¦æå®ãããï¼ããã«ï¼ãã®ãªã¹ãã§æå®ããã
-ãä»®æ³çãªæåããåå¨ããï¼ãããã«ã¤ãã¦ã¯å¾ã«è¨ãï¼
+å ´åã«ã¯ä»»æã§ããï¼æåã¯ã©ã¹0ã«ã¯ï¼0以å¤ã®æåã¯ã©ã¹ã«å±ãããã®ã
+é¤ããå
¨ã¦ã®\textbf{JAchar}ãå±ããããï¼ï¼ãã®ãªã¹ãä¸ã§æåãæå®ããã«ã¯ï¼ä»¥ä¸ã®æ¹æ³ãããï¼
+\begin{itemize}
+\item Unicode ã«ãããã³ã¼ãçªå·
+\item ã\hbox{\ltjsetparameter{autoxspacing=false}\verb+'ã'+}ãã®ãããªï¼æåããèªä½
+\item ã\hbox{\ltjsetparameter{autoxspacing=false}\verb+'ã*'+}ãã®ãããªï¼æåããèªä½ã®å¾ã«ã¢ã¹ã¿ãªã¹ã¯ãã¤ãããã®
+\item ããã¤ãã®ãä»®æ³çãªæåãï¼å¾ã«èª¬æããï¼
+\end{itemize}
%
\item[width=, height=, depth=, italic=]
@@ -2068,7 +2572,7 @@ But there is one exception: if \texttt{'prop'} is specified in \texttt{width} fi
æåã¯ã©ã¹$i$ã«å±ããæåã®å¹
ï¼é«ãï¼æ·±ãï¼ã¤ã¿ãªãã¯è£æ£ã®éãæå®ããï¼
æåã¯ã©ã¹$i$ã«å±ããå
¨ã¦ã®æåã¯ï¼ãã®å¹
ï¼é«ãï¼æ·±ãããã®ãã£ã¼ã«ãã§æå®ãã
å¤ã§ãããã®ã¨ãã¦æ±ãããï¼
-ãããï¼ä¾å¤ãä¸ã¤ããï¼ãã\texttt{'prop'}ã\texttt{width}ãã£ã¼ã«ãã«
+ãããï¼ä¾å¤ãä¸ã¤ããï¼ãã \texttt{'prop'} ã \texttt{width} ãã£ã¼ã«ãã«
æå®ãããå ´åï¼æåã®å¹
ã¯ãã®ãå®éã®ãã°ãªãã®å¹
ã¨ãªãï¼
%
@@ -2089,7 +2593,7 @@ The effects of these 3~fields are indicated in Figure~\ref{fig-pos}.
\texttt{'right'}ã®ããããã§ããï¼ããããã3ã¤ã®ãã£ã¼ã«ãã®ãã¡ã®1ã¤ãçããã
å ´åï¼\texttt{left}ã¨\texttt{down}ã¯0ï¼\texttt{align}ãã£ã¼ã«ãã¯
\texttt{'left'}ã§ãããã®ã¨ãã¦æ±ãããï¼
-ããã3ã¤ã®ãã£ã¼ã«ãã®æå³ã«ã¤ãã¦ã¯å³ \ref{fig-pos} ã§èª¬æããï¼
+ããã3ã¤ã®ãã£ã¼ã«ãã®æå³ã«ã¤ãã¦ã¯å³\ref{fig-pos}ã§èª¬æããï¼
%
%<*en>
@@ -2105,6 +2609,7 @@ when the current character class is the class for opening delimiters'.
ä¾ãã°ï¼\texttt{align}ãã£ã¼ã«ãã\texttt{'right'}ã«æå®ãããã¨ã¯ï¼
æåã¯ã©ã¹ãéãæ¬å¼§é¡ã§ããã¨ãã«å®éå¿
è¦ã§ããï¼
%
+
\begin{figure}[!tb]
\begin{minipage}{0.4\textwidth}%
\begin{center}\unitlength=10pt\small
@@ -2198,19 +2703,119 @@ Furthermore, the glyph is shifted according to values of fields
%
\end{itemize}
\end{minipage}
-\caption{
+\medskip
+
+\caption{%
%The position of the `real' glyph.
%ãå®éã®ãã°ãªãã®ä½ç½®ï¼
}
\label{fig-pos}
\end{figure}
+\item[kern={\{[$j$]=, [$j'$]=\{, []\}, ...\}}]
+
+\item[glue={\{[$j$]=\{, , , [], []\}, ...\}}]
+%<*ja>
+æåã¯ã©ã¹$i$ã®æåã¨$j$ã®æåã®éã«æ¿å
¥ãããkernãglueã®éãæå®ããï¼
+
+ ã¯\texttt{luatexja-adjust.sty} ã«ããåªå
é ä½ä»ã
+ è¡é·èª¿æ´ï¼\ref{ssec-adj}ç¯ï¼ãæå¹ãªã¨ãã®ã¿æå³ãæã¤ï¼
+ãã®ãã£ã¼ã«ãã¯çç¥å¯è½ã§ããï¼è¡èª¿æ´å¦çã«ããããã®glueã®åªå
+ 度ã$-2$ãã$+2$ã®éã®æ´æ°ã§æå®ããï¼ã®çç¥æã®å¤
+ ã¯0ã§ããï¼ç¯å²å¤ã®å¤ãæå®ãããã¨ãã®åä½ã¯æªå®ç¾©ã§ããï¼ï¼
+
+ãçç¥å¯è½ãã£ã¼ã«ãã§ããï¼$-1$ãã$+1$ã®å®æ°å¤ãã¨ãï¼çç¥æã®å¤ã¯0ã§ããï¼
+\begin{itemize}
+\item $-1$ã¯ãã®ã°ã«ã¼ããåã®æåãç±æ¥ã§ãããã¨ã示ãï¼
+\item $+1$ã¯ãã®ã°ã«ã¼ããå¾ã®æåãç±æ¥ã§ãããã¨ã示ãï¼
+\item ãã以å¤ã®å¤ã¯ï¼ãåã®æåãç±æ¥ã®ã°ã«ã¼ã¨ãå¾ã®æåãç±æ¥ã®
+ã°ã«ã¼ãæ··åããã¦ãããã¨ã示ãï¼
+\end{itemize}
+ãªãï¼ãã®ãã£ã¼ã«ãã®å¤ã¯\Param{\hyperlink{fld:diffjfm}{differentjfm}}ã®å¤ã\texttt{pleft},~\texttt{pright},~\texttt{paverage}ã®å¤ã®ã¨ãã®ã¿å®éã«ç¨ããããï¼
+
+ä¾ãã°ï¼\cite{x4051}ã§ã¯ï¼å¥ç¹ã¨ä¸ç¹ã®éã«ã¯ï¼
+å¥ç¹ç±æ¥ã®äºå空ãã¨ä¸ç¹ç±æ¥ã®åå空ããæ¿å
¥ããããï¼ãã®å ´åã«ã¯
+\begin{itemize}
+\item ã«ã¯$0.5+0.25=0.75$ãæå®ããï¼
+\item ã«ã¯æ¬¡ã®å¤ãæå®ããï¼
+\[
+ -1\cdot \frac{0.5}{0.5+0.25} + 1 \cdot \frac{0.25}{0.5+0.25} = -\frac13
+\]
+\end{itemize}
+
+%
-\item[kern={\{[$j$]=, ...\}}]
+\item[end\_stretch=]
+\item[end\_shrink=]
+%<*ja>
+ãããã®ãã£ã¼ã«ãã¯çç¥å¯è½ã§ããï¼
+åªå
é ä½ä»ãè¡é·èª¿æ´ãæå¹ã§ããï¼ãã¤ç¾å¨ã®æåã¯ã©ã¹ã®æåãè¡
+ æ«ã«æ¥ãæã«ï¼è¡é·ãè©°ãã調æ´ã»ä¼¸ã°ã調æ´ã®ã
+ ãã«ãã®æåã¨è¡æ«ã®éã«æ¿å
¥å¯è½ãªã«ã¼ã³ã®å¤§ãããæå®ããï¼
+%
-\item[glue={\{[$j$]=\{, , \}, ...\}}]
\end{list}
+%<*ja>
+\paragraph{æåã¯ã©ã¹ã®æ±ºå®}
+æåã¯ã©ã¹ã®æ±ºå®ã¯å°ã
è¤éã§ããï¼ããã§ã¯ä¾ãç¨ãã¦èª¬æãããï¼
+
+
+ãã¨ãã°ï¼æ¬¡ã®å
容ãä¸é¨ã«å«ãã \texttt{jfm-test.lua} ãèãããï¼
+\begin{lstlisting}
+ [0] = {
+ chars = { 'æ¼¢', 'ã*' },
+ align = 'left', left = 0.0, down = 0.0,
+ width = 1.0, height = 0.88, depth = 0.12, italic=0.0,
+ },
+ [2000] = {
+ chars = { 'ã', 'ã*', 'ï¾' },
+ align = 'left', left = 0.0, down = 0.0,
+ width = 0.5, height = 0.88, depth = 0.12, italic=0.0,
+ },
+\end{lstlisting}
+å¥ç¹ãããã®å¹
ã¯äºåã§ããã®ã§
+\begin{LTXexample}
+\jfont\a=file:KozMinPr6N-Regular.otf:jfm=test;+vert
+\setbox0\hbox{\a ã\inhibitglue æ¼¢}
+\the\wd0
+\end{LTXexample}
+ã§ã¯ï¼å
¨è§äºå(15.0\,pt)ã¨ãªããªããã°ãããããï¼ä¸ã®å®è¡çµæã§ã¯20\,ptã¨ãªã£ã¦ããï¼
+ããã¯ä»¥ä¸ã®äºæ
ã«ãããã®ã§ããï¼
+\begin{enumerate}
+\item \verb+vert+ featureã«ãã£ã¦å¥ç¹ã縦æ¸ãç¨ã®ã°ãªãã¨ç½®ãæããï¼\Pkg{luaotfload} ã«ããå¦çï¼ï¼
+\item ããããã®ã°ãªãã¯ãæåã³ã¼ããU+F0000以éã¨ã¿ãªããã¦ãã
+ï¼å®éã«ãããã«ãªããã¯ï¼ãã©ã³ãã«ãã£ã¦ç°ãªãï¼ï¼
+\item ãã£ã¦ï¼æåã¯ã©ã¹0ã¨ã¿ãªãããããï¼çµæã¨ãã¦ãããã®å¹
ã¯å
¨è§ã ã¨èªèããã¦ãã¾ãï¼
+\end{enumerate}
+
+ä¸æ¹ï¼ã\texttt{'ã*'}ãã®ããã«ã¢ã¹ã¿ãªã¹ã¯ã¤ãã®æå®ãããã¨ï¼
+ç¶æ³ã¯ç°ãªã£ã¦ããï¼
+\begin{LTXexample}[width=0.3\textwidth]
+\jfont\a=file:KozMinPr6N-Regular.otf:jfm=test;+vert
+\a æ¼¢ã\inhibitglue æ¼¢
+\end{LTXexample}
+ããã§ï¼èªç¹ãããã®æåã¯ã©ã¹ã¯ï¼ä»¥ä¸ã®ããã«ãã¦æ±ºã¾ãï¼
+\begin{enumerate}
+\item ã¨ããããå¥ç¹ã®æã¨åãããã«ï¼\Pkg{luaotfload} ã«ãã£ã¦ç¸¦æ¸ãç¨èªç¹ã®ã°ãªãã«ç½®ãæããï¼
+\item ç½®æå¾ã®ã°ãªãã®ãæåã³ã¼ããã¯U+F0000以éã§ããï¼
+ãã®ã¾ã¾ã§ã¯æåã¯ã©ã¹ã¯0ã¨å¤å®ãããï¼
+\item ã¨ãããï¼JFMã«ã¯ã\texttt{'ã*'}ãæå®ãããã®ã§ï¼ç½®æåã®æ¨ªæ¸ãç¨èªç¹ã®ã°ãªããããï¼æåã³ã¼ãã¯U+3001ï¼ã«ãã£ã¦æåã¯ã©ã¹ãå¤å®ããï¼
+\item çµæã¨ãã¦ï¼ä¸ã®åºåä¾ä¸ã®èªç¹ã®æåã¯ã©ã¹ã¯2000ã¨ãªãï¼
+\end{enumerate}
+
+ãªãï¼ç½®æå¾ã®ã°ãªãã§å¤å®ããæåã¯ã©ã¹ã®å¤ã0ã§ãªããã°ï¼ãã¡ãããã®ã¾ã¾ä½ç¨ããï¼
+\begin{LTXexample}[width=0.3\textwidth]
+\jfont\a=file:KozMinPr6N-Regular.otf:jfm=test;+hwid
+\a æ¼¢ï¾ã²
+\end{LTXexample}
+ä¸ã®ä¾ã§ã¯ï¼
+\texttt{hwid} featureã«ããï¼ããããåè§ã®ãï¾ãã«ç½®ãæãããï¼
+æåã¯ã©ã¹ã¯ãããã®å±ãã0\emph{ã§ã¯ãªã}ï¼ãï¾ãã®å±ãã2000ã¨ãªãï¼
+%
+
+%\paragraph{ä»®æ³çãªæå}
+%\paragraph{Imaginary characters}
%<*en>
As described before, you can specify several `imaginary characters' in
\texttt{chars} field. The most of these characters are regarded as the
@@ -2224,14 +2829,11 @@ The following is the list of `imaginary characters':
ã¯ã©ã¹0ã®æåãã¨ãã¦æ±ããã¦ããæåã§ããï¼ãã®çµæã¨ãã¦\pTeX ããç´°ã
ãçµç調æ´ãã§ããããã«ãªã£ã¦ããï¼ä»¥ä¸ã§ãã®ä¸è¦§ãè¿°ã¹ãï¼
%
-\begin{list}{}{\def\makelabel{\ttfamily}\def\{{\char`\{}\def\}{\char`\}}\advance\leftmargin1\zw}
-\item['lineend']
-%An ending of a line.
-%è¡ã®çµç«¯ã表ãï¼
-\item['diffmet']
-%Used at a boundary between two \textbf{JAchar}s whose JFM or size is different.
-%JFMããµã¤ãºãç°ãªã2ã¤ã®\textbf{JAchar}ã®éã®å¢çã¨ãã¦ç¨ããããï¼
+\begin{list}{}{\def\makelabel{\ttfamily}\def\{{\char`\{}\def\}{\char`\}}\advance\leftmargin1\zw}
+%%\item['diffmet']
+%%Used at a boundary between two \textbf{JAchar}s whose JFM or size is different.
+%%JFMããµã¤ãºãç°ãªã2ã¤ã®\textbf{JAchar}ã®éã®å¢çã¨ãã¦ç¨ããããï¼
\item['boxbdd']
%The beginning/ending of a horizontal box, and the beginning of a noindented paragraph.
@@ -2242,7 +2844,7 @@ The following is the list of `imaginary characters':
%é常ã®ï¼\verb+\noindent+ ã§éå§ããã¦ããªãï¼æ®µè½ã®å
é ï¼
\item['jcharbdd']
-%A boundary between \textbf{JAchar} and anything else (such as \textbf{ALchar}, kern, glue, ...).
+%A boundary between \textbf{JAchar} and anything else (such as \textbf{ALchar}, kern, glue,\,\ldots).
%åææåã¨ããã®ä»ã®ãã®ãï¼æ¬§ææåï¼glueï¼kernçï¼ã¨ã®å¢çï¼
\item[$-1$]
@@ -2251,16 +2853,16 @@ The following is the list of `imaginary characters':
\end{list}
%\paragraph{Porting JFM from \pTeX}
-%\paragraph{\pTeX ç¨åæãã©ã³ãã¡ããªãã¯ã®ç§»æ¤}
+%\paragraph{\pTeX ç¨åæç¨TFMã®ç§»æ¤}
% ToDo: English version.
%<*en>
-...
+\ldots
%
%<*ja>
-以ä¸ã«ï¼\pTeX ç¨åæãã©ã³ãã¡ããªãã¯ã\LuaTeX-jaç¨ã«ç§»æ¤ããå ´åã®æ³¨æç¹ãæãã¦ããï¼
+以ä¸ã«ï¼\pTeX ç¨ã«ä½ãããåæç¨TFMã\LuaTeX-jaç¨ã«ç§»æ¤ããå ´åã®æ³¨æç¹ãæãã¦ããï¼
\begin{itemize}
\item å®éã«åºåãããåæãã©ã³ãã®ãµã¤ãºãdesign sizeã¨ãªãï¼
ãã®ããï¼ä¾ãã°$1\,\textrm{zw}$ãdesign sizeã®0.962216åã§ããJISãã©ã³
@@ -2286,22 +2888,26 @@ The following is the list of `imaginary characters':
ã¨ããã§ï¼\pTeX ã§ã¯é常ã®æ®µè½ã®å
é ã«JFMã°ã«ã¼ãæ®ãã¨ããä»æ§ãããã®ã§ï¼
段è½å
é ã®éãæ¬å¼§ã¯å
¨è§äºåä¸ããã«ãªãï¼å
¨è§ä¸ãããå®ç¾ãããã«
ã¯ï¼æ®µè½ã®æåã«æå㧠\verb+\inhibitglue+ ã追å ãããï¼ãããã¯
- \verb+\everypar+ ã®ããã¯ãè¡ãï¼ãããèªååããããããªãã£ãï¼
+ \ \verb+\everypar+ ã®ããã¯ãè¡ãï¼ãããèªååããããããªãã£ãï¼
ä¸æ¹ï¼\LuaTeX-jaã§ã¯ï¼\texttt{'parbdd'}ã«ãã£ã¦ï¼ãããJFMå´ã§èª¿æ´ã§ããã
ãã«ãªã£ãï¼ä¾ãã°ï¼\LuaTeX-jaå梱ã®JFMã®ããã«ï¼\texttt{'boxbdd'}ã¨åãæåã¯ã©ã¹ã«
\texttt{'parbdd'}ãå
¥ããã°å
¨è§ä¸ããã¨ãªãï¼
-\ltjsetparameter{jacharrange={+3}}
\begin{LTXexample}
-\jfont\g=psft:Ryumin-Light:jfm=test \g
+\jfont\g=file:KozMinPr6N-Regular.otf:jfm=test \g
\parindent1\zw\noindent{}âââââ
\par ãâââäºåä¸ãã
\par ãâââå
¨è§ä¸ãã
\par ãâââå
¨è§äºåä¸ãã
\end{LTXexample}
\end{itemize}
-\ltjsetparameter{jacharrange={-3}}
+
+ä½ãï¼\verb+\everypar+ ãå©ç¨ãã¦ããå ´åã«ã¯ãã®ä»çµã¿ã¯æ£ããåããªãï¼
+ãã®ãããªä¾ã¨ãã¦ã¯ç®æ¡æ¸ãä¸ã® \verb+\item+ ã§å§ã¾ã段è½ãããï¼\Pkg{ltjsclasses}ã§ã¯
+人工çã«ã\texttt{'parbdd'}ã®æå³ãæã¤ãwhatsitãã¼ããä½ããã¨ã«ãã£ã¦å¯¾å¦ãã¦ãã%
+\footnote{\texttt{no\_runtime/ltjsclasses.dtx} ãåç
§ããããï¼
+JFMå´ã§ä¸é¨ã®å¯¾å¦ãã§ãããã¨ã«ããï¼\Pkg{jsclasses}ã®ããã«ifæã®å¤å®ã¯ãã¦ããªãï¼}
%
%\subsection{Math Font Family}
@@ -2331,28 +2937,28 @@ you can set both \verb+\fam+ and \verb+\jfam+ to the same value.
%
%<*ja>
\LuaTeX-jaã®æ°å¼ä¸ã§ã®åæãã©ã³ãã®æ±ããåæ§ã§ããï¼
-表 \ref{tab-math} ã¯æ°å¼ãã©ã³ããã¡ããªã«å¯¾ãã \TeX ã®ããªããã£ãã¨å¯¾å¿ãã
+表\ref{tab-math}ã¯æ°å¼ãã©ã³ããã¡ããªã«å¯¾ãã \TeX ã®ããªããã£ãã¨å¯¾å¿ãã
ãã®ã示ãã¦ããï¼\verb+\fam+ 㨠\verb+\jfam+ ã®å¤ã®éã«ã¯é¢ä¿ã¯ãªãï¼
é©åãªè¨å®ã®ä¸ã§ã¯ \verb+\fam+ 㨠\verb+\jfam+ ã®ä¸¡æ¹ã«åãå¤ãè¨å®ãããã¨ãã§ããï¼
%
\begin{table}[!tb]
-%\caption{Primitives for Japanese math fonts.}
-%\caption{åææ°å¼ãã©ã³ãã«å¯¾ããããªããã£ãï¼}
+%\caption{Control sequences for Japanese math fonts}
+%\caption{åææ°å¼ãã©ã³ãã«å¯¾ããå½ä»¤}
\label{tab-math}
-\begin{center}\def\{{\char`\{}\def\}{\char`\}}
-\begin{tabular}{lll}
+\centering
+\def\{{\char`\{}\def\}{\char`\}}\small
+\begin{tabular}{ll}
\toprule
-%&Japanese fonts&alphabetic fonts\\
-%&åæãã©ã³ã&欧æãã©ã³ã\\
+%\bf Japanese fonts&\bf alphabetic fonts\\
+%\bf åæãã©ã³ã&\bf 欧æãã©ã³ã\\
\midrule
-font family&\verb+\jfam+${}\in [0,256)$&\verb+\fam+\\
-text size&\tt\Param{jatextfont}\,=\{,\}&\tt\verb+\textfont+=\\
-script size&\tt\Param{jascriptfont}\,=\{,\}&\tt\verb+\scriptfont+=\\
-scriptscript size&\tt\Param{jascriptscriptfont}\,=\{,\}&\tt\verb+\scriptscriptfont+=\\
+\verb+\jfam+${}\in [0,256)$&\verb+\fam+\\
+\tt\Param{jatextfont}\,=\{,\}&\tt\verb+\textfont+=\\
+\tt\Param{jascriptfont}\,=\{,\}&\tt\verb+\scriptfont+=\\
+\tt\Param{jascriptscriptfont}\,=\{,\}&\tt\verb+\scriptscriptfont+=\\
\bottomrule
\end{tabular}
-\end{center}
\end{table}
%\subsection{Callbacks}
@@ -2399,13 +3005,11 @@ this argument has \texttt{chars} field which contains character codes
%<*en>
An example of this callback is the \texttt{ltjarticle} class, with
forcefully assigning character class~0 to \texttt{'parbdd'}
- in the JFM \texttt{jfm-min.lua}. This callback doesn't
- replace any code of \LuaTeX-ja.
+ in the JFM \texttt{jfm-min.lua}.
%
%<*ja>
ãã®ã³ã¼ã«ããã¯ã®ä½¿ç¨ä¾ã¯\texttt{ltjarticle}ã¯ã©ã¹ã«ããï¼
\texttt{jfm-min.lua}ä¸ã®\texttt{'parbdd'}ãå¼·å¶çã«ã¯ã©ã¹0ã«å²ãå½ã¦ã¦ããï¼
-ãã®ã³ã¼ã«ããã¯ã¯\LuaTeX-jaã®ã³ã¼ããæ¸ãæããªãï¼
%
%\item[\texttt{luatexja.define\_font} callback]
@@ -2431,16 +3035,37 @@ end
You may assume that \verb+jfont_info+ has the following fields:
%
%<*ja>
-\verb+jfont_info+ ã¯ä»¥ä¸ã®ãã£ã¼ã«ããæã¤ï¼
+\verb+jfont_info+ ã¯ä»¥ä¸ã®2ãã£ã¼ã«ããæã¤ï¼
%
\begin{description}
-\item[\tt jfm]
-%The index number of JFM.
-%JFMã®ã¤ã³ããã¯ã¹çªå·ï¼
-
-\item[\tt size]
-%Font size in a scaled point (${}=2^{-16}\,\textrm{pt}$).
-%ã¹ã±ã¼ã«ãã»ãã¤ã³ã(${}=2^{-16}\,\textrm{pt}$)ãåä½ã¨ãããã©ã³ãã®ãµã¤ãºï¼
+\item[\tt size\_cache]
+%<*ja>
+使ç¨ããã¦ããJFMã®æ
å ±ãæ ¼ç´ããã¦ãããã¼ãã«ã§ï¼
+\emph{ãã®ãã¼ãã«ãæ¸ãæãã¦ã¯ãªããªã}ï¼
+ä¸èº«ã¯ã»ã¼JFMãã¡ã¤ã«ã«æ¸ããã¦ããå¯ä¸ã®ãã¼ãã«ã§ãããï¼æ¬¡ã®ããã«è¥å¹²å¤ãã£ã¦ããï¼
+\begin{itemize}
+\item åæåã¯ã©ã¹$i$ã«å±ããæåéã®ãã¼ãã«
+\texttt{[$i$].chars=\{, ...\}}ã¯ï¼ãããã¬ãã«ã«ã¾ã¨ãããï¼
+\texttt{chars=\{[]=$i$, ...\}}ã¨ããå½¢ã«ãªã£ã¦ããï¼
+\item \texttt{zw},~\texttt{zh}, \texttt{kanjiskip},~\texttt{xkanjiskip} ã®åãã£ã¼ã«ãã®å¤ã¯ï¼
+å®éã«ä½¿ããããã©ã³ããµã¤ãºã«åãããsp ($1\,\mathrm{sp}=2^{-6}\,\mathrm{pt}$)åä½ã®é·ãã«å¤ãã£ã¦ããï¼
+\item åæåã¯ã©ã¹$i$ã®æ
å ±ãæ ¼ç´ãããã¼ãã«ãï¼\texttt{char\_type} ãã£ã¼ã«ãã®ä¸ã«ã¾ã¨ãããã¦ããï¼
+ä¾ãã°ï¼æåã¯ã©ã¹1ã«å±ããæåã®é«ã㯠\texttt{char\_type[1].height} ã§åç
§ã§ããï¼
+\item \texttt{dir} ãã£ã¼ã«ãã¯ãã®ãã¼ãã«ã«ã¯ãªãï¼
+\end{itemize}
+%
+%<*en>
+A table which contains the information of a JFM, and \emph{this table must not be changed}.
+The contents of this table are similar to that which is written is the JFM file, but
+the following differ:
+\begin{itemize}
+\item There is a \texttt{chars} table, \dots
+\item The value in \texttt{zw},~\texttt{zh}, \texttt{kanjiskip},~\texttt{xkanjiskip} fields are
+now scaled by real font size, and in scaled-pont unit.
+\item ...
+\item There is no \texttt{dir} field in this table.
+\end{itemize}
+%
\item[\tt var]
%The value specified in \texttt{jfmvar=...} at a call of \verb+\jfont+.
@@ -2448,11 +3073,12 @@ You may assume that \verb+jfont_info+ has the following fields:
\end{description}
%<*en>
-The returned table \verb+new_jfont_info+ also should include these three fields.
+The returned table \verb+new_jfont_info+ also should include these two fields.
The \verb+font_number+ is a font number.
%
%<*ja>
-æ»ãå¤ã® \verb+new_jfont_info+ ãã¼ãã«ãããã3ã¤ã®ãã£ã¼ã«ããå«ã¾ãªããã°ãªããªãï¼
+æ»ãå¤ã® \verb+new_jfont_info+ ãã¼ãã«ãããã2ã¤ã®ãã£ã¼ã«ããå«ã¾ãªããã°ãªããªããï¼
+ãã以å¤ã«ã¦ã¼ã¶ãåæã«ãã£ã¼ã«ããä»ãå ãããã¨ã¯èªç±ã§ããï¼
\verb+font_number+ ã¯ãã©ã³ãçªå·ã§ããï¼
%
@@ -2466,7 +3092,6 @@ A good example of this and the next callbacks is the \Pkg{luatexja-otf}
ããã¨æ¬¡ã®ã³ã¼ã«ããã¯ã®è¯ã使ç¨ä¾ã¯\Pkg{luatexja-otf}ããã±ã¼ã¸ã§ããï¼
JFMä¸ã§Adobe-Japan1 CIDã®æåã \verb+"AJ1-xxx"+ ã®å½¢ã§æå®ããããã«
ç¨ãããã¦ããï¼
-ãã®ã³ã¼ã«ããã¯ã¯\LuaTeX-jaã®ã³ã¼ããæ¸ãæããªãï¼
%
%\item[\texttt{luatexja.find\_char\_class} callback]
@@ -2507,13 +3132,6 @@ The argument \verb+char_class+ is the result of \LuaTeX-ja's default
ããã©ã«ãã«ã¼ãã³ãæ¸ãæãããã¨ã«ãªãï¼
%
-%<*en>
-This callback doesn't replace any code of \LuaTeX-ja.
-%
-%<*ja>
-ãã®ã³ã¼ã«ããã¯ã¯\LuaTeX-jaã®ã³ã¼ããæ¸ãæããªãï¼
-%
-
%\item[\texttt{luatexja.set\_width} callback]
%\item[\texttt{luatexja.set\_width}ã³ã¼ã«ããã¯]
%<*en>
@@ -2554,9 +3172,6 @@ to be that of letters in the character class~0. For example, suppose that
(the standard values of Japanese TrueType fonts).
\end{itemize}
Then, the position of glyphs is shifted up by
-\[
- \frac{88x}{88x+12x} (28y+5y) - 28y = \frac{26}{25}y= 1.04y.
-\]
%
%<*ja>
è¯ãä¾ã\Pkg{test/valign.lua}ã§ããï¼ãã®ãã¡ã¤ã«ãèªã¿è¾¼ã¾ããç¶æ
ã§ã¯ï¼
@@ -2568,24 +3183,23 @@ Then, the position of glyphs is shifted up by
ï¼åæOpenTypeãã©ã³ãã®æ¨æºå¤ï¼
\item å®ãã©ã³ãå´ã®æ°å¤ï¼$(\hbox{é«ã})=28y$, $(\hbox{æ·±ã})=5y$ï¼åæTrueTypeãã©ã³ãã®æ¨æºå¤ï¼
\end{itemize}
-ã¨ãªã£ã¦ããã¨ããï¼ããã¨ï¼å®éã®æåã®åºåä½ç½®ã¯ï¼
+ã¨ãªã£ã¦ããã¨ããï¼ããã¨ï¼å®éã®æåã®åºåä½ç½®ã¯ï¼ä»¥ä¸ã®éã ãä¸ã«ããããããã¨ã¨ãªãï¼
+%
\[
\frac{88x}{88x+12x} (28y+5y) - 28y = \frac{26}{25}y= 1.04y.
\]
-ã ãä¸ã«ããããããã¨ã«ãªãï¼
-%
\end{list}
%\section{Parameters}
%\section{ãã©ã¡ã¼ã¿}
-%\subsection{\texttt{\char92 ltjsetparameter} primitive}
-%\subsection{\texttt{\char92 ltjsetparameter}ããªããã£ã}
+%\subsection{\texttt{\char92 ltjsetparameter}}
+%\subsection{\texttt{\char92 ltjsetparameter}å½ä»¤}
%<*en>
As noted before, \verb+\ltjsetparameter+ and \verb+\ltjgetparameter+ are
-primitives for accessing most parameters of \LuaTeX-ja. One of the main
+control sequences for accessing most parameters of \LuaTeX-ja. One of the main
reason that \LuaTeX-ja didn't adopted the syntax similar to that of \pTeX\
(\textit{e.g.},~\verb+\prebreakpenalty`ï¼=10000+)
is the position of \verb+hpack_filter+ callback in the source
@@ -2593,14 +3207,14 @@ of \LuaTeX, see Section~\ref{sec-para}.
%
%<*ja>
å
ã«è¿°ã¹ãããã«ï¼\verb+\ltjsetparameter+ 㨠\verb+\ltjgetparameter+ ã¯
-\LuaTeX-jaã®ã»ã¨ãã©ã®ãã©ã¡ã¼ã¿ã«ã¢ã¯ã»ã¹ããããã®ããªããã£ãã§ããï¼
+\LuaTeX-jaã®ã»ã¨ãã©ã®ãã©ã¡ã¼ã¿ã«ã¢ã¯ã»ã¹ããããã®å½ä»¤ã§ããï¼
\LuaTeX-jaã\pTeX ã®ãããªææ³ï¼ä¾ãã°ï¼\verb+\prebreakpenalty`ï¼=10000+ï¼ã
-æ¡ç¨ããªãçç±ã®ä¸ã¤ã¯ï¼\LuaTeX ã®ã½ã¼ã¹ã«ããã \verb+\hpack_filter+
-ã³ã¼ã«ããã¯ã®ä½ç½®ã«ããï¼\ref{sec-para} ç¯ãåç
§ï¼
+æ¡ç¨ããªãçç±ã®ä¸ã¤ã¯ï¼\LuaTeX ã®ã½ã¼ã¹ã«ããã \verb+hpack_filter+
+ã³ã¼ã«ããã¯ã®ä½ç½®ã«ããï¼\ref{sec-para}ç¯ãåç
§ï¼
%
%<*en>
-\verb+\ltjsetparameter+ and \verb+\ltjglobalsetparameter+ are primitives
+\verb+\ltjsetparameter+ and \verb+\ltjglobalsetparameter+ are control sequences
for assigning parameters. These take one argument which is a
\texttt{=} list. Allowed keys are described in the next
subsection.
@@ -2614,7 +3228,7 @@ like other assignment.
%
%<*ja>
\verb+\ltjsetparameter+ 㨠\verb+\ltjglobalsetparameter+ ã¯ãã©ã¡ã¼ã¿ã
-æå®ããããã®ããªããã£ãã§ããï¼ãããã¯\texttt{=}ã®ãªã¹ãã
+æå®ããããã®å½ä»¤ã§ããï¼ãããã¯\texttt{=}ã®ãªã¹ãã
å¼æ°ã¨ãã¦ã¨ãï¼è¨±ããããã¼ã¯æ¬¡ã®ç¯ã«è¨è¿°ããï¼
\verb+\ltjsetparameter+ 㨠\verb+\ltjglobalsetparameter+ ã®éãã¯ã¹ã³ã¼ãã®
éãã®ã¿ã§ããï¼
@@ -2624,12 +3238,12 @@ like other assignment.
%
%<*en>
-\verb+\ltjgetparameter+ is the primitive for acquiring parameters. It
+\verb+\ltjgetparameter+ is for acquiring parameters. It
always takes a parameter name as first argument, and also takes the
additional argument---a character code, for example---in some cases.
%
%<*ja>
-\verb+\ltjgetparameter+ ã¯ãã©ã¡ã¼ã¿ã®å¤ãåå¾ããããã®ããªããã£ãã§ããï¼
+\verb+\ltjgetparameter+ ã¯ãã©ã¡ã¼ã¿ã®å¤ãåå¾ããããã®å½ä»¤ã§ããï¼
常ã«ãã©ã¡ã¼ã¿ã®ååã第ä¸å¼æ°ã«ã¨ãï¼
ããã¦ï¼ããã¤ãã®å ´åã«ã¯å ãã¦ããã«å¼æ°ï¼ä¾ãã°æåã³ã¼ãï¼ãã¨ãï¼
%
@@ -2645,7 +3259,7 @@ character other than space~`\texttt{\char32}'~(U+0020) has the category code
12~(other), while the space has 10~(space).
%
%<*ja>
-\textbf{{\normalfont\tt\char92ltjgetparameter}ã®æ»ãå¤ã¯å¸¸ã«æååã§ããï¼}
+\emph{{\normalfont\tt\char92ltjgetparameter}ã®æ»ãå¤ã¯å¸¸ã«æååã§ããï¼}
ããã¯\texttt{tex.write()}ã«ãã£ã¦åºåãã¦ããããã§ï¼ã¹ãã¼ã¹`\texttt{\char32}'~(U+0020)ãé¤ããæåã®ã«ãã´ãªã¼ã³ã¼ãã¯å
¨ã¦12~(other)ã¨ãªãï¼
ä¸æ¹ï¼ã¹ãã¼ã¹ã®ã«ãã´ãªã¼ã³ã¼ãã¯10~(space)ã§ããï¼
%
@@ -2712,25 +3326,21 @@ At the present version, the lowermost bit of indicates
ã¿ãªããããã©ããã表ãã¦ããï¼ä¸ã®\Param{jcharwidowpenalty}ã®è¨è¿°ãåç
§ï¼ï¼
%
-\item[\Param{prebreakpenalty}\,=\{,\}] [\verb+\prebreakpenalty+]\
+\item[\Param{\hypertarget{fld:prebp}{prebreakpenalty}}\,=\{,\}] [\verb+\prebreakpenalty+]\
%<*ja>
æåã³ã¼ãã®\textbf{JAchar}ãè¡é ã«ãããã¨ãææ¢ããããã«ï¼
ãã®æåã®åã«æ¿å
¥/追å ãããããã«ãã£ã®éãæå®ããï¼
-ä¾ãã°éãæ¬å¼§ãããã¯çµ¶å¯¾ã«è¡é ã«ãã¦ã¯ãªããªãã®ã§ï¼æ¨æºã§èªã¿è¾¼ã¾ãã
- \texttt{luatexja-kinsoku.tex}ã«ããã¦
+ä¾ãã°éãæ¬å¼§ãããã¯çµ¶å¯¾ã«è¡é ã«ãã¦ã¯ãªããªãã®ã§ï¼
\begin{verbatim}
\ltjsetparameter{prebreakpenalty={`ã,10000}}
\end{verbatim}
-ã¨ï¼æ大å¤ã®10000ãæå®ããã¦ããï¼ä»ã«ãï¼å°æ¸ãã®ã«ããªã©ï¼çµ¶å¯¾ç¦æ¢ã¨ã
+ã¨ï¼æ大å¤ã®10000ãæ¨æºã§æå®ããã¦ããï¼ä»ã«ãï¼å°æ¸ãã®ã«ããªã©ï¼çµ¶å¯¾ç¦æ¢ã¨ã
ãããã§ã¯ãªããã§ããã°è¡é ã«ã¯ãã¦æ¬²ãããªãå ´åã«ï¼0ã¨
10000ã®éã®å¤ãæå®ããã®ãæç¨ã§ããã.
-\begin{verbatim}
-\ltjsetparameter{prebreakpenalty={`ã,150}}
-\end{verbatim}
%
-\item[\Param{postbreakpenalty}\,=\{,\}] [\verb+\postbreakpenalty+]
+\item[\Param{\hypertarget{fld:postbp}{postbreakpenalty}}\,=\{,\}] [\verb+\postbreakpenalty+]
%<*ja>
æåã³ã¼ãã®\textbf{JAchar}ãè¡æ«ã«ãããã¨ãææ¢ããããã«ï¼
ãã®æåã®å¾ã«æ¿å
¥/追å ãããããã«ãã£ã®éãæå®ããï¼
@@ -2759,23 +3369,23 @@ At the present version, the lowermost bit of indicates
\item[\Param{jaxspmode}\,=\{,\}]
%<*en>
-Setting whether inserting \Param{xkanjiskip} is allowed before/after a \textbf{JAchar} whose character code is .
+Setting whether inserting \Param{\hyperlink{fld:xks}{xkanjiskip}} is allowed before/after a \textbf{JAchar} whose character code is .
The followings are allowed for :
%
%<*ja>
-æåã³ã¼ããã®\textbf{JAchar}ã®åï¼å¾ãã«\Param{xkanjiskip}ã®
+æåã³ã¼ããã®\textbf{JAchar}ã®åï¼å¾ãã«\Param{\hyperlink{fld:xks}{xkanjiskip}}ã®
æ¿å
¥ã許ããã©ããã®è¨å®ï¼
以ä¸ã®ã許ãããï¼
%
\begin{description}
-%\item[0, \texttt{inhibit}] Insertion of \Param{xkanjiskip} is inhibited before the character, nor after the character.
-%\item[0, \texttt{inhibit}] \Param{xkanjiskip}ã®æ¿å
¥ã¯æåã®åï¼å¾ãã®ãããã§ãç¦æ¢ãããï¼
-%\item[1, \texttt{preonly}] Insertion of \Param{xkanjiskip} is allowed before the character, but not after.
-%\item[1, \texttt{preonly}] \Param{xkanjiskip}ã®æ¿å
¥ã¯æåã®åã§ã¯è¨±ããããï¼å¾ãã§ã¯è¨±ãããªãï¼
-%\item[2, \texttt{postonly}] Insertion of \Param{xkanjiskip} is allowed after the character, but not before.
-%\item[2, \texttt{postonly}] \Param{xkanjiskip}ã®æ¿å
¥ã¯æåã®å¾ãã§ã¯è¨±ããããï¼åã§ã¯è¨±ãããªãï¼
-%\item[3, \texttt{allow}] Insertion of \Param{xkanjiskip} is allowed both before the character and after the character. This is the default value.
-%\item[3, \texttt{allow}] \Param{xkanjiskip}ã®æ¿å
¥ã¯æåã®åï¼å¾ãã®ãããã§ã許ãããï¼ãããããã©ã«ãã®å¤ã§ããï¼
+%\item[0, \texttt{inhibit}] Insertion of \Param{\hyperlink{fld:xks}{xkanjiskip}} is inhibited before the character, nor after the character.
+%\item[0, \texttt{inhibit}] \Param{\hyperlink{fld:xks}{xkanjiskip}}ã®æ¿å
¥ã¯æåã®åï¼å¾ãã®ãããã§ãç¦æ¢ãããï¼
+%\item[1, \texttt{preonly}] Insertion of \Param{\hyperlink{fld:xks}{xkanjiskip}} is allowed before the character, but not after.
+%\item[1, \texttt{preonly}] \Param{\hyperlink{fld:xks}{xkanjiskip}}ã®æ¿å
¥ã¯æåã®åã§ã¯è¨±ããããï¼å¾ãã§ã¯è¨±ãããªãï¼
+%\item[2, \texttt{postonly}] Insertion of \Param{\hyperlink{fld:xks}{xkanjiskip}} is allowed after the character, but not before.
+%\item[2, \texttt{postonly}] \Param{\hyperlink{fld:xks}{xkanjiskip}}ã®æ¿å
¥ã¯æåã®å¾ãã§ã¯è¨±ããããï¼åã§ã¯è¨±ãããªãï¼
+%\item[3, \texttt{allow}] Insertion of \Param{\hyperlink{fld:xks}{xkanjiskip}} is allowed both before the character and after the character. This is the default value.
+%\item[3, \texttt{allow}] \Param{\hyperlink{fld:xks}{xkanjiskip}}ã®æ¿å
¥ã¯æåã®åï¼å¾ãã®ãããã§ã許ãããï¼ãããããã©ã«ãã®å¤ã§ããï¼
\end{description}
%<*en>
This parameter is similar to the \verb+\inhibitxspcode+ primitive of \pTeX, but not compatible with \verb+\inhibitxspcode+.
@@ -2784,31 +3394,30 @@ This parameter is similar to the \verb+\inhibitxspcode+ primitive of \pTeX, but
ãã®ãã©ã¡ã¼ã¿ã¯\pTeX ã® \verb+\inhibitxspcode+ ããªããã£ãã¨ä¼¼ã¦ãããï¼
äºææ§ã¯ãªãï¼
%
-
\item[\Param{alxspmode}\,=\{,\}] [\verb+\xspcode+]
%<*en>
-Setting whether inserting \Param{xkanjiskip} is allowed before/after a
+Setting whether inserting \Param{\hyperlink{fld:xks}{xkanjiskip}} is allowed before/after a
\textbf{ALchar} whose character code is .
The followings are allowed for :
%
%<*ja>
-æåã³ã¼ããã®\textbf{ALchar}ã®åï¼å¾ãã«\Param{xkanjiskip}ã®
+æåã³ã¼ããã®\textbf{ALchar}ã®åï¼å¾ãã«\Param{\hyperlink{fld:xks}{xkanjiskip}}ã®
æ¿å
¥ã許ããã©ããã®è¨å®ï¼
以ä¸ã®ã許ãããï¼
%
\begin{description}
-%\item[0, \texttt{inhibit}] Insertion of \Param{xkanjiskip} is inhibited before the character, nor after the character.
-%\item[0, \texttt{inhibit}] \Param{xkanjiskip}ã®æ¿å
¥ã¯æåã®åï¼å¾ãã®ãããã§ãç¦æ¢ãããï¼
-%\item[1, \texttt{preonly}] Insertion of \Param{xkanjiskip} is allowed before the character, but not after.
-%\item[1, \texttt{preonly}] \Param{xkanjiskip}ã®æ¿å
¥ã¯æåã®åã§ã¯è¨±ããããï¼å¾ãã§ã¯è¨±ãããªãï¼
-%\item[2, \texttt{postonly}] Insertion of \Param{xkanjiskip} is allowed after the character, but not before.
-%\item[2, \texttt{postonly}] \Param{xkanjiskip}ã®æ¿å
¥ã¯æåã®å¾ãã§ã¯è¨±ããããï¼åã§ã¯è¨±ãããªãï¼
-%\item[3, \texttt{allow}] Insertion of \Param{xkanjiskip} is allowed before the character and after the character. This is the default value.
-%\item[3, \texttt{allow}] \Param{xkanjiskip}ã®æ¿å
¥ã¯æåã®åï¼å¾ãã®ãããã§ã許ãããï¼ãããããã©ã«ãã®å¤ã§ããï¼
+%\item[0, \texttt{inhibit}] Insertion of \Param{\hyperlink{fld:xks}{xkanjiskip}} is inhibited before the character, nor after the character.
+%\item[0, \texttt{inhibit}] \Param{\hyperlink{fld:xks}{xkanjiskip}}ã®æ¿å
¥ã¯æåã®åï¼å¾ãã®ãããã§ãç¦æ¢ãããï¼
+%\item[1, \texttt{preonly}] Insertion of \Param{\hyperlink{fld:xks}{xkanjiskip}} is allowed before the character, but not after.
+%\item[1, \texttt{preonly}] \Param{\hyperlink{fld:xks}{xkanjiskip}}ã®æ¿å
¥ã¯æåã®åã§ã¯è¨±ããããï¼å¾ãã§ã¯è¨±ãããªãï¼
+%\item[2, \texttt{postonly}] Insertion of \Param{\hyperlink{fld:xks}{xkanjiskip}} is allowed after the character, but not before.
+%\item[2, \texttt{postonly}] \Param{\hyperlink{fld:xks}{xkanjiskip}}ã®æ¿å
¥ã¯æåã®å¾ãã§ã¯è¨±ããããï¼åã§ã¯è¨±ãããªãï¼
+%\item[3, \texttt{allow}] Insertion of \Param{\hyperlink{fld:xks}{xkanjiskip}} is allowed before the character and after the character. This is the default value.
+%\item[3, \texttt{allow}] \Param{\hyperlink{fld:xks}{xkanjiskip}}ã®æ¿å
¥ã¯æåã®åï¼å¾ãã®ãããã§ã許ãããï¼ãããããã©ã«ãã®å¤ã§ããï¼
\end{description}
%<*en>
-Note that parameters \Param{jaxspmode} and \Param{alxspmode} use a common table, hence these two parameters are synonyms of each other.
+Note that parameters \Param{jaxspmode} and \Param{alxspmode} share a common table, hence these two parameters are synonyms of each other.
%
%<*ja>
\Param{jaxspmode}ã¨\Param{alxspmode}ã¯å
±éã®ãã¼ãã«ãç¨ãã¦ããããï¼
@@ -2817,10 +3426,23 @@ Note that parameters \Param{jaxspmode} and \Param{alxspmode} use a common table,
\item[\Param{autospacing}\,=$^\ast$] [\verb+\autospacing+]
\item[\Param{autoxspacing}\,=$^\ast$] [\verb+\autoxspacing+]
-\item[\Param{kanjiskip}\,=] [\verb+\kanjiskip+]
-\item[\Param{xkanjiskip}\,=] [\verb+\xkanjiskip+]
+\item[\Param{\hypertarget{fld:kanjiskip}{kanjiskip}}\,=] [\verb+\kanjiskip+]
+%<*ja>
+ããã©ã«ãã§2ã¤ã®\textbf{JAchar}ã®éã«æ¿å
¥ãããã°ã«ã¼ã§ããï¼
+é常ã§ã¯ï¼\pTeX ã¨åãããã«ãã©ã³ããµã¤ãºã«æ¯ä¾ãã¦å¤ãããã¨ã¯ãªãï¼
+ãããï¼èªç¶é·ã \verb+\maxdimen+ ã®å ´åã¯ï¼ä¾å¤çã«åæãã©ã³ãã®JFMå´ã§æå®ããã¦ãã
+å¤ãæ¡ç¨ï¼ãã¡ãã¯ãã©ã³ããµã¤ãºã«æ¯ä¾ï¼ãããã¨ã«ãªã£ã¦ããï¼
+%
+
+\item[\Param{\hypertarget{fld:xks}{xkanjiskip}}\,=] [\verb+\xkanjiskip+]
+%<*ja>
+ããã©ã«ãã§\textbf{JAchar}ã¨\textbf{ALchar}ã®éã«æ¿å
¥ãããã°ã«ã¼ã§ããï¼
+\Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ã¨åãããã«ï¼é常ã§ã¯ãã©ã³ããµã¤ãºã«æ¯ä¾ãã¦å¤ãããã¨ã¯ãªããï¼
+èªç¶é·ã \verb+\maxdimen+ ã®å ´åãä¾å¤ã§ããï¼
+%
-\item[\Param{differentjfm}\,=$^\dagger$]
+
+\item[\Param{\hypertarget{fld:diffjfm}{differentjfm}}\,=$^\dagger$]
%<*en>
Specify how glues/kerns between two \textbf{JAchar}s whose JFM (or size) are different.
@@ -2828,7 +3450,7 @@ The allowed arguments are the followings:
%
%<*ja>
JFMï¼ãããã¯ãµã¤ãºï¼ãç°ãªã2ã¤ã®\textbf{JAchar}ã®éã«ã°ã«ã¼ï¼ã«ã¼ã³ãã©ã®ããã«
-å
¥ããããæå®ããï¼
+å
¥ããããæå®ããï¼
許ãããå¤ã¯ä»¥ä¸ã®éãï¼
%
\begin{description}
@@ -2836,6 +3458,9 @@ JFMï¼ãããã¯ãµã¤ãºï¼ãç°ãªã2ã¤ã®\textbf{JAchar}ã®éã«ã°ã«
\item[\texttt{both}]
\item[\texttt{large}]
\item[\texttt{small}]
+\item[\texttt{pleft}]
+\item[\texttt{pright}]
+\item[\texttt{paverage}]
\end{description}
\item[\Param{jacharrange}\,=$^\ast$]
@@ -2843,16 +3468,18 @@ JFMï¼ãããã¯ãµã¤ãºï¼ãç°ãªã2ã¤ã®\textbf{JAchar}ã®éã«ã°ã«
\end{list}
-%\section{Other Primitives}
-%\section{ãã®ä»ã®ããªããã£ã}
-%\subsection{Primitives for Compatibility}
-%\subsection{äºæããªããã£ã}
+%\section{Other Control Sequences}
+%\section{ãã®ä»ã®å½ä»¤}
+%\subsection{Control Sequences for Compatibility}
+%\subsection{\pTeX äºæç¨å½ä»¤}
%<*en>
-The following primitives are implemented for compatibility with \pTeX:
+The following control sequences are implemented for compatibility with \pTeX.
+Note that these don't support JIS~X~0213, but only JIS~X~0208.
%
%<*ja>
-以ä¸ã®ããªããã£ãã¯\pTeX ã¨ã®äºææ§ã®ããã«å®è£
ããã¦ããï¼
+以ä¸ã®å½ä»¤ã¯\pTeX ã¨ã®äºææ§ã®ããã«å®è£
ããã¦ããï¼ãã®ããï¼JIS~X~0213ã«ã¯å¯¾å¿ããï¼
+\pTeX ã¨åãããã«JIS~X~0208ã®ç¯å²ãããµãã¼ããã¦ããªãï¼
%
\begin{list}{}{\def\makelabel{\ttfamily\char92 }\advance\leftmargin1\zw}
\item[kuten]
@@ -2863,22 +3490,21 @@ The following primitives are implemented for compatibility with \pTeX:
\item[kansuji]
\end{list}
-%\subsection{\texttt{\char92 inhibitglue} primitive}
-%\subsection{\texttt{\char92 inhibitglue}ããªããã£ã}
-
+%\subsection{\texttt{\char92 inhibitglue}}
+%\subsection{\texttt{\char92 inhibitglue}}
%<*en>
-The primitive \verb+\inhibitglue+ suppresses the insertion of \textbf{JAglue}.
+\verb+\inhibitglue+ suppresses the insertion of \textbf{JAglue}.
The following is an example, using a special JFM that there will be a glue between
the beginning of a box and `ã', and also between `ã' and `ã¦'.
%
%<*ja>
-\verb+\inhibitglue+ ããªããã£ãã¯\textbf{JAglue}ã®æ¿å
¥ãæå¶ããï¼
+\verb+\inhibitglue+ ã¯\textbf{JAglue}ã®æ¿å
¥ãæå¶ããï¼
以ä¸ã¯ï¼ããã¯ã¹ã®å§ãã¨`ã'ã®éï¼`ã'ã¨`ã¦'ã®éã«ã°ã«ã¼ãå
¥ãç¹å¥ãªJFMãç¨ããä¾ã§
ããï¼
%
\begin{LTXexample}
-\jfont\g=psft:Ryumin-Light:jfm=test \g
+\jfont\g=file:KozMinPr6N-Regular.otf:jfm=test \g
\fbox{\hbox{ãã¦ã\inhibitglue ã¦}}
\inhibitglue\par\noindent ã1
\par\inhibitglue\noindent ã2
@@ -2912,8 +3538,9 @@ With the help of this example, we remark the specification of \verb+\inhibitglue
%<*ja>
\item \verb+\inhibitglue+ ã®ï¼å¶éãããï¼æ°´å¹³ã¢ã¼ãä¸ã§ã®å¼ã³åºãã¯ãã®å ´ã§ã®ã¿
æå¹ã§ããï¼æ®µè½ã®å¢çãä¹ãè¶ããªãï¼
- ããã«ï¼\verb+\inhibitglue+ ã¯ä¸ã®ä¾ã®æçµè¡ã®ããã«ãªã¬ãã£ã¨ã«ã¼ãã³ã°ã
- æã¡æ¶ãï¼
+ ããã«ï¼\verb+\inhibitglue+ ã¯ä¸ã®ä¾ã®æçµè¡ã®ããã«ï¼æ¬§æã«ãããï¼ãªã¬ãã£ã¨ã«ã¼ãã³ã°ã
+ æã¡æ¶ãï¼ããã¯ï¼\verb+\inhibitglue+ ãå
é¨çã«ã¯ãç¾å¨ã®ãªã¹ãä¸ã«whatsitãã¼ãã
+ 追å ããããã¨ãè¡ãªã£ã¦ããããã§ããï¼
%
%<*en>
@@ -2922,10 +3549,15 @@ With the help of this example, we remark the specification of \verb+\inhibitglue
%<*ja>
\item \verb+\inhibitglue+ ãæ°å¼ã¢ã¼ãä¸ã§å¼ã³åºããå ´åã¯ãã ç¡è¦ãããï¼
%
+
+%<*ja>
+\item \LaTeX ã§\LuaTeX-ja ã使ç¨ããå ´åã¯ï¼
+\verb+\inhibitglue+ ã®ä»£ããã¨ã㦠\verb+\<+ ã使ããã¨ãã§ããï¼
+%
\end{itemize}
%\section{Control Sequences for \LaTeXe}
-%\section{\LaTeXe ç¨ã®ã³ã³ããã¼ã«ã·ã¼ã±ã³ã¹}
+%\section{\LaTeXe ç¨ã®å½ä»¤}
%\subsection{Patch for NFSS2}
%\subsection{NFSS2ã¸ã®ããã}
@@ -2935,12 +3567,12 @@ With the help of this example, we remark the specification of \verb+\inhibitglue
As described in Subsection~\ref{ssec-ltx}, \LuaTeX-ja simply adopted
\texttt{plfonts.dtx} in \pLaTeXe\ for the Japanese patch for NFSS2.
For an convenience, we will describe
-commands which are not described in Subsection~\ref{ssub-chgfnt}.
+control sequences which are not described in Subsection~\ref{ssub-chgfnt}.
%
%<*ja>
-\ref{ssec-ltx} ç¯ã§è¿°ã¹ãããã«ï¼\LuaTeX-jaã¯NFSS2ã¸ã®æ¥æ¬èªãããã§ãã
+\ref{ssec-ltx}ç¯ã§è¿°ã¹ãããã«ï¼\LuaTeX-jaã¯NFSS2ã¸ã®æ¥æ¬èªãããã§ãã
\pLaTeXe ã®\texttt{plfonts.dtx}ãåç´ã«åãå
¥ãã¦ããï¼
-便å®ã®ããï¼ããã§ã¯ \ref{ssub-chgfnt} ç¯ã§è¿°ã¹ã¦ããªãã£ãã³ãã³ãã«ã¤ãã¦
+便å®ã®ããï¼ããã§ã¯\ref{ssub-chgfnt}ç¯ã§è¿°ã¹ã¦ããªãã£ãå½ä»¤ã«ã¤ãã¦
è¨è¿°ãã¦ããï¼
%
@@ -3036,7 +3668,7 @@ Like \verb+\fontfamily+, \verb+\selectfont+ is required to take an effect.
%
\item[adjustbaseline]
-...
+\ldots
\item[fontfamily\{\}]
{\let\item\origitem
@@ -3046,7 +3678,7 @@ to . Which family will be changed is determined as follows:
%
%<*ja>
å
ã
ã®\LaTeXe ã«ããããã®ã¨åæ§ã«ï¼ãã®ã³ãã³ãã¯ç¾å¨ã®ãã©ã³ããã¡ããªï¼æ¬§æï¼
-åæï¼\textbf{ãããã¯ä¸¡æ¹}ï¼ãã«å¤æ´ããï¼
+åæï¼\emph{ãããã¯ä¸¡æ¹}ï¼ãã«å¤æ´ããï¼
ã©ã®ãã¡ããªãå¤æ´ããããã¯ä»¥ä¸ã®ããã«ãã¦æ±ºå®ãããï¼
%
\begin{itemize}
@@ -3062,18 +3694,18 @@ to . Which family will be changed is determined as follows:
%
\begin{itemize}
%<*en>
-\item The family under the encoding has been already defined by
+\item The family under the encoding has been already defined by
\verb+\DeclareKanijFamily+.
%
%<*ja>
-\item ã¨ã³ã³ã¼ãã£ã³ã°ã«ããããã¡ããªãæ¢ã« \verb+\DeclareKanjiFamily+ ã«ãã£ã¦å®ç¾©ããã¦ããï¼
+\item ã¨ã³ã³ã¼ãã£ã³ã°ã«ããããã¡ããªãæ¢ã« \verb+\DeclareKanjiFamily+ ã«ãã£ã¦å®ç¾©ããã¦ããï¼
%
%<*en>
-\item A font definition named \texttt{.fd} (the file name is
+\item A font definition named \texttt{.fd} (the file name is
all lowercase) exists.
%
%<*ja>
-\item ãã©ã³ãå®ç¾©ãã¡ã¤ã«\texttt{.fd}ï¼ãã¡ã¤ã«åã¯å
¨ã¦å°æåï¼ãåå¨ããï¼
+\item ãã©ã³ãå®ç¾©ãã¡ã¤ã«\texttt{.fd}ï¼ãã¡ã¤ã«åã¯å
¨ã¦å°æåï¼ãåå¨ããï¼
%
\end{itemize}
%<*en>
@@ -3109,19 +3741,16 @@ As closing this subsection, we shall introduce an example of
%
%<*ja>
ãã®ç¯ã®çµããã«ï¼\verb+\SetRelationFont+ 㨠\verb+\userelfont+ ã®ä¾ã
-ç´¹ä»ãã¦ãããï¼
+ç´¹ä»ãã¦ãããï¼\verb+\userelfont+ ã®ä½¿ç¨ã«ãã£ã¦ï¼ãabcãã®é¨åã®ãã©ã³ãã
+Avant Garde (OT1/pag/m/n) ã«å¤ãã£ã¦ãããã¨ããããï¼
%
-\begin{LTXexample}
-\gtfamily{}ãããabc
-\SetRelationFont{JY3}{gt}{m}{n}{OT1}{pag}{m}{n}
-\userelfont\selectfont{}ãããabc
+\begin{LTXexample}[width=0.3\textwidth]
+\makeatletter
+\SetRelationFont{JY3}{\k@family}{m}{n}{OT1}{pag}{m}{n}
+ % \k@family: current Japanese font family
+\userelfont\selectfont ãããabc
\end{LTXexample}
-
-%\subsection{Cropmark/`tombow'}
-%\subsection{ãã³ã}
-% ToDo
-
%\section{Extensions}
%\section{æ¡å¼µ}
\subsection{\texttt{luatexja-fontspec.sty}}
@@ -3135,7 +3764,7 @@ the following `font features' specifications are allowed for
the commands of Japanese version:
%
%<*ja>
-\ref{ssec-fontspec} ç¯ã§è¿°ã¹ãããã«ï¼ãã®è¿½å ããã±ã¼ã¸ã¯\Pkg{fontspec}
+\ref{ssec-fontspec}ç¯ã§è¿°ã¹ãããã«ï¼ãã®è¿½å ããã±ã¼ã¸ã¯\Pkg{fontspec}
ããã±ã¼ã¸ã§å®ç¾©ããã¦ããã³ãã³ãã«å¯¾å¿ããåæãã©ã³ãç¨ã®ã³ãã³ããæä¾ããï¼
ãªãªã¸ãã«ã®\Pkg{fontspec}ã§ã®`font feature'ã«å ãã¦ï¼åæçã®ã³ãã³ãã«ã¯
以ä¸ã®`font feature'ãæå®ãããã¨ãã§ããï¼
@@ -3143,42 +3772,43 @@ the commands of Japanese version:
\begin{list}{}{\def\makelabel{\ttfamily}\def\{{\char`\{}\def\}{\char`\}}\advance\leftmargin1\zw}
+\item[CID=]
\item[JFM=]
-\item[JFM-var=]
+\item[JFM-var=] \
%<*en>
-These 2 font features correspond to \texttt{jfm} and \texttt{jfmvar} keys for
-\verb+\jfont+ primitive, respectively. See Subsection~\ref{ssec-jfont}.
+These 3 font features correspond to \texttt{cid}, \texttt{jfm} and
+\texttt{jfmvar} keys for \verb+\jfont+ respectively.
+\texttt{CID} is effective only when with \texttt{NoEmbed}
+described below.
+See Subsections~\ref{ssec-jfont} and \ref{ssec-psft} for details.
%
%<*ja>
-ããã2ã¤ã®ãã¼ã¯ãããã \verb+\jfont+ ããªããã£ãã«å¯¾ãã
-\texttt{jfm}, \texttt{jfmvar}ãã¼ã¨ãããã対å¿ããï¼
-\ref{ssec-jfont} ç¯ãåç
§ï¼
+ããã3ã¤ã®ãã¼ã¯ãããã \verb+\jfont+ ã«å¯¾ãã
+\texttt{cid}, \texttt{jfm}, \texttt{jfmvar}ãã¼ã¨ãããã対å¿ããï¼
+\texttt{CID} ã¯ä¸ã® \texttt{NoEmbed} ã¨åããã¦ç¨ããããã¨ãã®ã¿æå¹ã§ããï¼
+\verb+\jfont+ ããªããã£ãã«å¯¾ãã
+\texttt{cid}, \texttt{jfm}, \texttt{jfmvar}ãã¼ã®è©³ç´°ã¯\ref{ssec-jfont}ç¯
+ ã¨\ref{ssec-psft}ç¯ãåç
§ï¼
%
\item[NoEmbed]
%<*en>
-By specifying this font feature, you can use `name-only' Japanese font which
+By specifying this font feature, one can use `name-only' Japanese font which
will not be embedded in the output PDF file. See Subsection~\ref{ssec-psft}.
%
%<*ja>
ãããæå®ãããã¨ã§ï¼PDFã«åãè¾¼ã¾ããªããååã ããã®ãã©ã³ããæå®ãããã¨ã
-ã§ããï¼\ref{ssec-psft} ç¯ãåç
§ï¼
+ã§ããï¼\ref{ssec-psft}ç¯ãåç
§ï¼
%
+\end{list}
-\item[CID=]
-%<*en>
-This feature is effective only when with NoEmbed feature.
-You can use the non-embedded CID-keyed font whose glyphs are addressed according
-to the specified character collection defined by Adobe Inc.
-The default value is Adobe-Japan1. See also Subsection~\ref{ssec-psft}.
-%
%<*ja>
-NoEmbed ãã¼ã¨åããã¦ç¨ããï¼
-éåãè¾¼ã¿ã® CID-keyed ãã©ã³ããã©ã®æåã³ã¬ã¯ã·ã§ã³ã«åºã¥ããã®ããæå®ããï¼
-ããã©ã«ã㯠Adobe-Japan1 ã§ããï¼\ref{ssec-psft} ç¯ãåç
§ï¼
+ãªãï¼\texttt{luatexja-fontspec.sty} èªã¿è¾¼ã¿æã«ã¯åæãã©ã³ãå®ç¾©ãã¡ã¤ã«%
+\texttt{.fd}ã¯å
¨ãåç
§ãããªããªãï¼
%
-\end{list}
+
+
\subsection{\texttt{luatexja-otf.sty}}
@@ -3256,6 +3886,83 @@ JFMã®\texttt{chars}ãã¼ãã«ã®ã¨ã³ããªã¨ã㦠\verb+'AJ1-xxx'+ ã®å½¢
使ããããã«ãªãï¼ããã¯Adobe-Japan1ã«ãããCIDçªå·ã \verb+xxx+ ã®æåã表ãï¼
%
+\subsection{\texttt{luatexja-adjust.sty}}
+\label{ssec-adj}
+\begin{figure}[t]
+\def\sq{%
+ \hbox to 1\zw{\hss\fboxsep=-.5\fboxrule\fbox{%
+ ã\hskip\dimexpr-.5\zw-.2pt\vrule width.4pt height.08\zw depth.12\zw%
+ \hskip\dimexpr.5\zw-.2pt\relax}\hss}}
+\def\sb{\hbox to 1\zw{\hss\fboxsep=-.5\fboxrule\fbox{%
+ â \hskip\dimexpr-.5\zw-.2pt\vrule width.4pt height.08\zw depth.12\zw%
+ \hskip\dimexpr.5\zw-.2pt\relax}\hss}}
+\newbox\gridbox
+\def\outbox#1{{\Large%
+ \ltjsetparameter{kanjiskip=0pt plus .2\zw minus .2\zw}%
+ \setbox\gridbox=\hbox to 20\zw{\sq\sq\sq\sq\sb\sq\sq\sq\sq\sb\sq\sq\sq\sq\sb\sq\sq\sq\sq\sb}%
+ \hbox{\textcolor{cyan!50!white}{\copy\gridbox}\hskip-20\zw%
+ \vbox{\hsize=20\zw\noindent\leftskip0pt\rightskip0pt\parfillskip0pt#1}\vrule}%
+}}
+
+{\centering
+\begin{tabular}{lc}
+\toprule
+no adjustment&\outbox{以ä¸ã®åçã¯ï¼ãå
é¤åçãã¨ããå¼ã°ããã\hskip-.5\zw\null}\\
+without priority&%
+\ltjdisableadjust
+\outbox{以ä¸ã®åçã¯ï¼ãå
é¤åçãã¨ããå¼ã°ããã}%
+\ltjenableadjust\\
+with priority&%
+\outbox{以ä¸ã®åçã¯ï¼ãå
é¤åçãã¨ããå¼ã°ããã}
+%\ltjdisableadjust
+\\
+\bottomrule
+\end{tabular}\par}
+\smallskip
+
+Note: the value of
+\Param{\hyperlink{fld:kanjiskip}{kanjiskip}} is 0\,pt${}^{+1/5\,\mathrm{em}}_{-1/5\,\mathrm{em}}$ in this figure,
+for making the difference obvious.
+%\caption{è¡é·èª¿æ´}\label{fig-adj}
+%\caption{Line adjustment}\label{fig-adj}
+\end{figure}
+
+
+%<*en>
+...
+%
+%<*ja>
+\pTeX ã§ã¯ï¼è¡é·èª¿æ´ã«ããã¦åªå
度ã®æ¦å¿µãåå¨ããªãã£ãããï¼å³
+\ref{fig-adj}ä¸æ®µã«ãããåè§åã®å端ã¯ï¼å³\ref{fig-adj}ä¸æ®µã®ããã«ï¼éµ
+æ¬å¼§å¨è¾ºã®ç©ºç½ã¨åæé空ç½(\Param{\hyperlink{fld:kanjiskip}{kanjiskip}})ã®ä¸¡æ¹ã«ãã£ã¦è² æ
ãããï¼ã
+ããï¼ãæ¥æ¬èªçµçå¦çã®è¦ä»¶ã\cite{jlreq}ãJIS~X~4051~\cite{x4051}ã«ãã
+ã¦ã¯ï¼ãã®ãããªç¶æ³ã§ã¯å端ã¯éµæ¬å¼§å¨è¾ºã®ç©ºç½ã®ã¿ã§è² æ
ãï¼ãã®ä»ã®åæ
+æåã¯ãã¿çµã§çµã¾ããï¼å³\ref{fig-adj}ä¸æ®µï¼ãã¨ã«ãªã£ã¦ããï¼ãã®è¿½å
+ããã±ã¼ã¸ã¯\cite{jlreq}ã\cite{x4051}ã«ãããè¦å®ã®ãããªï¼åªå
é ä½ä»ã
+ã®è¡é·èª¿æ´ãæä¾ããï¼è©³ç´°ãªä»æ§ã«ã¤ãã¦ã¯\ref{sec-adjspec}ãåç
§ï¼
+
+
+\texttt{luatexja-adjust.sty}ã¯ï¼ä»¥ä¸ã®å½ä»¤ãæä¾ããï¼ãããã¯ãã¹ã¦ã°ãã¼ãã«ã«å¹åãçºæ®ããï¼
+
+\begin{list}{}{\def\makelabel{\ttfamily}\def\{{\char`\{}\def\}{\char`\}}\advance\leftmargin1\zw}
+\item[\char92ltjdisableadjust]
+åªå
é ä½ä»ãã®è¡é·èª¿æ´ãç¡å¹åããï¼
+
+\item[\char92ltjenableadjust]
+åªå
é ä½ä»ãã®è¡é·èª¿æ´ãæå¹åããï¼
+
+\item[åªå
度è¨å®â¦â¦]
+
+\end{list}
+
+
+
+
+
+%
+
+
+
%\part{Implementations}
%\part{å®è£
}
\label{part-imp}
@@ -3280,12 +3987,12 @@ Here the following is the list of dimensions and attributes which are used in \L
\dim{jQ}
%<*en>
-As explained in Subsection~\ref{ssec-plain}, \verb+\jQ+ is equal to
+\verb+\jQ+ is equal to
$1\,\textrm{Q}=0.25\,\textrm{mm}$, where `Q'~(also called `ç´') is
a unit used in Japanese phototypesetting. So one should not change the value of this dimension.
%
%<*ja>
-\ref{ssec-plain} ç¯ã§è¿°ã¹ãããã«ï¼\verb+\jQ+ ã¯$1\,\textrm{Q}=0.25\,\textrm{mm}$
+\verb+\jQ+ ã¯$1\,\textrm{Q}=0.25\,\textrm{mm}$
ã¨çããï¼ããã§ï¼`Q'ï¼ãããã¯ãç´ãï¼ã¯æ¥æ¬ã®åæ¤ã§ç¨ããããåä½ã§ããï¼ãããã£ã¦ï¼
ãã®å¯¸æ³ã¬ã¸ã¹ã¿ã®å¤ãå¤æ´ãã¦ã¯ãªããªãï¼
%
@@ -3297,7 +4004,7 @@ There is also a unit called `æ¯' which equals to $0.25\,\textrm{mm}$ and
\verb+\jH+ is a synonym of \verb+\jQ+.
%
%<*ja>
-åããåæ¤ã§ç¨ãããã¦ããåä½ã¨ãã¦ãæ¯ããããï¼ããã¯$0.25\,\textrm{mm}$ã¨
+åããåæ¤ã§ç¨ãããã¦ããåä½ã¨ãã¦ãæ¯ããããï¼ããã$0.25\,\textrm{mm}$ã¨
çããï¼\verb+\jH+ 㯠\verb+\jQ+ ã®å¥åã§ããï¼
%
@@ -3359,18 +4066,18 @@ The amount of shifting the baseline of Japanese fonts in scaled point ($2^{-16}\
\attr{ltj@autospc}
%<*en>
-Whether the auto insertion of \Param{kanjiskip} is allowed at the node.
+Whether the auto insertion of \Param{\hyperlink{fld:kanjiskip}{kanjiskip}} is allowed at the node.
%
%<*ja>
-ãã®ãã¼ãã§\Param{kanjiskip}ã®èªåæ¿å
¥ã許ããããã©ããï¼
+ãã®ãã¼ãã§\Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ã®èªåæ¿å
¥ã許ããããã©ããï¼
%
\attr{ltj@autoxspc}
%<*en>
-Whether the auto insertion of \Param{xkanjiskip} is allowed at the node.
+Whether the auto insertion of \Param{\hyperlink{fld:xks}{xkanjiskip}} is allowed at the node.
%
%<*ja>
-ãã®ãã¼ãã§\Param{xkanjiskip}ã®èªåæ¿å
¥ã許ããããã©ããï¼
+ãã®ãã¼ãã§\Param{\hyperlink{fld:xks}{xkanjiskip}}ã®èªåæ¿å
¥ã許ããããã©ããï¼
%
\attr{ltj@icflag}
@@ -3387,11 +4094,11 @@ assigned to this attribute:
Glues from an italic correction
(\verb+\/+). This distinction of origins of glues
(from explicit \verb+\kern+, or from \verb+\/+)
- is needed in the insertion process of \Param{xkanjiskip}.
+ is needed in the insertion process of \Param{\hyperlink{fld:xks}{xkanjiskip}}.
%
%<*ja>
ã¤ã¿ãªãã¯è£æ£(\verb+\/+)ã«ããã°ã«ã¼ï¼ãã®ã°ã«ã¼ã®ç±æ¥ã®åºå¥ï¼\verb+\kern+ ã
-\verb+\/+ ãï¼ã¯\Param{xkanjiskip}ã®æ¿å
¥éç¨ã«ããã¦å¿
è¦ã«ãªãï¼
+\verb+\/+ ãï¼ã¯\Param{\hyperlink{fld:xks}{xkanjiskip}}ã®æ¿å
¥éç¨ã«ããã¦å¿
è¦ã«ãªãï¼
%
\item[\textit{packed} (2)]
@@ -3404,7 +4111,7 @@ Penalties inserted for the word-wrapping process of Japanese characters (\emph{k
åææåã®ã¯ã¼ãã©ããéç¨ã«ããã¦æ¿å
¥ãããããã«ãã£(\emph{kinsoku})ï¼
%
-\item[\textit{from\_jfm} (4)]
+\item[\textit{from\_jfm} (6)]
%<*en>
Glues/kerns from JFM.
%
@@ -3412,39 +4119,40 @@ Glues/kerns from JFM.
JFMç±æ¥ã®ã°ã«ã¼ï¼ã«ã¼ã³ï¼
%
-\item[\textit{line\_end} (5)]
-%<*en>
-Kerns for ...
-%
-%<*ja>
-ã«ã¼ã³ ...
-%
+%%\item[\textit{line\_end} (5)]
+%%%<*en>
+%%Kerns for \ldots
+%%%
+%%%<*ja>
+%%åææåãè¡æ«ã«ããã¨ãï¼è¡æ«ã¨ã®éã«æ¿å
¥ãããã«ã¼ã³ã§ããï¼
+%%% ã¶ãä¸ãçµã¸ã®å¿ç¨
+%%%
-\item[\textit{kanji\_skip} (6)]
+\item[\textit{kanji\_skip} (9)]
%<*en>
-Glues for \Param{kanjiskip}.
+Glues for \Param{\hyperlink{fld:kanjiskip}{kanjiskip}}.
%
%<*ja>
-\Param{kanjiskip}ã®ã°ã«ã¼ï¼
+\Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ã®ã°ã«ã¼ï¼
%
-\item[\textit{xkanji\_skip} (7)]
+\item[\textit{xkanji\_skip} (10)]
%<*en>
-Glues for \Param{xkanjiskip}.
+Glues for \Param{\hyperlink{fld:xks}{xkanjiskip}}.
%
%<*ja>
-\Param{xkanjiskip}ã®ã°ã«ã¼ï¼
+\Param{\hyperlink{fld:xks}{xkanjiskip}}ã®ã°ã«ã¼ï¼
%
-\item[\textit{processed} (8)]
+\item[\textit{processed} (11)]
%<*en>
-Nodes which is already processed by ...
+Nodes which is already processed by \ldots.
%
%<*ja>
-... ã«ãã£ã¦æ¢ã«å¦çããããã¼ãï¼
+\LuaTeX-ja ã®å
é¨å¦çã«ãã£ã¦æ¢ã«å¦çããããã¼ãï¼
%
-\item[\textit{ic\_processed} (9)]
+\item[\textit{ic\_processed} (12)]
%<*en>
Glues from an italic correction, but also already processed.
%
@@ -3476,15 +4184,15 @@ $i$ã¯7ããå°ããèªç¶æ°ï¼
%<*en>
Furthermore, \LuaTeX-ja uses several `user-defined' whatsit nodes for
inrernal processing. All those nodes store a natural number (hence the node's
-\texttt{type} is 100). The following \verb+user_id+s are used:
+\texttt{type} is 100).
%
%<*ja>
-ããã«ï¼\LuaTeX-jaã¯ããã¤ãã®ãã¦ã¼ã¶å®ç¾©ã®ãwhatsit ãã¼ããå
é¨å¦çã«ç¨ããï¼
+ããã«ï¼\LuaTeX-jaã¯ããã¤ãã®ãã¦ã¼ã¶å®ç¾©ã®ãwhatsitãã¼ããå
é¨å¦çã«ç¨ããï¼
ãããã®å
¨ã¦ã®ãã¼ãã¯èªç¶æ°ãæ ¼ç´ãã¦ããï¼ãããã£ã¦ãã¼ãã®\texttt{type}ã¯
-100ã§ããï¼ï¼æ¬¡ã® \verb+user_id+ ã使ç¨ãããï¼
+100ã§ããï¼ï¼
%
\begin{description}
-\item[30111]
+\item[\texttt{inhibitglue}]
%<*en>
Nodes for indicating that \verb+\inhibitglue+ is
specified. The \texttt{value} field of these nodes doesn't matter.
@@ -3494,7 +4202,7 @@ Nodes for indicating that \verb+\inhibitglue+ is
\texttt{value}ãã£ã¼ã«ãã¯æå³ãæããªãï¼
%
-\item[30112]
+\item[\texttt{stack\_marker}]
%<*en>
Nodes for \LuaTeX-ja's stack system (see the next
subsection). The \texttt{value} field of these nodes is
@@ -3505,7 +4213,7 @@ Nodes for \LuaTeX-ja's stack system (see the next
ãããã®ãã¼ãã®\texttt{value}ãã£ã¼ã«ãã¯ç¾å¨ã®ã°ã«ã¼ãã表ãï¼
%
-\item[30113]
+\item[\texttt{char\_by\_cid}]
%<*en>
Nodes for Japanese Characters which the callback process of
\Pkg{luaotfload} won't be applied, and the character code is
@@ -3518,12 +4226,12 @@ Nodes for Japanese Characters which the callback process of
\Pkg{luaotfload}ã®ã³ã¼ã«ããã¯ã«ããå¦çãé©ç¨ãããªãåææåã®ããã®ãã¼ãã§ï¼
\texttt{value}ãã£ã¼ã«ãã«ãã®æåã®ã³ã¼ããæ ¼ç´ããã¦ããï¼
ãã® \verb+user_id+ ãæã¤ãã¼ãã¯ããããã\Pkg{luaotfload}ã®ã³ã¼ã«ããã¯ã®å¦çã®
-\textbf{å¾ã§}`glyph\_node'ã«å¤æãããï¼ãã® \verb+user_id+ 㯠%
+\emph{å¾ã§}`glyph\_node'ã«å¤æãããï¼ãã® \verb+user_id+ 㯠%
\Pkg{luatexja-otf} ããã±ã¼ã¸ã§ã®ã¿ä½¿ç¨ãããï¼
%
-\item[30114]
-Nodes for indicating beginning of a paragraph.
+\item[\texttt{begin\_par}]
+Nodes for indicating beginning of a paragraph.
A paragraph which is started by \verb+\item+ in list-like environments has a horizontal box
for its label before the actual contents. So \dots
\end{description}
@@ -3543,13 +4251,13 @@ These whatsits will be removed during the process of inserting \textbf{JAglue}s.
%<*en>
\LuaTeX-ja has its own stack system, and most parameters of \LuaTeX-ja
are stored in it. To clarify the reason, imagine the parameter
-\Param{kanjiskip} is stored by a skip, and consider the following
+\Param{\hyperlink{fld:kanjiskip}{kanjiskip}} is stored by a skip, and consider the following
source:
%
%<*ja>
\LuaTeX-jaã¯ç¬èªã®ã¹ã¿ãã¯ã·ã¹ãã ãæã¡ï¼\LuaTeX-jaã®ã»ã¨ãã©ã®ãã©ã¡ã¼ã¿ã¯
ãããç¨ãã¦ä¿æããã¦ããï¼ãã®çç±ãæããã«ããããã«ï¼
-\Param{kanjiskip}ãã©ã¡ã¼ã¿ãã¹ãããã¬ã¸ã¹ã¿ã§ä¿æããã¦ããã¨ãï¼
+\Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ãã©ã¡ã¼ã¿ãã¹ãããã¬ã¸ã¹ã¿ã§ä¿æããã¦ããã¨ãï¼
以ä¸ã®ã³ã¼ããèãã¦ã¿ããï¼
%
\begin{LTXexample}
@@ -3560,16 +4268,16 @@ source:
%<*en>
As described in Subsection~\ref{ssec-param}, the only effective value of
-\Param{kanjiskip} in an hbox is the latest value, so the value of
-\Param{kanjiskip} which applied in the entire hbox should be 5\,pt.
+\Param{\hyperlink{fld:kanjiskip}{kanjiskip}} in an hbox is the latest value, so the value of
+\Param{\hyperlink{fld:kanjiskip}{kanjiskip}} which applied in the entire hbox should be 5\,pt.
However, by the implementation method of \LuaTeX, this `5\,pt' cannot be
known from any callbacks. In the \texttt{tex/packaging.w} (which is a
file in the source of \LuaTeX), there are the following codes:
%
%<*ja>
-\ref{ssec-param} ç¯ã§è¿°ã¹ãããã«ï¼ããæ°´å¹³ããã¯ã¹ã®ä¸ã§å¹åãæã¤
-\Param{kanjiskip}ã®å¤ã¯æå¾ã«ç¾ããå¤ã®ã¿ã§ããï¼ãããã£ã¦ããã¯ã¹å
¨ä½ã«é©ç¨ããã
-\Param{kanjiskip}ã¯5\,ptã§ããã¹ãã§ããï¼ãããï¼\LuaTeX ã®å®è£
ã®ããã«ï¼
+\ref{ssec-param}ç¯ã§è¿°ã¹ãããã«ï¼ããæ°´å¹³ããã¯ã¹ã®ä¸ã§å¹åãæã¤
+\Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ã®å¤ã¯æå¾ã«ç¾ããå¤ã®ã¿ã§ããï¼ãããã£ã¦ããã¯ã¹å
¨ä½ã«é©ç¨ããã
+\Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ã¯5\,ptã§ããã¹ãã§ããï¼ãããï¼\LuaTeX ã®å®è£
ã®ããã«ï¼
ãã®`5\,pt'ã¯ã©ã®ã³ã¼ã«ããã¯ãããç¥ããã¨ã¯ã§ããªãï¼
\texttt{tex/packaging.w}ï¼ããã¯\LuaTeX ã®ã½ã¼ã¹ãã¡ã¤ã«ã§ããï¼ã®ä¸ã«ï¼
以ä¸ã®ã³ã¼ããããï¼
@@ -3600,7 +4308,7 @@ callback.
%
%<*ja>
\verb+unsave+ ã \verb+filtered_hpack+ï¼ãã㯠\verb+hpack_filter+ ã³ã¼ã«ããã¯ã
-å®è¡ãããã¨ããã§ããï¼ã®\textbf{åã«}å®è¡ããã¦ãããã¨ã«æ³¨æããï¼
+å®è¡ãããã¨ããã§ããï¼ã®\emph{åã«}å®è¡ããã¦ãããã¨ã«æ³¨æããï¼
ãããã£ã¦ï¼ä¸è¨ã½ã¼ã¹ä¸ã§`5\,pt'㯠\verb+unsave+ ã®ã¨ããã§æ¨ã¦ããï¼
\verb+hpack_filter+ ããã¯ã¢ã¯ã»ã¹ãããã¨ãã§ããªãï¼
%
@@ -3715,7 +4423,7 @@ This problem is resolved by using
%\section{åææåç´å¾ã®æ¹è¡}
\label{sec-lbreak}
%\subsection{Reference: Behavior in \pTeX}
-%\subsection{åè:\pTeX ã®åä½}
+%\subsection{åèï¼\pTeX ã®åä½}
%<*en>
In~\pTeX, a line break after a Japanese character doesn't emit a space,
since words are not separated by spaces in Japanese writings. However,
@@ -3755,7 +4463,7 @@ after `beginning/ending of a group' characters.
\item State~$M$: è¡ä¸ï¼
\item State~$K$: è¡ä¸ï¼åææåã®å¾ï¼ï¼
\end{itemize}
-ã¾ãï¼ç¶æ
é·ç§»ã¯ï¼å³ \ref{fig-ptexipro} ã®ããã«ãªã£ã¦ããï¼å³ä¸ã®æ°åã¯
+ã¾ãï¼ç¶æ
é·ç§»ã¯ï¼å³\ref{fig-ptexipro}ã®ããã«ãªã£ã¦ããï¼å³ä¸ã®æ°åã¯
ã«ãã´ãªã¼ã³ã¼ãã表ãã¦ããï¼æåã®3ç¶æ
ã¯\TeX ã®å
¥åå¦çé¨ã¨åãã§ããï¼
å³ä¸ããç¶æ
$K$ã¨ã$j$ãã¨æ¸ãããç¢å°ãåãé¤ãã°ï¼\TeX ã®å
¥åå¦çé¨ã¨å
ããã®ã«ãªãï¼
@@ -3768,36 +4476,72 @@ after `beginning/ending of a group' characters.
%
\begin{figure}[!tb]
-\begin{gather*}
- \def\sp{\texttt{\char32}}
- \xymatrix{&&
- {\text{scan a cs}}\ar@(r,ul)[dr]&\\
-\ar[r]&
- *++[o][F-]{N}\ar[ur]^0\ar[dd]_{d,\ g}\ar[u]^{5\ (\texttt{\char92par})}
- \ar@{->}@(d,l)[ddrr]_(0.45){j}&&
- *++[o][F-]{S}\ar@(l,dr)[ul]^0\ar@(l,ur)[ddll]_{d,\ g}\ar[u]_{5}
- \ar@{->}@(r,r)[dd]^{j}\\&\\&
- *++[o][F-]{M}\ar[uuur]^0\ar@(r,dl)[uurr]_(0.55){10\ (\sp)}
- \ar[d]_{5\ ({\sp})}\ar@{->}@(dr,dl)[rr]_{j}&&
- *++[o][F-]{K}\ar@{->}@(ul,d)[uuul]^0\ar@{->}[ll]^{d}
- \ar@{->}@(ur,dr)[uu]^{10\ (\sp)}\ar@{->}[d]_5\\
- &&&
- }\\
- d:=\{3,4,6,7,8,11,12,13\},\quad g:=\{1,2\},\quad j:=(\text{Japanese characters})
-\end{gather*}
+\let\sp\textvisiblespace\small
+\begin{minipage}{.6\textwidth}%
+\begin{center}
+\unitlength=6.5mm\sf\mathversion{bold}
+\begin{tikzpicture}[
+ ->, auto, shorten >=1pt
+]
+\node [shape=rectangle, font=\scriptsize] (init) at (2,7) {start};
+\node [shape=circle,draw, fill=blue!20] (newline) at (4,7) {$N$};
+\node [shape=circle,draw, fill=blue!20] (midline) at (4,4) {$M$};
+\node [shape=circle,draw, fill=blue!20] (skipspc) at (8,7) {$S$};
+\node [shape=circle,draw, fill=red!20] (kanji) at (8,4) {$K$};
+\node [shape=rectangle,draw, fill=green!20] (scanacs) at (6,8) {scan a c.s.};
+\node (endk) at (8,2.5) {} ;
+\node (endm) at (4,2.5) {} ;
+\node (ends) at (8,8.5) {} ;
+\node (endn) at (4,8.5) {} ;
+\begin{scope}[font=\scriptsize]
+\path (newline) edge [bend right] node [left]{G, O} (midline)
+ (init) edge node {} (newline)
+ (midline) edge [bend right=10] node {10} (skipspc)
+ (skipspc) edge [bend right] node [left,right=10,above=7]{G, O} (midline)
+ (skipspc) edge [loop right] node {10} (skipspc)
+ (newline) edge [loop right] node {10} (newline)
+ (scanacs) edge [bend left] node [left=3,below]{$(*)$} (skipspc)
+ (scanacs) edge [bend right] node [right=30,above=20]{$(*)$} (midline)
+ (midline) edge node {5\ [\sp]} (endm)
+ (midline) edge [loop left] node {G, O} (midline)
+ (skipspc) edge node [right] {5} (ends)
+ (newline) edge node {5 [{\tt\char92par}]} (endn);
+\begin{scope}[red]
+\path (newline) edge [bend right] node [right=25,below=3]{J} (kanji)
+ (midline) edge node [below]{J} (kanji)
+ (kanji) edge [bend left] node {O} (midline)
+ (kanji) edge node {10} (skipspc)
+ (kanji) edge [loop right] node {G, J} (kanji)
+ (skipspc) edge [bend left] node {J} (kanji)
+ (kanji) edge node {5} (endk)
+;
+\end{scope}
+\end{scope}
+\end{tikzpicture}
+\end{center}
+\end{minipage}%
+\begin{minipage}{.4\textwidth}
+\begin{description}
+\item[\textsf{G}] Beginning of group (usually \verb+{+)\\
+ and ending of group (usually \verb+}+).
+\item[\textsf{J}] Japanese characters.
+\item[\textsf{5}] \textit{end-of-line} (usually \verb+^+\verb+^J+).
+\item[\textsf{10}] space (usually \sp).
+\item[\textsf{O}] other characters, whose category code is in $\{3,4,6,7,8,11,12,13\}$.
+\item[\textsf{[\sp]}, \textsf{[{\tt\char92par}]}]
+emits a space, or~\verb+\par+.
+\end{description}
+\end{minipage}
\begin{itemize}
-%<*en>
-\item Numbers represent category codes.
-%
-%<*ja>
-\item æ°åã¯ã«ãã´ãªã¼ã³ã¼ãã表ããã¦ããï¼
-%
-%<*en>
-\item Category codes 9~(ignored), 14~(comment)~and~15~(invalid) are omitted in the above diagram.
-%
-%<*ja>
-\item ã«ãã´ãªã¼ã³ã¼ã9ï¼ç¡è¦ããæåï¼ï¼14ï¼ã³ã¡ã³ãæåï¼ï¼15ï¼ç¡å¹æåï¼ã¯ä¸ã®å³ã§ã¯çããã¦ããï¼
-%
+\item We omitted about category codes
+9~(\textit{ignored}), 14~(\textit{comment})~and~15~(\textit{invalid})
+from the above diagram. We also ignored the input like `\verb+^+\verb+^A+' or `\verb+^+\verb+^df+'.
+\item When a character whose category code is 0 (\textit{escape character}) is seen by \TeX,
+the input processor scans a control sequence (\textsf{scan a c.s.}).
+These paths are not shown in the above diagram.
+
+After that, the state is changed to State~$S$ (skipping blanks) in most cases, but
+to State~$M$ (middle of line) sometimes.
\end{itemize}
%\caption{State transitions of \pTeX's input processor.}
%\caption{\pTeX ã®å
¥åå¦çé¨ã®ç¶æ
é·ç§»ï¼}
@@ -3823,10 +4567,12 @@ Considering these situations, handling of an end-of-line in \LuaTeX-ja are as fo
\begin{quote}
A character U+FFFFF (its category code is set to 14~(comment) by
\LuaTeX-ja) is appended to an input line, \emph{before \LuaTeX\ actually
-process it}, if and only if the following two conditions are satisfied:
+process it}, if and only if the following three conditions are satisfied:
\begin{enumerate}
-\item The category code of the character $\langle${return}$\rangle$
- (whose character code is 13) is 5~(end-of-line).
+\item The category code of \verb+\endlinechar+%
+\footnote{Usually, it is $\langle${return}$\rangle$
+ (whose character code is 13).} is 5~(end-of-line).
+\item The category code of U+FFFFF itself is 14~(comment).
\item The input line matches the following `regular expression':
\[
(\text{any char})^*(\textbf{JAchar})
@@ -3867,12 +4613,14 @@ u
以ä¸ãè¸ã¾ãï¼\LuaTeX-jaã«ããããåææåç´å¾ã®æ¹è¡æå¶ãã®å¦çã¯ï¼æ¬¡ã®ããã«ãªã£ã¦ããï¼
\begin{quote}
-åå
¥åè¡ã«å¯¾ãï¼\textbf{ãã®å
¥åè¡ãèªã¾ããåã®å
é¨ç¶æ
ã§}
-以ä¸ã®2æ¡ä»¶ãæºãããã¦ããå ´åï¼\LuaTeX-jaã¯U+FFFFFçªã®æå
+åå
¥åè¡ã«å¯¾ãï¼\emph{ãã®å
¥åè¡ãèªã¾ããåã®å
é¨ç¶æ
ã§}
+以ä¸ã®3æ¡ä»¶ãæºãããã¦ããå ´åï¼\LuaTeX-jaã¯U+FFFFFçªã®æå
\footnote{ãã®æåã¯ã³ã¡ã³ãæåã¨ãã¦æ±ãããããã«\LuaTeX-jaå
é¨ã§è¨å®ããã¦ããï¼}
ãæ«å°¾ã«è¿½å ããï¼ãã£ã¦ï¼ãã®å ´åã«æ¹è¡ã¯ç©ºç½ã¨ã¯è¦åãããªããã¨ã¨ãªãï¼
\begin{enumerate}
-\item æ¹è¡æåï¼æåã³ã¼ã13çªï¼ã®ã«ãã´ãªã¼ã³ã¼ãã5~(end-of-line)ã§ããï¼
+\item \verb+\endlinechar+ã®æå\footnote{æ®éã¯ï¼æ¹è¡æåï¼æåã³ã¼ã13çªï¼ã§ããï¼}
+ã®ã«ãã´ãªã¼ã³ã¼ãã5~(end-of-line)ã§ããï¼
+\item U+FFFFFã®ã«ãã´ãªã¼ã³ã¼ãã14~(comment)ã§ããï¼
\item å
¥åè¡ã¯æ¬¡ã®ãæ£è¦è¡¨ç¾ãã«ããããã¦ããï¼
\[
(\text{any char})^*(\textbf{JAchar})
@@ -3904,6 +4652,7 @@ u
ãã®è¡ã¯ããã§æ¹è¡ããããã«ããæ¹ãããã ããï¼
%
+%<*ja>
%\section{Insertion of JFM glues, \Param{kanjiskip} and \Param{xkanjiskip}}
%\section{JFMã°ã«ã¼ã®æ¿å
¥ï¼\Param{kanjiskip}ã¨\Param{xkanjiskip}}
@@ -3911,17 +4660,17 @@ u
%\subsection{Overview}
%\subsection{æ¦è¦}
-\LuaTeX-jaã«ãããåæå¦çã°ã«ã¼ã®æ¿å
¥æ¹æ³ã¯ï¼\pTeX ã®ããã¨ã¯å
¨ãç°ãªãï¼
+\LuaTeX-jaã«ããã \textbf{JAglue} ã®æ¿å
¥æ¹æ³ã¯ï¼\pTeX ã®ããã¨ã¯å
¨ãç°ãªãï¼
\pTeX ã§ã¯æ¬¡ã®ãããªä»æ§ã§ãã£ãï¼
\begin{itemize}
\item JFMã°ã«ã¼ã®æ¿å
¥ã¯ï¼åææåã表ããã¼ã¯ã³ãå
ã«æ°´å¹³ãªã¹ãã«ï¼æåã表ãï¼ã
追å ããéç¨ã§è¡ãããï¼
-\item \Param{xkanjiskip}ã®æ¿å
¥ã¯ï¼æ°´å¹³ããã¯ã¹ã¸ã®ããã±ã¼ã¸ã³ã°ãè¡åå²åã«è¡ãããï¼
-\item \Param{kanjiskip}ã¯ãã¼ãã¨ãã¦ã¯æ¿å
¥ãããªãï¼ããã±ã¼ã¸ã³ã°ãè¡åå²ã®è¨ç®æã«
-ãåææåã表ã2ã¤ã®ã®éã«ã¯\Param{kanjiskip}ãããããã®ã¨ã¿ãªãããï¼
+\item \Param{\hyperlink{fld:xks}{xkanjiskip}}ã®æ¿å
¥ã¯ï¼æ°´å¹³ããã¯ã¹ã¸ã®ããã±ã¼ã¸ã³ã°ãè¡åå²åã«è¡ãããï¼
+\item \Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ã¯ãã¼ãã¨ãã¦ã¯æ¿å
¥ãããªãï¼ããã±ã¼ã¸ã³ã°ãè¡åå²ã®è¨ç®æã«
+ãåææåã表ã2ã¤ã®ã®éã«ã¯\Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ãããããã®ã¨ã¿ãªãããï¼
\end{itemize}
ãããï¼\LuaTeX-jaã§ã¯ï¼æ°´å¹³ããã¯ã¹ã¸ã®ããã±ã¼ã¸ã³ã°ãè¡åå²åã«å
¨ã¦ã®
-\textbf{JAglue}ï¼å³ã¡JFMã°ã«ã¼ã»\Param{xkanjiskip}ã»\Param{kanjiskip}ã®
+\textbf{JAglue}ï¼å³ã¡JFMã°ã«ã¼ã»\Param{\hyperlink{fld:xks}{xkanjiskip}}ã»\Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ã®
3種é¡ãä¸åº¦ã«æ¿å
¥ãããã¨ã«ãªã£ã¦ããï¼ããã¯ï¼\LuaTeX ã«ããã¦æ¬§æã®ååã»
ã«ã¼ãã³ã°å¦çããã¼ããã¼ã¹ã«ãªã£ããã¨ã«å¯¾å¿ããå¤æ´ã§ããï¼
@@ -3943,7 +4692,7 @@ A \emph{cluster} is a list of consecutive nodes in one of the following forms,
with the \textit{id} of it:
%
%<*ja>
-\textbf{ã¯ã©ã¹ã¿}ã¯ä»¥ä¸ã®å½¢ã®ãã¡ã®ã©ããã²ã¨ã¤ãã¨ãé£ç¶çãªãã¼ãã®ãªã¹ãã§ããï¼
+\emph{ã¯ã©ã¹ã¿}ã¯ä»¥ä¸ã®å½¢ã®ãã¡ã®ã©ããã²ã¨ã¤ãã¨ãé£ç¶çãªãã¼ãã®ãªã¹ãã§ããï¼
%
\begin{enumerate}
%<*en>
@@ -4080,7 +4829,7 @@ $\mathit{Np}.\mathit{head}$, $\mathit{Np}.\mathit{tail}$ã¯ï¼ãã®åææå
\hbox{\hbox{abc}...\hbox{\lower1pt\hbox{xyz}}}
\end{verbatim}
ã®ããã«ï¼$p$ã®å
容ãå¥ã®æ°´å¹³ããã¯ã¹ã§éå§ã»çµäºãã¦ããå¯è½æ§ãååããå¾ãï¼ãã®ãããªå ´åï¼
-$\mathit{Np}.\mathit{head}$, $\mathit{Np}.\mathit{tail}$ã®ç®åºã¯ï¼\textbf{åç´æ¹åã«ã·ããããã¦ããªã}æ°´å¹³ããã¯ã¹ã®
+$\mathit{Np}.\mathit{head}$, $\mathit{Np}.\mathit{tail}$ã®ç®åºã¯ï¼\emph{åç´æ¹åã«ã·ããããã¦ããªã}æ°´å¹³ããã¯ã¹ã®
å ´åã ãå
é¨ãå帰çã«æ¢ç´¢ããï¼ä¾ãã°ä¸ã®ä¾ã§ã¯ï¼$\mathit{Np}.\mathit{head}$ã¯æåãaãã表ããã¼ãã§ããï¼
ä¸æ¹$\mathit{Np}.\mathit{tail}$ã¯åç´æ¹åã«ã·ãããããæ°´å¹³ããã¯ã¹ï¼\verb+\lower1pt\hbox{xyz}+ã«å¯¾å¿ãããã¼ãã§ããï¼
\item ã¾ãï¼å
é ã«ã¢ã¯ã»ã³ãä»ãã®æåããããï¼æ«å°¾ã«ã¤ã¿ãªãã¯è£æ£ç¨ã®ã«ã¼ã³ã
@@ -4112,7 +4861,7 @@ $\mathit{Np}.\mathit{head}$, $\mathit{Np}.\mathit{tail}$ã®ç®åºã¯ï¼\textbf{
\textit{id}ã\textit{id\_pbox}ã§ãã£ã¦$\mathit{Np}.\mathit{head}$ã\textbf{JAchar}ã§ããã¨ãï¼
\item[åæB] ãªã¹ãä¸ã®æ°´å¹³ããã¯ã¹ã®ä¸èº«ã®å
é ã¨ãã¦åºç¾ããåææåï¼åæAã¨ã®éãã¯ï¼ããã®åã«
-JFMã°ã«ã¼ã®æ¿å
¥ãè¡ãããªãï¼\Param{xkanjiskip},~\Param{kanjiskip}ã¯å
¥ãå¾ãï¼ãã¨ã§ããï¼\\
+JFMã°ã«ã¼ã®æ¿å
¥ãè¡ãããªãï¼\Param{\hyperlink{fld:xks}{xkanjiskip}},~\Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ã¯å
¥ãå¾ãï¼ãã¨ã§ããï¼\\
\textit{id}ã\textit{id\_hlist}ã\textit{id\_disc}ã§ãã£ã¦$\mathit{Np}.\mathit{head}$ã\textbf{JAchar}ã§ããã¨ãï¼
\item[欧æ] ãªã¹ãä¸ã«ç´æ¥ï¼æ°´å¹³ããã¯ã¹ã®ä¸èº«ã¨ãã¦åºç¾ãã¦ãã欧ææåï¼æ¬¡ã®3ã¤ã®å ´åã該å½ï¼
@@ -4190,31 +4939,66 @@ $g$ã¯ãæåã³ã¼ã\texttt{'boxbdd'}ã®æåãã¨\textit{Np}ã®éã«å
¥
\longrightarrow \Node{glue or kern}{å³ç©ºç½}\longrightarrow \Node{cluster}{\textit{Np}}
\]
-以å¾ï¼\textbf{å
¸åçãªä¾ã¨ãã¦ï¼ã¯ã©ã¹ã¿\textit{Nq}ã¨\textit{Np}ãå
±ã«\textsf{\textmd{åæA}}ã§ããå ´åãè¦ã¦ãããï¼}
+以å¾ï¼\emph{å
¸åçãªä¾ã¨ãã¦ï¼ã¯ã©ã¹ã¿\textit{Nq}ã¨\textit{Np}ãå
±ã«\textsf{\textmd{åæA}}ã§ããå ´åãè¦ã¦ãããï¼}
ãã®å ´åãå
¨ã¦ã®å ´åã®åºæ¬ã¨ãªãï¼
\paragraph{ãå³ç©ºç½ãã®ç®åº}
ã¾ãï¼ãå³ç©ºç½ãã«ãããéãç®åºããï¼é常ã¯ãããï¼é£ãåã£ã2ã¤ã®åææåéã«å
¥ã空ç½éã¨ãªãï¼
\begin{description}
\item[JFMç±æ¥{[M]}] JFMã®æåã¯ã©ã¹æå®ã«ãã£ã¦å
¥ã空ç½ã以ä¸ã«ãã£ã¦æ±ããï¼ãã®æ®µéã§ç©ºç½éãæªå®ç¾©ï¼æªæå®ï¼ã ã£ãå ´åï¼
- ããã©ã«ãå¤\Param{kanjiskip}ãæ¡ç¨ãããã¨ã¨ãªãã®ã§ï¼æ¬¡ã¸ï¼
+ ããã©ã«ãå¤\Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ãæ¡ç¨ãããã¨ã¨ãªãã®ã§ï¼æ¬¡ã¸ï¼
\begin{enumerate}
\item ãã両ã¯ã©ã¹ã¿ã®éã§\verb+\inhibitglue+ãå®è¡ããã¦ããå ´åï¼è¨¼ã¨ãã¦whatsitãã¼ããèªåæ¿å
¥ãããï¼ï¼
- 代ããã«\Param{kanjiskip}ãæ¿å
¥ããããã¨ã¨ãªãï¼æ¬¡ã¸ï¼
+ 代ããã«\Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ãæ¿å
¥ããããã¨ã¨ãªãï¼æ¬¡ã¸ï¼
\item \textit{Nq}ã¨\textit{Np}ãåãJFMã»åã\texttt{jfmvar}ãã¼ã»åããµã¤ãºã®åæãã©ã³ãã§ãã£ããªãã°ï¼
- å
±éã«ä½¿ã£ã¦ããJFMå
ã§æ¿å
¥ããã空ç½ï¼ã°ã«ã¼ãã«ã¼ã³ï¼ã決ã¾ã£ã¦ããã調ã¹ãï¼
+ å
±éã«ä½¿ã£ã¦ããJFMå
ã§æ¿å
¥ããã空ç½ï¼ã°ã«ã¼ãã«ã¼ã³ï¼ã決ã¾ã£ã¦ããã調ã¹ï¼æ±ºã¾ã£ã¦ããã°ãããæ¡ç¨ï¼
\item 1.ã§ã2.ã§ããªãå ´åã¯ï¼\textit{Nq}ã¨\textit{Np}ãéãJFM/\texttt{jfmvar}/ãµã¤ãºã§ããï¼
ãã®å ´åï¼ã¾ã
\[
-\vcenter{\halign{\hfil$#:={}$&(\inhibitglue#\inhibitglue)\cr
-gb&\textit{Nq}ã¨ãæåã³ã¼ãã{\tt'diffmet'}ã®æåãã¨ã®éã«å
¥ãã°ã«ã¼ï¼ã«ã¼ã³\cr
-ga&ãæåã³ã¼ãã{\tt'diffmet'}ã®æåãã¨\textit{Np}ã¨ã®éã«å
¥ãã°ã«ã¼ï¼ã«ã¼ã³\cr
+\vcenter{\halign{\hfil$#:={}$&\inhibitglue#\inhibitglue\cr
+gb&(\textit{Nq}ã¨ã使ç¨ãã©ã³ãã\textit{Nq}ã®ããã¨åãã§ï¼\hfil\cr
+\omit&\quad æåã³ã¼ãã\textit{Np}ã®ããã®æåãã¨ã®éã«å
¥ãã°ã«ã¼ï¼ã«ã¼ã³)\hfil\cr
+ga&(\inhibitglue ã使ç¨ãã©ã³ãã\textit{Np}ã®ããã¨åãã§ï¼\hfil\cr
+\omit&\quad æåã³ã¼ãã\textit{Nq}ã®ããã®æåãã¨\textit{Np}ã¨ã®éã«å
¥ãã°ã«ã¼ï¼ã«ã¼ã³)\hfil\cr
}}
\]
-ã¨ãã¦ï¼å·¦å´ç±æ¥ã»å³å´ç±æ¥ã®ç©ºç½ï¼ã°ã«ã¼ï¼ã«ã¼ã³ï¼ãï¼ããããã®JFMããï¼æ±ããï¼
-$\mathit{ga}$ã¨$\mathit{gb}$ã®ã©ã¡ããçæ¹ãæªå®ç¾©ã§ãããªãã°ï¼å®ç¾©ããã¦ããå´ã®å¤ããã®ã¾ã¾æ¡ç¨ããï¼
-ãã$\mathit{ga}$ã¨$\mathit{gb}$ã両æ¹æ±ºã¾ã£ã¦ãããªãã°ï¼ä¸¡è
ã®å¤ãå¹³å\footnote{\Param{differentjfm}ãã©ã¡ã¿ã®
-å¤ã«ãã£ã¦ï¼ã大ããæ¹ããå°ããæ¹ããåè¨ãã«å¤ãããã¨ãã§ããï¼}ããå¤ãæ¡ç¨ããï¼
+ã¨ãã¦ï¼åå´ã®æåã®JFMã使ã£ãæã®ç©ºç½ï¼ã°ã«ã¼ï¼ã«ã¼ã³ï¼ã¨ï¼å¾å´ã®æåã®JFMã使ã£ãæã®ãããæ±ããï¼
+
+$\mathit{gb}$,~$\mathit{ga}$ããããã«å¯¾ããã®å¤ã$d_b$,~$d_a$ã¨ããï¼
+\begin{itemize}
+\item
+$\mathit{ga}$ã¨$\mathit{gb}$ã®ä¸¡æ¹ãæªå®ç¾©ã§ãããªãã°ï¼JFMç±æ¥ã®ã°ã«ã¼ã¯æ¿å
¥ãããï¼\Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ãæ¡ç¨ãããã¨ã¨ãªãï¼ã©ã¡ããçæ¹ã®ã¿ãæªå®ç¾©ã§ãããªãã°ï¼æ¬¡ã®ã¹ãããã§ãã®æªå®ç¾©ã®æ¹ã¯é·ã0ã®kernã§ï¼ã®å¤ã¯0ã§ãããã®ããã«æ±ãããï¼
+\item
+\Param{\hyperlink{fld:diffjfm}{diffrentjfm}}ã®å¤ã\texttt{pleft}, \texttt{pright}, \texttt{paverage}ã®ã¨ãï¼
+ã®æå®ã«å¾ã£ã¦æ¯ä¾é
åãè¡ãï¼
+JFMç±æ¥ã®ã°ã«ã¼ï¼ã«ã¼ã³ã¯ä»¥ä¸ã®å¤ã¨ãªãï¼
+\[
+ f\left(\frac{1-d_b}2\textit{gb} + \frac{1+d_b}2\textit{ga},
+\frac{1-d_a}2\textit{gb} + \frac{1+d_a}2\textit{ga}\right)
+\]
+ããã§ï¼$f(x,y)$ã¯
+\[
+ f(x,y)=\begin{cases}
+x&\text{if\ }\Param{\hyperlink{fld:diffjfm}{diffrentjfm}}=\texttt{pleft};\\
+y&\text{if\ }\Param{\hyperlink{fld:diffjfm}{diffrentjfm}}=\texttt{pright};\\
+(x+y)/2&\text{if\ }\Param{\hyperlink{fld:diffjfm}{diffrentjfm}}=\texttt{paverage};
+\end{cases}.
+\]
+\item
+\Param{differentmet}ããã以å¤ã®å¤ã®æã¯ï¼ã®å¤ã¯ç¡è¦ããï¼JFMç±æ¥ã®ã°ã«ã¼ï¼ã«ã¼ã³ã¯ä»¥ä¸ã®å¤ã¨ãªãï¼
+\[
+ f(\textit{gb},\textit{ga})
+\]
+ããã§ï¼$f(x,y)$ã¯
+\[
+ f(x,y)=\begin{cases}
+\min(x,y)&\text{if\ }\Param{\hyperlink{fld:diffjfm}{diffrentjfm}}=\texttt{small};\\
+\max(x,y)&\text{if\ }\Param{\hyperlink{fld:diffjfm}{diffrentjfm}}=\texttt{large};\\
+(x+y)/2&\text{if\ }\Param{\hyperlink{fld:diffjfm}{diffrentjfm}}=\texttt{average};\\
+x+y&\text{if\ }\Param{\hyperlink{fld:diffjfm}{diffrentjfm}}=\texttt{both};
+\end{cases}.
+\]
+\end{itemize}
\end{enumerate}
ä¾ãã°ï¼
@@ -4233,37 +5017,26 @@ $\mathit{ga}$ã¨$\mathit{gb}$ã®ã©ã¡ããçæ¹ãæªå®ç¾©ã§ãããªãã°
ãã®å ´åï¼$p$ã¨$q$ã®éã¯ï¼å®ãã©ã³ããç°ãªãã«ãããããã(2)ã®ç¶æ³ã¨ãªãä¸æ¹ã§ï¼
$q$ã¨$r$ã®éã¯ï¼å®ãã©ã³ããåããªã®ã«ï¼\texttt{jfmvar}ãã¼ã®å
容ãç°ãªãã®ã§(3)ã®ç¶æ³ã¨ãªãï¼
\item[\Param{kanjiskip}~{[K]}] ä¸ã®[M]ã«ããã¦ç©ºç½ãå®ã¾ããªãã£ãå ´åï¼
-\Param{kanjiskip}ã®å¤ã以ä¸ã§å®ãï¼ããããå³ç©ºç½ãã¨ãã¦æ¡ç¨ããï¼
+以ä¸ã§å®ããéãå³ç©ºç½ãã¨ãã¦æ¡ç¨ããï¼
ãã®æ®µéã«ããã¦ã¯ï¼\verb+\inhibitglue+ã¯å¹åãæããªãããï¼
çµæã¨ãã¦ï¼2ã¤ã®åææåéã«ã¯å¸¸ã«ä½ããã®ã°ã«ã¼ï¼ã«ã¼ã³ãæ¿å
¥ããããã¨ã¨ãªãï¼
\begin{enumerate}
\item 両ã¯ã©ã¹ã¿ï¼å³å¯ã«ã¯$\mathit{Nq}.\mathit{tail}$ï¼$\mathit{Np}.\mathit{head}$ï¼ã®ä¸èº«ã®æåã³ã¼ãã«å¯¾ãã
\Param{autospacing}ãã©ã¡ã¿ã両æ¹ã¨ãfalseã ã£ãå ´åã¯ï¼é·ã0ã®glueã¨ããï¼
-\item ã¦ã¼ã¶å´ããè¦ã\Param{kanjiskip}ãã©ã¡ã¿ã®èªç¶é·ã${\tt \char92 maxdimen}=(2^{30}-1)\,{\rm sp}$ã§
-ãªããã°ï¼\Param{kanjiskip}ãã©ã¡ã¿ã®å¤ãæã¤glueãæ¡ç¨ããï¼
-\item 2.ã§ãªãå ´åã¯ï¼\textit{Nq}, \textit{Np}ã§ä½¿ããã¦ããJFMã«æå®ããã¦ãã\Param{kanjiskip}ã®å¤ãç¨ããï¼
+\item ã¦ã¼ã¶å´ããè¦ã\Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ãã©ã¡ã¿ã®èªç¶é·ã${\tt \char92 maxdimen}=(2^{30}-1)\,{\rm sp}$ã§
+ãªããã°ï¼\Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ãã©ã¡ã¿ã®å¤ãæã¤glueãæ¡ç¨ããï¼
+\item 2.ã§ãªãå ´åã¯ï¼\textit{Nq}, \textit{Np}ã§ä½¿ããã¦ããJFMã«æå®ããã¦ãã\Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ã®å¤ãç¨ããï¼
ã©ã¡ããçæ¹ã®ã¯ã©ã¹ã¿ã ããåææåï¼\textsf{åæA}ã»\textsf{åæB}ï¼ã®ã¨ãã¯ï¼ãã¡ãã®ã¯ã©ã¹ã¿ã§ä½¿ããã¦ãã
JFMç±æ¥ã®å¤ã ããç¨ããï¼ãã両è
ã§ä½¿ããã¦ããJFMãç°ãªã£ãå ´åã¯ï¼ä¸ã®[M]~3.ã¨åæ§ã®æ¹æ³ãç¨ãã¦èª¿æ´ããï¼
\end{enumerate}
\end{description}
\paragraph{ã左空ç½ãã®ç®åºã¨ããã«ä¼´ãè£æ£}
-次ã«ï¼ã左空ç½ãã«ãããéãç®åºããï¼
-\begin{description}
-\item[line-end~{[E]}]
-\textit{Nq}ã¨\textit{Np}ã®éã§è¡åå²ãèµ·ããã¨ãã«ï¼
-\textit{Nq}ã¨è¡æ«ã®éã«å
¥ã空ç½ã§ããï¼ã¶ãä¸ãçµã®çµçãªã©ã«ç¨ãããããã¨ãæå¾
ãã¦ããï¼
-\begin{enumerate}
-\item æ¢ã«ç®åºãããå³ç©ºç½ããã«ã¼ã³ã§ããå ´åã¯ï¼ã左空ç½ãã¯æ¿å
¥ãããªãï¼
-\item ãå³ç©ºç½ããglueãæªå®ç¾©ï¼é·ã0ã®glueã¨ã¿ãªãï¼ã®å ´åã¯ï¼ã左空ç½ãã¯
-\textit{Nq}ã¨ãæåã³ã¼ã\texttt{'lineend'}ã®æåãã¨ã®éã«å
¥ãã«ã¼ã³ã¨ãã¦ï¼JFMãã決å®ãããï¼
-\item 2.ã§æ±ºã¾ã£ãã左空ç½ãã®é·ãã0ã§ãªããã°ï¼ãã®åã ãå
ã»ã©ç®åºãããå³ç©ºç½ãã®èªç¶é·ãå¼ãï¼
-\end{enumerate}
-\end{description}
+ã左空ç½ãã¯éå»ã®ãã¼ã¸ã§ã³ã§ã¯å®ç¾©ãã¦ãããï¼ãã®ãã¼ã¸ã§ã³ã§ã¯æ¿å
¥ã¯ä¸åè¡ãããªãï¼æ©è½èªä½åé¤ãã¦ããï¼ï¼ãããï¼ä»æ§ã¯æµåçã§ããï¼å°æ¥å¾©æ´»ããå¯è½æ§ãããããï¼ããã¥ã¢ã«ä¸ã®è¨è¿°ã¯ä»ã®ã¨ãã極åå¤æ´ããªãï¼
\paragraph{ç¦åç¨ããã«ãã£ã®æ¿å
¥}
ã¾ãï¼
\[
- a:=(\text{\textit{Nq}{\footnotemark}ã®æåã«å¯¾ãã\Param{postbreakpenalty}ã®å¤})
-+(\text{\textit{Np}{\footnotemark}ã®æåã«å¯¾ãã\Param{prebreakpenalty}ã®å¤})
+ a:=(\text{\textit{Nq}{\footnotemark}ã®æåã«å¯¾ãã\Param{\hyperlink{fld:postbp}{postbreakpenalty}}ã®å¤})
++(\text{\textit{Np}{\footnotemark}ã®æåã«å¯¾ãã\Param{\hyperlink{fld:prebp}{prebreakpenalty}}ã®å¤})
\]
ã¨ãã\footnotetext{å³å¯ã«ã¯ãããã$\mathit{Nq}.\mathit{tail}$ï¼$\mathit{Np}.\mathit{head}$ï¼}ï¼
ããã«ãã£ã¯é常$[-10000,10000]$ã®æ´æ°å¤ãã¨ãï¼ã¾ã$\pm 10000$ã¯æ£è² ã®ç¡é大ãæå³ãããã¨ã«ãªã£ã¦ãããï¼ãã®$a$ã®
@@ -4299,26 +5072,26 @@ $a$ã¯ç¦åå¦çç¨ã«\textit{Nq}ã¨\textit{Np}ã®éã«å ããããã¹ã
\label{tab-jfmglue}
\begin{center}
\small
-\begin{tabular}{>{\sf}c|cccccc}
+\begin{tabular}{c|cccccc}
\toprule
{\bf\textit{Np}}â&\sf åæA&\sf åæB&\sf 欧æ&\sf ç®±&\sf glue&\sf kern\\\midrule
-åæA&
+\sf åæA&
\gkf{E}{MâK}{PN}&
\gkf{---}{\OA âK}{PN}&
\gkf{---}{\OA âX}{PN}&
\gkf{---}{\OA}{PA}&
\gkf{---}{\OA}{PN}&
\gkf{---}{\OA}{PS}\\
-åæB&
+\sf åæB&
\gkf{E}{\OBâK}{PA}&
\gkf{---}{K}{PS}&
\gkf{---}{X}{PS}\\
-欧æ&
+\sf 欧æ&
\gkf{E}{\OB âX}{PA}&
\gkf{---}{X}{PS}\cr
-ç®±&\gkf{E}{\OB}{PA}\\
-glue&\gkf{E}{\OB}{PN}\\
-kern&\gkf{E}{\OB}{PS}\\
+\sf ç®±&\gkf{E}{\OB}{PA}\\
+\sf glue&\gkf{E}{\OB}{PN}\\
+\sf kern&\gkf{E}{\OB}{PS}\\
\bottomrule
\end{tabular}
\end{center}
@@ -4358,13 +5131,13 @@ If this attempt fails, \LuaTeX-ja use the method `\textsf{\Param{kanjiskip}~[K]}
\end{table}
\subsection{ãã®ä»ã®å ´å}
-æ¬ç¯ã®å
容ã¯è¡¨ \ref{tab-jfmglue} ã«ã¾ã¨ãã¦ããï¼
+æ¬ç¯ã®å
容ã¯è¡¨\ref{tab-jfmglue}ã«ã¾ã¨ãã¦ããï¼
\paragraph{åæAã¨æ¬§æã®é}
\textit{Nq}ã\textsf{åæA}ã§ï¼\textit{Np}ã\textsf{欧æ}ã®å ´åï¼JFMã°ã«ã¼æ¿å
¥å¦çã¯æ¬¡ã®ããã«ãã¦è¡ãããï¼
\begin{itemize}
\item ãå³ç©ºç½ãã«ã¤ãã¦ã¯ï¼ã¾ã以ä¸ã«è¿°ã¹ã\textsf{Boundary-B~[\OB]}ã«ãã空ç½ã決å®ãããã¨è©¦ã¿ãï¼
-ããã失æããå ´åã¯ï¼\textsf{\Param{xkanjiskip}~[X]}ã«ãã£ã¦å®ããï¼
+ããã失æããå ´åã¯ï¼\textsf{\Param{\hyperlink{fld:xks}{xkanjiskip}}~[X]}ã«ãã£ã¦å®ããï¼
\item ã左空ç½ãã«ã¤ãã¦ã¯ï¼æ¢ã«è¿°ã¹ã\textsf{line-end~[E]}ããã®ã¾ã¾æ¡ç¨ããï¼ããã«ä¼´ããå³ç©ºç½ãã®è£æ£ãåãï¼
\item ç¦åç¨ããã«ãã£ãï¼ä»¥åè¿°ã¹ã\textsf{P-normal~[PN]}ã¨åãã§ããï¼
\end{itemize}
@@ -4378,23 +5151,23 @@ If this attempt fails, \LuaTeX-ja use the method `\textsf{\Param{kanjiskip}~[K]}
\item ããã§ãªããã°ï¼
\textit{Nq}ã¨ãæåã³ã¼ãã{\tt'jcharbdd'}ã®æåãã¨ã®éã«å
¥ãã°ã«ã¼ï¼ã«ã¼ã³ã¨ãã¦å®ã¾ãï¼
\end{enumerate}
-\item[\Param{xkanjiskip}~{[X]}]
+\item[\Param{\hyperlink{fld:xks}{xkanjiskip}}~{[X]}]
ãã®æ®µéã§ã¯ï¼\textsf{\Param{kanjiskip}~[K]}ã®ã¨ãã¨åãããã«ï¼
-\Param{xkanjiskip}ã®å¤ã以ä¸ã§å®ãï¼ããããå³ç©ºç½ãã¨ãã¦æ¡ç¨ããï¼
+以ä¸ã§å®ããéããå³ç©ºç½ãã¨ãã¦æ¡ç¨ããï¼
ãã®æ®µéã§\verb+\inhibitglue+ã¯å¹åãæããªãã®ãåãã§ããï¼
\begin{enumerate}
-\item 以ä¸ã®ããããã®å ´åã¯ï¼\Param{xkanjiskip}ã®æ¿å
¥ã¯ææ¢ãããï¼ãããï¼å®éã«ã¯è¡åå²ã許容ããããã«ï¼é·ã0ã®glueãæ¡ç¨ããï¼
+\item 以ä¸ã®ããããã®å ´åã¯ï¼\Param{\hyperlink{fld:xks}{xkanjiskip}}ã®æ¿å
¥ã¯ææ¢ãããï¼ãããï¼å®éã«ã¯è¡åå²ã許容ããããã«ï¼é·ã0ã®glueãæ¡ç¨ããï¼
\begin{itemize}
\item 両ã¯ã©ã¹ã¿ã«ããã¦ï¼ãããã®ä¸èº«ã®æåã³ã¼ãã«å¯¾ãã\Param{autoxspacing}ãã©ã¡ã¿ãå
±ã«falseã§ããï¼
-\item \textit{Nq}ã®ä¸èº«ã®æåã³ã¼ãã«ã¤ãã¦ï¼ãç´å¾ã¸ã®\Param{xkanjiskip}ã®æ¿å
¥ããç¦æ¢ããã¦ãã
+\item \textit{Nq}ã®ä¸èº«ã®æåã³ã¼ãã«ã¤ãã¦ï¼ãç´å¾ã¸ã®\Param{\hyperlink{fld:xks}{xkanjiskip}}ã®æ¿å
¥ããç¦æ¢ããã¦ãã
ï¼ã¤ã¾ãï¼\Param{jaxspmode}~(or \Param{alxspmode})ãã©ã¡ã¿ã2以ä¸ï¼ï¼
-\item \textit{Np}ã®ä¸èº«ã®æåã³ã¼ãã«ã¤ãã¦ï¼ãç´åã¸ã®\Param{xkanjiskip}ã®æ¿å
¥ããç¦æ¢ããã¦ãã
+\item \textit{Np}ã®ä¸èº«ã®æåã³ã¼ãã«ã¤ãã¦ï¼ãç´åã¸ã®\Param{\hyperlink{fld:xks}{xkanjiskip}}ã®æ¿å
¥ããç¦æ¢ããã¦ãã
ï¼ã¤ã¾ãï¼\Param{jaxspmode}~(or \Param{alxspmode})ãã©ã¡ã¿ãå¶æ°ï¼ï¼
\end{itemize}
-\item ã¦ã¼ã¶å´ããè¦ã\Param{xkanjiskip}ãã©ã¡ã¿ã®èªç¶é·ã${\tt \char92 maxdimen}=(2^{30}-1)\,{\rm sp}$ã§
-ãªããã°ï¼\Param{xkanjiskip}ãã©ã¡ã¿ã®å¤ãæã¤glueãæ¡ç¨ããï¼
+\item ã¦ã¼ã¶å´ããè¦ã\Param{\hyperlink{fld:xks}{xkanjiskip}}ãã©ã¡ã¿ã®èªç¶é·ã${\tt \char92 maxdimen}=(2^{30}-1)\,{\rm sp}$ã§
+ãªããã°ï¼\Param{\hyperlink{fld:xks}{xkanjiskip}}ãã©ã¡ã¿ã®å¤ãæã¤glueãæ¡ç¨ããï¼
\item 2.ã§ãªãå ´åã¯ï¼\textit{Nq}, \textit{Np}ï¼\textsf{åæA}/\textsf{åæB}ãªã®ã¯çæ¹ã ãï¼
-ã§ä½¿ããã¦ããJFMã«æå®ããã¦ãã\Param{xkanjiskip}ã®å¤ãç¨ããï¼
+ã§ä½¿ããã¦ããJFMã«æå®ããã¦ãã\Param{\hyperlink{fld:xks}{xkanjiskip}}ã®å¤ãç¨ããï¼
\end{enumerate}
\end{description}
@@ -4403,7 +5176,7 @@ If this attempt fails, \LuaTeX-ja use the method `\textsf{\Param{kanjiskip}~[K]}
\textsf{åæA}ã®ã¯ã©ã¹ã¿ãéã«ãªãã®ã§ï¼\textsf{Boundary-A~[\OA]}ã®é¨åãå¤ããã ãï¼
\begin{itemize}
\item ãå³ç©ºç½ãã«ã¤ãã¦ã¯ï¼ã¾ã以ä¸ã«è¿°ã¹ã\textsf{Boundary-A~[\OA]}ã«ãã空ç½ã決å®ãããã¨è©¦ã¿ãï¼
-ããã失æããå ´åã¯ï¼\textsf{\Param{xkanjiskip}~[X]}ã«ãã£ã¦å®ããï¼
+ããã失æããå ´åã¯ï¼\textsf{\Param{\hyperlink{fld:xks}{xkanjiskip}}~[X]}ã«ãã£ã¦å®ããï¼
\item \textit{Nq}ãåæã§ãªãã®ã§ï¼ã左空ç½ãã¯ç®åºãããªãï¼
\item ç¦åç¨ããã«ãã£ã¯ï¼ä»¥åè¿°ã¹ã\textsf{P-normal~[PN]}ã¨åãã§ããï¼
\end{itemize}
@@ -4430,9 +5203,9 @@ If this attempt fails, \LuaTeX-ja use the method `\textsf{\Param{kanjiskip}~[K]}
\item ã左空ç½ãã«ã¤ãã¦ã¯ï¼æ¢ã«è¿°ã¹ã\textsf{line-end~[E]}ã®ç®åºæ¹æ³ããã®ã¾ã¾æ¡ç¨ããï¼ããã«ä¼´ããå³ç©ºç½ãã®è£æ£ãåãï¼
\item ç¦åç¨ããã«ãã£ã®å¦çã¯ï¼å¾ãã®ã¯ã©ã¹ã¿\textit{Np}ã®ç¨®é¡ã«ãã£ã¦ç°ãªãï¼
ãªãï¼$\mathit{Np}.\mathit{head}$ã¯ç¡æå³ã§ããããï¼
-ã$\mathit{Np}.\mathit{head}$ã«å¯¾ãã\Param{prebreakpenalty}ã®å¤ãã¯0ã¨ã¿ãªãããï¼è¨ãæããã°ï¼
+ã$\mathit{Np}.\mathit{head}$ã«å¯¾ãã\Param{\hyperlink{fld:prebp}{prebreakpenalty}}ã®å¤ãã¯0ã¨ã¿ãªãããï¼è¨ãæããã°ï¼
\[
- a:=(\text{\textit{Nq}{\footnotemark}ã®æåã«å¯¾ãã\Param{postbreakpenalty}ã®å¤}).
+ a:=(\text{\textit{Nq}{\footnotemark}ã®æåã«å¯¾ãã\Param{\hyperlink{fld:postbp}{postbreakpenalty}}ã®å¤}).
\]
\begin{description}
\item[ç®±] \textit{Np}ã\textsf{ç®±}ã§ãã£ãå ´åã¯ï¼ä¸¡ã¯ã©ã¹ã¿ã®éã§ã®è¡åå²ã¯
@@ -4476,7 +5249,7 @@ If this attempt fails, \LuaTeX-ja use the method `\textsf{\Param{kanjiskip}~[K]}
\overbrace{\Node{glyph}{`ã'}}^{\mathit{Nq}}\longrightarrow \overbrace{\Node{glue}{1\,pt}}^{\mathit{Np}}
\]
ã®ãããªç¶æ³ãèããï¼
-ãã®ã¨ãï¼$a$ï¼å³ã¡ãããã®\Param{postbreakpenalty}ããããªãå¤ã§ãã£ã¦ãï¼
+ãã®ã¨ãï¼$a$ï¼å³ã¡ãããã®\Param{\hyperlink{fld:postbp}{postbreakpenalty}}ããããªãå¤ã§ãã£ã¦ãï¼
ãã®2ã¯ã©ã¹ã¿éã¯æçµçã«
\begin{equation}
\overbrace{\Node{glyph}{`ã'}}^{\mathit{Nq}}\longrightarrow
@@ -4484,7 +5257,7 @@ If this attempt fails, \LuaTeX-ja use the method `\textsf{\Param{kanjiskip}~[K]}
\label{eq-gref}
\end{equation}
ã¨ãªãï¼$a$åã®ããã«ãã£ã¯æ¿å
¥ãããªããã¨ã«æ³¨æãã¦æ¬²ããï¼
-\Param{postbreakpenalty}ã¯ï¼$a$ã¯ï¼æ®ã©ã®å ´åãéè² ã®å¤ã¨èãããï¼ãã®ãããªå ´åã§ã¯
+\Param{\hyperlink{fld:postbp}{postbreakpenalty}}ã¯ï¼$a$ã¯ï¼æ®ã©ã®å ´åãéè² ã®å¤ã¨èãããï¼ãã®ãããªå ´åã§ã¯
\eqref{eq-gref}ã¨
\[
\overbrace{\Node{glyph}{`ã'}}^{\mathit{Nq}}\longrightarrow
@@ -4505,7 +5278,7 @@ If this attempt fails, \LuaTeX-ja use the method `\textsf{\Param{kanjiskip}~[K]}
\item ç¦åç¨ããã«ãã£ã®å¦çã¯ï¼\textit{Nq}ã®ç¨®é¡ã«ãã£ã¦ç°ãªãï¼
$\mathit{Nq}.\mathit{tail}$ã¯ç¡æå³ãªã®ã§ï¼
\[
- a:=(\text{\textit{Np}{\footnotemark}ã®æåã«å¯¾ãã\Param{prebreakpenalty}ã®å¤}).
+ a:=(\text{\textit{Np}{\footnotemark}ã®æåã«å¯¾ãã\Param{\hyperlink{fld:prebp}{prebreakpenalty}}ã®å¤}).
\]
\begin{description}
\item[ç®±] \textit{Nq}ã\textsf{ç®±}ã®å ´åã¯ï¼\textsf{P-allow~[PA]}ãç¨ããï¼
@@ -4530,7 +5303,7 @@ $\mathit{Nq}.\mathit{tail}$ã¯ç¡æå³ãªã®ã§ï¼
\item \textsf{åæB}ã¨ç®±ã»ã°ã«ã¼ã»ã«ã¼ã³ãé£æ¥ããã¨ãï¼ã©ã¡ããåãã¯é¢ä¿ãªãï¼ï¼éã«JFMã°ã«ã¼ã»ããã«ãã£ã®æ¿å
¥ã¯ä¸åããªãï¼
\item \textsf{åæB}ã¨\textsf{åæB}ï¼ã¾ã\textsf{åæB}ã¨\textsf{欧æ}ã¨ãé£æ¥ããæã¯ï¼ç¦åç¨ããã«ãã£æ¿å
¥å¦çã¯
\textsf{P-suppress~[PS]}ãç¨ããããï¼
-\item \textsf{åæB}ã®æåã«å¯¾ãã\Param{prebreakpenalty},~\Param{postbreakpenalty}ã®å¤ã¯ä½¿ãããï¼0ã¨ãã¦è¨ç®ãããï¼
+\item \textsf{åæB}ã®æåã«å¯¾ãã\Param{\hyperlink{fld:prebp}{prebreakpenalty}},~\Param{\hyperlink{fld:postbp}{postbreakpenalty}}ã®å¤ã¯ä½¿ãããï¼0ã¨ãã¦è¨ç®ãããï¼
\end{itemize}
@@ -4542,18 +5315,345 @@ $\mathit{Nq}.\mathit{tail}$ã¯ç¡æå³ãªã®ã§ï¼
\end{LTXexample}
\begin{itemize}
\item 1è¡ç®ã®\verb+\inhibitglue+ã¯\textsf{Boundary-B~[\OB]}ã®å¦çã®ã¿ãææ¢ããã®ã§ï¼ããªãªãã¨ãAãã®éã«ã¯
-\Param{xkanjiskip}ï¼ååã¢ãï¼ãå
¥ããã¨ã«æ³¨æï¼
+\Param{\hyperlink{fld:xks}{xkanjiskip}}ï¼ååã¢ãï¼ãå
¥ããã¨ã«æ³¨æï¼
\item 2è¡ç®ã®ããªãªãã¨ãAãã®éã«ããã¦ã¯ï¼åè
ã\textsf{åæB}ã¨ãªãï¼æ°´å¹³ããã¯ã¹ã®ä¸èº«ã®æ«å°¾ã¨ãã¦ç»å ´ãã¦ããããï¼ã®ã§ï¼
-ãããã\textsf{Boundary-B~[\OB]}ã®å¦çã¯è¡ãããªãï¼ãã£ã¦ï¼\Param{xkanjiskip}ãå
¥ããã¨ã¨ãªãï¼
+ãããã\textsf{Boundary-B~[\OB]}ã®å¦çã¯è¡ãããªãï¼ãã£ã¦ï¼\Param{\hyperlink{fld:xks}{xkanjiskip}}ãå
¥ããã¨ã¨ãªãï¼
\item 3è¡ç®ã§ã¯ï¼ããªãªãã®å±ããã¯ã©ã¹ã¿ã¯\textsf{åæA}ã§ããï¼ããã«ãã£ã¦ï¼
ããªãªãã¨ãAãã®éã«ã¯\textsf{Boundary-B~[\OB]}ç±æ¥ã®åè§ã¢ããå
¥ããã¨ã«ãªãï¼
\end{itemize}
+%
+
+%\section{Patch for the \Pkg{listings} package}
+%\section{\Pkg{listings} ããã±ã¼ã¸ã¸ã®å¯¾å¿}
+
+%<*en>
+It is well-known that the \Pkg{listings} package outputs weird results
+for Japanese input.
+The \Pkg{listings} package makes most of letters active and assigns
+output command for each letter \cite{listings}.
+But Japanese characters are not included in these activated letters.
+For \pTeX{} series, there is no method to make Japanese characters active;
+a patch \Pkg{jlisting.sty} \cite{jlisting} resolves the problem forcibly.
+%
+%<*ja>
+\Pkg{listings} ããã±ã¼ã¸ãï¼ãã®ã¾ã¾ã§ã¯æ¥æ¬èªãã¾ã¨ãã«åºåã§ããªããã¨
+ã¯ããç¥ããã¦ããï¼ãã¡ãã¨æ´å½¢ãã¦åºåããããã«ï¼\Pkg{listings}ããã±ã¼
+ã¸ã¯å
é¨ã§ãã»ã¨ãã©ã®æåããã¢ã¯ãã£ãã«ãï¼åæåã«å¯¾ãã¦ãã®æåã®åº
+åå½ä»¤ãå²ãå½ã¦ã¦ãã \cite{listings}ï¼
+ãããï¼ããã§ã¢ã¯ãã£ãã«ããæåã®ä¸ã«ï¼åææ
+åããªãããã§ããï¼\pTeX ç³»åã§ã¯ï¼åææåãã¢ã¯ãã£ãã«ããææ³ããªãï¼
+\Pkg{jlisting.sty} ã¨ããããã\cite{jlisting}ãç¨ãããã¨ã§ç¡çãã解決ãã¦ããï¼
+%
+
+%<*en>
+In \LuaTeX-ja, the problem is resolved by using \verb+process_input_buffer+ callback.
+The callback function inserts the output command before each letter above U+0080.
+This method can omits the process to make all Japanese characters active
+(most of the activated characters are not used in many cases).
+%
+%<*ja>
+\LuaTeX-jaã§ã¯ï¼\verb+process_input_buffer+ ã³ã¼ã«ããã¯ãå©ç¨ãããã¨ã§ï¼
+ãåè¡ã«åºç¾ããU+0080以éã®æåã«å¯¾ãã¦ï¼ãããã®åºåå½ä»¤ãåç½®ãããã¨ããæ¹æ³ãã¨ã£ã¦ããï¼
+ããã«ããï¼ï¼å
¥åã«ã¯ä½¿ç¨ããã¦ããªããããããªãï¼åææåãããã¹ã¦ã¢ã¯ãã£ãåããæéããªãï¼
+è¦éããè¯ãå®è£
ã«ãªã£ã¦ããï¼
+%
+
+%<*en>
+If \Pkg{listings.sty} and \LuaTeX-ja were loaded,
+then the patch \Pkg{lltjp-listings.sty} is loaded automatically at \verb+\begin{document}+.
+%
+%<*ja>
+\LuaTeX-ja ã§å©ç¨ããã \Pkg{listings} ããã±ã¼ã¸ã¸ã®ããã \Pkg{lltjp-listings.sty} ã¯ï¼
+\Pkg{listings.sty} ã¨\LuaTeX-jaãèªã¿è¾¼ãã§ããã°ï¼
+\verb+\begin{document}+ ã®ç®æã«ããã¦èªåçã«èªã¿è¾¼ã¾ããã®ã§ï¼é常ã¯ãã¾ã
+æèããå¿
è¦ã¯ãªãï¼
+%
+
+%\paragraph{Class of characters}
+%\paragraph{æå種}
+
+%Roughly speaking, the \Pkg{listings} package processes input as follows:
+%\Pkg{listings} ããã±ã¼ã¸ã®å
é¨ã§ã¯ï¼å¤§éæã«è¨ãã¨
+\begin{enumerate}
+%\item Collects \textit{letters} and \textit{digits}, which can be used for the name of identifiers.
+%\item èå¥åã¨ãã¦ä½¿ããæå (``letter'',~``digit'') ãã¡ãéããï¼
+%\item When reading an \textit{other}, outputs the collected character string (with modification, if needed).
+%\item letterã§ãdigitã§ããªãæåãç¾ããæã«ï¼åéããæååãï¼å¿
è¦ãªã修飾ãã¦ï¼åºåããï¼
+%\item Collects \textit{others}.
+%\item ä»åº¦ã¯éã«ï¼letterã§ãªãæåãã¡ãletterãç¾ããã¾ã§éããï¼
+%\item When reading a \textit{letter} or a \textit{digit}, outputs the collected character string.
+%\item letterãåºç¾ãããéããæååãåºåããï¼
+%\item Turns back to 1.
+%\item 1.ã«æ»ãï¼
+\end{enumerate}
+%<*en>
+By the above process, line breaks inside of an identifier are blocked.
+A flag \verb+\lst@ifletter+ indicates whether the previous character can be used
+for the name of identifiers or not.
+%
+%<*ja>
+ã¨ããå¦çãè¡ããã¦ããï¼ããã«ããï¼èå¥åã®éä¸ã§ã¯è¡åå²ãè¡ãããªãããã«ãªã£ã¦ããï¼
+ç´åã®æåãèå¥åã¨ãã¦ä½¿ãããå¦ã㯠\verb+\lst@ifletter+ ã¨ãããã©ã°ã«æ ¼ç´ããã¦ããï¼
+%
+
+%<*en>
+For Japanese characters, line breaks are permitted on both sides
+except for parentheses, dashes, etc.
+To process Japanese characters,
+The pacth \Pkg{lltjp-listings.sty} introduces a new flag \verb+\lst@ifkanji+, which indicates
+whether the previous character is Japanese character or not.
+For illustration, we introduce the following classes of character:
+%
+%<*ja>
+ãã¦ï¼æ¥æ¬èªã®å¦çã§ããï¼æ®ã©ã®åææåã®åå¾ã§ã¯è¡åå²ãå¯è½ã§ãããï¼ãã®ä¸æ¹ã§
+æ¬å¼§é¡ãé³å¼ããªã©ã§ã¯ç¦åå¦çãå¿
è¦ãªãã¨ããï¼\Pkg{lltjp-listings.sty} ã§ã¯ï¼
+ç´åãåææåã§ãããã示ããã©ã° \verb+\lst@ifkanji+ ãæ°ãã«å°å
¥ããï¼
+以éï¼èª¬æã®ããã«ä»¥ä¸ã®ããã«æåãåé¡ããï¼
+%
+\begin{center}
+\small
+\begin{tabular}{lccccc}
+\toprule
+&Letter&Other&Kanji&Open&Close\\\midrule
+\verb+\lst@ifletter+&T&F&T&F&T\\
+\verb+\lst@ifkanji+&F&F&T&T&F\\
+%Meaning&identifier char&other alphabet&most of Japanese char&open paren&close paren\\
+%æå³&èå¥åä¸ã®æå&ãã®ä»æ¬§ææå&æ®ã©ã®åææå&éãæ¬å¼§é¡&éãæ¬å¼§é¡\\
+\bottomrule
+\end{tabular}
+\end{center}
+%<*en>
+Note that \textit{digits} in the \Pkg{listings} package can be Letter or
+Other according to circumstances.
+%
+%<*ja>
+ãªãï¼æ¬æ¥ã®\Pkg{listings} ããã±ã¼ã¸ã§ã®åé¡``digit''ã¯ï¼
+åºç¾ç¶æ³ã«ãã£ã¦ï¼ä¸ã®è¡¨ã®Letterã¨Otherã®ã©ã¡ãã«ããªãããï¼
+ã¾ãï¼Kanjiã¨Close㯠\verb+\lst@ifletter+ 㨠\verb+\lst@ifkanji+ ã®å¤ãä¸è´ãã¦ãããï¼
+ããã¯ééãã§ã¯ãªãï¼
+%
+
+%<*en>
+For example, let us consider the case an Open comes after a Letter.
+Since an Open represents Japanese open parenthesis,
+it is preferred to be permitted to insert line break after the Letter.
+Therefore, the collected character string is output in this case.
+%
+%<*ja>
+ä¾ãã°ï¼Letterã®ç´å¾ã«Openãæ¥ãå ´åãèããï¼
+æå種Openã¯åæéãæ¬å¼§é¡ãæ³å®ãã¦ããã®ã§ï¼Letterã®ç´å¾ã§ã¯è¡åå²ãå¯è½ã§ãããã¨ãæã¾ããï¼
+ãã®ããï¼ãã®å ´åã§ã¯ï¼ãã§ã«åéããã¦ããæååãåºåãããã¨ã§è¡åå²ã許容ããããã«ããï¼
+%
+
+%<*en>
+The following table summarizes $5\times 5=25$ cases:
+%
+%<*ja>
+åãããã«ï¼$5\times 5=25$éãå
¨ã¦ã«ã¤ãã¦æ¸ãã¨ï¼æ¬¡ã®ããã«ãªãï¼
+%
+\begin{center}
+\small
+\begin{tabular}{llccccc}
+\toprule
+%<*en>
+&&\multicolumn{4}{c}{Next}\\\cmidrule(lr){3-7}
+&&\hbox to 4em{\hss Letter\hss}&\hbox to 4em{\hss Other\hss}
+&\hbox to 4em{\hss Kanji\hss}&\hbox to 4em{\hss Open\hss}&Close\\\midrule
+&Letter&collects&\multicolumn{3}{c}{\hrulefill \ outputs\ \hrulefill}&collects\\
+&Other&outputs&collects&\multicolumn{2}{c}{\hrulefill \ outputs\ \hrulefill}&collects\\
+Prev&Kanji&\multicolumn{4}{c}{\hrulefill \ outputs\ \hrulefill}&collects\\
+&Open&\multicolumn{5}{c}{\hrulefill \ collects\ \hrulefill}\\
+&Close&\multicolumn{4}{c}{\hrulefill \ outputs\ \hrulefill}&collects\\
+%
+%<*ja>
+&&\multicolumn{4}{c}{å¾ãå´ã®æå}\\\cmidrule(lr){3-7}
+&&\hbox to 4em{\hss Letter\hss}&\hbox to 4em{\hss Other\hss}
+&\hbox to 4em{\hss Kanji\hss}&\hbox to 4em{\hss Open\hss}&Close\\\midrule
+ç´&Letter&åé&\multicolumn{3}{c}{\hrulefill \ åºå\ \hrulefill}&åé\\
+å&Other&åºå&åé&\multicolumn{2}{c}{\hrulefill \ åºå\ \hrulefill}&åé\\
+æ&Kanji&\multicolumn{4}{c}{\hrulefill \ åºå\ \hrulefill}&åé\\
+å&Open&\multicolumn{5}{c}{\hrulefill \ åé\ \hrulefill}\\
+種&Close&\multicolumn{4}{c}{\hrulefill \ åºå\ \hrulefill}&åé\\
+%
+\bottomrule
+\end{tabular}
+\end{center}
+%In the above table,
+%ä¸ã®è¡¨ã«ããã¦ï¼
+\begin{itemize}
+%\item ``outputs'' means to output the collected character string (i.e., line breaking is permitted there).
+%\item ãåºåãã¯ï¼ããã¾ã§ã«éããæååãåºåï¼âããã§è¡åå²å¯è½ï¼ãæå³ããï¼
+
+%\item ``collects'' means to append the next character to the collected character string (i.e., line breaking is prohibited there).
+%\item ãåéãã¯ï¼å¾å´ã®æåãï¼ç¾å¨åéãããæååã«è¿½å ï¼è¡åå²ä¸å¯ï¼ãæå³ããï¼
+\end{itemize}
+
+%\paragraph{Classification of characters}
+%\paragraph{åææåæ±ãã¨ãªãæå}
+
+%<*en>
+Characters are classified according to \Param{jacharrange} parameter (see Section \ref{ssec-setrange}):
+%
+%<*ja>
+\Pkg{listings} ããã±ã¼ã¸ã«ããã¦åææåã¨æ±ããã
+ï¼åã«è¿°ã¹ãKanji, Openï¼ãããã¯ãéãæ¬å¼§é¡ãåé¡ï¼ãå¦ãã¯ï¼
+é常ã®\textbf{JAchar}/\textbf{Alchar}ã®ç¯å²ã®è¨å®ï¼\Param{jacharrange} ãã©ã¡ã¼ã¿ï¼\ref{ssec-setrange}ç¯ãåç
§ï¼ã«å¾ã£ã¦è¡ãããï¼
+%
+\begin{itemize}
+
+%\item \textbf{ALchars} above U+0080 are Letter.
+%\item ï¼U+0080以éã®ï¼\textbf{ALchar}ã¯ï¼ãã¹ã¦Letteræ±ãã§ããï¼
+
+%\item \textbf{JAchars} are classified in the order as follows:
+%\item ï¼U+0080以éã®ï¼\textbf{JAchar}ã«ã¤ãã¦ã¯ï¼ä»¥ä¸ã®é åºã«å¾ã£ã¦æå種ã決ããï¼
+\begin{enumerate}
+%\item Characters whose \Param{\hyperlink{fld:prebp}{prebreakpenalty}} is greater than or equal to 0 are Open.
+%\item \Param{\hyperlink{fld:prebp}{prebreakpenalty}}ã0以ä¸ã®æåã¯Openæ±ãã§ããï¼
+
+%\item Characters whose \Param{\hyperlink{fld:postbp}{postbreakpenalty}} is greater than or equal to 0 are Close.
+%\item \Param{\hyperlink{fld:postbp}{postbreakpenalty}}ã0以ä¸ã®æåã¯Closeæ±ãã§ããï¼
+
+%\item Characters that don't satisfy the above two conditions are Kanji.
+%\item ä¸ã®2æ¡ä»¶ã®ã©ã¡ãã«ãå½ã¦ã¯ã¾ããªãã£ãæåã¯ï¼Kanjiæ±ãã§ããï¼
+\end{enumerate}
+\end{itemize}
+
+%<*en>
+The width of halfwidth kana (U+FF61--U+FF9F) is same as the width of \textbf{ALchar};
+the width of the other \textbf{JAchars} is double the width of \textbf{ALchar}.
+%
+%<*ja>
+ãªãï¼åè§ã«ã(U+FF61--U+FF9F)以å¤ã®\textbf{JAchar}ã¯æ¬§ææå2æååã®å¹
ãã¨ããã®ã¨ã¿ãªãããï¼
+åè§ã«ãã¯æ¬§ææå1æååã®å¹
ã¨ãªãï¼
+%
+
+%<*en>
+The classification process is executed every time a character appears in
+listing environments.
+%
+%<*ja>
+ãããã®æå種決å®ã¯ï¼å®éã« \texttt{lstlisting} ç°å¢ãªã©ã®å
é¨ã§æåãåºã¦ãããã³ã«è¡ãããï¼
+%
+
+%<*ja>
+\section{åæã®è¡é·è£æ£æ¹æ³}
+\label{sec-adjspec}
+\texttt{luatexja-adjust.sty} ã§æä¾ãããåªå
é ä½ä»ãã®è¡é·èª¿æ´ã®è©³ç´°ãè¿°
+ã¹ãï¼å¤§ã¾ãã«è¿°ã¹ãã¨ï¼æ¬¡ã®ããã«ãªãï¼
+\begin{itemize}
+\item é常ã®\TeX ã®è¡åå²æ¹æ³ã«å¾ã£ã¦ï¼æ®µè½ãè¡åå²ããï¼ãã®æ®µéã§ã¯ï¼è¡
+ é·ã«å端ãåºãå ´åï¼ãã®å端åã¯\Param{\hyperlink{fld:xks}{xkanjiskip}}ï¼
+ \Param{\hyperlink{fld:kanjiskip}{kanjiskip}}ï¼JFMã°ã«ã¼ã®å
¨ã¦ã§ï¼åªå
é ä½ãªãï¼è² æ
ãããï¼
+\item ãã®å¾ï¼\texttt{post\_linebreak\_filter} callbackã使ãï¼\emph{段
+ è½ä¸ã®åè¡ãã¨ã«}ï¼è¡æ«æåã®ä½ç½®ã調æ´ãããï¼åªå
度ä»ãã®è¡é·èª¿æ´
+ ãå®ç¾ããããã«ã°ã«ã¼ã®ä¼¸ç¸®åº¦ã調æ´ããï¼
+\texttt{luatexja-adjust.sty} ã®ä½ç¨ã¯ï¼ãã®callbackã追å ããã ãã§ããï¼
+ ãã®ç« ã®æ®ãã§ã¯callbackã§ã®å¦çã«ã¤ãã¦è§£èª¬ããï¼
+\end{itemize}
+
+\paragraph{æºåï¼åè¨ä¼¸ç¸®éã®è¨ç®}
+ã°ã«ã¼ã®ä¼¸ç¸®åº¦ï¼\texttt{plus} ã \texttt{minus} ã§æå®ããã¦ããå¤ï¼ã«ã¯ï¼
+æéå¤ã®ä»ã«ï¼\texttt{fi}ï¼\texttt{fil}ï¼\texttt{fill}ï¼\texttt{filll}ã¨
+ãã4ã¤ã®ç¡é大ã¬ãã«ï¼å¾ãã®æ¹ã»ã©å¤§ããï¼ãããï¼è¡ã®èª¿æ´ã«
+\texttt{fi} ãªã©ã®\emph{ç¡é大ã¬ãã«ã®ä¼¸ç¸®åº¦ãç¨ãããã¦ããå ´åã¯ï¼ã
+ã®è¡ã«å¯¾ãã¦ã®å¦çãä¸æ¢}ããï¼
+
+ãã£ã¦ï¼ä»¥éï¼åé¡ã«ãã¦ããè¡ã®è¡é·èª¿æ´ã¯ä¼¸ç¸®åº¦ãæéé·ã®ã°ã«ã¼ãç¨ãã¦
+è¡ããã¦ããã¨ãã¦è¯ãï¼ã¾ãï¼æ®µè½ä¸ã®è¡ä¸ã®ã°ã«ã¼ã
+\begin{itemize}
+\item ä¸ã®ã©ãã«ã該å½ããªãã°ã«ã¼
+\item JFMã°ã«ã¼ï¼åªå
度å¥ã«ã¾ã¨ããããï¼
+\item å欧æé空ç½(\Param{\hyperlink{fld:xks}{xkanjiskip}})
+\item åæé空ç½(\Param{\hyperlink{fld:kanjiskip}{kanjiskip}})
+\end{itemize}
+ã®$1+1+5+1=8$ã¤ã«é¡å¥ãï¼ããããã®ç¨®å¥ãã¨ã«è¨±å®¹ããã¦ãã伸縮度ã®åè¨ãè¨ç®ããï¼
+ã¾ãï¼è¡é·ã¨èªç¶é·ã¨ã®å·®ã®çµ¶å¯¾å¤ãè¨ç®ãï¼ããã\textit{total}ã¨ããï¼
+
+\subsection{è¡æ«æåã®ä½ç½®èª¿æ´}
+ã¾ãï¼è¡æ«ãæåã¯ã©ã¹$n$ã®\textbf{JAchar}ã§ãã£ãå ´åï¼
+ãããåãããã¨ã«ãã£ã¦ï¼\textbf{JAglue} ãè² æ
ãã調æ´éãå°ãªããããã¨ããï¼
+ãã®è¡æ«æåã®å·¦å³ã®ç§»åå¯è½éã¯ï¼JFMä¸ã«ããæåã¯ã©ã¹$n$ã®å®ç¾©ã®
+\texttt{end\_stretch},~\texttt{end\_shrink}ãã£ã¼ã«ãã«å
¨è§åä½ã®å¤ã¨ãã¦è¨è¿°ããã¦ããï¼
+
+ä¾ãã°ï¼è¡æ«æåãå¥ç¹ãããã§ããï¼ããã§ç¨ãããã¦ããJFMä¸ã«
+\begin{verbatim}
+ [2] = {
+ chars = { 'ã', ... }, width = 0.5, ...,
+ end_stretch = 0.5, end_shrink = 0.5,
+ },
+\end{verbatim}
+ã¨ããæå®ããã£ãå ´åï¼ãã®è¡æ«ã®å¥ç¹ã¯
+\begin{itemize}
+\item é常ã®\TeX ã®è¡åå²å¦çã§ãåè§ä»¥ä¸ã®è©°ãããè¡ããã¦ããå ´åï¼
+ãã®åã®è¡ä¸ã®\textbf{JAglue}ã®è² æ
ã軽æ¸ããããï¼
+è¡æ«ã®å¥ç¹ãåè§ã ãå³ã«ç§»åããï¼ã¶ãä¸ãçµãè¡ãï¼ï¼
+\item é常ã®\TeX ã®è¡åå²å¦çã§ãåè§ä»¥ä¸ã®ç©ºãããè¡ããã¦ããå ´åï¼
+éã«è¡æ«å¥ç¹ãåè§å·¦ã«ç§»åãããï¼è¦ãç®çã«å
¨è§åãã¨ãªãï¼ï¼
+\item 以ä¸ã®ã©ã¡ãã§ããªãå ´åï¼è¡æ«å¥ç¹ã®ä½ç½®èª¿æ´ã¯è¡ããªãï¼
+\end{itemize}
+ã¨ãªãï¼
+
+è¡æ«æåã移åããå ´åï¼ãã®åã ã\textit{total}ã®å¤ãå¼ãã¦ããï¼
+
+\subsection{ã°ã«ã¼ã®èª¿æ´}
+\textit{total}ã®åã ããï¼è¡ä¸ã®ã°ã«ã¼ã®ä¼¸ç¸®åº¦ã«å¿ãã¦è² æ
ããããã¨ã«ãªãï¼
+â¦â¦
+
+%
+
+
-\section{psft}
\begin{thebibliography}{99}
\addcontentsline{toc}{section}{\refname}
\bibitem{texbytopic}
Victor Eijkhout, \emph{\TeX\ by Topic, A \TeX nician's Reference}, Addison-Wesley, 1992.
+\bibitem{listings} C.\ Heinz, B.\ Moses. The \textsf{Listings} Package.
+\bibitem{jlisting} Thor Watanabe. Listings\ -\ MyTeXpert. \newblock
+\url{http://mytexpert.sourceforge.jp/index.php?Listings}
+\bibitem{min10} ä¹é¨å³å·±ï¼min10ãã©ã³ãã«ã¤ãã¦ï¼
+\url{http://argent.shinshu-u.ac.jp/~otobe/tex/files/min10.pdf}
+\bibitem{jlreq} W3C Japanese Layout Task Force~(ed), Requirements for Japanese Text Layout (W3C Working Group Note), 2011, 2012. \newblock
+\url{http://www.w3.org/TR/jlreq/}%
+% \\æ¥æ¬èªè¨³ã®æ¸ç±çï¼W3Cæ¥æ¬èªçµçã¿ã¹ã¯ãã©ã¼ã¹ï¼ç·¨ï¼ï¼ãW3Cæè¡ãã¼ã æ¥æ¬èªçµçå¦çã®è¦ä»¶ãï¼æ±äº¬é»æ©å¤§å¦åºçå±ï¼2012ï¼
+\bibitem{x4051} æ¥æ¬å·¥æ¥è¦æ ¼(Japanese Industrial Standard) JIS~X~4051,
+æ¥æ¬èªææ¸ã®çµçæ¹æ³(Formatting rules for Japanese documents), 1993, 1995, 2004.
\end{thebibliography}
+
+\newpage
+\appendix
+
+\section{Package versions used in this document}
+This document was typeset using the following packages:
+
+\medskip
+
+{\makeatletter\tt\footnotesize
+ \def\@pkglist#1{%
+ \filename@parse{#1}\def\@temp{sty}
+ \ifx\@temp\filename@ext
+ \edef\reserved@a{%
+ \filename@base.%
+ \ifx\filename@ext\relax tex\else\filename@ext\fi}%
+ \leavevmode\hskip-13em\hbox to 13em{\filename@area\reserved@a\hss}%
+ \csname ver@\reserved@a\endcsname\par
+ \fi
+ }%
+\parindent0pt\leftskip13em
+\ltjpkglist
+
+\makeatother}
\end{document}
+%!showexpl>
+%<*showexpl>
+%%
+%% config file for showexpl.sty
+%%
+%% Copyright The LuaTeX-ja project team, 2012
+%%
+\ProvidesFile{showexpl.cfg}
+ [2012/05/20 v0.01 Definitions for the showexpl package (luatexja)]
+\lstset{}
+\def\SX@Info{}
+\endinput
+%*showexpl>