# HG changeset patch # User Erik Quanstrom # Date 1328895382 0 # Node ID 8f2b52578eab6b00c6483cdbd58b747557b2e01d # Parent 451e3d527c6e0261eaea7b16c98c84534b441f74 keyboard: correct superscripts ; patch/create rune-super /lib/keyboard /sys/man/6/keyboard /sys/src/9/port/latin1.h unicode unified the latin1 superscripts with the 2070 range, so 2071-2073 were not defined codepoints even in unicode 1.0 http://www.unicode.org/Public/reconstructed/1.0.1/UnicodeData.txt and in unicode 4.0, 2071 became a superscript i. http://www.unicode.org/Public/4.0-Update/UnicodeData-4.0.0.txt sys/src/nix/port/latin1.h seems to be already corrected. R=nixiedev, nemo CC=nix-dev http://codereview.appspot.com/5655051 Committer: John Floren diff -r 451e3d527c6e -r 8f2b52578eab lib/keyboard --- a/lib/keyboard Fri Feb 10 17:32:23 2012 +0000 +++ b/lib/keyboard Fri Feb 10 17:36:22 2012 +0000 @@ -15,14 +15,14 @@ 00AF __ ¯ spacing macron 00B0 de ° degree sign 00B1 +- ± plus-or-minus sign -00B2 S2 ² superscript digit two -00B3 S3 ³ superscript digit three +00B2 s2 ² superscript digit two +00B3 s3 ³ superscript digit three 00B4 '' ´ spacing acute 00B5 mi µ micro sign 00B6 pg ¶ paragraph sign 00B7 .. · middle dot 00B8 ,, ¸ spacing cedilla -00B9 S1 ¹ superscript digit one +00B9 s1 ¹ superscript digit one 00BA so º masculine ordinal indicator 00BB >> » right pointing guillemet 00BC 14 ¼ fraction one quarter @@ -397,9 +397,6 @@ 2026 3. … horizontal ellipsis 203D !? ?! ‽ interrobang 2070 s0 ⁰ superscript digit zero -2071 s1 ⁱ superscript digit one -2072 s2 ⁲ superscript digit two -2073 s3 ⁳ superscript digit three 2074 s4 ⁴ superscript digit four 2075 s5 ⁵ superscript digit five 2076 s6 ⁶ superscript digit six diff -r 451e3d527c6e -r 8f2b52578eab sys/man/6/keyboard --- a/sys/man/6/keyboard Fri Feb 10 17:32:23 2012 +0000 +++ b/sys/man/6/keyboard Fri Feb 10 17:36:22 2012 +0000 @@ -165,9 +165,7 @@ .IP The letter s followed by a character gives that character as a superscript, e.g., .B s1 -yields ⁱ. -These characters are taken from the Unicode block 0x2070; the 1, 2, and 3 -superscripts in the Latin-1 block are available by using a capital S instead of s. +yields ¹. .IP Sometimes a pair of characters give a symbol related to the superimposition of the characters, e.g., .B cO diff -r 451e3d527c6e -r 8f2b52578eab sys/src/9/port/latin1.h --- a/sys/src/9/port/latin1.h Fri Feb 10 17:32:23 2012 +0000 +++ b/sys/src/9/port/latin1.h Fri Feb 10 17:36:22 2012 +0000 @@ -58,7 +58,7 @@ "P", "P", L"ℙ", "Q", "Q", L"ℚ", "R", "R", L"ℝ", - "S", "123S", L"¹²³§", + "S", "S", L"§", "T", "-u", L"Ŧ⊨", "V", "=", L"⇐", "Y", "R", L"Ʀ", @@ -86,7 +86,7 @@ "o", "AOUaeiu", L"Å⊚Ůåœƣů", "p", "Odgrt", L"℗∂¶∏∝", "r", "\"\'O", L"”’®", - "s", "()+-0123456789=abnoprstu", L"⁽⁾⁺⁻⁰ⁱ⁲⁳⁴⁵⁶⁷⁸⁹⁼ª⊂ⁿº⊃√ß∍∑", + "s", "()+-0123456789=abnoprstu", L"⁽⁾⁺⁻⁰¹²³⁴⁵⁶⁷⁸⁹⁼ª⊂ⁿº⊃√ß∍∑", "t", "-efmsu", L"ŧ∃∴™ς⊢", "u", "-AEGIOUaegiou", L"ʉĂĔĞĬŎŬ↑ĕğĭŏŭ", "v\"", "Uu", L"Ǚǚ",