speakingurl icon indicating copy to clipboard operation
speakingurl copied to clipboard

Support multiple transliterations at once

Open simison opened this issue 8 years ago • 3 comments

Perhaps options.lang could accept an array or even just * to run all the language transliterations in alphabetic order?

I just stumbled upon this library: https://github.com/andyhu/transliteration — and I quite like how it always just works, not depending if people fill in English, Finnish or Chinese.

simison avatar Jun 30 '17 08:06 simison

@simison The array solution is interesting. Alphabetical order is problematical if we add new languages, IMHO.

pid avatar Jun 30 '17 08:06 pid

Valid point, I guess "all" option would need to be predictable set of symbols just like here: https://github.com/andyhu/transliteration/blob/master/data/charmap.json

simison avatar Jun 30 '17 08:06 simison

So for the background: I'm building multilingual project and I would like the library to just make best guesses with special symbols — it's just slugs after all so it doesn't need to get it "correct" all the time.

simison avatar Jun 30 '17 08:06 simison