From f05c39b6874f6baf4d3d578309d861328eba150b Mon Sep 17 00:00:00 2001 From: Song Minjae Date: Mon, 20 Feb 2017 22:41:40 +0900 Subject: [PATCH] added missing segment of code --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index cf2029c..28299e9 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,10 @@ On this font, Hangul letters are printed by assemblying two or three letter piec This is a Kotlin-like pseudocode for assembling the glyph: + function getHanChosung(hanIndex: Int) = hanIndex / (21 * 28) + function getHanJungseong(hanIndex: Int) = hanIndex / 28 % 21 + function getHanJongseong(hanIndex: Int) = hanIndex % 28 + jungseongWide = arrayOf(8, 12, 13, 17, 18, 21) jungseongComplex = arrayOf(9, 10, 11, 14, 15, 16, 22)