Pārlūkot izejas kodu

Add FKR062 (historical place names).

scossu 1 gadu atpakaļ
vecāks
revīzija
9c305b13be

+ 5 - 0
scriptshifter/hooks/korean/data.yml

@@ -3000,6 +3000,11 @@ fkr061:
   " hwach'ŏnŭp ": " Hwach'ŏn-ŭp "
   " hoengsŏngŭp ": " Hoengsŏng-ŭp "
 
+fkr062:
+  # Historical place names
+  " nogŭlli ": " Nogŭn-ni "
+  " ch'angwŏn'gun ": " Ch'angwŏn-gun "
+
 # Also commented out in L1235
 #fkr063_rule_kn:
 #  " ch'ang taewang ": " Ch'ang Taewang "

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

@@ -293,10 +293,11 @@ def _romanize_oclc_auto(kor):
     rom = re.sub(r"\s{2,}", " ", f" {rom.strip()} ")
 
     # FKR061: Jurisdiction (시)
+    # FKR062: Historical place names
     # FKR063: Jurisdiction (국,도,군,구)
     # FKR064: Temple names of Kings, Queens, etc. (except 조/종)
     # FKR065: Frequent historical names
-    for i in (61, 63, 64, 65):
+    for i in range(61, 66):
         _fkr_log(i)
         rom = _replace_map(rom, KCONF[f"fkr{i:03}"])