tdreid / anole

A chrome extension that transforms selected text to conventional cases
GNU General Public License v3.0
6 stars 1 forks source link

Add transliteration support for cyrillic characters #22

Open tdreid opened 5 years ago

tdreid commented 5 years ago

Copied this in version 1.2.0

Установите официальное мобильное приложение ВКонтакте и оставайтесь

And it was transformed to this

установите-официальное-мобильное-приложение-вконтакте-и-оставайтесь
Smoking-Jesus commented 5 years ago

Hi, I am that guy who asked for this feature (from your page in chrome store). But i need to explain what exactly i requested:

That how cyrillic text look:

Установите официальное мобильное приложение ВКонтакте и оставайтесь

I need to translit this text into this look:

ustanovite-oficialnoe-mobilnoe-prilozhenie-vkontakte-i-ostavajtes

Thank you!

tdreid commented 5 years ago

Ah! So change to kebab-case and transliterate. Yeah, let me look into that for a next release.

Thanks for the suggestion!

tdreid commented 5 years ago

Hi @Smoking-Jesus. This is supported in version 1.3.0 of Anole, released yesterday.

To activate transilt click on the Anole extension icon in the browser toolbar. Then select Options. The options page for Anole will appear in a new tab. About half way down the options menu make sure Active is checked under Transliterate Cyrillic

image

Thereafter whenever you select Cyrillic characters with Anole they will be transliterated. Other types of characters will continue to behave as before.

I hope this is of some use. Thanks for using Anole.

Smoking-Jesus commented 5 years ago

Thank you very much @tdreid ! Works great, but I noticed that russian letter Й transliterate as english I. It would be nice if you change it to J in future release.

Thank you again!

UPD: letter Ы changes to I as well, but would be better replace it to Y.

tdreid commented 5 years ago

I will look into that―there are actually a few different presets in the transliteration library, so probably I will offer more control for user in the next version. Thanks.