Frank Grimm wrote:
I tried the following command sequence
command-sequence font-ital; self-insert i.e.; font-ital
where I replaced font-emph in your suggestion with font-ital since I
don't want the i.e. the be emphasized, but just in italic shape. But
when I use the shortcut for this command LyX tells me that the command
is disabled. Are there any restrictions for the font-ital command that
the font-emph command doesn't have?
Apparently, yes. This seems like a bug. In fact, from what I can tell,
font-ital never does anything in the current code.
I'll forward this to the devel list.
Any reason not to apply something like the attached? Or was the plan to
get rid of font-ital?
rh
Index: Text3.cpp
===================================================================
--- Text3.cpp (revision 27700)
+++ Text3.cpp (working copy)
@@ -1582,6 +1582,13 @@
break;
}
+ case LFUN_FONT_ITAL: {
+ Font font(ignore_font, ignore_language);
+ font.fontInfo().setShape(ITALIC_SHAPE);
+ toggleAndShow(cur, this, font);
+ break;
+ }
+
case LFUN_FONT_BOLD:
case LFUN_FONT_BOLDSYMBOL: {
Font font(ignore_font, ignore_language);
@@ -2104,6 +2111,10 @@
flag.setOnOff(fontinfo.emph() == FONT_ON);
break;
+ case LFUN_FONT_ITAL:
+ flag.setOnOff(fontinfo.shape() == ITALIC_SHAPE);
+ break;
+
case LFUN_FONT_NOUN:
flag.setOnOff(fontinfo.noun() == FONT_ON);
break;