inter icon indicating copy to clipboard operation
inter copied to clipboard

Accents enhancement for Pinyin typesetting

Open ShaunXyu opened this issue 3 years ago • 1 comments

Describe the bug I plan to use Inter font to typeset Pinyin, the official romanization system of Mandarin Chinese. This is because Pinyin uses sans font and "single-storey letter a" out of habit, and I can easily do it by Inter's Opentype feature. Pinyin uses accents to denote different tones. In the screenshoots below, I have typeset all the possibilities of Pinyin letters with accents (in light, regular, and medium weight font). As you can see, some accents are not at the proper position.

Expected behavior For example:

  1. Accents of ǕǗǙǛ are inconsistent. Specifically, the diaeresis of ǕǗǙǛ have different height and weight. And the accents above diaeresis aren't at the same height either.
  2. The acute of ǘ seems too long.
  3. Ê/ê with macron/caron, M/m with grave, Ŋ/ŋ with acute/caron/grave, ə with tilde need adjustmment.

Screenshots 屏幕截图 2022-03-09 232232

Environment

  • OS: Windows 10
  • LaTeX
  • v3.19

Additional context ǕǗǙǛǘ need to be adjust first, for they have already been listed in Unicode table. For others, maybe need to edit the Opentype feature table later.

Test text ĀÁǍÀŌÓǑÒĒÉĚÈĪÍǏÌŪÚǓÙÜǕǗǙǛÊÊ̄ẾÊ̌ỀM̄ḾM̀ŃŇǸẐĈŜŊŊ́Ŋ̌Ŋ̀ āáǎàãōóǒòõēéěèīíǐìūúǔùüǖǘǚǜêê̄ếê̌ềəə̃m̄ḿm̀ńňǹẑĉŝŋŋ́ŋ̌ŋ̀

ShaunXyu avatar Mar 09 '22 15:03 ShaunXyu

Nice find. Here's a Lab link to repro: rsms.me/inter/lab/?sample=%C4%80%C3%81%C7...&size=96

rsms avatar May 20 '22 17:05 rsms

Progress update; how it's looking as of now:

ioenarst8neir

Still a few marks/anchors missing: (for example Ŋ is missing a "top" anchor.)

Screen Shot 2023-04-21 at 11 50 48

rsms avatar Apr 21 '23 18:04 rsms

Fixed as of fc0c3c9153bf52b5f8dff25a60212a36cce35c88

ersnt82ei

rsms avatar Apr 21 '23 20:04 rsms