Fractions rendered in other languages

In Hiroshi Komiyama’s (小宮山博史) magnum opus Mincho Types: Their Origin and Development (2020, Japanese title: 明朝体活字 その起源と形成), there’re some wonderful fractions (p. 381 and 394):

A cropped photo of page 381 of the book Mincho Types Their Origin and Development showing an old metal-type specimen with hanzi or kanji fractions highlighted in blue

A cropped photo of page 394 of the book Mincho Types Their Origin and Development showing an old metal-type specimen with hanzi or kanji fractions highlighted in blue

These fractions are composed with Chinese numerals (一, 二, 三, &c.) instead of Hindu–Arabic numerals (1, 2, 3, &c.). From top to bottom, they represent ½, ⅓, ¼, ⅙, ⅛, ⅔, ¾, ⅜, ⅝, and ⅞, respectively. All were cast on full em-square body.

Understandably, Unicode doesn’t encode these Chinese-numeral glyph variants. But I wonder what would be the best practice to bring these fractions (as rendered in other languages) into the digital age.

Here’s a mockup (done at the typesetting level, not at the font level, the title says “full-width fractions”):

A two-column mockup where each line of each column shows a fraction in Hindu-Arabic numerals followed by a right-pointing arrow followed by a fraction in Chinese numerals

P.S. Here’s a table of the numeral correspondence:

Numerals and Glyph Names
H–A Name CJK Name
0 zero 〇 ideographiczero
1 one 一 uni4E00
2 two 二 uni4E8C
3 three 三 uni4E09
4 four 四 uni56DB
5 five 五 uni4E94
6 six 六 uni516D
7 seven 七 uni4E03
8 eight 八 uni516B
9 nine 九 uni4E5D

P.P.S. AFAIK, not even the Adobe Japan1-7 “character” set includes these fraction glyphs (I could be wrong), despite the fact that it already includes a ton of annotation forms of the Chinese numerals.

P.P.P.S. How would you approach the encoding and naming of the glyph? Would you map, say ½’s Chinese variant, to U+00BD, or just leave it unencoded? Would you name this Chinese variant onehalf.xxxx or uni4E00_fraction_uni4E8C?

P.P.P.P.S. Other languages welcome!

