Re: Searching by Unicode codes
- From: "Suzanne S. Barnhill" <sbarnhill@xxxxxxxx>
- Date: Thu, 9 Apr 2009 13:08:17 -0500
The main tip here is that Help says ^U, but what Find actually wants is ^u. Beyond that, I'm not sure what you're doing wrong. Are you entering the numbers from the numeric keypad? Shouldn't matter here, but in ordinary text (with Alt+) it does. What character are you searching for? What is its hex number? Decimal number?
--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org
"da9ve" <da9ve@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:EBBDA6DC-6F06-4304-A113-97B8C4BC68F3@xxxxxxxxxxxxxxxx
"Suzanne S. Barnhill" wrote:
IIRC, the issue is that you have to use decimal numbers instead of hex.
There's nothing within Word that will actually make that conversion for you,
but there are numerous Web sites that can do it.
Well, I've tried hex and decimal, and it didn't change anything. Anyway,
using a four-digit hex number that happens to have only numeric characters,
how would Word know whether it's hex or decimal? I presumed, and then
tested, that they don't need to be entered in hex as 0xnnnn, making the whole
search string ^U0xnnnn, for example - no luck there, and similarly no luck
sticking to decimal numbers, with or without leading 0's. (Granted, nothing
anywhere has suggested the nnnn's had to be in hex, but since that's how
Unicode codepoints are generally referred to, it seems to make sense that
they should.)
FYI, I've tried entering in the Find What box, the following examples, among
many others:
^U201D
The decimal equivalent of that, ^U8221
^U005D
^U5D (thinking, maybe leave off the leading 0's)
^U93 (the decimal equivalent of that, with no leading 0's)
^U0x201D
EVERY TIME I start the search string with ^U, I get only the "^U is not a
valid special character for the Find What box." That's 100% consistent so
far.
^u5D (lower-case u)
^u0x005D
^u005D
...and several more variations on that. Also 100% consistent is that EVERY
TIME I start the search string with ^u (lower case), I only get back "Word
has finished searching the document. The search items was not found."
Interestingly, I get this even when I purposely make sure that exact string
DOES appear in the document, which tells me Word IS somehow using the ^ (and
maybe the u) to indicate some kind of special character, since it's not
finding a literal string that's there. And, even with quotes around it to
purposely search for that literal string and not just a character it stands
for, never returns a hit - which makes me think that some OTHER setting is
affecting the Search feature in a bigger way.
Are there any other settings (buried in multi-laguage settings, maybe) that
would deeply change the way that works? (I'm not especially convinced of
this, though, since I'm testing against two different installations - one of
Word 2003 with a lot of multi-language options enabled, and one Word 2007
with pretty much a default, vanilla install, and they both behave identically
in these respects.)
Alternatively, you may be able to copy and paste (Ctrl+V) the character into
the dialog. Even if it isn't displayed correctly, the Find may work.
--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org
That works/helps in some instances, but, as I detailed in my related
question in the thread "dealing forcefully with Unicode and non-Unicode
characters," apparently substitutions are sometimes made when exotic
characters are pasted into the Find What box. If I can't count on the Find
What box actually searching on what I give it, I can't have confidence in
what it finds, or doesn't.
Thanks for the suggestions.
da9ve
.
- References:
- Searching by Unicode codes
- From: da9ve
- Re: Searching by Unicode codes
- From: Suzanne S. Barnhill
- Re: Searching by Unicode codes
- From: da9ve
- Searching by Unicode codes
- Prev by Date: Re: Searching by Unicode codes
- Next by Date: Re: Searching by Unicode codes
- Previous by thread: Re: Searching by Unicode codes
- Next by thread: Re: Searching by Unicode codes
- Index(es):
Relevant Pages
|