1
0
forked from GitHub/gf-core

commands for displaying transliteration tables

This commit is contained in:
aarne
2008-06-15 15:24:11 +00:00
parent 15c9fada0a
commit caa0e37c56
5 changed files with 135 additions and 28 deletions

View File

@@ -1,5 +1,6 @@
module GF.Text.Lexing (stringOp) where
import GF.Text.Transliterations
import GF.Text.UTF8
import Data.Char
@@ -19,7 +20,7 @@ stringOp name = case name of
"unwords" -> Just $ appUnlexer unwords
"to_utf8" -> Just encodeUTF8
"from_utf8" -> Just decodeUTF8
_ -> Nothing
_ -> transliterate name
appLexer :: (String -> [String]) -> String -> String
appLexer f = unwords . filter (not . null) . f