1
0
forked from GitHub/gf-core

Founding the newly structured GF2.0 cvs archive.

This commit is contained in:
aarne
2003-09-22 13:16:55 +00:00
commit b1402e8bd6
162 changed files with 25569 additions and 0 deletions

21
src/GF/Text/Hebrew.hs Normal file
View File

@@ -0,0 +1,21 @@
module Hebrew where
mkHebrew :: String -> String
mkHebrew = reverse . unwords . (map mkHebrewWord) . words
--- reverse : assumes everything's on same line
type HebrewChar = Char
mkHebrewWord :: String -> [HebrewChar]
mkHebrewWord = map mkHebrewChar
mkHebrewChar c = case lookup c cc of Just c' -> c' ; _ -> c
where
cc = zip allHebrewCodes allHebrew
allHebrewCodes = "-abgdhwzHTyKklMmNnSoPpCcqrst"
allHebrew :: String
allHebrew = (map toEnum (0x05be : [0x05d0 .. 0x05ea]))