Copyright | (C) 2012-2015 Edward Kmett, (C) 2007 Ned Batchelder |
---|---|
License | BSD-style (see the languageAffix LICENSE) |
Maintainer | Edward Kmett <ekmett@gmail.com> |
Stability | provisional |
Portability | portable |
Safe Haskell | Trustworthy |
Language | Haskell98 |
- data Language
- = Afrikaans
- | Basque
- | Bengali
- | Bulgarian
- | Catalan
- | Chinese
- | Coptic
- | Croatian
- | Czech
- | Danish
- | Dutch
- | English_US
- | English_GB
- | Esperanto
- | Estonian
- | Ethiopic
- | Finnish
- | French
- | Friulan
- | Galician
- | Georgian
- | German_1901
- | German_1996
- | German_Swiss
- | Greek_Ancient
- | Greek_Mono
- | Greek_Poly
- | Gujarati
- | Hindi
- | Hungarian
- | Icelandic
- | Indonesian
- | Interlingua
- | Irish
- | Italian
- | Kannada
- | Kurmanji
- | Lao
- | Latin
- | Latin_Classic
- | Latvian
- | Lithuanian
- | Malayalam
- | Marathi
- | Mongolian
- | Norwegian_Bokmal
- | Norwegian_Nynorsk
- | Oriya
- | Panjabi
- | Piedmontese
- | Polish
- | Portuguese
- | Romanian
- | Romansh
- | Russian
- | Sanskrit
- | Serbian_Cyrillic
- | Serbocroatian_Cyrillic
- | Serbocroatian_Latin
- | Slovak
- | Slovenian
- | Spanish
- | Swedish
- | Tamil
- | Telugu
- | Thai
- | Turkish
- | Turkmen
- | Ukrainian
- | Uppersorbian
- | Welsh
- languageHyphenator :: Language -> Hyphenator
- afrikaans :: Hyphenator
- basque :: Hyphenator
- bengali :: Hyphenator
- bulgarian :: Hyphenator
- catalan :: Hyphenator
- chinese :: Hyphenator
- coptic :: Hyphenator
- croatian :: Hyphenator
- czech :: Hyphenator
- danish :: Hyphenator
- dutch :: Hyphenator
- english_US :: Hyphenator
- english_GB :: Hyphenator
- esperanto :: Hyphenator
- estonian :: Hyphenator
- ethiopic :: Hyphenator
- finnish :: Hyphenator
- french :: Hyphenator
- friulan :: Hyphenator
- galician :: Hyphenator
- georgian :: Hyphenator
- german_1901 :: Hyphenator
- german_1996 :: Hyphenator
- german_Swiss :: Hyphenator
- greek_Ancient :: Hyphenator
- greek_Mono :: Hyphenator
- greek_Poly :: Hyphenator
- gujarati :: Hyphenator
- hindi :: Hyphenator
- hungarian :: Hyphenator
- icelandic :: Hyphenator
- indonesian :: Hyphenator
- interlingua :: Hyphenator
- irish :: Hyphenator
- italian :: Hyphenator
- kannada :: Hyphenator
- kurmanji :: Hyphenator
- lao :: Hyphenator
- latin :: Hyphenator
- latin_Classic :: Hyphenator
- latvian :: Hyphenator
- lithuanian :: Hyphenator
- malayalam :: Hyphenator
- marathi :: Hyphenator
- mongolian :: Hyphenator
- norwegian_Bokmal :: Hyphenator
- norwegian_Nynorsk :: Hyphenator
- oriya :: Hyphenator
- panjabi :: Hyphenator
- piedmontese :: Hyphenator
- polish :: Hyphenator
- portuguese :: Hyphenator
- romanian :: Hyphenator
- romansh :: Hyphenator
- russian :: Hyphenator
- sanskrit :: Hyphenator
- serbian_Cyrillic :: Hyphenator
- serbocroatian_Cyrillic :: Hyphenator
- serbocroatian_Latin :: Hyphenator
- slovak :: Hyphenator
- slovenian :: Hyphenator
- spanish :: Hyphenator
- swedish :: Hyphenator
- tamil :: Hyphenator
- telugu :: Hyphenator
- thai :: Hyphenator
- turkish :: Hyphenator
- turkmen :: Hyphenator
- ukrainian :: Hyphenator
- uppersorbian :: Hyphenator
- welsh :: Hyphenator
- loadHyphenator :: String -> IO Hyphenator
- languageAffix :: Language -> String
Pattern file support
A strongly typed set of available languages you can use for hyphenation.
languageHyphenator :: Language -> Hyphenator Source
Load (and cache) the hyphenator for a given language.
Provided language hyphenators
afrikaans :: Hyphenator Source
Hyphenators for a wide array of languages.
Hyphenators for a wide array of languages.
Hyphenators for a wide array of languages.
bulgarian :: Hyphenator Source
Hyphenators for a wide array of languages.
Hyphenators for a wide array of languages.
Hyphenators for a wide array of languages.
Hyphenators for a wide array of languages.
Hyphenators for a wide array of languages.
Hyphenators for a wide array of languages.
Hyphenators for a wide array of languages.
Hyphenators for a wide array of languages.
english_US :: Hyphenator Source
>>>
hyphenate english_US "supercalifragilisticexpialadocious"
["su","per","cal","ifrag","ilis","tic","ex","pi","al","ado","cious"]
favors US hyphenation
english_GB :: Hyphenator Source
>>>
hyphenate english_GB "supercalifragilisticexpialadocious"
["su","per","cal","i","fra","gil","istic","ex","pi","alado","cious"]
favors UK hyphenation
esperanto :: Hyphenator Source
Hyphenators for a wide array of languages.
Hyphenators for a wide array of languages.
Hyphenators for a wide array of languages.
Hyphenators for a wide array of languages.
>>>
hyphenate french "anticonstitutionnellement"
["an","ti","cons","ti","tu","tion","nel","le","ment"]
Hyphenators for a wide array of languages.
Hyphenators for a wide array of languages.
Hyphenators for a wide array of languages.
german_1901 :: Hyphenator Source
Hyphenators for a wide array of languages.
german_1996 :: Hyphenator Source
Hyphenators for a wide array of languages.
german_Swiss :: Hyphenator Source
Hyphenators for a wide array of languages.
greek_Ancient :: Hyphenator Source
Hyphenators for a wide array of languages.
greek_Mono :: Hyphenator Source
Hyphenators for a wide array of languages.
greek_Poly :: Hyphenator Source
Hyphenators for a wide array of languages.
Hyphenators for a wide array of languages.
Hyphenators for a wide array of languages.
hungarian :: Hyphenator Source
Hyphenators for a wide array of languages.
icelandic :: Hyphenator Source
>>>
hyphenate icelandic "va\240lahei\240avegavinnuverkf\230rageymslusk\250r"
["va\240la","hei\240a","vega","vinnu","verk","f\230ra","geymslu","sk\250r"]
indonesian :: Hyphenator Source
Hyphenators for a wide array of languages.
interlingua :: Hyphenator Source
Hyphenators for a wide array of languages.
Hyphenators for a wide array of languages.
Hyphenators for a wide array of languages.
Hyphenators for a wide array of languages.
Hyphenators for a wide array of languages.
lao :: Hyphenator Source
Hyphenators for a wide array of languages.
Hyphenators for a wide array of languages.
latin_Classic :: Hyphenator Source
Hyphenators for a wide array of languages.
Hyphenators for a wide array of languages.
lithuanian :: Hyphenator Source
Hyphenators for a wide array of languages.
malayalam :: Hyphenator Source
Hyphenators for a wide array of languages.
Hyphenators for a wide array of languages.
mongolian :: Hyphenator Source
Hyphenators for a wide array of languages.
norwegian_Bokmal :: Hyphenator Source
Hyphenators for a wide array of languages.
norwegian_Nynorsk :: Hyphenator Source
Hyphenators for a wide array of languages.
Hyphenators for a wide array of languages.
Hyphenators for a wide array of languages.
piedmontese :: Hyphenator Source
Hyphenators for a wide array of languages.
Hyphenators for a wide array of languages.
portuguese :: Hyphenator Source
Hyphenators for a wide array of languages.
Hyphenators for a wide array of languages.
Hyphenators for a wide array of languages.
Hyphenators for a wide array of languages.
Hyphenators for a wide array of languages.
serbian_Cyrillic :: Hyphenator Source
Hyphenators for a wide array of languages.
serbocroatian_Cyrillic :: Hyphenator Source
Hyphenators for a wide array of languages.
serbocroatian_Latin :: Hyphenator Source
Hyphenators for a wide array of languages.
Hyphenators for a wide array of languages.
slovenian :: Hyphenator Source
Hyphenators for a wide array of languages.
Hyphenators for a wide array of languages.
Hyphenators for a wide array of languages.
Hyphenators for a wide array of languages.
Hyphenators for a wide array of languages.
thai :: Hyphenator Source
Hyphenators for a wide array of languages.
Hyphenators for a wide array of languages.
Hyphenators for a wide array of languages.
ukrainian :: Hyphenator Source
Hyphenators for a wide array of languages.
uppersorbian :: Hyphenator Source
Hyphenators for a wide array of languages.
Hyphenators for a wide array of languages.
loadHyphenator :: String -> IO Hyphenator Source
Read a built-in language file from the data directory where cabal installed this package.
(e.g. hyphenateLanguage "en-us"
opens "/Users/ekmett/.cabal/share/hyphenation-0.2/ghc-7.4.1/hyph-en-us.hyp.txt"
among others when run on the author's local machine)
languageAffix :: Language -> String Source
the infix portion of the data file names used for this language