[Solved] Create shortcut to insert special character

Discuss the word processor
Post Reply
Didee
Posts: 7
Joined: Wed Feb 06, 2019 9:47 pm

[Solved] Create shortcut to insert special character

Post by Didee »

I updated OpenOffice in June and had to reconfigure all my menus and such. With my previous version I was able to create a shortcut to insert a special character I use frequently. Specifically, I changed Control D to insert a degree character. With version 4.1.12 I cannot make that change. Can some please tell me (or remind me) how to do that?

If I can no longer make that change in the new version, I guess I would need to delete version 4.1.12 and reinstall my previous version. Would it be that easy to go back to an older version of OpenOffice?
Last edited by MrProgrammer on Sat Aug 27, 2022 10:20 pm, edited 1 time in total.
Reason: Tagged ✓ [Solved] -- MrProgrammer, forum moderator
OpenOffice 4.1.1 on Windows 10
Bill
Volunteer
Posts: 8934
Joined: Sat Nov 24, 2007 6:48 am

Re: Creating a shortcut to insert a special character?

Post by Bill »

AOO 4.1.14 on Ubuntu MATE 22.04
Didee
Posts: 7
Joined: Wed Feb 06, 2019 9:47 pm

Re: Creating a shortcut to insert a special character?

Post by Didee »

No, I didn't use a recorded macro because I never heard of that before today. I thought I recalled it being pretty easy to create the shortcut I want, but maybe I'm just confused and totally not remembering correctly.
OpenOffice 4.1.1 on Windows 10
User avatar
RoryOF
Moderator
Posts: 34618
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Creating a shortcut to insert a special character?

Post by RoryOF »

Your earlier post (2019) on the same topic is at

https://forum.openoffice.org/en/forum/v ... hp?t=96900
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
Didee
Posts: 7
Joined: Wed Feb 06, 2019 9:47 pm

Re: Creating a shortcut to insert a special character?

Post by Didee »

Well, good heavens, I don't recall ever asking about this before but I obviously did. I'll check it out. Thanks.


That suggested solutions from 2019 isn't going to work for me. (I don't know why it says "solved"). I guess I'll just go with the Alt 0186 way of inserting it quickly. Control D would sure be easier though. :(
OpenOffice 4.1.1 on Windows 10
JeJe
Volunteer
Posts: 2785
Joined: Wed Mar 09, 2016 2:40 pm

Re: Creating a shortcut to insert a special character?

Post by JeJe »

A recorded macro for the ° symbol is as follows, you'd need to put it in your MyMacros and then assign a shortcut.

Code: Select all

sub InsertDegreeSymbol()
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 = "Symbols"
args1(0).Value = "°"

dispatcher.executeDispatch(document, ".uno:InsertSymbol", "", 0, args1())
end sub
Edit: made a slight mod to remove the bit which set the font

Or you could create an Autotext entry for your symbol - then it would be type the shortcut and press F3 to insert it.
Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)
Post Reply