Reply to topic  [ 3 posts ] 
Unicode Code Points in Find/Replace 
Author Message

Joined: 2007-11-09 15:27:25
Posts: 86
I have a number of documents in Greek in which many omegas (ω) have been displaced by a little-used form of the letter pi (ϖ) that happens to look a bit like omega. So of course I want to replace all occurrences of ϖ with ω. These should be omega, after all, not pi.

If I copy/paste the character ϖ into Nisus’ Find/Replace dialogue using PowerFind, it finds all occurrences of that character but it finds also the ‘real’ pi (π).
So this Find/Replace won't work because I do not want to replace π with ω !
Hmm.

When I convert these two characters (ϖ & π) into unicode code (via Nisus’ handy Edit>Convert>To Unicode Code Points) I get this:

ϖ = U+03D6

π = U+03C0


I discovered by reading this wonderful forum that one can do a search for Unicode Code Points with PowerFind Pro.

So I made this macro:

Find and Replace '\\u03D6', 'ω', 'Ea'

This search, like the one mentioned above, finds both ϖ and π in spite of the fact that they have different unicode code points.

What’s going on?

Is there any way to get Nisus to distinguish between these two characters?


2014-05-01 16:21:39
Profile
User avatar

Joined: 2007-02-07 00:58:12
Posts: 876
Location: Japan
jb wrote:
What’s going on?

Is there any way to get Nisus to distinguish between these two characters?


Did you try switching off "Ignore Case"?

_________________
philip


2014-05-01 17:23:57
Profile

Joined: 2007-11-09 15:27:25
Posts: 86
Ha!
Yes, of course. That works.

I am indeed an idiot, but I prefer to think that you are brilliant ;-)


Thanks


2014-05-02 02:36:25
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software