Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rule-based stransliteration #438

Closed
gagolews opened this issue Jun 3, 2021 · 1 comment
Closed

rule-based stransliteration #438

gagolews opened this issue Jun 3, 2021 · 1 comment
Milestone

Comments

@gagolews
Copy link
Owner

gagolews commented Jun 3, 2021

in stri_trans_general

@gagolews
Copy link
Owner Author

gagolews commented Jun 3, 2021

Done; Example:

> x <- "\uC11C\uC6B8\uD2B9\uBCC4\uC2DC\u0020\uC885\uB85C\uAD6C\u0020\uC0AC\uC9C1\uB3D9"
> stringi::stri_trans_general(x, "Hangul-Latin")
[1] "seoulteugbyeolsi jonglogu sajigdong"
> # Deviate from the ICU rules of Romanisation of Korean,
> # see https://en.wikipedia.org/wiki/%E3%84%B1
> id <- "
+ :: NFD;
+ \u11A8 > k;
+ \u11AE > t;
+ \u11B8 > p;
+ \u1105 > r;
+ :: Hangul-Latin;
+ "
> stringi::stri_trans_general(x, id, rules=TRUE)
[1] "seoulteukbyeolsi jongrogu sajikdong"

gagolews added a commit that referenced this issue Jun 3, 2021
@gagolews gagolews closed this as completed Jun 3, 2021
@gagolews gagolews added this to the stringi-1.7 milestone Jun 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant