Browse Source

Recalculate code points after non-Korean removal.

scossu 1 year ago
parent
commit
98e2cfb811
1 changed files with 1 additions and 0 deletions
  1. 1 0
      scriptshifter/hooks/korean/romanizer.py

+ 1 - 0
scriptshifter/hooks/korean/romanizer.py

@@ -290,6 +290,7 @@ def _kor_rom(kor):
             kor = kor[1:]
             kor = kor[1:]
 
 
     rom_ls = []
     rom_ls = []
+    cpoints = tuple(ord(c) for c in kor)
     for i in range(len(kor)):
     for i in range(len(kor)):
         cp = cpoints[i] - CP_MIN
         cp = cpoints[i] - CP_MIN
         ini = "i" + str(cp // 588)
         ini = "i" + str(cp // 588)