Skip to content

Merge main (v1.4.0) into Asciidoctor work - #33

Open
MarkCallow wants to merge 16 commits into
adocfrom
v4.adoc
Open

MarkCallow wants to merge 16 commits into
adocfrom
v4.adoc

Conversation

@MarkCallow

@MarkCallow MarkCallow commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

Also

  • Tweak Makefile to add config/attribs.adoc and
    config/dataformat/docinfo-header.html as dependencies of dataformat.
  • Update all "non-linear" to "nonlinear" matching Vulkan.
  • Add "c" type to source block headers, where appropriate, to get
    syntax highlighting.
  • Add revision history
  • Formatting tweaks
    • Increase content width
    • Mark example DFD tables with id .exampledfd so css can be applied. Reduce margins and text size of these tables.
    • Attempt to improve Data Format Descriptor diagram.

@fluppeteer please compare the example DFDs in chapter 11 with those in the preceding DFD chapters and let me know how you'd like to see these tables rendered. Also I added the revision history, rewritten as .adoc at the end of the document. Do you prefer it at the beginning as you have in the current release version.

To Do

  • Remove stripes from the borderless tables that are used simply to place equations. Requires understanding why [stripes="none"] in a relevant table's attribute list does not prevent the striping. khronos.css?
  • Fix "Table 2. Data format descriptor and descriptor blocks " whose embedded table fails to fill the cell in the including table thus looking bad.
  • Fix image sizing. All images are included like
    image::{images}/565pixels.svg[width="{svgpdf@pdf:400pt:800}",align="center"]
    Even if the {svgpdf} attribute is set by the Makefile to .svg when builiding the HTML version, no width is set and images appear at their default size, which is very small in many cases, for example Figures 2, 3 and 4. Other images have a default size that is the same as the size the image include directive is setting, e.g. Figure 1. This style of attribute reference does not appear in the Asciidoctor documentation (at least I couldn't find it). Given what I have observed, it looks like it is not supported. Not sure what to do to make sure SVG and PDF have decent sizes. Anyone familiar how to do something like this in Asciidoctor? Changing to a simple width="nnn" works but then the sizes will only be correct for one backend. EDIT: I have found out how to do this: e.g.,[width="800",pdfwidth="400pt"]. Now I have to figure out the right RE to make the changes in vim.
  • Fix missing equations in primaries.adoc. This is using svgpdf to detect if output is svg or pdf and setting equations differently. Since the attribute is not defined Asciidoctor removes everything in the if.

Also

* Tweak Makefile to add config/attribs.adoc and
  config/dataformat/docinfo-header.html as dependencies of dataformat.
* Update all "non-linear" to "nonlinear" matching Vulkan.
* Add "c" type to source block headers, where appropriate, to get
  syntax highlighting.
Add CSS to tweak style of these tables.
Needs further work. Nested table is not filling the cell in the containing table.
@CLAassistant

CLAassistant commented Nov 21, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@MarkCallow

Copy link
Copy Markdown
Collaborator Author

I'll look into the build failures next week, probably Tuesday. I have been using the Docker image to build locally and it builds without any issues.

@MarkCallow MarkCallow changed the title Merge main (v1.4.0) Merge main (v1.4.0) into Asciidoctor work Nov 21, 2026
@MarkCallow

Copy link
Copy Markdown
Collaborator Author

@fluppeteer, to experiment with the layout of the exampledfd tables just edit the table.exampledfd style in config/dataformat/docinfo-header.html and make html.

@MarkCallow

Copy link
Copy Markdown
Collaborator Author

@oddhack, please look at the CI failure. I see that PR #23 failed too but, as the logs have expired, I can't see if it was the same failure as this. The build is working fine on my machine with the version of the khronos tools docker image fetched last week when I ran scripts/runDocker. I fixed the reuse lint failure.

instead of conditional entity.
@MarkCallow

Copy link
Copy Markdown
Collaborator Author

Regarding the missing equations in primaries.adoc, the only difference I see between the HTML and PDF variants is

- \left(\begin{array}{ccc}
+ \left(\begin{array}{r@{}lr@{}lr@{}l}

which is apparently related to specifying column alignment for the matrix. Katex reports 'Unknown column alignment: @' when encountering the PDF version. Using {ccc} I cannot see any difference between the renderings in HTML and PDF so I will remove all the ifevals and the PDF variant of the equation.

The missing equations had pdf and html variants but as attribute used
in the `ifeval` conditional was undefined AsciiDoctor removed both
parts of the conditional. This commit removes the pdf variants and
the conditional as the single version renders fine in the PDF output.
@MarkCallow

Copy link
Copy Markdown
Collaborator Author

Regarding the directives for page breaks in the PDF, since the formatting is quite different compared to when they were originally inserted, they make no sense where they are appearing now. I propose to remove them and let the formatter decide page breaks. I think this will give a better result than right now and since we are deprecating the PDF output, it will not be an issue if some of the breaks are in less than ideal places. @fluppeteer what do you think?

@MarkCallow

Copy link
Copy Markdown
Collaborator Author

make html works in the CI. It is the PDF build that is failing. @oddhack, please provide some clues as to why it works on my computer using the same docker image but fails on the action runners.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants