Skip to content

Support locale and font validation for Android #19

@sffc

Description

@sffc

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:

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<Font> getAvailableBurmeseFonts() {}

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions