Re: Why does <menuchoice> support multiple <guimenuitem> elements?
David O'Brien <[email protected]> Wed, 22 Jul 2020 09:51:07 +1000
| Newsgroups | gmane.text.docbook.misc |
|---|---|
| Message-ID | <[email protected]> |
On 7/22/20 3:45 AM, Peter Flynn wrote: > > On 21/07/2020 08:57, David O'Brien wrote: >> I have a question about the following: >> >> GUIMenuItem identifies a terminal selection from a menu in a >> graphical user interface. In particular, this is distinct from a menu >> (GUIMenu) and a submenu (GUISubmenu). The distinction between a >> GUIMenuItem and a GUISubmenu is simply whether or not the selection >> is terminal or leads to an additional submenu.* >> >> *https://tdg.docbook.org/tdg/4.5/guimenuitem.html >> >> If a GUIMenuItem is terminal, shouldn't there be only one? Our >> writers regularly include >1 inside <menuchoice> but we don't get any >> validation errors. What did I miss? > > What would concern me more is why the authors are including more than one item. Perhaps they believe > that GUIMenuItem is for representing all the items available n the menu at a certain level, and they > may therefore be puzzled as to why there isn't an option to say "here are the items you will see > displayed — just click the one saying 'Blort'" > > Peter > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > We can constrain the DocBook more with hooks (we use pre-commit a lot) but I guess I was mostly curious about why it was allowed in the first place. As far as authors go, I think it's a combination of not understanding DocBook and for some UIs it can be hard to tell where GUIMenu|SubMenu, etc., end and GUILabel begins. In this particular case they were referring to tabs in the OpenStack web UI, some of which contain "subtabs." Thanks for the input. -- David "Unix never says please." ~ Rob Pike
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEt8foe2pCEdZ4nsfrK9JZN+ky1n8FAl8Xf2sACgkQK9JZN+ky 1n/eCRAAqBkS+NRPLvUnI/Ub8xsCwONZoZQZIJ3cl5qWwuVk/wyOdFctkBToK3tj ceGxBHqzWQwIuHqNvadN2y7rD/yF0p2OUn3MTI71yWCivajy3bhdXZi5PZ5jMklY 6y+hIv+Jb6P7oEgkHXXDQ/gNIPpO2wlzeM/yiQvbKTJ3WirTeBYQ3NBWSUE1imRb kNMUcBCxn4SOg1BqhVYUfkQNv7WKn31w7AJG6W6cHOvFF+73j+kExG+N/+puosz7 S8AVKlJugN9Z2ppHhARIiw0pPja5/3HeKZSZh76q1s0N8iR2NAH8bT0F+iASbrjL UQW/cb+l0WCg54flc9sfBEGNSSRxxfGkj+zt9uHQff0GL/EJ3wYrH2dXJlSR8HXF jnuHt2OWLiaSPffiJtQmRGV8pnuy5UsNSIR3wnTRZptFFbkdpuQT0zMjA2EN4bZT l93adA0COOSmcrm+HPan8NGLJRvz2JeroeOKkYS5pwIxLe+yBIaLMY/1z6v8byYk WJPBlR/km4Ux2Lx0B8fIO+fMfGaOlqw47Fmxcvat9YdL4Nnhpx22uXRDFOzhhVZM jZvqJbWFHfrRoea17DbPbPCwH96p1ZBFDowm6VwY9R0cU/Xu/wRwrOzBkDO18aRE 8DyYaM0+4G3SqVFcMJ5EJgriQ0raiu9klyjH85zK+Uhh6Z37nfU= =ok0+ -----END PGP SIGNATURE-----