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 |
Synopsis
- data Language
- = Afrikaans
- | Armenian
- | Assamese
- | 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
- | Latin
- | Latin_Classic
- | Latvian
- | Lithuanian
- | Malayalam
- | Marathi
- | Mongolian
- | Norwegian_Bokmal
- | Norwegian_Nynorsk
- | Occitan
- | 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
- armenian :: Hyphenator
- assamese :: 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
- latin :: Hyphenator
- latin_Classic :: Hyphenator
- latvian :: Hyphenator
- lithuanian :: Hyphenator
- malayalam :: Hyphenator
- marathi :: Hyphenator
- mongolian :: Hyphenator
- norwegian_Bokmal :: Hyphenator
- norwegian_Nynorsk :: Hyphenator
- occitan :: 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 :: Language -> IO Hyphenator
- languageAffix :: Language -> String
Pattern file support
A strongly typed set of available languages you can use for hyphenation.
Instances
Bounded Language Source # | |
Enum Language Source # | |
Defined in Text.Hyphenation.Language | |
Eq Language Source # | |
Ord Language Source # | |
Defined in Text.Hyphenation.Language | |
Show Language Source # | |
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.
armenian :: Hyphenator Source #
Hyphenators for a wide array of languages.
assamese :: Hyphenator Source #
Hyphenators for a wide array of languages.
basque :: Hyphenator Source #
Hyphenators for a wide array of languages.
bengali :: Hyphenator Source #
Hyphenators for a wide array of languages.
bulgarian :: Hyphenator Source #
Hyphenators for a wide array of languages.
catalan :: Hyphenator Source #
Hyphenators for a wide array of languages.
chinese :: Hyphenator Source #
Hyphenators for a wide array of languages.
coptic :: Hyphenator Source #
Hyphenators for a wide array of languages.
croatian :: Hyphenator Source #
Hyphenators for a wide array of languages.
czech :: Hyphenator Source #
Hyphenators for a wide array of languages.
danish :: Hyphenator Source #
Hyphenators for a wide array of languages.
dutch :: Hyphenator Source #
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.
estonian :: Hyphenator Source #
Hyphenators for a wide array of languages.
ethiopic :: Hyphenator Source #
Hyphenators for a wide array of languages.
finnish :: Hyphenator Source #
Hyphenators for a wide array of languages.
french :: Hyphenator Source #
>>>
hyphenate french "anticonstitutionnellement"
["an","ti","cons","ti","tu","tion","nel","le","ment"]
friulan :: Hyphenator Source #
Hyphenators for a wide array of languages.
galician :: Hyphenator Source #
Hyphenators for a wide array of languages.
georgian :: Hyphenator Source #
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.
gujarati :: Hyphenator Source #
Hyphenators for a wide array of languages.
hindi :: Hyphenator Source #
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.
irish :: Hyphenator Source #
Hyphenators for a wide array of languages.
italian :: Hyphenator Source #
Hyphenators for a wide array of languages.
kannada :: Hyphenator Source #
Hyphenators for a wide array of languages.
kurmanji :: Hyphenator Source #
Hyphenators for a wide array of languages.
latin :: Hyphenator Source #
Hyphenators for a wide array of languages.
latin_Classic :: Hyphenator Source #
Hyphenators for a wide array of languages.
latvian :: Hyphenator Source #
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.
marathi :: Hyphenator Source #
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.
occitan :: Hyphenator Source #
Hyphenators for a wide array of languages.
oriya :: Hyphenator Source #
Hyphenators for a wide array of languages.
panjabi :: Hyphenator Source #
Hyphenators for a wide array of languages.
piedmontese :: Hyphenator Source #
Hyphenators for a wide array of languages.
polish :: Hyphenator Source #
Hyphenators for a wide array of languages.
portuguese :: Hyphenator Source #
Hyphenators for a wide array of languages.
romanian :: Hyphenator Source #
Hyphenators for a wide array of languages.
romansh :: Hyphenator Source #
Hyphenators for a wide array of languages.
russian :: Hyphenator Source #
Hyphenators for a wide array of languages.
sanskrit :: Hyphenator Source #
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.
slovak :: Hyphenator Source #
Hyphenators for a wide array of languages.
slovenian :: Hyphenator Source #
Hyphenators for a wide array of languages.
spanish :: Hyphenator Source #
Hyphenators for a wide array of languages.
swedish :: Hyphenator Source #
Hyphenators for a wide array of languages.
tamil :: Hyphenator Source #
Hyphenators for a wide array of languages.
telugu :: Hyphenator Source #
Hyphenators for a wide array of languages.
thai :: Hyphenator Source #
Hyphenators for a wide array of languages.
turkish :: Hyphenator Source #
Hyphenators for a wide array of languages.
turkmen :: Hyphenator Source #
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.
welsh :: Hyphenator Source #
Hyphenators for a wide array of languages.
loadHyphenator :: Language -> 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