Ask Your Question
2

Special characters [closed]

asked 2012-06-26 12:22:34 +0100

anonymous user

Anonymous

updated 2016-02-18 17:14:58 +0100

Alex Kemp gravatar image

Is it possible for a LibreOffice (I'm using 3.6.0.0. beta2 version now) to configure specified special characters (for example - ʃ - or - ƥ -) to bet be put in a Writer using keyboard shortcut?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2016-02-18 17:14:45.739322

Comments

manj_k gravatar imagemanj_k ( 2013-07-18 21:49:25 +0100 )edit

3 Answers

Sort by » oldest newest most voted
3

answered 2012-06-27 20:49:40 +0100

manj_k gravatar image

updated 2014-01-18 23:50:05 +0100

I

You could use the following macro [1], and assign it to a shortcut key.

Sample U+222B INTEGRAL ∫

Sub insert_integral
Dim oDoc as variant
    oDoc = ThisComponent
Dim oCurrentController as variant
    oCurrentController = oDoc.getCurrentController()
Dim oTextViewCursor as variant
    oTextViewCursor = oCurrentController.getViewCursor()
Dim oText as variant
If IsEmpty(oTextViewCursor.Cell) Then
    oText=oTextViewCursor.Text
Else
    oText=oTextViewCursor.Cell.Text
End If
oText.insertString(oTextViewCursor,chr(clng("&H222B")),false)
End Sub

(1) Tools → Macros → Organize Macros → LOdev Basic... → Edit

image description

(2) Tools → Customize... → Keyboard
Category: LOdev Macros/user/Standard/Module 1
Function: insert_integral
Keys: Alt+Shift+I
Modify → OK

image description

(3) Test with LibreOffice 3.6.0.0.beta2

image description

[1] Source: Writer - Macro für Zeichen einfügen
Thanks to Regina Henschel!

II

You could use this extension → Compose Special Characters.
("There are two ways to create special characters - Compose Special Characters and Compose Unicode Characters.")
Tools → Extension Manager → Add... → ComposeSpecialCharacters-2.0.10.oxt

See also: LO Writer: insert special characters by shortcut keys

Download
Compose Special Characters 2.0.10 – all key combos.pdf (Hybrid PDF with embedded .odt file)
Compose Special Characters 2.0.10 – all key combos.odt

CSC_all-key-combos

edit flag offensive delete link more
0

answered 2012-12-09 23:45:41 +0100

kidalabama gravatar image

updated 2012-12-09 23:46:12 +0100

your macro is running in the writer very good. thank you. but how can i run in calc. i can't run this macro in calc.

edit flag offensive delete link more

Comments

This macro only works for Writer. You might use → Compose Special Characters for Calc(don't forget to set a "flag character" – e.g.: *)

manj_k gravatar imagemanj_k ( 2012-12-10 13:07:08 +0100 )edit
0

answered 2012-06-27 22:51:57 +0100

mouflon gravatar image

Thank you very much for your kind contribution. I wish someday creators of Libre- will invent an equivalent for an option "paste->special symbols", like in (ergh) Office. I'll try both ways and maybe I'll reply.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2012-06-26 12:22:34 +0100

Seen: 18,388 times

Last updated: Jan 18 '14