DocBook: implement CALS tables

Thibaut Cuvelier tcuvelier at lyx.org
Mon Jul 13 01:41:56 UTC 2020


Dear list,

Here is a patch to improve DocBook support by allowing the user to choose
the way they want tables to be output (i.e. either HTML or CALS, right
now). This amounts to including a switch in the GUI (did I do this right?
the diff for the .ui file is quite large for what it does) and, depending
on the value, output in HTML or CALS.

I preferred to use an enum and a dropdown for this parameter, as using a
simple checkbox would seem to be awkward (it's a choice between two
mutually exclusive options — you *have to* pick one —, it's not something
you enable or not).

Apart from the UI part, I feel rather unsure about the implementation of
row separators: I don't really understand the LaTeX code that outputs
\toprule, \midrule, \bottomrule, or \hline… It sits in Tabular::TeXTopHLine
and Tabular::TeXBottomHLine. Or can I just copy-paste the code that sets
nset, have_trims, and the others, and have the same logic? (It just looks
too cumbersome…)

Thanks!
Thibaut
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200713/9499a3fa/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-support-for-CALS-tables-in-DocBook.patch
Type: application/octet-stream
Size: 20038 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200713/9499a3fa/attachment-0001.obj>


More information about the lyx-devel mailing list