summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/luatex/luatexja/ltj-inputbuf.lua
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-05-15 21:51:27 +0000
committerKarl Berry <karl@freefriends.org>2013-05-15 21:51:27 +0000
commitc293cc5e64a5575b0b22a373061569bacf92ee76 (patch)
treed0431b0c920cde04479ecc42fcb2fec28b394a8f /Master/texmf-dist/tex/luatex/luatexja/ltj-inputbuf.lua
parent7125751ebd8f93429724b73226f3350a0e0e7635 (diff)
luatexja (15may13)
git-svn-id: svn://tug.org/texlive/trunk@30485 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/luatex/luatexja/ltj-inputbuf.lua')
-rw-r--r--Master/texmf-dist/tex/luatex/luatexja/ltj-inputbuf.lua12
1 files changed, 2 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/luatex/luatexja/ltj-inputbuf.lua b/Master/texmf-dist/tex/luatex/luatexja/ltj-inputbuf.lua
index f527f341c71..f97f966039b 100644
--- a/Master/texmf-dist/tex/luatex/luatexja/ltj-inputbuf.lua
+++ b/Master/texmf-dist/tex/luatex/luatexja/ltj-inputbuf.lua
@@ -1,14 +1,6 @@
--
--- luatexja/inputbuf.lua
+-- luatexja/ltj-inputbuf.lua
--
-luatexbase.provides_module({
- name = 'luatexja.inputbuf',
- date = '2011/04/01',
- version = '0.1',
- description = 'Supressing a space by newline after Japanese characters',
-})
-module('luatexja.inputbuf', package.seeall)
-local err, warn, info, log = luatexbase.errwarinf(_NAME)
luatexja.load_module('charrange'); local ltjc = luatexja.charrange
@@ -20,7 +12,7 @@ local ltjc_is_ucs_in_japanese_char = ltjc.is_ucs_in_japanese_char
--- the following function is modified from jafontspec.lua (by K. Maeda).
--- Instead of "%", we use U+FFFFF for suppressing spaces.
-function add_comment(buffer)
+local function add_comment(buffer)
local i = utf.len(buffer)
while (i>0) and (getcatcode(utf.byte(buffer, i))==1
or getcatcode(utf.byte(buffer, i))==2) do