Problen in Find-Replace of Unicode Gurmukhi characters

  • Thread starter Baljinder Singh
  • Start date
B

Baljinder Singh

In MS Word 2007 how to find and replace Gurmukhi character à© keeping in mind when this character come after another Gurmukhi character it is combined automatically like ਸ+à© becomes ਸà©, ਹ+à© becomes ਹ੠Gurmukhi character à© is searchable when we put [à©] in Find Box but if we put à© in Find Box it is not searchable. By putting [à©] in Find Box when we find it and replace it with another character, it replace ਸ੠as well as ਹà©. Thus there is problem in replacing.
 
K

Klaus Linke

Baljinder Singh said:
In MS Word 2007 how to find and replace Gurmukhi character à©
keeping in mind when this character come after another Gurmukhi
character it is combined automatically like ਸ+à© becomes ਸà©, ਹ+à©
becomes ਹ੠Gurmukhi character à© is searchable when we put [à©] in
Find Box but if we put à© in Find Box it is not searchable. By putting
[à©] in Find Box when we find it and replace it with another character,
it replace ਸ੠as well as ਹà©. Thus there is problem in replacing.



Hi Baljinder,

It's a known problem with all combining diacritics.
The trick is that your "Search" expression has to match both characters (the
letter and the diacritic), and then you can replace both of them with some
other combination.

Since there are possibly lots and lots of combinations, you can use wildcard
replacements to simplify the task. With wildcards, you can re-use either
the letter or the diacritic, while replacing the other.
You could also limit which letters and/or which diacritics should be
matched, by using a wildcard expression that matches just some characters --
such as the expression [a-d] which would match a or b or c or d (though I
won't do that below).

Say in your case if you want to replace any letter with the combining
diacritic you mentioned, with the same letter but a different diacritic such
as ੇ, you could use
Find what: (?)à©
Replace with: \1ੇ
(check "Match wildcards" in the Find/Replace dialog, then "Replace All").


(Hope the Unicode characters come through...)
Regards,
Klaus
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top