Friday, 14 January 2022

Unicode Trivial U+030C

Codepoint: U+030C "COMBINING CARON"
Block: U+0300..036F "Combining Diacritical Marks"

Imagine the role of Bjorn in a heavy metal ABBA tribute band (really?) who styles his name:

Bǰörn

There's a caron over the "j" and a (heavy metal) umlaut over the "o". That's five Unicode codepoints:

U+0042, U+01F0, U+00F6, U+0072, U+006E

When his name is converted to all uppercase for the tour poster:

BJ̌ÖRN

it mysteriously becomes six Unicode codepoints:

U+0042, U+004A, U+030C, U+00D6, U+0052, U+004E

This is because although Unicode has the codepoint U+01F0 "LATIN SMALL LETTER J WITH CARON", it has no single codepoint for "LATIN CAPITAL LETTER J WITH CARON". The case mapping algorithm uses data from the UCD to map U+01F0 to the pair U+004A/U+030C.

U+030C is the codepoint for "COMBINING CARON".

If we convert the name back to titlecase, we get:

Bǰörn

This looks the same (hopefully) but is also made up of six codepoints:

U+0042, U+006A, U+030C, U+00F6, U+0072, U+006E

The "O WITH DIAERESIS" round-tripped okay, but not the "J WITH CARON". What's going on?

Case mapping and case folding are very knotty problems. There are plenty of edge-cases in Unicode where converting to/from uppercase/lowercase and back again does not produce the original input. You cannot perform case-insensitive matching by simply converting both strings to uppercase and comparing for equality. Nor does converting to lowercase (or titlecase) work either.

If we look at the UCD entry for U+01F0 "LATIN SMALL LETTER J WITH CARON", we see:

  1. dm = 006A 030C
  2. uc = 004A 030C
  3. lc = #
  4. tc = 004A 030C
  5. cf = 006A 030C

This can be interpreted as:

  1. The "Decomposition Mapping" is "U+006A U+030C". That's lowercase "j" followed by a combining caron.
  2. The (non-simple) "Uppercase Mapping" is "U+004A U+030C". That's uppercase "J" followed by a combining caron.
  3. The (non-simple) "Lowercase Mapping" is the unaltered codepoint, i.e. "U+01F0". That's the single codepoint "LATIN SMALL LETTER J WITH CARON".
  4. The (non-simple) "Titlecase Mapping" is "U+004A U+030C". That's uppercase "J" followed by a combining caron.
  5. The (non-simple) "Case Folding" is "U+006A U+030C". That's lowercase "j" followed by a combining caron.

From these definitions, one can imagine algorithms for:

  1. Decomposing strings into normalized forms (NFC/NFD/NFKC/NFKD) to avoid ambiguity, although there are still lots of additional complications.
  2. Converting strings to uppercase.
  3. Converting strings to lowercase.
  4. Converting strings to titlecase.
  5. Comparing strings in a case-insensitive way.
Further complications occur when more than one diacritic is attached to a letter. And then there's the question of ordering (collating) text with diacritics...

Perhaps Bjorn was so busy wondering why there's no umlaut in "umlaut" that he missed a trick. He should have styled himself:


U+0243, U+01F0, U+00F6, U+1E5D, U+00F1

Thursday, 13 January 2022

Unicode Trivia U+02DB

Codepoint: U+02DB "OGONEK"
Block: U+02B0..02FF "Spacing Modifier Letters"

The English language doesn't really have diacritics except in loanwords (such as "café", "naïve", "façade" and "piñata") or in poetry (as with "belovèd"). As a consequence, many English-speakers struggle with  the whole concept.

