Hello there,
with the current docbook.css, the rendering of the <shortcut> tag in a
<menuchoice> is not very nice, for example look at the following
fragment in XXE:
<?xml version="1.0" encoding="UTF-8" ?>
<section>
<para>
<menuchoice>
<shortcut>
<keysym>C-N</keysym>
</shortcut>
<guimenu>Datei</guimenu>
<guimenuitem>Neu</guimenuitem>
</menuchoice>
</para>
</section>
The opening "(" of the shortcut is not rendered because the
menuchoice > *:first-child:before
statement in docbook.css overrides this.
I am no css-expert, but I tried to come up with something more
reasonable (just IMHO), the following patch to docbook.css changes the
menuchoice rendering a bit, the shortcut always gets the parenthesis,
guimenu element never have a ">>" before and guisubmenu and guimenuitem
have no ">>" if they are the first child of the menuchoice.
Cheers
Bernd
*** c:/tmp/docbook.css- Thu Dec 19 16:50:18 2002
--- c:/tmp/docbook.css Thu Dec 19 16:50:18 2002
***************
*** 792,799 ****
display: table-cell;
}
! menuchoice > *:first-child:before {
content: "";
}
menuchoice > *:before {
--- 792,814 ----
display: table-cell;
}
! menuchoice > guimenu:before {
content: "";
+ }
+
+ menuchoice > guisubmenu:first-child:before {
+ content: "";
+ }
+
+ menuchoice > guimenuitem:first-child:before {
+ content: "";
+ }
+
+ menuchoice > shortcut:before {
+ content: "(";
+ }
+ menuchoice > shortcut:after {
+ content: ") ";
}
menuchoice > *:before {