mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
allow empty lines in transliteration files
This commit is contained in:
@@ -90,7 +90,7 @@ mkTransliteration name ts us =
|
||||
getTransliterationFile :: String -> String -> Transliteration
|
||||
getTransliterationFile name = uncurry (mkTransliteration name) . codes
|
||||
where
|
||||
codes = unzip . map (mkOne . words) . lines
|
||||
codes = unzip . map (mkOne . words) . filter (not . all isSpace) . lines
|
||||
mkOne ws = case ws of
|
||||
[c]:t:_ -> (t,fromEnum c) -- ä a:
|
||||
u:t:_ -> (t,read u) -- 228 a: OR 0xe4
|
||||
|
||||
Reference in New Issue
Block a user