Copyright | (c) 2022 Composewell Technologies and Contributors |
---|---|
License | Apache-2.0 |
Maintainer | streamly@composewell.com |
Stability | experimental |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Unicode character names and name aliases. See Unicode standard 15.0.0, section 4.8.
Since: 0.1.0
Synopsis
- name :: Char -> Maybe String
- nameOrAlias :: Char -> Maybe String
- correctedName :: Char -> Maybe String
- data NameAliasType
- nameAliases :: Char -> [String]
- nameAliasesByType :: NameAliasType -> Char -> [String]
- nameAliasesWithTypes :: Char -> [(NameAliasType, [String])]
Name
nameOrAlias :: Char -> Maybe String Source #
Returns a character’s name
if defined,
otherwise returns its first name alias if defined.
Since: 0.1.0
correctedName :: Char -> Maybe String Source #
Returns corrected name of a character (see Correction
),
if defined, otherwise returns its original name
if defined.
Since: 0.1.0
Name Aliases
data NameAliasType Source #
Type of name alias. See Unicode Standard 15.0.0, section 4.8.
Since: 0.1.0
Correction | Corrections for serious problems in the character names. |
Control | ISO 6429 names for |
Alternate | A few widely used alternate names for format characters. |
Figment | Several documented labels for |
Abbreviation | Commonly occurring abbreviations (or acronyms) for control codes, format characters, spaces, and variation selectors. |
Instances
nameAliases :: Char -> [String] Source #
All name aliases of a character, if defined. The names are listed in the original order of the UCD.
See nameAliasesWithTypes
for the detailed list by alias type.
Since: 0.1.0
nameAliasesByType :: NameAliasType -> Char -> [String] Source #
Name aliases of a character for a specific name alias type.
Since: 0.1.0
nameAliasesWithTypes :: Char -> [(NameAliasType, [String])] Source #
Detailed character names aliases. The names are listed in the original order of the UCD.
See nameAliases
if the alias type is not required.
Since: 0.1.0