The many scripts and languages supported by Unicode make diacritics a thorny issue here too. Trawling though the UCD comes up with the following major instances:*

  1. ACUTE
    The acute accent:
     
    Ó
    U+00D3 "LATIN CAPITAL LETTER O WITH ACUTE"

  2. DOUBLE ACUTE
    The double acute accent (sometimes called the hungarumlaut):

    Ő
    U+0150 "LATIN CAPITAL LETTER O WITH DOUBLE ACUTE"

  3. GRAVE
    The grave accent:

    Ò
    U+00D2 "LATIN CAPITAL LETTER O WITH GRAVE"

  4. DOUBLE GRAVE
    The double grave accent (mainly used in Serbo-Croatian and Slovenian):

    Ȍ
    U+020C "LATIN CAPITAL LETTER O WITH DOUBLE GRAVE"

  5. CIRCUMFLEX
    The circumflex (easily confused with the inverted breve):

    Ô
    U+00D4 "LATIN CAPITAL LETTER O WITH CIRCUMFLEX"

  6. TILDE
    The tilde (in the Estonian alphabet "õ" is an independent letter):

    Õ
    U+00D5 "LATIN CAPITAL LETTER O WITH TILDE"

  7. DIAERESIS
    The diaeresis or umlaut:
    [In Unicode, the term "DIAERESIS" is preferred over "UMLAUT"]

    Ö
    U+00D6 "LATIN CAPITAL LETTER O WITH DIAERESIS"

  8. STROKE
    The stroke (in some Scandinavian alphabets "ø" is an independent letter):

    Ø
    U+00D8 "LATIN CAPITAL LETTER O WITH STROKE"

  9. MACRON
    The macron or line above:

    Ō
    U+014C "LATIN CAPITAL LETTER O WITH MACRON"

  10. BREVE
    The breve (easily confused with the caron or háček):

    Ŏ
    U+014E "LATIN CAPITAL LETTER O WITH BREVE"

  11. INVERTED BREVE
    The inverted breve or arch (easily confused with the circumflex):

    Ȏ
    U+020E "LATIN CAPITAL LETTER O WITH INVERTED BREVE"

  12. HORN
    The horn (used in Vietnamese):

    Ơ
    U+01A0 "LATIN CAPITAL LETTER O WITH HORN"

  13. CARON
    The caron or háček (easily confused with the breve):
    [Since Unicode 1.1, the term "CARON" is preferred over "HACEK"]

    Ǒ
    U+01D1 "LATIN CAPITAL LETTER O WITH CARON"

  14. DOT ABOVE
    The dot above or overdot:

    Ȯ
    U+022E "LATIN CAPITAL LETTER O WITH DOT ABOVE"

  15. DOT BELOW
    The dot below or underdot:

    Ọ
    U+1ECC "LATIN CAPITAL LETTER O WITH DOT BELOW"

  16. HOOK ABOVE
    The hook above (used in Vietnamese):

    Ỏ
    U+1ECE "LATIN CAPITAL LETTER O WITH HOOK ABOVE"

  17. LONG STROKE OVERLAY
    The long stroke overlay ("ꝋ" was a medieval abbreviation for the Latin obiit "he died"):

    Ꝋ
    U+A74A "LATIN CAPITAL LETTER O WITH LONG STROKE OVERLAY"

  18. LOOP
    The loop ("ꝍ" is used for transliterating medieval Nordic vowels):

    Ꝍ
    U+A74C "LATIN CAPITAL LETTER O WITH LOOP"

  19. BELT
    The belt ("ɬ" is used in IPA for the voiceless alveolar lateral fricative):

    Ɬ
    U+A7AD "LATIN CAPITAL LETTER L WITH BELT"

  20. LINE BELOW
    The line below (or macron below):

    Ḻ
    U+1E3A "LATIN CAPITAL LETTER L WITH LINE BELOW"

  21. STROKE
    The stroke ("ł" is a Polish dark L):

    Ł
    U+0141 "LATIN CAPITAL LETTER L WITH STROKE"

  22. CEDILLA
    The cedilla:

    Ç
    U+00C7 "LATIN CAPITAL LETTER C WITH CEDILLA"

  23. RING ABOVE
    The ring above or overring (used in many Scandinavian languages):

    Å
    U+00C5 "LATIN CAPITAL LETTER A WITH RING ABOVE"

  24. RING BELOW
    The ring below or underring:

    Ḁ
    U+1E00 "LATIN CAPITAL LETTER A WITH RING BELOW"

  25. OGONEK
    The ogonek (usually applied to vowels):

    Ǫ
    U+01EA "LATIN CAPITAL LETTER O WITH OGONEK"

The Polish ogonek (literally "little tail") is applied to the letters "A" and "E":

Ąą Ęę

According to Adam Twardoch, the Polish ogonek isn't simply an accent...

It's much more a character element, just like a stem, a serif or a descent. In a vast majority of cases ogonek should be smoothly connected with the base glyph, it should be a part of the glyph.

Wikimedia Commons

