rename french accent because of linux
Re: rename french accent because of linux
You need to make sure that you edit this file with MM closed, as it gets rewritten on exit.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
Re: rename french accent because of linux
Hey, thanks but I am doing it after MM is closed. It's still getting rewritten every time i reopen MM.
-
- Posts: 5559
- Joined: Wed Feb 07, 2007 11:07 pm
- Location: New Jersey, USA
- Contact:
Re: rename french accent because of linux
Double check in the task manager there are no lingering mediamonkey.exe files running.
3.2x - Win7 Ultimate (Zen Touch 2 16 GB/Zen 8GB)
Link to Favorite Scripts/Skins
Join Dropbox, the online site to share your files
Link to Favorite Scripts/Skins
Join Dropbox, the online site to share your files
-
- Posts: 5559
- Joined: Wed Feb 07, 2007 11:07 pm
- Location: New Jersey, USA
- Contact:
Re: rename french accent because of linux
The only the other thing I can think of is reboot and then edit the mediamonkey.ini before opening MM.
3.2x - Win7 Ultimate (Zen Touch 2 16 GB/Zen 8GB)
Link to Favorite Scripts/Skins
Join Dropbox, the online site to share your files
Link to Favorite Scripts/Skins
Join Dropbox, the online site to share your files
Re: rename french accent because of linux
Humm...
With the method by changing the FilenameMappings part of the mediamonkey.ini, somebody if there is a way to replace "..." and ".." in the filename of the song ?
With the method by changing the FilenameMappings part of the mediamonkey.ini, somebody if there is a way to replace "..." and ".." in the filename of the song ?
Re: rename french accent because of linux
I'm trying to get this to work with other extended characters -- e.g. the czech character č. But when I paste that character into the Const AccentString string in RemoveAccents it doesn't work. There is some sort of unicode problem. I've tried editing the script with gvim for Windows and also with notepad. Any ideas how to extend the script to include these sorts of extended characters, which I believe are not in ASCII at all?
Re: rename french accent because of linux
The RegExp Find and Replace add-on has predefined presets for removing accents for all Latin-1 and Latin-2 character-sets: "Remove diacritical marks from <Into Field> (aeiou)..." and "Remove diacritical marks from <Into Field> (cdghjklnrstywz)...". If you choose Path as destination field, all accents would be removed in the paths, e.g. č will be replaced with c, and so on.
● 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
Re: rename french accent because of linux
Thanks, that regexp find/replace preset seems to do the job perfectly. But shouldn't there be a single preset that takes care of all the diacritics, rather than having to run once on vowels and then a second time on consonants?
Re: rename french accent because of linux
Preset: Remove diacritical marks from <Into Field> (aeioucdghjklnrstywz)...
Find what: ([\u00E7\u0107-\u010D])|([\u00F0\u010F])|(\u0111)|([\u011D-\u0123])|([\u0125\u0127])|(\u0135)|([\u0137\u0138])|([\u013A-\u0142])|([\u00F1\u0144-\u014B])|([\u0155-\u0159])|([\u015B-\u0161])|([\u0163-\u0167])|([\u00FD\u00FF\u0177])|(\u0175)|([\u017A-\u017E])|([\u00E0-\u00E5\u0101-\u0105\u01CE\u01FB])|([\u00E8-\u00EB\u0113-\u011B])|([\u00EC-\u00EF\u0129-\u012F\u0131\u01D0])|([\u00F2-\u00F6\u00F8\u014D-\u0151\u01A1\u01D2\u01FF])|([\u00F9-\u00FC\u0169-\u0173\u01B0\u01D4-\u01DC])|([\u00E6\u01FD])|(\u0153)
Regular expression 1: checked
Replace with: MapArray(Array("$1", "c", "$2", "d", "$3", "dj", "$4","g", "$5", "h", "$6", "j", "$7", "k", "$8", "l", "$9", "n", "$10","r", "$11", "s", "$12", "t", "$13", "y", "$14", "w", "$15", "z", "$16", "a", "$17", "e", "$18", "i", "$19", "o", "$20", "u", "$21", "ae", "$22", "oe"))
VBScript expression: checked
Find what: ([\u00E7\u0107-\u010D])|([\u00F0\u010F])|(\u0111)|([\u011D-\u0123])|([\u0125\u0127])|(\u0135)|([\u0137\u0138])|([\u013A-\u0142])|([\u00F1\u0144-\u014B])|([\u0155-\u0159])|([\u015B-\u0161])|([\u0163-\u0167])|([\u00FD\u00FF\u0177])|(\u0175)|([\u017A-\u017E])|([\u00E0-\u00E5\u0101-\u0105\u01CE\u01FB])|([\u00E8-\u00EB\u0113-\u011B])|([\u00EC-\u00EF\u0129-\u012F\u0131\u01D0])|([\u00F2-\u00F6\u00F8\u014D-\u0151\u01A1\u01D2\u01FF])|([\u00F9-\u00FC\u0169-\u0173\u01B0\u01D4-\u01DC])|([\u00E6\u01FD])|(\u0153)
Regular expression 1: checked
Replace with: MapArray(Array("$1", "c", "$2", "d", "$3", "dj", "$4","g", "$5", "h", "$6", "j", "$7", "k", "$8", "l", "$9", "n", "$10","r", "$11", "s", "$12", "t", "$13", "y", "$14", "w", "$15", "z", "$16", "a", "$17", "e", "$18", "i", "$19", "o", "$20", "u", "$21", "ae", "$22", "oe"))
VBScript expression: checked
● 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