We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

Talk:Lost And Found: Kingdom of Hangul

From Esolang
Jump to navigation Jump to search

For future investigation: see Choropleth

([G T ? C
z
. [팔, 구])

0

local hangul = {}

local BASE   = 0xAC00
local N_CH   = 19   -- choseong
local N_JU   = 21   -- jungseong
local N_JO   = 28   -- jongseong

hangul.choseong = {
  "ᄀ","ᄁ","ᄂ","ᄃ","ᄄ","ᄅ","ᄆ","ᄇ","ᄈ",
  "ᄉ","ᄊ","ᄋ","ᄌ","ᄍ","ᄎ","ᄏ","ᄐ","ᄑ","ᄒ"
}

hangul.jungseong = {
  "ᅡ","ᅢ","ᅣ","ᅤ","ᅥ","ᅦ","ᅧ","ᅨ","ᅩ","ᅪ","ᅫ",
  "ᅬ","ᅭ","ᅮ","ᅯ","ᅰ","ᅱ","ᅲ","ᅳ","ᅴ","ᅵ"
}

hangul.jongseong = {
  "",   -- 0 = no batchim
  "ᆨ","ᆩ","ᆪ","ᆫ","ᆬ","ᆭ","ᆮ","ᆯ","ᆰ","ᆱ","ᆲ",
  "ᆳ","ᆴ","ᆵ","ᆶ","ᆷ","ᆸ","ᆹ","ᆺ","ᆻ","ᆼ","ᆽ",
  "ᆾ","ᆿ","ᇀ","ᇁ","ᇂ"
}

CHO_ROMAN = ["g","kk","n","d","tt","r","m","b","pp","s","ss","","j","jj","ch","k","t","p","h"]
JUNG_ROMAN = ["a","ae","ya","yae","eo","e","yeo","ye","o","wa","wae","oe","yo","u","wo","we","wi","yu","eu","ui","i"]
JONG_ROMAN = ["","k","kk","ks","n","nj","nh","t","l","lg","lm","lb","ls","lt","lp","lh",
              "m","p","bs","s","ss","ng","j","ch","kh","th","ph","h"]

assert len(CHO_ROMAN) == 19
assert len(JUNG_ROMAN) == 21
assert len(JONG_ROMAN) == 28

Miui (talk) 08:00, 24 July 2026 (UTC)