2amigos / yii2-transliterator-helper

TransliteratorHelper transliterates UTF-8 encoded text to US-ASCII
Other
26 stars 13 forks source link

Not working with russian letters. #2

Closed stepan-chircioglo closed 7 years ago

stepan-chircioglo commented 10 years ago

Осень в мае -> osenʹ v mae Осенъ в мае -> osenʺ v mae

on test server not working. php version 5.4.4 intl enabled

but in my local machine working. difference php 5.5.9

what the problem?

letters 'ь' and 'ъ' -> must be removed

tonydspaniard commented 10 years ago

I don't speak russian, maybe you can help me out with proper approach

Sirgalas commented 8 years ago

If assistance more urgent, I can. But just in the russian language there is not a sign ' so that everything you do with this sign space.

alexantr commented 7 years ago

Instead Any-Latin; Latin-ASCII; NFD; [:Nonspacing Mark:] Remove; NFC; use Any-Latin; Latin-ASCII; [\u0100-\u7fff] remove

tonydspaniard commented 7 years ago

@alexantr have time for a PR?

alexantr commented 7 years ago

@tonydspaniard, I checked transliteration with Any-Latin; Latin-ASCII; [\u0100-\u7fff] remove. With this variant ь and ъ converts to ASCII symbols ' and " instead non-ASCII ʹ and ʺ. @stepan-chircioglo still must remove ' and " manually.

tonydspaniard commented 7 years ago

@alexantr any help with a russian PR would be highly appreciated. I do not speak the language.

alexantr commented 7 years ago

Check #3

tonydspaniard commented 7 years ago

@Sirgalas @stepan-chircioglo please test on master, if all work as expected, I'll tag new version.

tonydspaniard commented 7 years ago

This should have been fixed by https://github.com/2amigos/yii2-transliterator-helper/pull/3