Case & Leading Zero Fixer 1.4.2 (2008-04-15)

Download and get help for different MediaMonkey for Windows 4 Addons.

Moderators: Peke, Gurus

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

Post by Bex »

Nice work MoDementia! :D

It'll be implemented in the next version. I don't know when that will be though...
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
Davo
Posts: 435
Joined: Tue Nov 06, 2007 9:00 pm
Location: Australia

Post by Davo »

Bex - just installed the script recently as per your directions. Everthing seems ok but i now notice that everytime i run MM a window appears at the same time as the MM Logo asking me " Do you want to delete the 'Little Word - and 'Forced Case Word lists'. If i select "no" MM opens & your script functions correctly. If i select "Yes" MM opens ok but as soon as i run the script i get error messages like "error executing SQL Select count....." followed by an "Access violation in module mediaMonkey.exe then other error messages relating to the script then finally a "Catastrophic Failure" message - Not sure whats happening here

Windows XP SP2
MM3 1140 Gold

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

Post by Bex »

Davo,
Ok, I think you manually installed more files than you were supposed to.
Go to your MediaMonkey\Scripts\Auto folder and remove:
- Install.ini
- Uninstall.ini
- Uninstall.vbs
Then restart MM. You also need to go into the options and manually restore the wordlists. "Tools->Options->Library->Case and Leading Zero Fixer" press Manage wordlists and then Restore Defaults.

Btw, what exactly happened when you tried to install the scripts with the installer?
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
Davo
Posts: 435
Joined: Tue Nov 06, 2007 9:00 pm
Location: Australia

Post by Davo »

Bex
Thanks - That did the trick. All seems to work ok now.
When i tried the installer the first time basically nothing happened except my system locked up when i tried to open the MMIP file after i'd extracted it from the ZIP file. I just followed the instructions below which i got from your post: -
Download:
Latest version:
MM3 (Installer)
http://home.online.no/~kar-m-kr/CaseMod ... 1.mmip.zip

Installation Instructions:
- New Install:
MM3 (Installer)
1. Download the zipped .mmip file and run it.
2. Restart MediaMonkey (If needed)

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

Post by Bex »

Strange, I don't have an explanation why it happened to you. It really should work fine. Perhaps the first download file went corrupt?
Anyway, glad you worked all out. I hope you'll enjoy the script!
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
Davo
Posts: 435
Joined: Tue Nov 06, 2007 9:00 pm
Location: Australia

Post by Davo »

Bex
I've just used the script to fix up thousands of leading zero's. A task i'd started doing manually but gave up because of the effort. I look forward to checking out the other features of the script.
Again, thanks for your help in resolving my problems.

David
Davo
Posts: 435
Joined: Tue Nov 06, 2007 9:00 pm
Location: Australia

Post by Davo »

Bex
Sorry - One last question (i hope). How do i uninstall the script if i need to. There was a file Uninstall.vbs but you asked me to remove it. Also i can't see CaseModify listed under Tools/Extensions.

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

Post by Bex »

Just delete the CaseModify.vbs file from the Scripts\Auto folder.
You also have some settings in the ini file and two tables in the database which you should delete upon a uninstall. Not very important though.

The script can't be visible in Tools->extensions since you didn't use the installer to install the script.
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
NLS
Posts: 42
Joined: Mon Mar 10, 2008 12:07 pm

Post by NLS »

OK I must report two problems, one minor, one major.

I installed using the... erm... installer and although the script's preferences are in the preferences and there is a new item in right-click menu, I don't see the script in the "scripts" menu. Is this normal?

And now the major problem to me:

I have MANY Greek strings (in various fields, mostly artist and song name of course) and for some reason this script capitalizes all the Greek words!

It even does it wrong, since I use Greek punctuation and when you capitalize a Greek word you shouldn't keep the punctuation.

The best fix for me, would be to treat Greek words exactly as English, i.e. capitalize as I prefer (I prefer to use Script case with some exceptions added in the two lists), but if this is a problem, at least make the script IGNORE non-latin-alphabet strings.

For example if I have an artist - song like that (you probably need the correct encoding to read this):

αλεξίου, χάρις - δι' ευχών (live)

Now the program does this:

ΑΛΕΞΊΟΥ, ΧΆΡΙΣ - ΔΙ' ΕΥΧΏΝ (Live)

When it should do it like that:

Αλεξίου, Χάρις - Δι' Ευχών (Live)
(best case scenario)

or AT LEAST (worse case scenario) do it like that:

ΑΛΕΞΙΟΥ, ΧΑΡΙΣ - ΔΙ' ΕΥΧΩΝ (Live)
(notice that there are no punctuated words now)

...or as I said, leave it alone (and let me do it manually - second best scenario).

Thank you in advance.
---
NLS
MoDementia
Posts: 1321
Joined: Thu Jun 15, 2006 3:26 pm
Location: Geelong, Victoria, Australia

Post by MoDementia »

NLS wrote: I installed using the... erm... installer and although the script's preferences are in the preferences and there is a new item in right-click menu, I don't see the script in the "scripts" menu. Is this normal?
Its normal
Bex
Posts: 6316
Joined: Fri May 21, 2004 5:44 am
Location: Sweden

Post by Bex »

Hi NLS,

1. Yes it's normal since I haven't added the script to that menu.

2. This script is only an update of Risser's "Case Checker"-script. Which is shipped with MM and is found in the script menu. Does that work with Greek strings?
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
MoDementia
Posts: 1321
Joined: Thu Jun 15, 2006 3:26 pm
Location: Geelong, Victoria, Australia

Post by MoDementia »

No it wont it should fail

vowels.pattern = "[AEIOUY" & ChrW(192) & "-" & ChrW(601) & "]"

i.e. they have no vowels
Try changing

Code: Select all

vowels.ignoreCase = True
to

Code: Select all

vowels.ignoreCase = False
its around line 77 in Scripts\Auto\CaseModify.vbs

[Edit] there will probably be something else that it won't like but all that is part of the original code not Bex's options
NLS
Posts: 42
Joined: Mon Mar 10, 2008 12:07 pm

Post by NLS »

Bex no the old script also does the same mistake.

MoDementia I don't get you. If I make this edit to the script what will happen?
---
NLS
MoDementia
Posts: 1321
Joined: Thu Jun 15, 2006 3:26 pm
Location: Geelong, Victoria, Australia

Post by MoDementia »

It won't automatically CAPS words that do not have vowels
Bex
Posts: 6316
Joined: Fri May 21, 2004 5:44 am
Location: Sweden

Post by Bex »

Good thinking MoDementia!

NLS,
This and the original script has a feature to always upper case words which doesn't contain any Latin vowels. Doing the change MoDementia suggest would fix your problems with Greek words. Try it and let us know if it does!
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
Post Reply