If you search the UCD, you'll find 18 references to "ogonek":

  • U+0104 "LATIN CAPITAL LETTER A WITH OGONEK"
  • U+0105 "LATIN SMALL LETTER A WITH OGONEK"
  • U+0118 "LATIN CAPITAL LETTER E WITH OGONEK"
  • U+0119 "LATIN SMALL LETTER E WITH OGONEK"
  • U+012E "LATIN CAPITAL LETTER I WITH OGONEK"
  • U+012F "LATIN SMALL LETTER I WITH OGONEK"
  • U+0172 "LATIN CAPITAL LETTER U WITH OGONEK"
  • U+0173 "LATIN SMALL LETTER U WITH OGONEK"
  • U+01EA "LATIN CAPITAL LETTER O WITH OGONEK"
  • U+01EB "LATIN SMALL LETTER O WITH OGONEK"
  • U+01EC "LATIN CAPITAL LETTER O WITH OGONEK AND MACRON"
  • U+01ED "LATIN SMALL LETTER O WITH OGONEK AND MACRON"
  • U+02DB "OGONEK"
  • U+0328 "COMBINING OGONEK"
  • U+04BE "CYRILLIC CAPITAL LETTER ABKHASIAN CHE WITH DESCENDER"
    • Was named "CYRILLIC CAPITAL LETTER IE HOOK OGONEK" in Unicode 1.0
  • U+04BF "CYRILLIC SMALL LETTER ABKHASIAN CHE WITH DESCENDER"
    • Was named "CYRILLIC SMALL LETTER IE HOOK OGONEK" in Unicode 1.0
  • U+1AB7 "COMBINING OPEN MARK BELOW"
    • Notes include "see also combining ogonek - 0328"
  • U+1DCE "COMBINING OGONEK ABOVE"

Codepoint U+02DB is interesting. It's in the "Spacing clones of diacritics" column of the "Spacing Modifier Letters" block. This column contains six codepoints (including U+02DB) which fill in the gaps for "standalone" diacritics; that is, codepoints for diacritics that take up space without the need for the combining equivalent being applied to a letter.

So, if you're talking about ogoneks in general and want to include them in text without being attached to another glyph, you can just use U+02DB:

An ogonek looks like “˛”

There will be visible differences between this and a combining ogonek with a standard space (U+0020):

An ogonek looks like “̨”

A combining ogonek with a non-breaking space  (U+00A0):

An ogonek looks like “ ̨”

And a combining ogonek with a dotted circle (U+25CC):

An ogonek looks like “◌̨”

One of the few times you depict ogoneks in isolation is when you're talking about how to depict ogoneks in isolation.

* Good luck with the text rendering in your browser here!

Wednesday, 12 January 2022

Unicode Trivial U+0256

Codepoint: U+0256 "LATIN SMALL LETTER D WITH TAIL"
Block: U+0250..02AF "IPA Extensions"

The "Ð" (U+00D0 "LATIN CAPITAL LETTER ETH") that we first met in the Icelandic alphabet is easily confused with other Unicode codepoints:

  • "Đ" (U+0110 "LATIN CAPITAL LETTER D WITH STROKE")
  • "Ɖ" (U+0189 "LATIN CAPITAL LETTER AFRICAN D")

These three codepoints are considered distinct according to the Unicode standard but are typically rendered (almost) identically.

The lowercase mapping of the African D (which sits in the "Latin Extended-B" block) is "ɖ" (U+0256 "LATIN SMALL LETTER D WITH TAIL") which sits in the "IPA Extensions" block. Note that the lowercase is not called "LATIN SMALL LETTER AFRICAN D" as you might expect. However, the uppercase mapping of "LATIN SMALL LETTER D WITH TAIL" is indeed "LATIN CAPITAL LETTER AFRICAN D", so they're obviously a pair.

At first, I thought the African D naming inconsistency was because the two blocks ("Latin Extended-B" and "IPA Extensions") were added to the Unicode standard at different times. But the UCD tells us the codepoint were both in the original version 1.0, though under differently-named blocks.

An alternative reason for the codepoint naming inconsistency may be due to history of the African D itself.

The African D is the sixth letter of the International African Alphabet developed in 1928 by Diedrich Hermann Westermann and others. This alphabet was a precursor to the African Reference Alphabet (1978) and the World Orthography alphabet (1948).

International African Alphabet

