google / google/myanmar-tools

Support locale and font validation for Android

Open
#19 5 comments 0 reactions 0 assignees View on GitHub
good first issue help wanted
Dominant language
Java
Stars
266
Forks
85
PR merge metrics
No merged PRs in 30d

Description

There are at least four questions that would be useful to have a library solution to solve for the Android ecosystem:

1. Does this device support Unicode for Myanmar script? What about Zawgyi?
2. In case of devices with both Unicode and Zawgyi support, are we running in a Zawgyi locale or a Unicode locale?
3. Should the UI language be in Burmese or English?
4. Is the locale's country an alias for Myanmar?

@mihnita says that any implementation of these features would need to be Android-specific and would probably not work outside of an Android environment. Therefore, this could be implemented by a sub-library within Myanmar Tools, distributed under its own artefact ID.

Ideas for APIs that such a library could provide:

```java
public enum BurmeseFontEncoding {
UNICODE,
ZAWGYI
};

/**
* Returns the default font encoding used to render Burmese text on this device.
*/
public BurmeseFontEncoding getDefaultBurmeseFontEncoding() {}

/**
* Returns an ordered list of fonts available on the system that have Burmese-range
* code points, in the order of priority.
*/
public List getAvailableBurmeseFonts() {}
```

The implementation of this library would need to be based on heuristics from the Android ecosystem.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.