Copyright | (c) Callum Lowcay 2017 |
---|---|
License | BSD3 |
Maintainer | cwslowcay@gmail.com |
Stability | experimental |
Portability | GHC |
Safe Haskell | None |
Language | Haskell2010 |
ANSEL https://en.wikipedia.org/wiki/ANSEL is a character set and associated encodings intended for bibliographic purposes. GEDCOM files use the 8-bit ANSEL encoding by default, so we need a way to decode it. ANSEL has combining diacritics, but they precede the character that they modify (Unicode has it the other way around). This means that the code points must be reordered when converting to Unicode.
- decodeANSEL :: ByteString -> Text
Documentation
:: ByteString | The string to encode |
-> Text | Unicode text |
Decode an ANSEL string to Unicode