From c648ccf7728650440b6d7046211128a58ddbbc5f Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Wed, 29 Dec 2010 00:00:16 +0100 Subject: restructured main transliteration procedure to not redundantly reload tables --- tex/context/third/transliterator/trans_tables_gr.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tex/context/third/transliterator/trans_tables_gr.lua') diff --git a/tex/context/third/transliterator/trans_tables_gr.lua b/tex/context/third/transliterator/trans_tables_gr.lua index 0e04f60..31637b8 100644 --- a/tex/context/third/transliterator/trans_tables_gr.lua +++ b/tex/context/third/transliterator/trans_tables_gr.lua @@ -645,7 +645,7 @@ end -- End Of Tables -- --===========================================================================-- -function translit.dogreek (mode, text) +local function greek (mode, text) local P, V, Cs = lpeg.P, lpeg.V, lpeg.Cs local addrules = translit.addrules local utfchar = translit.utfchar @@ -687,3 +687,5 @@ function translit.dogreek (mode, text) end end +translit.methods ["gr"] = function (text) return greek("gr" , text) end +translit.methods ["gr_n"] = function (text) return greek("gr_n", text) end -- cgit v1.2.3