[jawsscripts] Re: searching for unicode values

  • From: "Geoff Chapman" <gch@xxxxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Wed, 7 Nov 2012 05:07:54 +1100

HI Gian.

after some extensive testing here today, on unicode character translation 
issues, I've discovered a couple of strange caveats which I may not go into 
now, but certainly will in another post, as I wish to really get to the 
bottom of what Jaws is doing re unicode character translation in differing 
environments.


However, just wanted to report that Jackie's suggestion to you below, re 
selecting the circle bullet character, copying it to clipboard, then pasting 
it, as a normal text string item inside quotes, into the findString function 
of a script, does actually work.
I've tested it here in wordpad with success.
See below for the test Script.

So obviously though, to get this character into your clipboard for copying 
in the first place, you need to go to Wordpad, then  turn numLock on, such 
that NumPad types numbers, then holding the alt key down, type your 9679 
unicode char numbers, then release the alt key.
Then turn off numlock again as per usual.
you should then see the circle bullet character turning up in wordpad.
And then you can simply shift+RightArrow over it to select it, and copy it 
to clipboard, to then paste into your findString function.

However, and here's where things get a bit weird.
At least in windows xp, Don't try this in notePad! or, not only will jaws 
not properly announce the circle bullet unicode character you just typed, it 
actually says absolutely nothing here when I arrow over it in notePad using 
jaws12,
and, when pressed three times quickly to query it's value, it'll report some 
totally other character  value instead! Like, 9575!

Now. The other weird thing is, and this is relevant to HSC's TextString 
location feature also,
if you queery jaws with the ReadClipBoard command, Windows+JawsKey+X, once 
you've successfully selected/copied your circle bullet character to the 
clipboard in wordpad, jaws does this wierd thing, of announcing, "question?" 
instead!

Who knows why though!

I'll talk more about HSC's Text and graphics location and ennumeration 
features/behaviour,
which I've also done some considerable testing with now, and have discovered 
some rather useful information that I think you will want to know re some of 
your questions about that, in another post a bit later on.

The short version is, for utilizing it for this particular textString 
location functionality, pasting the circle bullet character, into the text=
key of the hotspot definition, and setting textMode=and TextCount= 
accordingly, does not seem to function as expected here.
because even though it properly says, circle Bullet, in the hotspot 
definition, immediately upon pasting the character to the right of the 
"text=" key,
When you go back in there to examine it again, you find that it's done that 
weird thing that Jaws does with the clipboard announcement. I.e. actually 
converted, the circle bullet character, to a question mark character.  Thus 
hsc is then looking for the wrong character, and things will thus not behave 
as expected.

At least that was what I think happened, during my admittedly one-shot test 
experience here in wordpad.

So it seems there's something weird about unicode character translation 
going down here, that I for one do not as yet understand at all.

Here's the findString Script I tested, and it works here for me in wordpad.

hopefully it won't get messed up by email and the char turn into something 
else weird across the ether!


Script FindCircleBulletTest () ; assigned to control+3.

; findString test

FindString (GetCurrentWindow (), "â", s_top, s_unrestricted, false)

EndScript



 ----- Original Message ----- 
From: "GianniP46" <giannip46@xxxxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Tuesday, November 06, 2012 12:11 PM
Subject: [jawsscripts] Re: searching for unicode values


> you cannot, it is a symbol for a column header
>  ----- Original Message ----- 
>  From: Jackie McBride
>  To: jawsscripts@xxxxxxxxxxxxx
>  Sent: Sunday, November 04, 2012 9:04 PM
>  Subject: [jawsscripts] Re: searching for unicode values
>
>  Have u tried simply selecting it w/your cursor keys, & pasting it
>  in--remembering to enclose it in quotes, of course.
>
>  On 11/4/12, GianniP46 <giannip46@xxxxxxxxxxxxx> wrote:
>  > Hi all,
>  >  I want to search for a character that is not on the key board.  Jaws
>  > reports it as circle bullet.  the Unicode value is 9679.  any ideas on 
> how I
>  > can search for this character using find string?
>  >
>  > Gian Carlo Pedulla
>  > GianniP46@xxxxxxxxxxxxx
>  >
>  > LETS! GO! METS!
>  > __________ÃÂÂ
>  >
>  > View the list's information and change your settings at
>  > http://www.freelists.org/list/jawsscripts
>  >
>  >
>
>
>  -- 
>  Blame the computer--why not? It can't defend itself & occasionally
>  might even be the culprit
>  Jackie McBride
>  Ask Me Computer Questions at: www.pcinquirer.com
>  Jaws Scripting training materials: www.screenreaderscripting.com
>  homePage: www.abletec.serverheaven.net
>  __________ÃÂÂ
>
>  View the list's information and change your settings at
>  http://www.freelists.org/list/jawsscripts
>
> __________ÃÂÂ
>
> View the list's information and change your settings at
> http://www.freelists.org/list/jawsscripts
>
> 

__________ï

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: