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

question: varying cell widths of row (col) headers in modspec autogenerated tables #301

Open
ReesePlews opened this issue Jan 10, 2025 · 4 comments
Labels
question Further information is requested

Comments

@ReesePlews
Copy link
Contributor

in the autogenerated modspace tables of the Plateau project doc2 (sources/002-v5) i am seeing some varying widths of the row (or column) headers on the autogenerated modspec tables (shown here)

( sources\002-v5\sections\appendix-B\section-03.adoc )
image

( sources\002-v5\sections\appendix-K\section-01.adoc )
image

what would be the cause of this issue and where could be set the col width for these headers?

here is an example where there is no difference
( sources\002-v5\sections\appendix-N\section-02.adoc )
image

local compile using

  • metanorma-cli (1.11.4)
  • metanorma-plateau (0.1.14)
  • mn-requirements (0.4.3)
@ReesePlews ReesePlews added the question Further information is requested label Jan 10, 2025
@ronaldtse
Copy link
Contributor

I believe modspec tables do not have set column widths. This may be an artifact of the recent refactoring of presentation XML by @opoudjis.

Pinging @Intelligent2013 here for any ideas. Thanks!

@ReesePlews
Copy link
Contributor Author

ReesePlews commented Jan 10, 2025

thanks @ronaldtse it is not a new issue this has been visible for a while, it is also not a change, just something that seems to be that way from the original encoding... so probably not a refactor related, but that is only my user perspective and i am not checking archive builds from v4. appreciate the checking.

in the future do you think these table templates could be liquid templates (they may be already) decoupled from the mn-requirements base code, so that they could be modified independently for use in each document?

@ronaldtse
Copy link
Contributor

The column balancing algorithm is already identical to HTML 4's, so a consistent width for all auto-width tables is not possible at this moment (browsers with these tables likely also display inconsistency due to the different text contained in the columns).

We could make the modspec templates customizable in the same way with liquid templates. We will need to investigate how best to do that (we will make to_liquid available in lutaml-model, which mn-requirements is based on).

@ReesePlews
Copy link
Contributor Author

thank you @ronaldtse. you mention HTML 4 (and i dont really know much about that) but the images above are from the PDF. perhaps you mean there is some column balancing algorithm in HTML for that you are using here in mn.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants