Looking for Unicode character entry macro

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
User avatar
cesarakg
Posts: 5
Joined: Mon Oct 20, 2008 4:09 pm
Location: Candelaria - Brazil

Looking for Unicode character entry macro

Post 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
OOo 2.3.X on Ubuntu 8.x + Windows XP
BROffice 3.3.0 on Windows XP
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: Looking for Unicode character entry macro

Post 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!
AOO4/LO5 • Linux • Fedora 23
User avatar
Bhikkhu Pesala
Posts: 1253
Joined: Mon Oct 08, 2007 1:27 am

Re: Looking for Unicode character entry macro

Post 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 = ♟
Idiot Compassion
LibreOffice 6.0.4 on Windows 10
Post Reply