Discussion:
How to insert a slashed o?
stefano franchi
2014-06-08 20:34:57 UTC
Permalink
Does anyone know LyX has function similar to the various insert-accent
functions, that would insert the Danish "slashed o"? I am trying to write
Kierkegaard's name without resorting to LaTeX codes. The function should
insert
U+00F8 Þ latin small letter o with stroke

Stefano
--
__________________________________________________
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies Ph: +1 (979) 845-2125
Texas A&M University Fax: +1 (979) 845-6421
College Station, Texas, USA

***@tamu.edu
http://stefano.cleinias.org
Richard Heck
2014-06-08 20:55:10 UTC
Permalink
Post by stefano franchi
Does anyone know LyX has function similar to the various insert-accent
functions, that would insert the Danish "slashed o"? I am trying to
write Kierkegaard's name without resorting to LaTeX codes. The
function should insert
U+00F8 Þ latin small letter o with stroke
The easy way it to cut and paste it into the document. You can slso use
"unicode-insert 00F8" from the minibuffer.

Richard
stefano franchi
2014-06-08 21:01:14 UTC
Permalink
Post by stefano franchi
Does anyone know LyX has function similar to the various insert-accent
functions, that would insert the Danish "slashed o"? I am trying to write
Kierkegaard's name without resorting to LaTeX codes. The function should
insert
U+00F8 Þ latin small letter o with stroke
The easy way it to cut and paste it into the document. You can slso use
"unicode-insert 00F8" from the minibuffer.
Thanks Richard, that's what I did, eventually (cutting and pasting). I was
just hoping there'd be a function I could bind to a shortcut, but
apparently not.

Cheers,

S.
--
__________________________________________________
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies Ph: +1 (979) 845-2125
Texas A&M University Fax: +1 (979) 845-6421
College Station, Texas, USA

***@tamu.edu
http://stefano.cleinias.org
Richard Heck
2014-06-08 21:30:58 UTC
Permalink
Post by Richard Heck
Post by stefano franchi
Does anyone know LyX has function similar to the various
insert-accent functions, that would insert the Danish "slashed
o"? I am trying to write Kierkegaard's name without resorting to
LaTeX codes. The function should insert
U+00F8 Þ latin small letter o with stroke
The easy way it to cut and paste it into the document. You can
slso use "unicode-insert 00F8" from the minibuffer.
Thanks Richard, that's what I did, eventually (cutting and pasting). I
was just hoping there'd be a function I could bind to a shortcut, but
apparently not.
Yes, you can bind "unicode-insert 00F8".

rh
stefano franchi
2014-06-08 21:36:39 UTC
Permalink
Post by stefano franchi
Post by stefano franchi
Does anyone know LyX has function similar to the various insert-accent
functions, that would insert the Danish "slashed o"? I am trying to write
Kierkegaard's name without resorting to LaTeX codes. The function should
insert
U+00F8 Þ latin small letter o with stroke
The easy way it to cut and paste it into the document. You can slso use
"unicode-insert 00F8" from the minibuffer.
Thanks Richard, that's what I did, eventually (cutting and pasting). I
was just hoping there'd be a function I could bind to a shortcut, but
apparently not.
Yes, you can bind "unicode-insert 00F8".
Ah, of course, silly me. Thanks.


Now, suppose instead I want to add a LFUN to take care of inserting the
slashed o.
(I won't, just trying to understand a bit better how keyboard input is
managed in this case)
I would add the proper constant in FuncCode.h and its proper line and
documentation in LyXAction.cpp. But where does managing the insertion go? I
grepped the accent-acute etcetera functions, but cannot find any place in
the codebase where the insertion actually take place.

S.
--
__________________________________________________
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies Ph: +1 (979) 845-2125
Texas A&M University Fax: +1 (979) 845-6421
College Station, Texas, USA

***@tamu.edu
http://stefano.cleinias.org
Richard Heck
2014-06-08 22:05:05 UTC
Permalink
Post by stefano franchi
Now, suppose instead I want to add a LFUN to take care of inserting
the slashed o.
(I won't, just trying to understand a bit better how keyboard input is
managed in this case)
I would add the proper constant in FuncCode.h and its proper line and
documentation in LyXAction.cpp. But where does managing the insertion
go? I grepped the accent-acute etcetera functions, but cannot find
any place in the codebase where the insertion actually take place.
The lowercase LFUNs are user-friendly versions. They are converted to
elements of an enum for handling within the code itself, in this case,
LFUN_ACCENT_ACUTE. So that's what you really need to search for. It gets
handled within Text3.cpp. The way it works is that the LFUN itself
mimics a deadkey (this is the call to handleKeyFunc), and then
translateAndInsert does the actual insertion.

Richard
Jean-Marc Lasgouttes
2014-06-10 08:40:16 UTC
Permalink
Post by stefano franchi
Thanks Richard, that's what I did, eventually (cutting and pasting). I
was just hoping there'd be a function I could bind to a shortcut, but
apparently not.
Try "unicode-insert 0x00F8".

JMarc

Loading...