Transliteration Cyrillic -> English or English -> Cyri

Download and get help for different MediaMonkey Addons.

Moderators: Peke, Gurus

Borisw37
Posts: 12
Joined: Wed Sep 13, 2006 2:21 pm

Transliteration Cyrillic -> English or English -> Cyri

Post by Borisw37 »

Is it possible to write a script for MediaMonkey to automatically transliterate artist and title fields of selected files?
Transliteration is used to write russian words using english letters (for PC that do not have Cyrillic support or keyboard)
The rules of translitteration are very simple. Basically every russian letter has an equivalent English letter (or combination of letters)

http://www.translit.ru/

Thank you,

Boris.
Bex
Posts: 6316
Joined: Fri May 21, 2004 5:44 am
Location: Sweden

Post by Bex »

Perhaps kanski is the man for this request?
Advanced Duplicate Find & Fix Find More From Same - Custom Search. | Transfer PlayStat & Copy-Paste Tags/AlbumArt between any tracks.
Tagging Inconsistencies Do you think you have your tags in order? Think again...
Play History & Stats Node Like having your Last-FM account stored locally, but more advanced.
Case & Leading Zero Fixer Works on filenames too!

All My Scripts
mikeclarkusa
Posts: 6
Joined: Thu Feb 26, 2009 8:56 pm

Re: Transliteration Cyrillic -> English or English -> Cyri

Post by mikeclarkusa »

Has anyone written such a script yet? I used this site to do a manual conversion: http://newyork.mashke.org/Conv/
The underlying code seems to be available there, so perhaps someone could easily use it to write the MM script. Vozmozhno?
Thanks, - mike
ZvezdanD
Posts: 3140
Joined: Thu Jun 08, 2006 7:40 pm

Re: Transliteration Cyrillic -> English or English -> Cyri

Post by ZvezdanD »

The RegExp Find & Replace script has predefined preset "Convert Serbian Latin to Serbian Cyrillic". If you want, I could extend it to support additional Russian Cyrillic characters.
Magic Nodes 4.3.3 / 5.2 RegExp Find & Replace 4.4.9 / 5.2  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1  Expand Child Nodes/Expand All 1.1.2  Event Logger 2.7  Filtered Statistics Report 1.6  Track Redirection & Synchronization 3.4.2  Restore/Synchronize Database 3.1.8 / 4.0.1  Find Currently Playing Track 1.3.2  Queue List 1.2.1  Add to Library on Play 1.0.1  Tree Report for Child Nodes 1.1.1  Update Location of Files in Database 1.4.5 / 2.3  Inherit Child Playlists 1.0.3  Add Currently Playing/Selected Track(s) to Playlist 1.2
mikeclarkusa
Posts: 6
Joined: Thu Feb 26, 2009 8:56 pm

Re: Transliteration Cyrillic -> English or English -> Cyri

Post by mikeclarkusa »

I would be grateful if you would. Thanks in advance. If you do it, can you notify me when it's done? Thanks, - mike
ZvezdanD
Posts: 3140
Joined: Thu Jun 08, 2006 7:40 pm

Re: Transliteration Cyrillic -> English or English -> Cyri

Post by ZvezdanD »

You should install the mentioned script, open the RegExp Find & Replace dialog box, click on the New button, enter following settings and click on the Save button.

Preset: Convert Latin to Russian Cyrillic
Find what:

Code: Select all

(a)|(b)|(v)|(g)|(d)|(e)|(jo|yo)|(zh)|(z)|(i)|(je)|(ju|yu)|(ja|ya)|(j)|(k)|(l)|(m)|(n)|(o)|(p)|(r)|(shch|w)|(sh)|(s)|(t)|(u)|(f)|(h)|(ch)|(c)|(y)
Into: Title (or whatever field you want to transliterate)
Regular expression 1: checked
Replace with:

Code: Select all

MapArray(Array("$1", &H430, "$2", &H431, "$3", &H432, "$4", &H433,  "$5", &H434, "$6", &H435, "$7", &H451, "$8", &H436, "$9", &H437, "$10", &H438, "$11", &H44D, "$12", &H44E, "$13", &H44F, "$14", &H439, "$15", &H43A, "$16", &H43B, "$17", &H43C, "$18", &H43D, "$19", &H43E, "$20", &H43F, "$21", &H440, "$22", &H449, "$23", &H448, "$24", &H441, "$25", &H442, "$26", &H443, "$27", &H444, "$28", &H445, "$29", &H447, "$30", &H446, "$31", &H44B))
VBScript expression: checked

The current version of the script has not very efficient MapArray custom function which is used for such sort of modifications. The next version will have more user-friendlly function and probably much faster than MapArray. In meantime, you could try previous settings and please tell me if it works as it should. I have some doubt about characters "Ъ" and "Ь" and I didn't include them into transliteration - there are too many different "standards" for this (ISO 9, GOST 7.79, GOST 16876-71, ...) and I didn't know which to use.

By the way, if you subscribe to this thread, you would get an information in your e-mail whenever someone posts a new message.
Magic Nodes 4.3.3 / 5.2 RegExp Find & Replace 4.4.9 / 5.2  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1  Expand Child Nodes/Expand All 1.1.2  Event Logger 2.7  Filtered Statistics Report 1.6  Track Redirection & Synchronization 3.4.2  Restore/Synchronize Database 3.1.8 / 4.0.1  Find Currently Playing Track 1.3.2  Queue List 1.2.1  Add to Library on Play 1.0.1  Tree Report for Child Nodes 1.1.1  Update Location of Files in Database 1.4.5 / 2.3  Inherit Child Playlists 1.0.3  Add Currently Playing/Selected Track(s) to Playlist 1.2
Post Reply