I wish to romanize Korean place names from hangul script. Function stringi::stri_trans_general supports hangul romanization, but apparently not in accordance with the widely applied and official Revised Romanization of Korean scheme.
The code below reveals some of the potential conversion issues:
library(stringi)
Sys.setlocale(category="LC_ALL", locale="Korean")
#Read hangul "서울특별시 종로구 사직동" pasted in win10 notepad file because directly pasting in console doesn't work
x <- readLines("hangul.txt", encoding="UTF-8")
#Try the two different tranform identifiers I have found in stri_trans_list for hangul-to-latin
stri_trans_general(x, "Hangul-Latin")
[1] "seoulteugbyeolsi jonglogu sajigdong"
stri_trans_general(x, "Hang-Lat")
[1] "seoulteugbyeolsi jonglogu sajigdong"
According to the Revised Romanization of Korean, the output should be "seoulteuKbyeolsi jongNogu sajiKdong" instead of "seoulteuGbyeolsi jongLogu sajiGdong" (my uppercase for emphasis). How can the desired romanisation be achieved in R, with stringi or otherwise?