Comments

  • Thomas Phinney
    Thomas Phinney Posts: 3,262
    edited November 27
    I just want to say how cool and wild that is. I am enjoying it very much, although I have no idea how native Chinese readers (other than you) would feel about it. What is your sense of that?

    There are several feature/encoding options.

    I would be reluctant to simply replace the existing ½ with one of these, just because Chinese fonts usually have WinANSI support including such fractions, so that could result in some surprising behaviors (from a user POV).

    You could encode it as the Chinese version of ½ using the locale ('locl') feature. But that might also be surprising, I think.

    You could make it ½ plus the 'salt' or 'ss01' or 'cv01' or some such applied?
  • Erik
    Erik Posts: 44
    I would recommend against mapping the Chinese equivalent of ⟨½⟩ to U+00BD VULGAR FRACTION ONE HALF because ⟨½⟩ and the Chinese equivalent do not share character identity, just as ⟨1⟩ is not the same character as ⟨一⟩, ⟨2⟩ is not the same character as ⟨二⟩, neither ⟨½⟩ nor ⟨1⁄2⟩ is the same (in terms of characters) as ⟨2⁄4⟩, etc.

    Itʼs tempting to consider representing the Chinese fractions using U+2044 FRACTION SLASH (e.g., <U+4E00, U+2044, U+4E8C>), but the Unicode Standardʼs language concerning FRACTION SLASH isnʼt encouraging about using it with number characters that arenʼt decimal digits:
    U+2044 ⁄ FRACTION SLASH is used between digits to form numeric fractions, such as 2/3 and 3/9. The standard form of a fraction built using the fraction slash is defined as follows: any sequence of one or more decimal digits (General Category = Nd), followed by the fraction slash, followed by any sequence of one or more decimal digits.

    The Chinese characters in question are of general category Lo (Letter, other); that said, I donʼt see that the Standard specifically disallows FRACTION SLASHʼs special formatting with non‐Nd characters.  It certainly does allow the formatting with various decimal digits beyond the European/​Hindu‐Arabic repertoire, e.g., ⟨١⁄٢⟩ using the Arabic‐Indic digits from U+0660‐0669.

  • John Hudson
    John Hudson Posts: 3,977
    Other languages welcome!
    Burmese and Shan numbers are occasionally seen in stacked, vertical fraction form. I included support for single numerator/denominator fractions in the Myanmar Text fonts, triggered by U+2044 FRACTION SLASH. The numerators are zero-width, and the denominators carry the width and also the horizontal bar.
    Top row, Burmese; bottom row, Shan.




  • John Savard
    John Savard Posts: 1,288
    I just want to say how cool and wild that is. I am enjoying it very much, although I have no idea how native Chinese readers (other than you) would feel about it. What is your sense of that?
    Possibly native Japanese readers have, at least, seen it before, since it comes from the work of a Japanese type designer? So this type of fraction could be used in the Far East even if it's not used in China.
  • I just want to say how cool and wild that is. I am enjoying it very much, although I have no idea how native Chinese readers (other than you) would feel about it. What is your sense of that?
    I just want to say how cool and wild that is. I am enjoying it very much, although I have no idea how native Chinese readers (other than you) would feel about it. What is your sense of that?
    Possibly native Japanese readers have, at least, seen it before, since it comes from the work of a Japanese type designer? So this type of fraction could be used in the Far East even if it's not used in China.

    I view these hanzi/kanji fractions as novelty items offered by the type foundries. I don’t think I’ve ever seen them in print*. Not in Chinese, and not in Japanese either.

    * Apart from those in the type specimen, as reproduced in Mincho Types (2020).

    The main reason is that Chinese tends to simply create new characters to represent new ideas. Take weight for example, Chinese has “斤” (approximately a modern pound, give or take). If you want a portion of 斤, Chinese has “兩”, which was one-sixteenth of 斤. So you never need to write “⅜ 斤”—you write (in concept) “6 兩” instead. Below is a two-page spread of a classic Chinese cookbook (家庭食譜, by 李公耳, 12th ed., 1936, pp. 10–11 [from right to left]), teaching how to make spring rolls (§ 11) and aubergine/eggplant pancakes (§ 12):

    A two page spread of a 1936 Chinese cookbook with some ingredient quantities highlighted in blue

    You can see (in concept) 4 兩, 2 兩, 3 兩, and 1 兩, representing ¼ 斤, ⅛ 斤, 3⁄16 斤, and 1⁄16 斤, but devoid of actual fractions.

    Similarly, Chinese has “分” for 1⁄10, “厘” for 1⁄100, “毫” for 1⁄1000, &c. When modern western science was introduced to China in the late-Qing dynasty, translators and scholars went even further, creating “hanzi ligatures” such as “竕” for one-tenth metric litre, “糎” for one-hundredth metric metre, “粍” for one-thousandth metric metre (i.e., millimetre), &c. You could conclude that Chinese (the written language) prefers to play with the units rather than the fractional quantities. These unit-oriented “creations” were naturally picked up by the Japanese, who still used them into the 1940s. This Reddit post showed some Japanese cookbooks. I’m highlighting two pages on how to make same dish below. According to the OP, the top one is from 1941 and the bottom 1944:

    Excerpt of a 1941 Japanese cookbook with some ingredient quantities highlighted in blue

    Excerpt of a 1944 Japanese cookbook with some ingredient quantities highlighted in blue

    Notice how Japanese used Hindu–Arabic fraction “⅕” (top) and wrote “五分の一” (“one part in five”, bottom); the Chinese equivalent would be “五分之一”. Also, instead of “¼”, there was “〇、二五” (“0.25”, top); instead of “⅘”, there were “八竕” (ligature unit, top) and “〇・八” (“0.8”, bottom).

    The one exception is perhaps ½, but then Chinese offers a single-ideograph solution: 半.

    In scientific publications, the use of hanzi/kanji fractions would be even more idiosyncratic. Both Chinese and Japanese would just write out the full expression “x parts in y” for x/y. If fractions were ever used, they’d tend to be Hindu–Arabic for much more efficient communication. That’s my two cents.

  • Burmese and Shan numbers are occasionally seen in stacked, vertical fraction form. I included support for single numerator/denominator fractions in the Myanmar Text fonts, triggered by U+2044 FRACTION SLASH. The numerators are zero-width, and the denominators carry the width and also the horizontal bar.

    Neat! In the stacked form, the denominators are necessarily tabular, no? Since any of the 90 numerator-denominator combinations are possible (I’m excluding the fractions with zero in the denominator)…

  • John Hudson
    John Hudson Posts: 3,977
    edited November 30
    Stacked fractions with single denominators can have proportional widths, but the layout rules gets complicated. It is definitely easier if they are tabular.
    In the Myanmar Text fonts, I only set out to support single numerator and denominator fractions, since those were all I had seen attested. But it would be possible to apply the Nutso project logic to enable Burmese and Shan fractions of arbitrary length.
  • Erik said:
    […] neither ⟨½⟩ nor ⟨1⁄2⟩ is the same (in terms of characters) as ⟨2⁄4⟩, etc.

    Sure, I certainly won’t advocate treating <U+4E00, U+2044, U+4E8C> (一⁄二) the same as <U+4E8C, U+2044, U+56DB> (二⁄四); the same way a sensible person won’t treat 3⁄9 and 60⁄180 the same (in terms of characters). However, with Unicode’s NFD/NFC/NFKD/NFKC equivalence in mind, ⟨½⟩ and ⟨1⁄2⟩ (and even ⟨١⁄٢⟩!!) are the same, and so are ⟨⅓⟩ and ⟨1⁄3⟩, &c.

    My concern is more on whether to treat ⟨一⁄二⟩ as a glyph variant of ⟨½⟩ or its own entity/string, if this makes sense. These special ideographs are no ordinary Lo (Letter, other) after all. They carry numeric information as recorded in Unihan_NumericValues.txt of the Unihan database.

    This also brings up a really good question: I’ve steered the focus toward the pre-composed fractions in Unicode, and the potential implementations of their Chinese version. But if we’re allowing Chinese numerals to appear on both side of U+2044 (fraction slash), then we’re thinking about building arbitrary fractions in hanzi, aren’t we? I’m imagining, for uni4E00 (ideographic one), we implement uni4E00.numr and uni4E00.dnom, and so on. Then something like 一〇〇⁄七二二七 (i.e., 100⁄7227) would be possible. Imagine that…

  • Stacked fractions with single denominators can have proportional widths, but the layout rules gets complicated. It is definitely easier if they are tabular.

    I can’t wrap my head around this possibility. John, you said “[t]he numerators are zero-width, and the denominators carry the width and also the horizontal bar.” So, when a wide-in-ink-but-zero-width numerator is set on top of a narrow-bar-carrying denominator, it still works?

  • John Hudson
    John Hudson Posts: 3,977
    If I were working with proportionally designed numerals, I would probably take a different approach, and have the bar separate from the denominators. Then I would have bars of varying width, contextually substituted according to the wider of the numerator or denominator, and have the bar carry the advance width. Then I would anchor the numerator and denominator, both zero width, to the bar. This would require reordering the numerator glyph after the bar glyph. As I said, it gets complicated.
  • Erik
    Erik Posts: 44
    Ruixi Zhang said:
    However, with Unicode’s NFD/NFC/NFKD/NFKC equivalence in mind, ⟨½⟩ and ⟨1⁄2⟩ (and even ⟨١⁄٢⟩!!) are the same, and so are ⟨⅓⟩ and ⟨1⁄3⟩, &c.
    Thatʼs not quite correct.  NFD and NFC are about canonical equivalence; theyʼre the mechanism which tells us that, despite the different code points under the hood, for interpretation purposes U+212B ANGSTROM SIGN, U+00C5 LATIN CAPITAL LETTER A WITH RING ABOVE, and the sequence U+0041 LATIN CAPITAL LETTER A plus U+030A COMBINING RING ABOVE are to be treated identically (either as U+00C5 in NFC or as <U+0041, U+030A> in NFD).  On the other hand, NFKD and NFKC are about canonical compatibility; while they parrot the code‐point conflations of NFD & NFC, they add some more, for example telling us that U+2026 HORIZONTAL ELLIPSIS can be treated as compatibility‐equivalent to a trio of U+002E FULL STOP if thatʼs convenient for us, as perhaps in a loose‐match search.  None of your examples are canonically equivalent; your examples with European digits do bear canonical compatibility, but there is no canonical compatibility between the European digits and the Arabic‐Indic digits — so, no, ⟨١⁄٢⟩ is not the same as the Latin ⟨½⟩ʼs in even an NFKD/​NFKC sense, despite being the same in an arithmetic or translation sense.  (And NATIONAL DIGIT SHAPES is deprecated, thank goodness.)
    My concern is more on whether to treat ⟨一⁄二⟩ as a glyph variant of ⟨½⟩ or its own entity/string, if this makes sense. These special ideographs are no ordinary Lo (Letter, other) after all. They carry numeric information as recorded in Unihan_NumericValues.txt of the Unihan database.
    Iʼve already recommended against treating the CJK fractions as glyph variants of the European fractions, because they are not glyph variants, whether from the Unicode point of view or (I should think) from the readerʼs point of view — as I said, they do not share character identity (irrespective of numeric value, which is a different issue); and equating them would constitute, as Thomas Phinney put it, surprising behavior.  For interchangeabilityʼs sake, I suggest the FRACTION SLASH technique; despite the misgivings I aired, it seems a sensible solution, and it would have an appropriate and readable fallback if a font employing the technique was unavailable (assuming support for the basic characters, of course).  A legitimate alternative would be to simply consign the fractions to private‐use code points, but then interchangeability and fallback would suffer.
    This also brings up a really good question: I’ve steered the focus toward the pre-composed fractions in Unicode, and the potential implementations of their Chinese version. But if we’re allowing Chinese numerals to appear on both side of U+2044 (fraction slash), then we’re thinking about building arbitrary fractions in hanzi, aren’t we?
    I was.  Thatʼs another reason not to place precomposed fractions in private‐use areas.
  • It just occurred to me that I’ve overlooked vertical typesetting. If arbitrary hanzi/kanji fractions were to be implemented, they’d have to support vertical writing as well.

    Changing the text orientation to vertical opens another can of worms… In horizontal writing, the numerators sit near the (logical) top of the line, while the denominators sit near the (logical) bottom. In vertical writing, the consensus is that the fraction slash should still slash from northeast to southwest, but then the numerators have to sit near the left (logical bottom) of the line, while the denominators have to sit near the right (logical top). Here’s a new mockup, with Chinese set vertically on the left and English and Chinese set horizontally on the right:

    A mockup containing text on conversions between US point and millimetre and between DTP point and millimetre in Chinese set vertically on the left and in English set horizontally on the top right and in Chinese set horizontally on the bottom right

    I hope simulating such “use cases” can guide and inform implementations. Fun stuff!