Closed ronaldtse closed 3 months ago
<note id="_" type="units">
currently supported in PDF for the figures only. I don't know why I've missed for tables... Will fix it.
XSLT updated (not merged yet) for table's units notes rendering:
But strange indents occur at right edge:
Presentation XML:
<note id="_13cdc74f-6506-2104-fb72-c57410649328" type="units"><p id="_1ed82fa5-25b3-d2b8-4911-e6d461c40135">Values in terms of geometrical altitude.<br/>
Valeurs en fonction de l’altitude géométrique.<br/>
Значения величин в функции геометрической высоты.</p>
</note>
XSL-FO:
<fo:block text-align="right">Values in terms of geometrical altitude.

Valeurs en fonction de l’altitude géométrique.

Значения величин в функции геометрической высоты.
</fo:block>
Without line breaks:
<note id="_13cdc74f-6506-2104-fb72-c57410649328" type="units"><p id="_1ed82fa5-25b3-d2b8-4911-e6d461c40135">Values in terms of geometrical altitude.<br/>Valeurs en fonction de l’altitude géométrique.<br/>Значения величин в функции геометрической высоты.</p>
</note>
XSL-FO:
<fo:block text-align="right">Values in terms of geometrical altitude.
Valeurs en fonction de l’altitude géométrique.
Значения величин в функции геометрической высоты.
</fo:block>
PDF renders ok:
Looks like Apache FOP doesn't process correctly the sequence 
+linebreak
. But first line renders correctly...
So I'll remove linebreak immediately after <br/>
via XSLT on fly specially for note[@type = 'units'] (right-aligned text).
@Intelligent2013 Thanks! I also wonder why there’s an empty header row below the units note?
Thanks! I also wonder why there’s an empty header row below the units note?
Presentation XML has only one row with spanned columns in the table header:
<thead><tr><th colspan="8" valign="top" align="right"/></tr></thead>
The first tr
in tbody
contains the table header.
I think the wrong markup in table_header.liquid
:
{{ table_title }}
[cols="{{ row_size }}*^"]
|===
{{ row_size }}+>|
Issues:
headerrows
{{ row_size }}+>|
generates empty thead
with spanned columns.I've manually moved the 1st row from tbody
instead row in the thead
in the XML and PDF renders properly:
ISO XSLT updated. Issue with units statement fixed in PDF.
From metanorma/iso-2533#23
According to ISO DIR 2 29.3:
It doesn't say "how" the "units statement" is rendered but in practice here's an example from ISO 2533/Add 2:1997:
Table first page:
Table continuation:
Right now, the units statement is treated as a normal note only appearing at the bottom of the table, which is not ideal when the reader is looking at a middle page of the table.