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

Slugs for Russian words? #8

Closed
kimptoc opened this issue May 25, 2013 · 4 comments
Closed

Slugs for Russian words? #8

kimptoc opened this issue May 25, 2013 · 4 comments

Comments

@kimptoc
Copy link

kimptoc commented May 25, 2013

Hi,

If I try this:

slug("Ревущий фьорд")
'Revushij-ford'

I was hoping for 'ревущии-фьорд' (ie what the WoW api has :) ) - does slug do a letter by letter translation or something?

Thanks,
Chris

@dodo
Copy link
Owner

dodo commented Jun 22, 2013

hm, dunno how to solve this, maybe somebody else does.
this issue is related to javascripts regexp /\w/ being "only" equivalent to [A-Za-z0-9_].
because of this, characters like и are simply not allowed an therefor filtered out.

at least i added the option to alter the default replace char map.

@KyivJunta
Copy link

Actually module needs some transliteration extensibility. I've had code for Russian/Ukranian langs, so hope in few days pull some code there.

@pid
Copy link

pid commented Nov 23, 2013

@alex4k looks like you are searching for this solution https://github.com/pid/speakingurl it's about transliteration...

@kimptoc
Copy link
Author

kimptoc commented Nov 23, 2013

Thanks for the link

@dodo dodo closed this as completed Mar 8, 2014
@dodo dodo mentioned this issue Apr 29, 2015
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

4 participants