Skip to content

tamcy/hkcs-metadata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

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).

About

Metadata for the Hong Kong Character Set

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published