リビジョン | cb1598e5df04db724850cf179f6f1f82a29830b9 (tree) |
---|---|
日時 | 2020-04-12 11:00:21 |
作者 | Hironori Kitagawa <h_kitagawa2001@yaho...> |
コミッター | Hironori Kitagawa |
fix
@@ -32,16 +32,16 @@ local function add_comment(buffer) | ||
32 | 32 | local c = utfbyte(buffer, i) |
33 | 33 | if c>=0x80 then |
34 | 34 | 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)? | |
37 | 35 | -- Is the catcode of endline character is 5 (end-of-line)? |
38 | - if ctl then | |
36 | + if (te ~= -1) and (getcatcode(te)==5) then | |
39 | 37 | local ct = getcatcode(c) |
40 | 38 | 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 | |
42 | 42 | stop_time_measure('inputbuf') |
43 | - return buffer .. utfchar(getcount('ltjlineendcomment')) | |
44 | - end | |
43 | + return buffer .. utfchar(lec) | |
44 | + end | |
45 | 45 | end |
46 | 46 | end |
47 | 47 | end |
@@ -3,7 +3,7 @@ | ||
3 | 3 | % |
4 | 4 | |
5 | 5 | \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] | |
7 | 7 | |
8 | 8 | %% patching \DeclareTextComposite |
9 | 9 | \def\ltj@chardef@text@cmd#1{% |
@@ -826,6 +826,9 @@ | ||
826 | 826 | \let\bfseries@rm\bfdef@ult |
827 | 827 | \let\bfseries@sf\bfdef@ult |
828 | 828 | \let\bfseries@tt\bfdef@ult |
829 | + \let\bfseries@mc\bfdef@ult | |
830 | + \let\bfseries@gt\bfdef@ult | |
831 | + \let\bfseries@jtt\bfdef@ult | |
829 | 832 | }{}{} |
830 | 833 | \fi |
831 | 834 | \ifdefined\@setmdseriesdefaultshook % after 2020-04-07 |