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

Consistent numbered list label styling across all BIPM deliverables: SI Brochure, MEP, etc #47

Closed
ronaldtse opened this issue Oct 27, 2020 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@ronaldtse
Copy link
Contributor

ronaldtse commented Oct 27, 2020

From Michael Stock of BIPM:

Ok, use numbers also for the lists in the mises en pratique. We need then to check if there are any references to the list items which need to be modified, too.

Consistent styling for numbered list labels across BIPM documents (this doesn't apply to quoted/historic texts):

First-level: "1."
Second-level: "a)"
Third-level: what's the typical style we use?

Warning

We should not change the type of lists in such texts which are originally printed as part of other documents (CIPM reports, Metrologia publications). Otherwise we would have different types of lists in different publications of the same text. We should therefore not replace the letters in such historic texts with numbers.

Rationale

This is in accordance with the following styling:
image006

In the SI Brochure, the numbered lists adopted the format of “1., 2., 3.…”, at the first level, e.g.:
image002

This is also reflected in most resolutions, e.g.:
image004

@ronaldtse ronaldtse added the enhancement New feature or request label Oct 27, 2020
@ronaldtse ronaldtse added this to Needs triage in Nick Nicholas via automation Oct 27, 2020
@ronaldtse ronaldtse added this to To do in Alexander Dyuzhev via automation Oct 27, 2020
@ronaldtse ronaldtse moved this from Needs triage to High priority in Nick Nicholas Oct 27, 2020
@opoudjis opoudjis moved this from High priority to Current in Nick Nicholas Oct 27, 2020
Intelligent2013 added a commit to metanorma/mn-native-pdf that referenced this issue Oct 27, 2020
@Intelligent2013
Copy link
Contributor

For info, in XSLT I use the attribute @type to set these formats independent of list-level:

  • arabic - 1.
  • alphabet - a)
  • alphabet_upper - A.
  • roman - (i)
  • roman_upper - I.

@opoudjis
Copy link
Contributor

Which means you're OK now @Intelligent2013

All that remains is for me to implement these in HTML CSS.

@opoudjis
Copy link
Contributor

As metanorma/metanorma-standoc#349 found, putting parentheses into lists in HTML forces the use of a CSS counter, and using start values on top of those CSS counters forces the use of either Javascript or else extensive use of inline styling. I'm implementing this with the latter, but only one level of nesting deep.

@opoudjis
Copy link
Contributor

Ambushed by case insensitivity of CSS type (!): CSS selector [type = "a"] matches [type = "A"]. The flag [type = "a" s] for case sensitivity is unsupported by SACC. https://stackoverflow.com/questions/53099708/css-attribute-selector-and-case-sensitivity-with-the-type-attribute-vs-made-u Having to use added class as workaround.

Nick Nicholas automation moved this from Current to Closed Oct 27, 2020
Alexander Dyuzhev automation moved this from To do to Done Oct 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Nick Nicholas
  
Closed
Development

No branches or pull requests

3 participants