Strange Search and Replace diacritics error
Moderators: Hacker, petermad, Stefan2, white
Strange Search and Replace diacritics error
Hello,
I am trying use newest TC for diacritics characters in file names search and replacement.
I have this trouble:
1. I have files with diacritic in name - copied from email (possibly was created on IOS system)
When I am trying search and replace for example diacritics ý or á ... etc. then TC make no replacement
2. I was create test file with diacritics characters in name directly in my Windows and in this file TC searching and replacing all diacritics characters good
I cant´t drop here video link I will do tomorrow
This is strange, possible some different encoding cause ?
I am trying use newest TC for diacritics characters in file names search and replacement.
I have this trouble:
1. I have files with diacritic in name - copied from email (possibly was created on IOS system)
When I am trying search and replace for example diacritics ý or á ... etc. then TC make no replacement
2. I was create test file with diacritics characters in name directly in my Windows and in this file TC searching and replacing all diacritics characters good
I cant´t drop here video link I will do tomorrow
This is strange, possible some different encoding cause ?
2yard
How do you try to search and replace? - If I use TC's Multi Rename tool for that task, it works fine for me.When I am trying search and replace for example diacritics ý or á ... etc. then TC make no replacement
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
-
- Power Member
- Posts: 872
- Joined: 2013-09-04, 14:07 UTC
Are you sure you have identified the characters properly?
Note that there two similar-looking diacritics/accents: acute and grave.
Acute: á ý
Grave: à ỳ
And then there are some more diacritics, but it would be hard to confuse those with either the acute or grave unless you have vaseline covering your eyes...
(Also worth noting: Cyrillic letters a and y might look exactly like their latin counterparts, but they have different code points in Unicode. And they also have diacritic variants, although not with acute or grave...)
Note that there two similar-looking diacritics/accents: acute and grave.
Acute: á ý
Grave: à ỳ
And then there are some more diacritics, but it would be hard to confuse those with either the acute or grave unless you have vaseline covering your eyes...

(Also worth noting: Cyrillic letters a and y might look exactly like their latin counterparts, but they have different code points in Unicode. And they also have diacritic variants, although not with acute or grave...)
Re: Strange Search and Replace diacritics error
I think you're on the right track.yard wrote:This is strange, possible some different encoding cause ?
It's probably an Unicode normalization issue, i.e. your filenames are in NFD, while your keyboard input produces NFC and therefore won't match in TC's multi-rename tool.
You could use my NFCname plug-in, either to scan/check if those filenames really are in non-NFC, or to convert them to NFC with TC's multi-rename tool.
TC plugins: PCREsearch and RegXtract
-
- Power Member
- Posts: 872
- Joined: 2013-09-04, 14:07 UTC
What sort of puzzle game is that???yard wrote:look at screencast com this video cFniDxopaZ
Neither screencast.com/this/video/cFniDxopaZ, screencast.com/thisvideo/cFniDxopaZ, screencast.com/this/cFniDxopaZ, screencast.com/video/cFniDxopaZ, screencast.com/cFniDxopaZ does nor screencast.com/t/cFniDxopaZ does work...

Re: Strange Search and Replace diacritics error
How can I use this tool, I have it installedmilo1012 wrote: You could use my NFCname plug-in, either to scan/check if those filenames really are in non-NFC, or to convert them to NFC with TC's multi-rename tool.
-
- Power Member
- Posts: 872
- Joined: 2013-09-04, 14:07 UTC
Don't blame the forum software for your PEBCAK.yard wrote:What sort of puzzle game is that???
For that I am newbie user, I can´t post here, this is rule of this forum, antispam..

While it is true that the forum software does not allow newbies to post URLs as-is, you can't blame it for making it nigh impossible for other users to build a working URL from your description.
If i were a newbie like you and i needed to post a URL like "http://ghisler.ch/board/viewtopic.php?t=49371", i would do something like this:
Code: Select all
ghisler.ch </> board </> viewtopic.php <?> t=49371
2elgonzo
.
See http://madsenworld.dk/tcmd/searchreplace.png
As you can see no ploblem here.
-------------------
http://screencast.com/thisvideo/cFniDxopaZ
http://screencast.com/this/cFniDxopaZ
http://screencast.com/video/cFniDxopaZ
http://screencast.com/cFniDxopaZ
http://screencast.com/t/cFniDxopaZ
http://screencast.com/this.video/cFniDxopaZ
http://screencast.com/this.video.cFniDxopaZ
I copied á ý here from this webpage and then made a new file "á ý.txt" by pasting á ý to the file name - this file I now renamed using the Search & Replace function of the Multi-Rename Tool..Acute: á ý
.
See http://madsenworld.dk/tcmd/searchreplace.png
As you can see no ploblem here.
-------------------
look at screencast com this video cFniDxopaZ
I have the same problem - none of the combinations work - and I cannot imagine many other combinations from the given info (look at screencast com this video cFniDxopaZ)Neither screencast.com/this/video/cFniDxopaZ, screencast.com/thisvideo/cFniDxopaZ, screencast.com/this/cFniDxopaZ, screencast.com/video/cFniDxopaZ, screencast.com/cFniDxopaZ does nor screencast.com/t/cFniDxopaZ does work
http://screencast.com/thisvideo/cFniDxopaZ
http://screencast.com/this/cFniDxopaZ
http://screencast.com/video/cFniDxopaZ
http://screencast.com/cFniDxopaZ
http://screencast.com/t/cFniDxopaZ
http://screencast.com/this.video/cFniDxopaZ
http://screencast.com/this.video.cFniDxopaZ
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
-
- Power Member
- Posts: 872
- Joined: 2013-09-04, 14:07 UTC
Okay. From your video it looks like an issue as pointed out by milo1012.
While i do not know his plug-in, this should be the way how you should use it to solve your issue:

While i do not know his plug-in, this should be the way how you should use it to solve your issue:
- In the Multi-Rename-Tool, underneath the file name text field is a button named "[=?] Plugin". Click it.
- A window opens, in which you first select Miro's plugin and then select the property/function of the plug-in that will provide the NFC (pre-composed Unicode) file name. Click OK.
- Now you will see that the chosen plug-in function has been added to the file name mask. You probably also need to remove any other tokens such "[N]" from the file name mask.
- Finally, proceed with replacing the diacritic characters.

Great, this works:elgonzo wrote: [*]A window opens, in which you first select Miro's plugin and then select the property/function of the plug-in that will provide the NFC (pre-composed Unicode) file name. Click OK.
Image: %3C/%3E%3C/%3Ei%3C.%3Eimgur%3C.%3Ecom%3C/%3EX2iRzsE%3C.%3Epng
Edit by Mod.
//i.imgur.com/X2iRzsE.png