navferty / NavfertyExcelAddIn

Common tools for MS Excel
MIT License
47 stars 6 forks source link

Extend transliteration feature with same letters replace #40

Closed navferty closed 4 years ago

navferty commented 4 years ago

Replace Cyrillic letters that look same to latin:

Cyrillic to latin letters shoul be replaced in such way:

АВЕКМНОРСТУХ -> ABEKMHOPCTYX
авекмнорстух -> abekmhopctyx

The Transliterate button on the ribbon should be expanded to splitButton with two options:

CyrillicToLatinFallback should be renamed to CyrillicToLatinTransliterationFallback, and new class CyrillicToLatinReplacementFallback

navferty commented 4 years ago

"абвгдек" -> "aбbгдek" (a,b,e,k are latin, others - cyrillic)

IgorKhudiakov commented 4 years ago

The simplest solution is to make a complete analogy with transliteration. Separately, I want to note that the logic of things is to replace only these lower-case letters: аеорсух, and not change the upper-case letter: У.

navferty commented 4 years ago

When this feature was requested, tha main goal was to provide converter for vehicle numbers. Letter У is present in Russian standard, ex. У123МР and that shuold be converted to Y123MP