Closed bertfrees closed 1 year ago
To save me some time: what's a script that has descriptions (short + long) for options?
An example is the "Footnotes placement" option of DTBook to braille:
/ws/datatypes/px:dtbook-to-pef.script-notes-placement
gives the following:
<choice>
<value>bottom-of-page</value>
<documentation xml:lang="en" xml:space="preserve">At the bottom of the page
Notes are rendered in the [`@footnotes`](http://braillespecs.github.io/braille-css/#the-footnotes-area)
area of the page on which they occur.
...
</documentation>
...
</choice>
The drop-down list would only contain "At the bottom of the page". The long description is the whole thing, the short description plus everything else.
Note the xml:space="preserve"
. I think you can assume that it is always there.
In a drop-down list, when a description is available for an option value it should be used in the list instead of the actual value.
Note that the description can consist of multiple lines, with the first line being the short description. Obviously we can only use the short description in the list.