unicode-data-names-0.2.0: Unicode characters names and aliases
Copyright(c) 2022 Composewell Technologies and Contributors
LicenseApache-2.0
Maintainerstreamly@composewell.com
Stabilityexperimental
Safe HaskellSafe-Inferred
LanguageHaskell2010

Unicode.Char.General.Names

Description

Unicode character names and name aliases. See Unicode standard 15.0.0, section 4.8.

Since: 0.1.0

Synopsis

Name

name :: Char -> Maybe String Source #

Name of a character, if defined.

Since: 0.1.0

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

Constructors

Correction

Corrections for serious problems in the character names.

Control

ISO 6429 names for C0 and C1 control functions, and other commonly occurring names for control codes.

Alternate

A few widely used alternate names for format characters.

Figment

Several documented labels for C1 control code points which were never actually approved in any standard.

Abbreviation

Commonly occurring abbreviations (or acronyms) for control codes, format characters, spaces, and variation selectors.

Instances

Instances details
Bounded NameAliasType Source # 
Instance details

Defined in Unicode.Internal.Char.UnicodeData.NameAliases

Enum NameAliasType Source # 
Instance details

Defined in Unicode.Internal.Char.UnicodeData.NameAliases

Ix NameAliasType Source # 
Instance details

Defined in Unicode.Internal.Char.UnicodeData.NameAliases

Show NameAliasType Source # 
Instance details

Defined in Unicode.Internal.Char.UnicodeData.NameAliases

Eq NameAliasType Source # 
Instance details

Defined in Unicode.Internal.Char.UnicodeData.NameAliases

Ord NameAliasType Source # 
Instance details

Defined in Unicode.Internal.Char.UnicodeData.NameAliases

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