Juergen Spitzmueller schrieb:
I think it is a bit problematic to mix semantic markup (character styles,
emphasize, noun) with logical markup (bold, uppercase). I know it never has
been separated properly, but I think this is wehre we should aim at.
I am fully aware of this issue. However, are you willing to accept my
proposal as an interim solution? Users do want to emphasize text or make
it bold. We already have bug reports complaining that this feature is
missing in 1.4.X.
Enclosed please find an extended patch that also moves math font changes
to the "edit" menu (where they belong to IMHO). Right now, these
functions are activated even in non-math mode. I will fix it if the
patch is accepted.
Michael
Index: stdmenus.ui
===================================================================
--- stdmenus.ui (revision 14948)
+++ stdmenus.ui (working copy)
@@ -89,14 +89,10 @@
Separator
Item "Find & Replace...|F" "dialog-show findreplace"
Separator
- Item "Word in Small Capitals" "word-capitalize"
- Item "Word in Uppercase" "word-upcase"
- Item "Word in Lowercase" "word-lowcase"
- Separator
Item "Move Paragraph Up|o" "paragraph-move-up"
Item "Move Paragraph Down|v" "paragraph-move-down"
Separator
- Item "Text Style...|S" "dialog-show character"
+ Submenu "Character Style|C" "edit_charstyles"
Item "Paragraph Settings...|P" "layout-paragraph"
Separator
# Mathed b0rkage means these don't work properly
@@ -136,6 +132,20 @@
PasteRecent
End
+ Menu "edit_charstyles"
+ CharStyles
+ Separator
+ Item "Emphasize Style|E" "font-emph"
+ Item "Noun Style|N" "font-noun"
+ Item "Bold Series|B" "font-bold"
+ Separator
+ Item "Other...|O" "dialog-show character"
+ Separator
+ Item "Uppercase|U" "word-upcase"
+ Item "Lowercase|L" "word-lowcase"
+ Item "Capitalize Word|C" "word-capitalize"
+ End
+
# not much we can do to help here
Menu "edit_tabular"
Item "Multicolumn|M" "tabular-feature multicolumn"
@@ -174,6 +184,8 @@
Separator
Submenu "Change Formula Type|F" "edit_math_mutate"
Separator
+ Submenu "Change Font|o" "edit_math_font"
+ Separator
Submenu "Use Computer Algebra System|S" "edit_math_extern"
Separator
Item "Split Cell|C" "cell-split"
@@ -195,6 +207,31 @@
Item "Inline|I" "math-limits nolimits"
End
+ Menu "edit_math_font"
+ Item "Math Normal Font" "math-insert \mathnormal"
+ Separator
+ Item "Math Calligraphic Family" "math-insert \mathcal"
+ Item "Math Fraktur Family" "math-insert \mathfrak"
+ Item "Math Roman Family" "math-insert \mathrm"
+ Item "Math Sans Serif Family" "math-insert \mathsf"
+ Separator
+ Item "Math Bold Series" "math-insert \mathbf"
+ Separator
+ Item "Text Normal Font" "math-insert \textnormal"
+ Separator
+ Item "Text Roman Family" "math-insert \textrm"
+ Item "Text Sans Serif Family" "math-insert \textsf"
+ Item "Text Typewriter Family" "math-insert \texttt"
+ Separator
+ Item "Text Bold Series" "math-insert \textbf"
+ Item "Text Medium Series" "math-insert \textmd"
+ Separator
+ Item "Text Italic Shape" "math-insert \textit"
+ Item "Text Small Caps Shape" "math-insert \textsc"
+ Item "Text Slanted Shape" "math-insert \textsl"
+ Item "Text Upright Shape" "math-insert \textup"
+ End
+
Menu "edit_math_extern"
Item "Octave" "math-extern octave"
Item "Maxima" "math-extern maxima"
@@ -253,7 +290,6 @@
# YUCK
Submenu "Note|N" "insert_note"
OptSubmenu "Branch|B" "insert_branches"
- OptSubmenu "Character Style|y" "insert_charstyles"
Submenu "File|e" "insert_file"
Item "Box" "box-insert Frameless"
Separator
@@ -316,35 +352,9 @@
Item "Gathered Environment" "math-insert \gathered"
Item "Split Environment|S" "command-sequence math-insert
\split; tabular-feature append-column"
Separator
- Submenu "Font Change|o" "insert_math_font"
Item "Math Panel|P" "dialog-show mathpanel"
End
- Menu "insert_math_font"
- Item "Math Normal Font" "math-insert \mathnormal"
- Separator
- Item "Math Calligraphic Family" "math-insert \mathcal"
- Item "Math Fraktur Family" "math-insert \mathfrak"
- Item "Math Roman Family" "math-insert \mathrm"
- Item "Math Sans Serif Family" "math-insert \mathsf"
- Separator
- Item "Math Bold Series" "math-insert \mathbf"
- Separator
- Item "Text Normal Font" "math-insert \textnormal"
- Separator
- Item "Text Roman Family" "math-insert \textrm"
- Item "Text Sans Serif Family" "math-insert \textsf"
- Item "Text Typewriter Family" "math-insert \texttt"
- Separator
- Item "Text Bold Series" "math-insert \textbf"
- Item "Text Medium Series" "math-insert \textmd"
- Separator
- Item "Text Italic Shape" "math-insert \textit"
- Item "Text Small Caps Shape" "math-insert \textsc"
- Item "Text Slanted Shape" "math-insert \textsl"
- Item "Text Upright Shape" "math-insert \textup"
- End
-
Menu "insert_float"
FloatInsert
# This has got to be better than "Wrap", anyway
@@ -377,10 +387,6 @@
Branches
End
- Menu "insert_charstyles"
- CharStyles
- End
-
#
# DOCUMENT MENU
#