Behat / Transliterator

Behat Transliterator library inherited from Doctrine1 and used in Behat for snippet generation
Other
2.05k stars 31 forks source link

Transliteration based on source language #10

Closed brusch closed 2 years ago

brusch commented 8 years ago

Currently the transliteration is not based on the source language of the text, but this makes a big difference in some cases. Following some examples:

'Ä' (U+00C4) transliterates to 'A' but when the source text is in German should transliterate to 'Ae'

There are many more examples: https://github.com/pimcore/pimcore/blob/master/pimcore/lib/Pimcore/Tool/Transliteration/Data/x00.php#L25

Would be cool to have this integrated.

acrozes commented 7 years ago

An other sample in French: "l'eau" => "l-eau"

stof commented 2 years ago

For locale-aware transliteration, I suggest using the Transliterator class available in ext-intl.