Skip to content

Problem with Vietnamese preset in font builder #42

Description

@brianhuster

Affected Version

Master

Describe the Bug

Crosspoint font builder has a range for Vietnamese language ([(0x01A0, 0x01B0), (0x1EA0, 0x1EF9)]), however it only covers letters specific to Vietnamese. This means many accented letters also needed in Vietnamese like

Đ đ → U+0110 U+0111
Ă ă → U+0102 U+0103
 â → U+00C2 U+00E2
Ê ê → U+00CA U+00EA
Ô ô → U+00D4 U+00F4

are not included in the font if users only choose "Vietnamese" range, and they will still see "tofu" when reading books with these characters. To cover all Vietnamese characters, users need to choose "Latin Extended" or "reading" box, but then "Vietnamese" box is just redundant, as both of those presets already cover all Vietnamese characters

Steps to Reproduce

See the code https://github.com/crosspoint-reader/crosspoint-reader/blob/62e84a16f86fe8d205e53770c0eaa320c658cdca/lib/EpdFont/scripts/fontconvert_sdcard.py#L39

Expected Behavior

We have 2 choices:

  • Just remove Vietnamese preset, as Latin Extended and "reading" already covers all Vietnamese characters
  • Extend Vietnamese preset to cover all Latin characters needed to write Vietnamese. But I don't recommend this because there are Vietnamese books that use accented letters not found in Vietnamese like ñ, ç when writing foreign names.

Relevant Log Output/Screenshots

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions