Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for numerals in the data and detection #154

Open
MrBrezina opened this issue Jan 16, 2024 · 0 comments
Open

Support for numerals in the data and detection #154

MrBrezina opened this issue Jan 16, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@MrBrezina
Copy link
Member

We thought this approach would work well:

  • define numerals for the script,
  • languages automatically inherit this definition, but
  • can optionally override it.

Alternatively, we could use cross-language inheritance as it is already used for some orthographies. To avoid introducing a new linking logic.

Design requirements/alternates should mention any language-specific preferences, e.g. Urdu preference differs from the default Persian numerals to which these are usually mapped. I am not sure this should be a shaping check that fails detection as some fonts may be designed with Urdu numerals as default.

From the top of my head, I do not see the case for auxiliary numerals. Maybe there is some? Even in the case of Devanagari, which has its own numerals, I would list also include the Latin-script numerals (I will not call these Arabic!) as both sets are used frequently.

Language detection should fail if the numerals are defined, but not included in the font.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants