I. Khider wrote:
Hello Users!
How does one program the keys to input specific symbols (I frequently use em
dashes in my writing) without having to go into the 'symbols' section every
time. When I used Word, I could program a key combination to make the symbol
appear. I could not spot the option in Office, is it hiding somewhere or
does that function exist?
Please advise and thanks!
Yes, you can bind a macro to a key, and that macro can print a
particular character.
Check documentation and help on macros.
However the standard suggested method of creating recording a macro from
cutting and pasting of a symbol also drags along the font and size
information. You may want that for particular characters.
But the following macro can be adapted to enter any character or
multiple characters without dragging along formatting:
=====================================================================
sub thorn_lower
dim document as object
dim dispatcher as object
document = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
dim args1(0) as new com.sun.star.beans.PropertyValue
args1(0).Name = "Text"
args1(0).Value = "รพ"
dispatcher.executeDispatch(document, ".uno:InsertText", "", 0, args1())
end sub
=====================================================================
Just change the sub name and change the args1(0).Value to the character
you want and assign it to a suitable key combination.
But a macro of this kind that works in Writer won't work in Calc or Impress.
A far better method is to search for "language" and "keyboard" in your
OS help files and your OS documentation and find out how to customize
your keyboard appropriately so it produces any symbols you normally want
in every application and allows you to switch between keyboard drivers.
See http://www.alanwood.net/unicode/utilities.html for a listing of
Unicode input aids which includes keyboard editors and enhancers.
As to dashes, as set up (using "@" to indicate any normal character)
OpenOffice uses auto-correction to change " - " to
<space>en-dash<space>, "@--@" to <@>em-dash<@>, and " -- " to
<space>en-dash<space>.
Jallan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]