Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support numbered lists in tables split into separate rows #971

Open
ronaldtse opened this issue Apr 4, 2023 · 1 comment
Open

Support numbered lists in tables split into separate rows #971

ronaldtse opened this issue Apr 4, 2023 · 1 comment
Assignees

Comments

@ronaldtse
Copy link
Contributor

ronaldtse commented Apr 4, 2023

In BSI we encountered numbered list items split into separate rows. The understanding back then is that such practice is ad-hoccery and does not require a semantic encoding.

However, this is now officially an ISO sanctioned practice:
https://www.iso.org/ISO-house-style.html

Screenshot 2023-04-05 at 8 27 57 AM

I wonder if there is something semantic we can do about it.

BSI issue:

@opoudjis
Copy link
Contributor

opoudjis commented Jun 7, 2023

This is dirty: it is a table, with two distinct table headings, but it is also a list.

If it is underlyingly a list, it is a list with two different labels for two different hierarchical levels. We do already allow lists to have titles; we could allow the nested first list to have a label too, and then have it carry over implicitly. So:

.Targets for productive capacity (area A)
. increased value addition in natural resource-based industries
+
--
.Indicator
** industry, value added (constant 2000 USD)
--

which parses, right now, as:

<ol id="_b56b9ef3-4961-b505-1aad-8ebe735adabc" type="arabic">
<name>Targets for productive capacity (area A)</name>
<li><p id="_c2237243-bbab-d5a6-0b62-1bfb6a295a80">increased value addition in natural resource-based industries</p>
<ul id="_268ddabd-c682-060e-9141-9391c1ebd3f8">
<name>Indicator</name>
<li><p id="_79a89c53-721d-2620-3e78-cac8ad59d716">industry, value added (constant 2000 USD)</p>
</li>
</ul>
</li>
</ol>

I could take a render=table attribute, look for the titles in the two nested columns, and read the desired ordered list labels from Presentation XML (I've just added them there as li/@label attributes.) So yes, it is (now) doable. I don't consider this high priority though...

@github-project-automation github-project-automation bot moved this to 🆕 New in Metanorma Jun 8, 2023
@ronaldtse ronaldtse moved this from 🆕 New to 🏔 High priority in Metanorma Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🏔 High priority
Development

No branches or pull requests

2 participants