• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

ソースコードの管理場所


コミットメタ情報

リビジョンe02c0d7ab9834738a2ecc82f470925f02852776a (tree)
日時2013-05-08 20:52:44
作者Hironori Kitagawa <h_kitagawa2001@yaho...>
コミッターHironori Kitagawa

ログメッセージ

Use luatexbase.newuserwhatsit in luateja.lua. (and several small bugfixes)

変更サマリ

差分

--- a/doc/luatexja.dtx
+++ b/doc/luatexja.dtx
@@ -1527,21 +1527,16 @@ Use the JFM \texttt{jfm-jis.lua}, instead of \texttt{jfm-ujis.lua}, which is the
15271527 %<en>\paragraph{Kozuka fonts}
15281528 %<ja>\paragraph{小塚フォント}
15291529 %<*en>
1530-When using single weight, we adopt Kozuka~Gothic~M as \textit{gothic},
1531-because we think that Kozuka~Gothic~R looks thin.
15321530 There is not `Kozuka Maru Gothic', therefore Kozuka~Gothic~H is used
15331531 as a substitute for \textit{rounded gothic}.
15341532 %</en>
15351533 %<*ja>
1536-まず,小塚フォントを用いる設定を述べる.
1537-単ウェイト時のゴシック体は小塚ゴシックRでは細いように感じるので,
1538-小塚ゴシックMに変更している.
1539-さらに,丸ゴシック体はないので便宜上小塚ゴシックHで代用している.
1534+丸ゴシック体はないので便宜上小塚ゴシックHで代用している.
15401535 %</ja>
15411536 \begin{center}\small
15421537 \begin{tabular}{llll}
15431538 \toprule
1544-&\tt kozuka4&\tt kozuka6&\tt kozuka6n\\
1539+&\tt kozuka-pro&\tt kozuka-pr6&\tt kozuka-pr6n\\
15451540 \midrule
15461541 %<*en>
15471542 \bf mincho medium&Kozuka Mincho Pro R&Kozuka Mincho ProVI R&Kozuka Mincho Pr6N R\\
@@ -1550,7 +1545,7 @@ as a substitute for \textit{rounded gothic}.
15501545 \bf gothic medium\\
15511546 without \texttt{deluxe}
15521547 &Kozuka Gothic Pro M&Kozuka Gothic ProVI M&Kozuka Gothic Pr6N M\\
1553- multiple weights
1548+ with \texttt{deluxe}
15541549 &Kozuka Gothic Pro R&Kozuka Gothic ProVI R&Kozuka Gothic Pr6N R\\
15551550 \midrule
15561551 \bf gothic bold
@@ -1581,28 +1576,25 @@ as a substitute for \textit{rounded gothic}.
15811576 \end{tabular}
15821577 \end{center}
15831578
1584-%<en>\paragraph{Hiragino and Morisawa}
1585-%<ja>\paragraph{ヒラギノ・モリサワ}
1586-%<*en>
1587-Settings for Hiragino fonts:
1588-%</en>
1589-%<*ja>
1590-まずヒラギノフォントから:
1591-%</ja>
1592-% これらは持っているわけではないので,フォント名が
1593-% 異なっているかもしれません.確認お願いします.
1579+%<en>\paragraph{Hiragino and Morisawa}\
1580+%<ja>\paragraph{ヒラギノ・モリサワ}\
15941581 \begin{center}\small
15951582 \begin{tabular}{lll}
15961583 \toprule
1597-&\tt hiragino&\tt hiraginon\\
1584+&\tt hiragino-pro&\tt hiragino-pron\\
15981585 \midrule
15991586 %<*en>
16001587 \bf mincho medium&
16011588 Hiragino Mincho Pro W3&Hiragino Mincho Pr6N W3\\
16021589 \bf mincho bold&
16031590 Hiragino Mincho Pro W6&Hiragino Mincho Pr6N W6\\
1604-\bf gothic medium&
1605-Hiragino Kaku Gothic Pro W3&Hiragino Kaku Gothic ProN W3\\
1591+\midrule
1592+\bf gothic medium\\
1593+ without \texttt{deluxe}
1594+&Hiragino Kaku Gothic Pro W6&Hiragino Kaku Gothic ProN W6\\
1595+ with \texttt{deluxe}
1596+&Hiragino Kaku Gothic Pro W3&Hiragino Kaku Gothic ProN W3\\
1597+\midrule
16061598 \bf gothic bold&
16071599 Hiragino Kaku Gothic Pro W6&Hiragino Kaku Gothic ProN W6\\
16081600 \bf gothic heavy&
@@ -1615,8 +1607,13 @@ Hiragino Maru Gothic Pro W4&Hiragino Maru Gothic ProN W4\\
16151607 ヒラギノ明朝体Pro~W3&ヒラギノ明朝体Pr6N~W3\\
16161608 \gt 明朝体太字&
16171609 ヒラギノ明朝体Pro~W6&ヒラギノ明朝体Pr6N~W6\\
1618-\gt ゴシック体細字&
1619-ヒラギノ角ゴPro~W3&ヒラギノ角ゴProN~W3\\
1610+\midrule
1611+\gt ゴシック体細細字\\
1612+ 単ウェイト時
1613+&ヒラギノ角ゴPro~W6&ヒラギノ角ゴProN~W6\\
1614+ 多ウェイト時
1615+&ヒラギノ角ゴPro~W3&ヒラギノ角ゴProN~W3\\
1616+\midrule
16201617 \gt ゴシック体太字&
16211618 ヒラギノ角ゴPro~W6&ヒラギノ角ゴProN~W6\\
16221619 \gt ゴシック体極太&
@@ -1624,19 +1621,9 @@ Hiragino Maru Gothic Pro W4&Hiragino Maru Gothic ProN W4\\
16241621 \gt 丸ゴシック体&
16251622 ヒラギノ丸ゴPro~W4&ヒラギノ丸ゴProN~W4\\
16261623 %</ja>
1627-\bottomrule
1628-\end{tabular}
1629-\end{center}
1630-%<*en>
1631-Settings for Morisawa fonts:
1632-%</en>
1633-%<*ja>
1634-次はモリサワフォントを用いる設定である:
1635-%</ja>
1636-\begin{center}\small
1637-\begin{tabular}{lll}
1638-\toprule
1639-&\tt morisawa4&\tt morisawa6n\\
1624+\midrule
1625+\midrule
1626+&\tt morisawa-pro&\tt morisawa-pr6n\\
16401627 \midrule
16411628 %<*en>
16421629 \bf mincho medium&
@@ -1715,7 +1702,7 @@ We can use HG~fonts bundled with Microsoft Office for realizing multiple weights
17151702 \begin{center}\small
17161703 \begin{tabular}{llll}
17171704 \toprule
1718-&\tt ipa-dx&\tt ipaex-dx&\tt ms-dx\\
1705+&\tt ipa-hg&\tt ipaex-hg&\tt ms-hg\\
17191706 \midrule
17201707 %<*en>
17211708 \bf mincho medium
@@ -4906,15 +4893,15 @@ $i$は7より小さい自然数.
49064893 %<*en>
49074894 Furthermore, \LuaTeX-ja uses several `user-defined' whatsit nodes for
49084895 inrernal processing. All those nodes store a natural number (hence the node's
4909-\texttt{type} is 100). The following \verb+user_id+s are used:
4896+\texttt{type} is 100).
49104897 %</en>
49114898 %<*ja>
4912-さらに,\LuaTeX-jaはいくつかの「ユーザ定義の」whatsit ノードを内部処理に用いる.
4899+さらに,\LuaTeX-jaはいくつかの「ユーザ定義の」whatsitノードを内部処理に用いる.
49134900 これらの全てのノードは自然数を格納している(したがってノードの\texttt{type}は
4914-100である).次の \verb+user_id+ が使用される:
4901+100である).
49154902 %</ja>
49164903 \begin{description}
4917-\item[30111]
4904+\item[\texttt{inhibitglue}]
49184905 %<*en>
49194906 Nodes for indicating that \verb+\inhibitglue+ is
49204907 specified. The \texttt{value} field of these nodes doesn't matter.
@@ -4924,7 +4911,7 @@ Nodes for indicating that \verb+\inhibitglue+ is
49244911 \texttt{value}フィールドは意味を持たない.
49254912 %</ja>
49264913
4927-\item[30112]
4914+\item[\texttt{stack\_marker}]
49284915 %<*en>
49294916 Nodes for \LuaTeX-ja's stack system (see the next
49304917 subsection). The \texttt{value} field of these nodes is
@@ -4935,7 +4922,7 @@ Nodes for \LuaTeX-ja's stack system (see the next
49354922 これらのノードの\texttt{value}フィールドは現在のグループを表す.
49364923 %</ja>
49374924
4938-\item[30113]
4925+\item[\texttt{char\_by\_cid}]
49394926 %<*en>
49404927 Nodes for Japanese Characters which the callback process of
49414928 \Pkg{luaotfload} won't be applied, and the character code is
@@ -4952,7 +4939,7 @@ Nodes for Japanese Characters which the callback process of
49524939 \Pkg{luatexja-otf} パッケージでのみ使用される.
49534940 %</ja>
49544941
4955-\item[30114]
4942+\item[\texttt{begin\_par}]
49564943 Nodes for indicating beginning of a paragraph.
49574944 A paragraph which is started by \verb+\item+ in list-like environments has a horizontal box
49584945 for its label before the actual contents. So \dots
--- a/src/ltj-compat.lua
+++ b/src/ltj-compat.lua
@@ -2,7 +2,8 @@
22 -- luatexja/ltj-compat.lua
33 --
44
5-luatexja.load_module('base'); local ltjb = luatexja.base
5+luatexja.load_module('base'); local ltjb = luatexja.base
6+luatexja.load_module('stack'); local ltjs = luatexja.stack
67
78 -- \kuten, \jis, \euc, \sjis, \ucs, \kansuji
89 local function to_kansuji(num)
--- a/src/luatexja.lua
+++ b/src/luatexja.lua
@@ -49,11 +49,10 @@ stack_table_index.KSJ = 0x400 -- 0--9
4949
5050 local userid_table = {}
5151 luatexja.userid_table = userid_table
52-userid_table.IHB = 30111 -- \inhibitglue
53-userid_table.STCK = 30112 -- スタック管理
54-userid_table.OTF = 30113 -- luatexja-otf
55-userid_table.BPAR = 30114 -- 「段落始め」
56-
52+userid_table.IHB = luatexbase.newuserwhatsit('inhibitglue', 'luatexja') -- \inhibitglue
53+userid_table.STCK = luatexbase.newuserwhatsit('stack_marker', 'luatexja') -- スタック管理
54+userid_table.OTF = luatexbase.newuserwhatsit('char_by_cid', 'luatexja') -- luatexja-otf
55+userid_table.BPAR = luatexbase.newuserwhatsit('begin_par', 'luatexja') -- 「段落始め」
5756
5857 --- 定義終わり
5958
@@ -181,11 +180,11 @@ function luatexja.ext_get_parameter_binary(k,c)
181180 c=0
182181 end
183182 if k == 'jacharrange' then
184- if c>=7*ltjc.ATTR_RANGE then
183+ if c>=31*ltjc.ATTR_RANGE then
185184 ltjb.package_error('luatexja',
186185 'invalid character range number (' .. c .. ')',
187186 'A character range number should be in the range 0..'
188- .. 7+ATTR_RANGE-1 .. ",\n"..
187+ .. 31*ltjc.ATTR_RANGE-1 .. ",\n"..
189188 'So I changed this one to zero.')
190189 c=0
191190 end