The International African Alphabet was itself developed from the International Phonetic Alphabet which has been evolving since 1888. However, the IPA famously does not have uppercase versions of its letters. Fortunately, the International Institute of African Languages and Cultures had already prepared such a mapping in "The Practical Orthography of African Languages" (1928) [transcript]:

[source]

The International Phonetic Alphabet does not have a dedicated block of its own in Unicode as its characters are mainly "borrowed" from other sources (e.g. Latin, Greek and Cyrillic blocks). During the original compilation of Unicode, any phonetic character that wasn't extant elsewhere was added to the new "Standard Phonetic" (later renamed "IPA Extensions") block. The original code charts show U+0189 (p.185 "Extended Latin") and U+0256 (p.189 "Standard Phonetic") with their current names and the expected case mapping between them.

In a Unicode meeting (ISO/IEC JTC 1/SC 2/WG 2 on 1994-06-01 item N 989), a suggestion was made to rename U+0189 to "LATIN CAPITAL LETTER OF LETTER D WITH TAIL", but this was withdrawn for unknown reasons. The alternatives are to rename U+0189 to "LATIN CAPITAL LETTER D WITH TAIL" which is obviously visually incorrect, or to rename U+0256 to "LATIN SMALL LETTER AFRICAN D". The last suggestion is problematic because I'm sure codepoint U+0256 is primarily used in the context of phonetics.

I believe the two codepoints were added to Unicode 1.0 with their current names knowingly inconsistent as a compromise. And compromises are what standards committees are all about.

Tuesday, 11 January 2022

Unicode Trivia U+01BF

Codepoint: U+01BF "LATIN LETTER WYNN"
Block: U+0180..024F "Latin Extended-B"

The Old English (Anglo-Saxon) alphabet (circa 8th to 12th centuries) had 24 letters:

Aa Ææ Bb Cc Dd Ðð Ee Ff Ᵹᵹ Hh Ii Ll Mm Nn Oo Pp Rr Ss Tt Uu Ƿƿ Xx Yy Þþ

The twenty-first letter (uppercase "Ƿ", lowercase "ƿ") is named "wynn". This alphabet was derived from Latin, which lacked a /w/ sound, so the digraph "uu" was used instead. Hence the name "double-u".

Later, "uu" was replaced by the runic symbol "ᚹ" (U+16B9 "RUNIC LETTER WUNJO WYNN W") that morphed into the Latin wynn. After the Norman Conquest, French scribes abandoned the wynn, possibly because it was easily confused with "Pp" and/or "Þþ" (thorn), and reverted to "double-u".

There are many infographics about the evolution of the English alphabet, including one by Useful Charts. I've tried to construct one from the perspective of codepoints in Unicode 14.0. I've also ignored minuscules which means that topics such as Carolingian are omitted.

There's an interactive rendition of this table on the "Unicode Tour" web page that accompanies these blog posts.

Unicode Trivia U+0132

Codepoint: U+0132 "LATIN CAPITAL LIGATURE IJ"
Block: U+0100..017F "Latin Extended-A"

