• R/O
  • HTTP
  • SSH
  • HTTPS

luatexja: コミット

ソースコードの管理場所


コミットメタ情報

リビジョンcb1598e5df04db724850cf179f6f1f82a29830b9 (tree)
日時2020-04-12 11:00:21
作者Hironori Kitagawa <h_kitagawa2001@yaho...>
コミッターHironori Kitagawa

ログメッセージ

fix

変更サマリ

差分

--- a/src/ltj-inputbuf.lua
+++ b/src/ltj-inputbuf.lua
@@ -32,16 +32,16 @@ local function add_comment(buffer)
3232 local c = utfbyte(buffer, i)
3333 if c>=0x80 then
3434 local te = tex.endlinechar
35- local ctl = (te ~= -1) and (getcatcode(te)==5) and (getcatcode(getcount('ltjlineendcomment'))==14)
36- -- Is the catcode of \ltjlineendcomment (new comment char) is 14 (comment)?
3735 -- Is the catcode of endline character is 5 (end-of-line)?
38- if ctl then
36+ if (te ~= -1) and (getcatcode(te)==5) then
3937 local ct = getcatcode(c)
4038 if (ct==11) or (ct==12) then
41- if ltjc_is_japanese_char_curlist(c) then
39+ local lec = getcount('ltjlineendcomment')
40+ -- Is the catcode of \ltjlineendcomment (new comment char) is 14 (comment)?
41+ if ltjc_is_japanese_char_curlist(c) and (getcatcode(lec)==14) then
4242 stop_time_measure('inputbuf')
43- return buffer .. utfchar(getcount('ltjlineendcomment'))
44- end
43+ return buffer .. utfchar(lec)
44+ end
4545 end
4646 end
4747 end
--- a/src/patches/lltjfont.sty
+++ b/src/patches/lltjfont.sty
@@ -3,7 +3,7 @@
33 %
44
55 \NeedsTeXFormat{LaTeX2e}
6-\ProvidesPackage{lltjfont}[2020-04-07 Patch to NFSS2 for LuaTeX-ja]
6+\ProvidesPackage{lltjfont}[2020-04-12 Patch to NFSS2 for LuaTeX-ja]
77
88 %% patching \DeclareTextComposite
99 \def\ltj@chardef@text@cmd#1{%
@@ -826,6 +826,9 @@
826826 \let\bfseries@rm\bfdef@ult
827827 \let\bfseries@sf\bfdef@ult
828828 \let\bfseries@tt\bfdef@ult
829+ \let\bfseries@mc\bfdef@ult
830+ \let\bfseries@gt\bfdef@ult
831+ \let\bfseries@jtt\bfdef@ult
829832 }{}{}
830833 \fi
831834 \ifdefined\@setmdseriesdefaultshook % after 2020-04-07
旧リポジトリブラウザで表示