From: Baljinder Singh on
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.

---
frmsrcurl: http://msgroups.net/microsoft.public.word.vba.general/
From: Klaus Linke on
"Baljinder Singh" <user(a)msgroups.net/> wrote:
> 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