Page 1 of 1

Looking for Unicode character entry macro

Posted: Mon Oct 20, 2008 4:23 pm
by cesarakg
In Linux, you can insert unicode char directly, whith the sequence

[Ctrl]+[Shift]+, [hexadecimal code], space

In Windows it doesn't work. Some Microsoft apps have a conveniente shortcut: type the hexadecimal code for the char, and follow with [Alt]+[X] (reference: http://www.fileformat.info/tip/microsof ... nicode.htm). There's no such thing in OpenOffice for Windows, AFAIK.

How you can implement a macro that works like the [Alt]+[X] method above? When you call the macro, it chances the precedent word into the unicode char equivalent?

I'm thinking in Unicode for writing figurine chess notation, using these chars:

Code: Select all

Fig.	Hex.	Dec.
♔	   2654	9812
♕	   2655	9813
♖	   2656	9814
♗	   2657	9815
♘	   2658	9816
♙	   2659	9817
♚	   265A	9818
♛	   265B	9819
♜	   265C	9820
♝	   265D	9821
♞	   265E	9822
♟	   265F	9823

Re: Looking for Unicode character entry macro

Posted: Mon Oct 20, 2008 6:31 pm
by acknak
[Split off from http://user.services.openoffice.org/en/ ... f=7&t=9880]

Please don't be shy to start a new topic when you have a different question!

Re: Looking for Unicode character entry macro

Posted: Mon Oct 20, 2008 7:10 pm
by Bhikkhu Pesala
IanNZ's Alt Key Handler Macros has such a macro.

There is a better way to do this. Set up autocorrect entries:

:WK = ♔ :WQ = ♕ :WR = ♖ :WB = ♗ :WN = ♘ :WP = ♙
:BK = ♚ :BQ = ♛ :BR = ♜ :BB = ♝ :BN = ♞ :BP = ♟