X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=src%2Fltj-inputbuf.lua;h=cec74cfc23201f24a5cd5554bfccca266c6f7ba5;hb=eb118f3e5ea0852407b5261817700401699528b9;hp=fdf9dc831c5af76ae942a7002055ba3832b844b1;hpb=9f0183d5a98705de4d177e283073431486496d88;p=luatex-ja%2Fluatexja.git diff --git a/src/ltj-inputbuf.lua b/src/ltj-inputbuf.lua index fdf9dc8..cec74cf 100644 --- a/src/ltj-inputbuf.lua +++ b/src/ltj-inputbuf.lua @@ -30,7 +30,7 @@ local function add_comment(buffer) end if i>0 then local c = utfbyte(buffer, i) - if c>0x80 then + if c>=0x80 then local ct = getcatcode(c) local te = tex.endlinechar local ctl = (te ~= -1) and (getcatcode(te)==5) and (getcatcode(0xFFFFF)==14) @@ -47,4 +47,7 @@ local function add_comment(buffer) return buffer end +luatexbase.add_to_callback('process_input_buffer', + add_comment,'ltj.process_input_buffer') + --EOF