[Solved] Inserting Special Characters from UNICODE

Discuss the word processor
Post Reply
User avatar
hmluqman
Posts: 14
Joined: Tue Dec 29, 2015 1:15 am

[Solved] Inserting Special Characters from UNICODE

Post by hmluqman »

Hello,

I want to insert special character that is not already in database of Oo. I know alt+ unicode(dec) insert the character in Oo but it does not work. As the unicodes of special characters in openoffice is different from internet. For example, the Unicode of omerga in Oo is U+03A9 but on internet its 03C9. I want to insert 'Set of real number symbol ' with Unicode 8477(dec). But in openoffice it give different character.
Last edited by hmluqman on Thu Jun 30, 2016 2:10 pm, edited 1 time in total.
Openoffice 4.2 on windows 7
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: Inserting Special Characters from UNICODE

Post by acknak »

Sorry, I'm not sure I understand what you're doing/looking for.

U+3a9 and U+3c9 are both omegas: uppercase Ω and lowercase ω

8477 (U+211d) works for me: ℝ

Are you entering the code as decimal, or hexadecimal? What is the input method expecting?

As a workaround, you can use Insert > Special Character ... or copy/paste from another application.
AOO4/LO5 • Linux • Fedora 23
User avatar
Zizi64
Volunteer
Posts: 11362
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Inserting Special Characters from UNICODE

Post by Zizi64 »

or you can create a short macro for this task:

Code: Select all

sub Superscript_Capital_u
insert_a_char(CHR(7489))
end sub

sub Superscript_Capital_v
insert_a_char(CHR(11389))
end sub

sub Superscript_Capital_w
insert_a_char(CHR(7490))
end sub

'*************************************************************************

sub insert_a_char(SpecChar as string)
rem ----------------------------------------------------------------------
rem define variables
dim document   as object
dim dispatcher as object
rem ----------------------------------------------------------------------
rem get access to the document
document   = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
rem ----------------------------------------------------------------------
'dim args1(0) as new com.sun.star.beans.PropertyValue
'args1(0).Name = "Text"
'args1(0).Value = SpecChar
'dispatcher.executeDispatch(document, ".uno:InsertText", "", 0, args1())
dim args2(0) as new com.sun.star.beans.PropertyValue
args2(0).Name = "Symbols"
args2(0).Value = SpecChar


dispatcher.executeDispatch(document, ".uno:InsertSymbol", "", 0, args2())
end sub
and you can assign the subroutines to a shortcut key, or to a user defined menu item, or to a toolbar item...
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
FJCC
Moderator
Posts: 9280
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Inserting Special Characters from UNICODE

Post by FJCC »

I see the OP's problem entering decimal unicode values on my Windows 7 system. Any value above 126 maps strangely. I can use the Compose Special Characters extension to enter hex values and get the correct character.
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
User avatar
hmluqman
Posts: 14
Joined: Tue Dec 29, 2015 1:15 am

Re: Inserting Special Characters from UNICODE

Post by hmluqman »

Thanks every one for replies. Yes @FJCC is right. OO has problem with windows7 and vista, Special Characters extension worked for me.
Openoffice 4.2 on windows 7
User avatar
RoryOF
Moderator
Posts: 34618
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: [Solved] Inserting Special Characters from UNICODE

Post by RoryOF »

I had a problem inserting Unicode characters into a Writer file using Oo 4.1.2 on Xubuntu 16.04.1. With the aid of acknak I sorted this out.

In Settings - Language support my "Keyboard input method system" was initially set to XIM. Resetting this to "None" and rebooting Xubuntu enabled me to insert Unicode characters in Writer using the sequence Ctrl Shift u( release) xxx (char number in hex) terminated by a space or an Enter, A similar settings adjustment may be worth trying on other linux distros if they have a Unicode insertion problem.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
Post Reply