From e6e1e893c0bb13e4cdb9d2e58afc981257a73b81 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Fri, 19 Mar 2010 22:10:06 +0100 Subject: dirty hack to be used with limited fonts --- tex/context/third/transliterator/t-transliterator.mkiv | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'tex/context/third/transliterator/t-transliterator.mkiv') diff --git a/tex/context/third/transliterator/t-transliterator.mkiv b/tex/context/third/transliterator/t-transliterator.mkiv index 16c197b..ef8c15e 100644 --- a/tex/context/third/transliterator/t-transliterator.mkiv +++ b/tex/context/third/transliterator/t-transliterator.mkiv @@ -31,6 +31,13 @@ %D \type{ru}, \type{ru_transcript_de}, \type{ru_transcript_en}, \type{ru_old}, %D \type{all}, \type{iso9_ocs}, \type{ocs}, \type{ocs_gla}, \type{ru_cz}, %D \type{ocs_cz}, \type{gr} and \type{gr_n}. +%D As not all fonts, even the expensive ones, support some of the most frequent +%D unicode signs used in ISO~9 there are fallbacks for the transliterations of +%D the weak and hard sign: \type{iso9_ocs_hack}, which is essentially +%D \type{iso9_ocs}, and \type{ru_old_jer_hack}, which is essentially +%D \type{ru_old}. These two transliterate {\em ь} and {\em ъ} (both upper and +%D lower case) to the more common, but non-ISO characters {\em '} and {\em ''} +%D respectively. %D Possible values for \type{hyphenate} are all valid \CONTEXT\ language code, for an %D overview see \type{http://wiki.contextgarden.net/Language_Codes}. %D In praxi you may want to choose either Czech (the default) or Slovak @@ -223,8 +230,9 @@ end \startluacode function translit.transliterate (method, text) - if method == "ru" or - method == "ru_old" or + if method == "ru" or + method == "ru_old" or + method == "ru_old_jer_hack" or method == "all" then environment.loadluafile ("trans_tables_iso9") @@ -238,8 +246,9 @@ function translit.transliterate (method, text) then environment.loadluafile ("trans_tables_trsc") text = translit.transcript (method, text) - elseif method == "iso9_ocs" or - method == "ocs" or + elseif method == "iso9_ocs" or + method == "iso9_ocs_hack" or + method == "ocs" or method == "ocs_gla" then environment.loadluafile ("trans_tables_scntfc") -- cgit v1.2.3