Re: Symbols To My Liking.

  • From: "Bob W" <rwiley45@xxxxxxxxxxx>
  • To: <jfw@xxxxxxxxxxxxx>
  • Date: Tue, 1 Feb 2011 07:10:59 -0600



I can do better than that.
I'll post the actual code below.

To my mind, this type of coding is short sighted and very restrictive.

Anyway, off the soap box: here's the code. References found in default.jss.
-----
VKeyboard.jss (the script)
include "hjconst.jsh"
include "hjglobal.jsh"
include "common.jsm"
include"VKeyboard.jsm"


Script VKSelect ()
var
int iIndex,;For position in list
string strTemp,
string strListText
Let strListText = description+LIST_ITEM_SEPARATOR+
description1+LIST_ITEM_SEPARATOR+
description2+LIST_ITEM_SEPARATOR+
description3+LIST_ITEM_SEPARATOR
if ! strListText then
return
EndIf
Let strListText = (stringChopRight (strListText, 1))
; now post the dialog
Let iIndex = dlgSelectItemInList (strListText, DLG_VKEYBOARD, true)
If iIndex <= 0 then
return
EndIf
let strTemp = (StringSegment (symbol, LIST_ITEM_SEPARATOR, iIndex))
;TypeString (strTemp)
CopyToClipboard (strTemp)
TypeKey (cksPaste)
EndScript

-----
VKeyBoard.jsm (constants, symbols and dialogue)

CONST
symbol="?f.??.--×T¢£¥¦§©ª®±²³¶·÷¹º¼½¾ÁÉÍÓÚÝáéíóúýÑñ¡¿æçÇ",
description="Eurosflorinellipsisdagger (single)dagger (double)bullet (large)en dashem dashmultiply symbolunregistered trademarkcentspoundsyen", description1="broken barsection symbolcopyrightfeminine ordinalregistered trademarkplus or minussuperscript 2superscript 3paragraph symbol (pilcrow)", description2="bullet (small)divide symbolsuperscript 1degrees (masculine ordinal)one-fourthone-halfthree-fourthsA acute capitalE acute capitalI acute capital", description3="O acute capitalU acute capitalY acute capitala acutee acutei acuteo acuteu acutey acuteN tilde capitaln tildeinverted exclamation pointinverted question markAE Diphthongc cedillac cedilla capital",
DLG_VKEYBOARD="Select a Symbol to Print"



----- Original Message ----- From: "The Elf" <inthaneelf@xxxxxxxxxxxxxx>
To: <jfw@xxxxxxxxxxxxx>
Sent: Tuesday, February 01, 2011 2:35 AM
Subject: Re: Symbols To My Liking.


might be worth it to some, in which file and can you give me the leader name to the section of the file they are in?

the elf
Moderator, Blind Access Help
Owner: Alacorn Computer Enterprises
Specialists in customized computers and peripherals
- own the might and majesty of a Alacorn!
www.alacorncomputer.com
proprietor, The Grab Bag,
for blind computer users and programmers
http://grabbag.alacorncomputer.com

----- Original Message ----- From: "Bob W" <rwiley45@xxxxxxxxxxx>
To: <jfw@xxxxxxxxxxxxx>
Sent: Sunday, January 30, 2011 5:40 PM
Subject: Re: Symbols To My Liking.


Well Georges the verdict is in: and it isn't hopeful.

I finally tracked down the script and all those symbols are hard coded in. So they can't be easily changed.

Guessing conservatively, I'd say it would take you a couple of weeks to plug in the Arabic alphabet. <lol>

Bob
----- Original Message ----- From: "Georges Zeinoun" <george.zaynoun@xxxxxxxxx>
To: <jfw@xxxxxxxxxxxxx>
Sent: Saturday, January 29, 2011 9:53 PM
Subject: Symbols To My Liking.


Hi folks!
Maybe most of us here know that when pressing insert+4 we get a list currently comprised of 48 symbols. Say I want to add the complete arabic alphabet to this list, is that possible and how? Thanks.

--
Georges Zeinoun
Timmervägen 6A, 541 63 Skövde    SWEDEN
TEL: +46500201623
E-Mail: george.zaynoun@xxxxxxxxx

Email services provided by the System Access Mobile Network. Visit www.serotek.com to learn more about accessibility anywhere.

--
JFW related links:
JFW homepage: http://www.freedomscientific.com/
Scripting mailing list: http://lists.the-jdh.com/listinfo.cgi/scriptography-the-jdh.com
JFW List instructions:
To post a message to the list, send it to jfw@xxxxxxxxxxxxx
To unsubscribe from this mailing list, send a message to jfw-request@xxxxxxxxxxxxx with the word unsubscribe in the subject line.
Archives located at: //www.freelists.org/archives/jfw
Alternative archives located at: http://n2.nabble.com/JAWS-for-Windows-f2145279.html

If you have any concerns about the list, post received from the list, or the way the list is being run, do not post them to the list. Rather contact the list owner at jfw-admins@xxxxxxxxxxxxxx

--
JFW related links:
JFW homepage: http://www.freedomscientific.com/
Scripting mailing list: http://lists.the-jdh.com/listinfo.cgi/scriptography-the-jdh.com
JFW List instructions:
To post a message to the list, send it to jfw@xxxxxxxxxxxxx
To unsubscribe from this mailing list, send a message to jfw-request@xxxxxxxxxxxxx with the word unsubscribe in the subject line.
Archives located at: //www.freelists.org/archives/jfw
Alternative archives located at: http://n2.nabble.com/JAWS-for-Windows-f2145279.html

If you have any concerns about the list, post received from the list, or the way the list is being run, do not post them to the list. Rather contact the list owner at jfw-admins@xxxxxxxxxxxxxx

--
JFW related links:
JFW homepage: http://www.freedomscientific.com/
Scripting mailing list: http://lists.the-jdh.com/listinfo.cgi/scriptography-the-jdh.com
JFW List instructions:
To post a message to the list, send it to jfw@xxxxxxxxxxxxx
To unsubscribe from this mailing list, send a message to jfw-request@xxxxxxxxxxxxx with the word unsubscribe in the subject line.
Archives located at: //www.freelists.org/archives/jfw
Alternative archives located at: http://n2.nabble.com/JAWS-for-Windows-f2145279.html

If you have any concerns about the list, post received from the list, or the way the list is being run, do not post them to the list. Rather contact the list owner at jfw-admins@xxxxxxxxxxxxxx

--
JFW related links:
JFW homepage: http://www.freedomscientific.com/
Scripting mailing list: 
http://lists.the-jdh.com/listinfo.cgi/scriptography-the-jdh.com
JFW List instructions:
To post a message to the list, send it to jfw@xxxxxxxxxxxxx
To unsubscribe from this mailing list, send a message to 
jfw-request@xxxxxxxxxxxxx with the word unsubscribe in the subject line.
Archives located at: //www.freelists.org/archives/jfw
Alternative archives located at: 
http://n2.nabble.com/JAWS-for-Windows-f2145279.html

If you have any concerns about the list, post received from the list, or the 
way the list is being run, do not post them to the list. Rather contact the 
list owner at jfw-admins@xxxxxxxxxxxxxx

Other related posts: