Re: Shortcuts for symbols in text

2018-07-21 Thread Kornel Benko
Am Samstag, 21. Juli 2018 12:38:42 CEST schrieb Richard Kimberly Heck 
:
> On 07/21/2018 12:25 PM, Jean-Marc Lasgouttes wrote:
> > Le 21/07/2018 à 17:47, Richard Kimberly Heck a écrit :
> >> On 07/21/2018 09:56 AM, Tank Panzer wrote:
> >>> In LyX one can cunfigure the shortcuts and even add new ones under
> >>> preferences.
> >>> Like I was able to add a new shortcut by typing "math-insert \bullet"
> >>> and passing a shortcut to it
> >>>
> >>> I would like to know if it is possible to add shortcuts to normal
> >>> symbols in text, like "\textbullet" which i am able to add through the
> >>> UI with mouse.
> >>> I tryed to type "insert \textbullet" and few others, but it said
> >>> "wrong LyX function".
> >>> Do you know what i need to type?
> >>
> >> Try self-insert. But you will have to do something special with the
> >> backslash, I think?
> >
> > Why a backslash? The best would be "self-insert ⦁"
> 
> I had the general case in mind, but of course one can just directly
> insert such symbols.
> 
> Note, for other readers (JMarc knows this), that you can also use
> unicode-insert and give the unicode value.
> 
> Riki
> 

This looks like latex, so I would try
command-sequence ert-insert; self-insert \textbullet;char-forward

Kornel


signature.asc
Description: This is a digitally signed message part.


Re: Shortcuts for symbols in text

2018-07-21 Thread Richard Kimberly Heck
On 07/21/2018 12:25 PM, Jean-Marc Lasgouttes wrote:
> Le 21/07/2018 à 17:47, Richard Kimberly Heck a écrit :
>> On 07/21/2018 09:56 AM, Tank Panzer wrote:
>>> In LyX one can cunfigure the shortcuts and even add new ones under
>>> preferences.
>>> Like I was able to add a new shortcut by typing "math-insert \bullet"
>>> and passing a shortcut to it
>>>
>>> I would like to know if it is possible to add shortcuts to normal
>>> symbols in text, like "\textbullet" which i am able to add through the
>>> UI with mouse.
>>> I tryed to type "insert \textbullet" and few others, but it said
>>> "wrong LyX function".
>>> Do you know what i need to type?
>>
>> Try self-insert. But you will have to do something special with the
>> backslash, I think?
>
> Why a backslash? The best would be "self-insert ⦁"

I had the general case in mind, but of course one can just directly
insert such symbols.

Note, for other readers (JMarc knows this), that you can also use
unicode-insert and give the unicode value.

Riki



Re: Shortcuts for symbols in text

2018-07-21 Thread Jean-Marc Lasgouttes

Le 21/07/2018 à 17:47, Richard Kimberly Heck a écrit :

On 07/21/2018 09:56 AM, Tank Panzer wrote:

In LyX one can cunfigure the shortcuts and even add new ones under
preferences.
Like I was able to add a new shortcut by typing "math-insert \bullet"
and passing a shortcut to it

I would like to know if it is possible to add shortcuts to normal
symbols in text, like "\textbullet" which i am able to add through the
UI with mouse.
I tryed to type "insert \textbullet" and few others, but it said
"wrong LyX function".
Do you know what i need to type?


Try self-insert. But you will have to do something special with the
backslash, I think?


Why a backslash? The best would be "self-insert ⦁"

JMarc


RE: Shortcuts for symbols in text

2018-07-21 Thread Christopher Menzel
See, I was wrong. :-)

-chris

From: Richard Kimberly Heck
Sent: Saturday, July 21, 2018 5:47 PM
To: Tank Panzer; lyx-users@lists.lyx.org
Subject: Re: Shortcuts for symbols in text

On 07/21/2018 09:56 AM, Tank Panzer wrote:
> In LyX one can cunfigure the shortcuts and even add new ones under
> preferences.
> Like I was able to add a new shortcut by typing "math-insert \bullet"
> and passing a shortcut to it
>
> I would like to know if it is possible to add shortcuts to normal
> symbols in text, like "\textbullet" which i am able to add through the
> UI with mouse.
> I tryed to type "insert \textbullet" and few others, but it said
> "wrong LyX function".
> Do you know what i need to type?

Try self-insert. But you will have to do something special with the
backslash, I think?

See Help> LyX Functions for a list of all the options.

Riki





Re: Shortcuts for symbols in text

2018-07-21 Thread Chris Menzel
On Sat, Jul 21, 2018 at 3:58 PM Tank Panzer  wrote:

> In LyX one can configure the shortcuts and even add new ones under
> preferences.
> Like I was able to add a new shortcut by typing "math-insert \bullet" and
> passing a shortcut to it
>
> I would like to know if it is possible to add shortcuts to normal symbols
> in text, like "\textbullet" which i am able to add through the UI with
> mouse.
> I tryed to type "insert \textbullet" and few others, but it said "wrong
> LyX function".
> Do you know what i need to type?
>

I don't believe there is any way to insert symbols with a shortcut outside
of math mode (though I could be wrong). If you're running LyX under
Windows, you can use the scripting utility AutoHotKey to get this
functionality. Just create a file called, e.g., macros.ahk and, to get your
desired functionality, add the line

:*:\textbullet::⦁

where ⦁ is the unicode bullet; you can of course add as many such lines as
you please to insert all the symbols you want. (Be sure to save the file
with UTF-8 encoding.) To activate the script, right click on it and select *Run
Script*. (I think if you drop it into your Documents directory it will run
by default at startup.) I reckon you could use Applescript on a Mac to do
something similar. Dunno about Linux.

-chris


Re: Shortcuts for symbols in text

2018-07-21 Thread Richard Kimberly Heck
On 07/21/2018 09:56 AM, Tank Panzer wrote:
> In LyX one can cunfigure the shortcuts and even add new ones under
> preferences.
> Like I was able to add a new shortcut by typing "math-insert \bullet"
> and passing a shortcut to it
>
> I would like to know if it is possible to add shortcuts to normal
> symbols in text, like "\textbullet" which i am able to add through the
> UI with mouse.
> I tryed to type "insert \textbullet" and few others, but it said
> "wrong LyX function".
> Do you know what i need to type?

Try self-insert. But you will have to do something special with the
backslash, I think?

See Help> LyX Functions for a list of all the options.

Riki




Shortcuts for symbols in text

2018-07-21 Thread Tank Panzer
In LyX one can cunfigure the shortcuts and even add new ones under
preferences.
Like I was able to add a new shortcut by typing "math-insert \bullet" and
passing a shortcut to it

I would like to know if it is possible to add shortcuts to normal symbols
in text, like "\textbullet" which i am able to add through the UI with
mouse.
I tryed to type "insert \textbullet" and few others, but it said "wrong LyX
function".
Do you know what i need to type?