ソースコードの管理場所
修订版 | 729bde95611e574d7869fe91c3806ff33bf90df8 (tree) |
---|---|
时间 | 2015-09-22 14:56:04 |
作者 | Hironori Kitagawa <h_kitagawa2001@yaho...> |
Commiter | Hironori Kitagawa |
Updated the manual
@@ -4420,7 +4420,7 @@ Furthermore, the glyph is shifted according to values of fields | ||
4420 | 4420 | \end{figure} |
4421 | 4421 | |
4422 | 4422 | \item[kern={\{[$j$]=<kern>, [$j'$]=\{<kern>, [ratio=<ratio>]\}, ...\}}] |
4423 | - | |
4423 | +\nopagebreak | |
4424 | 4424 | \item[glue={\{[$j$]=\{<width>, <stretch>, <shrink>, [ratio=<ratio>, ...]\}, ...\}}]\leavevmode |
4425 | 4425 | %<*ja> |
4426 | 4426 |
@@ -4441,7 +4441,7 @@ $0$から$+1$の実数値をとる.省略時の値は$0.5$である. | ||
4441 | 4441 | %<*en> |
4442 | 4442 | \ |
4443 | 4443 | |
4444 | -Specifies the width of kern or glue which will be inserted | |
4444 | +Specifies the amount of kern or glue which will be inserted | |
4445 | 4445 | between characters in character class~$i$ and those in character class~$j$. |
4446 | 4446 | |
4447 | 4447 | <ratio> specifies how much the glue is originated in the ``right'' character. |
@@ -4464,9 +4464,34 @@ we specify <ratio> to $0.25/(0.5+0.25)=1/3$. | ||
4464 | 4464 | 度を$-2$から$+2$の間の整数で指定する.大きい値ほど「伸びやすく,縮みやすい」 |
4465 | 4465 | ことを意味する.省略時の値 |
4466 | 4466 | は0であり,範囲外の値が指定されたときの動作は未定義である. |
4467 | -\item[ksp\_natural=<bool>] | |
4468 | -\item[ksp\_stretch=<bool>] | |
4469 | -\item[ksp\_shrink=<bool>] | |
4467 | +\item[ksp\_natural=<bool>\textrm{, }% | |
4468 | + ksp\_stretch=<bool>\textrm{, }ksp\_shrink=<bool>]\leavevmode | |
4469 | + | |
4470 | +JFMによって本来挿入されるグルーの他に | |
4471 | +\Param{kanjiskip}分の空白を自然長(\texttt{ksp\_natural}),伸び量(\texttt{ksp\_stretch}), | |
4472 | +縮み量(\texttt{ksp\_shrink})ごとに挿入する\footnote{本来\Param{xkanjiskip}が挿入される場所においては | |
4473 | + \Param{xkanjiskip}分の空白を自然長・伸び量・縮み量ごとに.追加できる.}% | |
4474 | +ための指定である. | |
4475 | + | |
4476 | +例えば,\LuaTeX-jaの横組標準JFMの \texttt{jfm-ujis.lua} では, | |
4477 | +\begin{itemize} | |
4478 | + \item 通常の文字「あ」と開き括弧類の間に入るグルーは,自然長・縮み量半角,伸び量0のグルー | |
4479 | +となっているが,\texttt{ksp\_stretch=true} のおかげで,さらに\Param{kanjiskip}の伸び量だけ | |
4480 | +伸びることが許される. | |
4481 | + \item 同様に,閉じ括弧類(全角コンマ「,」も含む)と通常の文字「う」「え」の間にも | |
4482 | +自然長・縮み量半角,伸び量0のグルー | |
4483 | +となっているが,\texttt{ksp\_stretch=true} のおかげで,さらに\Param{kanjiskip}の伸び量だけ | |
4484 | +伸びることが許される. | |
4485 | +\end{itemize} | |
4486 | +となっている.従って,以下のような組版結果を得る. | |
4487 | + | |
4488 | +\medskip | |
4489 | +\begin{LTXexample}[width=16\zw] | |
4490 | +\leavevmode | |
4491 | +\ltjsetparameter{kanjiskip=0pt plus 3\zw} | |
4492 | +\vrule\hbox to 15\zw{あ「い」う,えお}\vrule | |
4493 | +\end{LTXexample} | |
4494 | + | |
4470 | 4495 | \end{cslist} |
4471 | 4496 | %</ja> |
4472 | 4497 | %<*en> |
@@ -4478,9 +4503,32 @@ An integer in $[-2,2]$ (treated as 0 if omitted), and this is | ||
4478 | 4503 | used only in line adjustment with priority by \Pkg{luatexja-adjust} |
4479 | 4504 | (see Subsection~\ref{ssec-adj}). Higher value means the glue is easy to stretch, |
4480 | 4505 | and is also easy to shrink. |
4481 | -\item[ksp\_natural=<bool>] | |
4482 | -\item[ksp\_stretch=<bool>] | |
4483 | -\item[ksp\_shrink=<bool>] | |
4506 | +\item[ksp\_natural=<bool>\textrm{, }% | |
4507 | + ksp\_stretch=<bool>\textrm{, }ksp\_shrink=<bool>]\leavevmode | |
4508 | + | |
4509 | +These keys specifies whether the natural width of \Param{kanjiskip} | |
4510 | +(the stretch/shrink part, respectively) will be inserted in addition to the original | |
4511 | +JFM glue. | |
4512 | + | |
4513 | +As an example, in \texttt{jfm-ujis.lua}, the standard JFM in horizontal writing, we have | |
4514 | +\begin{itemize} | |
4515 | + \item Between an ordinal letter ``あ'' and an ideographic opening bracket, we have | |
4516 | +a glue whose natural part and shrink part are both half-width, while its stretch part is | |
4517 | + zero. However, because of \texttt{ksp\_stretch=true}, this glue can be stretched | |
4518 | + as much as \Param{kanjiskip}. | |
4519 | + \item Between an ideographic closeing brackets (the ideographic comma ``,'' | |
4520 | + is included) and an ordinal letter, we have the same glue. Again, because of | |
4521 | +\texttt{ksp\_stretch=true}, this glue can be stretched as much as \Param{kanjiskip}. | |
4522 | +\end{itemize} | |
4523 | +Hence we have the following result: | |
4524 | + | |
4525 | +\medskip | |
4526 | +\begin{LTXexample}[width=16\zw] | |
4527 | +\leavevmode | |
4528 | +\ltjsetparameter{kanjiskip=0pt plus 3\zw} | |
4529 | +\vrule\hbox to 15\zw{あ「い」う,えお}\vrule | |
4530 | +\end{LTXexample} | |
4531 | + | |
4484 | 4532 | \end{cslist} |
4485 | 4533 | %</en> |
4486 | 4534 |