-
Notifications
You must be signed in to change notification settings - Fork 3
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
Colon missing from NOTE when rendered as HTML #472
Comments
@Intelligent2013 I'm going to do this right after release, adding I'm assuming in all of this that we universally put space or tab between /{block}/name and /{block}/{text}, and that punctuation like |
@opoudjis this seems to be a purely HTML output presentation issue. I don’t understand why the Presentation XML is affected. |
Currently, XSLT puts these characters after
@opoudjis would you like to put |
@ronaldtse This is why; we've allowed Pdf and Html to diverge, and they should not. Yes, @Intelligent2013 , I'd like the delimiter to be in the Presentation XML. |
Completely disagree. PDF and HTML are different types of media. |
After a lot of debate, we'll realise the delimiters between labels and contents as XSLT stylesheets that will be included in the Presentation XML header, and that can be specific to an output type. This needs to be extended to the delimiters between biblio-tag and reference that are currently included within biblio-tag. So labels (/name, /biblio-tag) are considered Presentation XML content, but delimiters between them and following content are considered Presentation XML styling ,and shall be kept separate from Presentation XML content. |
This is going to be the initial test case for this mode of Presentation XML. I'm going to also be migrating rendering-specific content from /misc-container to /render /render will have children /render/preprocess-xslt, which will contain raw XSLT to be applied to the current document. /preprocess-xslt will have a comma-delimited "format" attribute; if it is not set, it is applied to all formats, and if it is set, it is applied to the given format, with legal values (for now) So this issue will be resolved with the following, and because it does not have
which is equivalent to your
I see you have a generic and parameterised piece of XSLT that does this already:
In the case of OGC, you don't include a sfx parameter, so NOTE as ":" appended. In ITU, you have So what I am doing is grabbing that piece of XSLT, and applying it preemptively to my output, and also asking you to apply it to yours. My question now is, are there any circumstances when you are populating that sfx parameter, that I need to be aware of? |
I will need to add
to my XSLT run, so that the Presentation XML passes through. I am leaving it out of the Presentation XML inclusion, so you pick only the rendering rules as a priority. |
@Intelligent2013 This is the trial version including XSLT preprocessing. Please confirm that you can use it. |
Extending this "refactoring" to the whole of Metanorma is a big task, and one I encourage you to delegate the task to another developer. |
@opoudjis Confirm, I can use it. |
@opoudjis no, the |
OK I am going to close this ticket once you have confirmed this as done, @Intelligent2013. I am writing a separate ticket to roll this out across all flavours and all block types, but it will have to wait, since it will take a long time to implement, and I have more urgent tasks. |
The generated HTML documents do not include colons when rendering notes. See attached screenshot.
This confuses readers. The word "NOTE" should immediately be followed by a colon ":" .
The text was updated successfully, but these errors were encountered: