Safe Haskell | Safe-Inferred |
---|
- dasherize :: String -> String
- parameterize :: String -> String
- transliterate :: String -> String
- transliterateCustom :: String -> Transliterations -> String -> String
- defaultTransliterations :: Map Char String
Documentation
parameterize :: String -> StringSource
Replaces special characters in a string so that it may be used as part of a
pretty
URL. Uses the default transliterations in this library
transliterate :: String -> StringSource
Returns a String after default approximations for changing Unicode characters to a valid ASCII range are applied. If you want to supplement the default approximations with your own, you should use the transliterateCustom function instead of transliterate.
transliterateCustom :: String -> Transliterations -> String -> StringSource
Returns a String after default approximations for changing Unicode characters to a valid ASCII range are applied.
defaultTransliterations :: Map Char StringSource
These default transliterations stolen from the Ruby i18n library - https:github.comsvenfuchsi18nblobmasterlibi18nbackendtransliterator.rb#L41:L69