[Solved] Insert character with specified font

Discuss the word processor
Locked
zan1065
Posts: 2
Joined: Mon Nov 11, 2024 10:21 pm

[Solved] Insert character with specified font

Post by zan1065 »

I've always used the special character insert function. This time I need the same characters in multiple fonts. Is there a way in writer to enter the code and have the character placed in the correct font where I need it? Call me lazy but even cut paste isn't helping because the font on the original overides the font in placement.
Last edited by MrProgrammer on Wed Dec 11, 2024 5:48 am, edited 2 times in total.
Reason: Tagged ✓ [Solved] -- MrProgrammer, forum moderator
MSWindows 11; OpenOffice4.1.15
zannasu
FJCC
Moderator
Posts: 9625
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: using character code in Writer

Post by FJCC »

You can do this with AutoText. Insert the character using the desired font. Select the character and choose the menu Edit -> AutoText. Choose the AutoText collection, then give it a name and a shortcut. Click the AutoText button on the right and choose New. Close the dialog. You can now type the shortcut and press F3 to insert the 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
Zizi64
Volunteer
Posts: 11505
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Insert character with specified font

Post by Zizi64 »

This time I need the same characters in multiple fonts. Is there a way in writer to enter the code and have the character placed in the correct font where I need it?
- Do you want to use one (or more) specific font regardless of the formatting of the "paste target place",
- or you want to use the font of the "paste target place".

In the second case you can use the "Paste special - Unformatted text" feature.
Tibor Kovacs, Hungary; LO7.5.8/25.8.5.2 /Win7-10-11 x64Prof.
PortableApps: LO3.3.0-25.8.5.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.
zan1065
Posts: 2
Joined: Mon Nov 11, 2024 10:21 pm

Re: Insert character with specified font

Post by zan1065 »

Thank you...I've had a file of the insert with each font trying to cut and paste but it always changes to original whatever. I had forgotten about Autp Text/

If I do the Auto text will I use Paste Special enter the shortcut and and F3 will pick up the location font? Or can the Auto text hold the Paste special in it so the shortcut would enter unformatted and use the location font...I think I must be overthinking.. Both solutions hit my needs so I could manage with either but can they be combined? Thank you very much!
MSWindows 11; OpenOffice4.1.15
zannasu
FJCC
Moderator
Posts: 9625
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Insert character with specified font

Post by FJCC »

I'm confused. Do you want to enter the special character and use the font of the location where it is placed? To do that, you can use AutoText but don't apply any special formatting to the character before you make an AutoText entry for it, using the method I explained previously. Or you can use Copy and Paste Special, as Zizi64 suggested. If you want to enter the character using a particular font, independent of the font in the location where it is placed, use AutoText but apply the font directly to the character before you select it to make an AutoText entry.
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
Lupp
Volunteer
Posts: 3756
Joined: Sat May 31, 2014 7:05 pm
Location: München, Germany

Re: Insert character with specified font

Post by Lupp »

zan1065 wrote: Tue Nov 12, 2024 10:51 pm ... If I do the Auto text will I use Paste Special enter the shortcut and and F3 ... Or can the Auto text hold the Paste special in it so the shortcut would enter unformatted and use the location font...
Forget about "Paste Special..." for the purpose. Shortcut + F3 is all you need.

But:
The way character attributes are handled by AutoText is a bit cryptic, and I don't know precise documentation.
Juding from my experience (and just tested again with LibO V24.8.3.2) it makes a difference whether you create the AutoText entry (and its shortcut) based on the current character attributes set for the surrounding text, or if the CharAttribs for the new entry are set explicitly. In the first case entering the shortcut + F3 the content should be inserted using the CharAttribs of the currently written text, in the second case it should be inserted with its own attributes during creation of the entry.

Unfortunately it's very complicated to show the behaviour in an example document, because AutoText entries aren't stored to the document, but to the user profile.
On Windows 10: LibreOffice 25.8.4 and older versions, PortableOpenOffice 4.1.7 and older, StarOffice 5.2
---
Lupp from München
JeJe
Volunteer
Posts: 3132
Joined: Wed Mar 09, 2016 2:40 pm

Re: Insert character with specified font

Post by JeJe »

You could also use the macro recorder for this and then assign a shortcut to the macro. It will record selecting a special character as well as changing the font and also, if desired, setting the font to resume to back to normal after the insertion.
Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)
Locked