[If you haven't already noticed, I'm trying to come up with an mildly interesting fact about one codepoint in every Unicode block. As of Version 14.0, that's 320 blocks]

The Latin script is the basis of many alphabets. Of the languages whose Latin-script alphabets can (currently) be expressed as single codepoints, here are a selection [source]:

Danish
Aa Bb Cc Dd Ee Ff Gg Hh Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz Ææ Øø Åå

Dutch
Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy IJij Zz

English
Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz

Estonian
Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Šš Zz Žž Tt Uu Vv Ww Õõ Ää Öö Üü Xx Yy

Faroese
Aa Áá Bb Dd Ðð Ee Ff Gg Hh Ii Íí Jj Kk Ll Mm Nn Oo Óó Pp Rr Ss Tt Uu Úú Vv Yy Ýý Ææ Øø 

Finnish
Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Xx Yy Zz Ää Öö

French
Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz

German
Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz Ää Öö Üü
ẞß

Icelandic
Aa Áá Bb Dd Ðð Ee Éé Ff Gg Hh Ii Íí Jj Kk Ll Mm Nn Oo Óó Pp Rr Ss Tt Uu Úú Vv Xx Yy Ýý Þþ Ææ Öö

Irish
Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz

Italian
Aa Bb Cc Dd Ee Ff Gg Hh Ii Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Zz

Latvian
Aa Āā Bb Cc Čč Dd Ee Ēē Ff Gg Ģģ Hh Ii Īī Jj Ķķ Ll Ļļ Mm Nn Ņņ Oo Pp Rr Ss Šš Tt Uu Ūū Vv Zz Žž

Lithuanian
Aa Ąą Bb Cc Čč Ee Ęę Ėė Ff Gg Hh Ii Įį Yy Jj Kk Ll Mm Nn Oo Pp Rr Ss Šš Tt Uu Ųų Ūū Vv Zz Žž

Norwegian
Aa Bb Cc Dd Ee Ff Gg Hh Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz Ææ Øø Åå

Polish
Aa Ąą Bb Cc Ćć Dd Ee Ęę Ff Gg Hh Ii Jj Kk Ll Łł Mm Nn Ńń Oo Óó Pp Rr Ss Śś Tt Uu Ww Yy Zz Źź Żż

Portuguese
Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Ll Mm Nn Oo Pp Qq Ss Tt Uu Vv Xx Zz

Romanian
Aa Ăă Ââ Bb Cc Dd Ee Ff Gg Hh Ii Îî Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Şş Tt Ţţ Uu Vv Ww Xx Yy Zz

Sami
Aa Áá Bb Cc Čč Dd Đđ Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Ŋŋ Oo Pp Rr Ss Šš Ŧŧ Uu Vv Zz Žž

Swedish
Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz Åå Ää Öö

Turkish
Aa Bb Cc Çç Dd Ee Ff Gg Ğğ Hh Iı Ii Jj Kk Ll Mm Nn Oo Öö Pp Rr Ss Şş Tt Uu Üü Vv Vv Yy Zz

Some languages use digraphs (or similar) in their alphabets which are not single codepoints in Unicode:

Albanian
Aa Bb Cc Çç Dd DH/dh Ee Ëë Ff Gg GJ/gj Hh Ii Jj Kk Ll LL/ll Mm Nn NJ/nj Oo Pp Qq Rr RR/rr Ss SH/sh Tt TH/th Uu Vv Xx XH/xh Yy Zz ZH/zh

Croatian
Aa Bb Cc Čč Ćć Dd DŽ/dž Đđ Ee Ff Gg Hh Ii Jj Kk Ll LJlj Mm Nn NJ/nj Oo Pp Rr Ss Šš Uu Vv Zz Žž

Czech
Aa Bb Cc Čč Dd Ee Ff Gg Hh CH/ch Ii Jj Kk Ll Mm Nn Oo Pp Rr Řř Ss Šš Tt Uu Vv Ww Xx Yy Zz Žž

Hungarian (standard)
Aa Áá Bb Cc CS/cs Dd DZ/dz DZS/dzs Ee Éé Ff Gg GY/gy Hh Ii Íí Jj Kk Ll LY/ly Mm Nn NY/ny Oo Óó Öö Őő Pp Qq Rr Ss SZ/sz Tt TY/ty Uu Úú Üü Űű Vv ZZS/zzs

Spanish
Aa Bb Cc CH/ch Dd Ee Ff Gg Hh Ii Jj Kk Ll LL/ll Mm Nn Ññ Oo Pp Qq Rr RR/rr Ss Tt Uu Vv Ww Xx Yy Zz

Welsh
Aa Bb Cc CH/ch Dd DD/dd Ee Ff FF/ff Gg NG/ng Hh Ii Jj Ll LL/ll Mm Nn Oo Pp PH/ph Rr RH/rh Ss Tt TH/th Uu Ww Yy

According to Wikipedia, the largest Latin (and European) true alphabet is Slovak with 46 letters:

Slovak
Aa Áá Ää Bb Cc Čč Dd Ďď DZ/dz DŽ/dž Ee Éé Ff Gg Hh CH/ch Ii Íí Jj Kk Ll Ĺĺ Ľľ Mm Nn Ňň Oo Óó Ôô Pp Qq Rr Ŕŕ Ss Šš Tt Ťť Uu Úú Vv Ww Xx Yy Ýý Zz Žž

Italian has just 21.

A number of digraphs (and similar) are encoded in Unicode:

  • DZ, Dz, dz (U+01F1, U+01F2, U+01F3)
  • DŽ, Dž, dž (U+01C4, U+01C5, U+01C6)
  • IJ, ij (U+0132, U+0133)
  • LJ, Lj, lj (U+01C7, U+01C8, U+01C9)
  • NJ, Nj, nj (U+01CA, U+01CB, U+01CC)

Of these, the Dutch "IJ" (U+0132 "LATIN CAPITAL LIGATURE IJ") is unusual in not having a titlecase mapping distinct from its uppercase mapping. Consider the Dutch word "ijsje" meaning ice cream; in uppercase it is "IJSJE" and in titlecase it is "IJsje" not "Ijsje".

This quirk is considered by many as evidence that "IJ" should be considered a true letter in its own right. That possibly includes this purveyor of alcohol:

"Slijterij" means "Off-Licence"

However, the replacement of the "IJ" tile with "Y" in Dutch Scrabble may be another nail in the coffin.

Monday, 10 January 2022

Unicode Trivia U+00F0

Codepoint: U+00F0 "LATIN SMALL LETTER ETH"
Block: U+0080..00FF "Latin-1 Supplement"

The Basic Latin Unicode block (U+0000..007F) is fine if you're writing English, but it quickly runs out of steam for other languages. For example, the Icelandic alphabet ("stafrófið") has 32 letters:

Aa Áá Bb Dd Ðð Ee Éé Ff Gg Hh Ii Íí Jj Kk Ll Mm Nn Oo Óó Pp Rr Ss Tt Uu Úú Vv Xx Yy Ýý Þþ Ææ Öö

The fifth letter "ð" is "eth", seen here in a sign in Landmannalaugar:

One of Unicode's founding principles is "universal repertoire" and, indeed, "LATIN SMALL LETTER ETH" has been assigned the unique codepoint U+00F0. Before Unicode, region-specific characters had a tendency to "move around" in codepoint space. For instance, in IBM DOS Code Page 861, small eth was at position 0x8C.

For every codepoint, the Unicode Character Database maintains a plethora of information. For U+00F0, we can view that data using an online utility:

https://util.unicode.org/UnicodeJsps/character.jsp?a=00F0

Amongst other things, we see that:

  • The official name of that codepoint is "LATIN SMALL LETTER ETH"
  • It belongs to the "Latin-1 Supplement" block (U+0080..00FF)
  • It primarily belongs to the "Latin" script
  • It was introduced in Unicode 1.1
  • Its General Category is "Lowercase Letter"
  • Its uppercase mapping is "Ð" U+00D0
  • Its titlecase mapping is also "Ð" U+00D0
  • etc.

The titlecase mapping is somewhat moot as there are no words in Icelandic that begin with "eth". This makes children's "A is for Apple"-style alphabet posters somewhat difficult to produce:

It also means that the uppercase letter "Ð" (U+00D0) only occurs in text where the whole word is uppercase, such as … erm … "STAFRÓFIÐ".

Saturday, 8 January 2022

Unicode Trivia U+0000

[This blog post is part of the Universe series of investigations]

Codepoint: U+0000 "CONTROL CODE <NUL>"
Block: U+0000..007F "Basic Latin"

Unicode is built on top of any number of standards. The history of the first Unicode codepoint (U+0000, a.k.a. control code <NUL>) is an object lesson in the workings of standards committees.

  • The Unicode 1.0 (1991) standard, along with ISO/IEC 10646, bases its first 128 codepoints on ISO/IEC 646.
  • ISO/IEC 646 (1972) was itself based on ASCII.
  • The first major release of the ASCII standard was ASA X3.4-1963.

In the late 1950s, American Telephone and Telegraph Company (AT&T) had stated to the predecessors of the ASA X3 committee a functional requirement for any new standard to have an all-zeroes character named NULL (or IDLE). See Chapter 13 of Coded Character Sets, History and Development by Charles E. Mackenzie, 1980.

This "all-zeroes" requirement was almost certainly due to the practice of leaving gaps in punched tape or cards that could be "overwritten" with other characters later on without having to reissue the whole tape or card deck. Similarly, AT&T also requested an all-ones bit pattern to delete a character by "punching out" all the holes in the row. As ASA X3.4-1963 was a 7-bit character set, this led to the <DEL> control code eventually ending up at U+007F.

Further back in time, the "all-zeroes" control code was part of the International Telegraph Alphabet No. 2 (ITA2) code of 1924. This, inexorably, was a development of Baudot (ITA1) code developed in the 1870s and patented in the United States in 1888:

The final three rows of the table above are:

  1. Figure switch
  2. Letter switch
  3. Instrument at rest

where "Instrument at rest" is the idle state for teleprinters, a.k.a. NUL.