GithubHelp home page GithubHelp logo

hkcs-metadata's Introduction

Metadata for the Reference Glyphs for Chinese Computer Systems in Hong Kong

Background

The Office of the Government Chief Information Officer (OGCIO) of Hong Kong released the Reference Glyphs for Chinese Computer Systems in Hong Kong (Reference Glyphs) in 2016.

Reference Glyphs provides a complete set of Chinese glyphs which covers all the characters in Big-5 and the Hong Kong Supplementary Character Set – 2016. The document includes character forms (glyphs) that are deemed “suitable for application in Hong Kong”. Character forms that are different from the Standard Typefaces for Chinese Characters as specified by Taiwan's Ministry of Education (MoE) are also highlighted for clarity.

While the document serves valuable information to font product vendors, its distribution format (one single PDF file) isn't convenient for computer processing. For instance, it is not easy to extract the glyph of a particular code point for inspection. Also querying glyphs that are different from the MoE standard isn't straightforward. This repository serves as a community effort to fill the gap by providing a computer-friendly metadata file which data are derived from Reference Glyphs. Ultimately I'd hope the corresponding party to release such information officially.

This is a personal project and is not affiliated with the government. The file is provided “as is”, use it at your own risk.

Data Format

The file is encoded in JSON. Attributes of the elements are described as follows:

Name Description
codepoint Unicode code point
char The corresponding character
source H: HKSCS character; T: Big5 character
big5 Big-5 code point, or null if not applicable 1.
h-source H-Source value, or null if not applicable 2.
tw-diff If true, the specified character form is different from Taiwan MoE's standard, otherwise false. This value will be null for HKSCS characters.
page The page where this character is located 3.
position Start and end coordinates of the character in the page (x1, y1, x2, y2) 4.

[1]: Obtained from the Unihan_OtherMappings.txt file of the Unihan Database.

[2]: The H-Source value is derived from Hong Kong Supplementary Character Set related information

[3]: Page number is relative to the corresponding section (Table 1: Code Table of Hong Kong Kai Style Character Glyphs / 附表一:香港楷體字形與字碼表 or Table 2: Code Table of Hong Kong Song Style Character Glyphs / 附表二:香港宋體字形與字碼表) of Reference Glyphs, not the whole PDF document.

[4]: This assumes that pages in the PDF document are exported as images in 600dpi (image resolution: 5100×6600px).

hkcs-metadata's People

Contributors

tamcy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.