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_trsc.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tex/context/third/transliterator/trans_tables_trsc.lua') diff --git a/tex/context/third/transliterator/trans_tables_trsc.lua b/tex/context/third/transliterator/trans_tables_trsc.lua index f5de9bb..6ba07a2 100644 --- a/tex/context/third/transliterator/trans_tables_trsc.lua +++ b/tex/context/third/transliterator/trans_tables_trsc.lua @@ -494,7 +494,7 @@ end -- End Of Tables -- --===========================================================================-- -function translit.transcript (mode, text) +local function transcript (mode, text) local P, R, S, V, Cs = lpeg.P, lpeg.R, lpeg.S, lpeg.V, lpeg.Cs local addrules = translit.addrules local utfchar = translit.utfchar @@ -679,3 +679,9 @@ function translit.transcript (mode, text) end +translit.methods ["ru_transcript_de"] = function (text) return transcript("ru_transcript_de" , text) end +translit.methods ["ru_transcript_de_exp"] = function (text) return transcript("ru_transcript_de_exp", text) end +translit.methods ["ru_transcript_en"] = function (text) return transcript("ru_transcript_en" , text) end +translit.methods ["ru_transcript_en_exp"] = function (text) return transcript("ru_transcript_en_exp", text) end +translit.methods ["ru_cz"] = function (text) return transcript("ru_cz" , text) end +translit.methods ["ocs_cz"] = function (text) return transcript("ocs_cz" , text) end -- cgit v1.2.3