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

FYI: Text Transliteration in stringi #1

Open
gagolews opened this issue Apr 20, 2014 · 2 comments
Open

FYI: Text Transliteration in stringi #1

gagolews opened this issue Apr 20, 2014 · 2 comments

Comments

@gagolews
Copy link

Hi @rich-iannone,
Just for your information: I've added an interface for ICU's Transliterator in stringi yesterday, see this issue....

Some examples:

> stri_trans_general("zażółć gęślą jaźń", "Latin-ASCII") # Polish text
[1] "zazolc gesla jazn"
> stri_trans_general("„groß”©", "Latin-ASCII")
[1] ",,gross\"(C)"
> stri_trans_general("stringi", "Latin-Greek")
[1] "στριγγι"
> stri_trans_general("stringi", "Latin-Cyrillic")
[1] "стринги"
@hadley
Copy link

hadley commented Apr 17, 2015

There's also some capability in base R:

td <- readLines(curl::curl("https://raw.githubusercontent.com/rich-iannone/UnidecodeR/master/inst/examples/Totentanz__de.txt"))
iconv(td, to = "ASCII//translit")

@Bisaloo
Copy link

Bisaloo commented Aug 15, 2018

But as far as I can tell, the transliteration feature of iconv leads to different outputs on different platforms, which is an issue in many cases.

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

3 participants