weixin_39830205
weixin_39830205
2020-11-29 01:53

Changed behavior of Khmer character “◌្” (U+17D2)

Using KhmerOS.ttf from Ubuntu 16.04 LTS:

I have noticed that changed behavior of Khmer character “◌្” (U+17D2) https://www.compart.com/en/unicode/U+17D2 is not normally represented in the latest harfbuzz.

It seems that the behavior has changed based on the commit below.

efefd87f3354d0ae6f599ea30672cb0b74dfcd80 af This is the result of typing U+17D2 8 times in text editor. It is not visible on the platform I use(left), and gedit(right) overlaps 8 characters in one place.

82e6bf8e0c27d2fd16a908eed0c73e95b1a2c0f5 be In this commit, 8 characters are shown as a result of typing 8 times (this is my expected result).

I want to know if this is a normal behavior, or a bug.

该提问来源于开源项目:harfbuzz/harfbuzz

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

7条回答

  • weixin_39830205 weixin_39830205 5月前

    Hello : )

    This is the result of typing U+17D2 eight times in text editor. I expected all 8 characters to be visible. It seems that the behavior has changed since this commit. efefd87

    [latest] af

    [expected] - 82e6bf8 be

    点赞 评论 复制链接分享
  • weixin_39963096 weixin_39963096 5月前

    This project show the issue (modified harfbuzz tutorial): https://github.com/Ali-Alzyoud/Harfbuzz-khmer.git

    if you run the project with latest harfbuzz you will not get right results. but if you run with harfbuzz (git checkout 82e6bf8) you will get right results.

    After some investigations : Old harfbuzz when you add '\u17D2' to buffer and shape it will buffer will contains 'uni25CC' + 'uni17D2' New harfbuzz when you add '\u17D2' to buffer and shape it will buffer will contains only 'uni17D2'

    点赞 评论 复制链接分享
  • weixin_39958631 weixin_39958631 5月前

    Ah okay. Finally I understand what this issue is about! Thanks. Will fix.

    点赞 评论 复制链接分享
  • weixin_39958631 weixin_39958631 5月前

    Jonathan, what do you think? In the reworked Khmer shaper, we do not allow tail coeng without a following consonant. Other shapers (indic, myanmar, use) allow that, typically in an exception to the grammar that accepts a final halant instead of matra group (I suppose that's to accommodate halants mid-typing). I suggest doing the same to Khmer.

    点赞 评论 复制链接分享
  • weixin_39958631 weixin_39958631 5月前

    ^

    点赞 评论 复制链接分享
  • weixin_39963096 weixin_39963096 5月前

    Many thanks for the fast reply and Fix

    点赞 评论 复制链接分享
  • weixin_39958631 weixin_39958631 5月前

    I'm not sure I understand your report. What does latest HarfBuzz do, and what do you expect it to do?

    点赞 评论 复制链接分享

相关推荐