Repository navigation
Conversation
Plus minor Makefile fix for a file whose name changed
Add boilerplate metafiles, asciidoctor config files, scripts, etc. based on Vulkan.
…r-chapter for Antora
latexmath macros, and one excess trailing table cell separator that caused an error.
Remove latexmath-like attribute shorthand from inline (already in attribs.adoc) Remove extra top-level headings that only appeared in PDF Modify anchor names that were invalid XML IDs
{align*} environments around multiple-line expressions in latexmath
blocks.
Use asciidoc attributes instead of HTML entities for special symbols,
which works for both HTML and PDF builds.
Remove some a2xhtml conditionals that are irrelevant, replace some
others (which may be irrelevant) with backend-html5 conditionals.
Use modern quote style everywhere.
Remove lunr module dependency, which is not needed in this repo.
|
One more comment - most of the math errors with the PDF build were due to latexmath blocks where there were multiline expressions (line ending in \ followed by another line) but no surrounding {align*} environment. With that added they stopped causing errors. I don't know if those were actual LaTeX math errors that just happened to work in the older math path, or problems in the new math path. Also, there were some places where \ needed to be added so multiple unrelated expressions did not get rendered on the same line. |
|
It might be a good idea to split this into multiple PRs, like one that just rearranges the files (updating includes/Makefile as appropriate in each commit), one to add asciidoctor support, one to add license metadata, and so on. Especially since it sounds like this currently regresses formatting in many ways, which seems like it would be easier to deal with in smaller steps? |
|
I'll have another look after Jon's input - sorry I missed that, focussing on updates and having alarmingly little time. Honestly I'm becoming inclined to dump the PDF, and if that's the best approach we could do so much better by writing directly in HTML rather than using markdown and reverse-engineering the toolchain... (but that's a future discussion). |
I'm all in favor of dumping PDF support, independent of anything else. I want to do it for Vulkan, as well. That aside, happy to help if you want to proceed down this path but that's your call. |
I'm in favor of dumping PDF as well. You can create a self-contained HTML via Asciidoctor (modulo equation rendering). As for writing directly in HTML, clearly you have forgotten how painful that is. As I have yet to see any description of the formatting issues with Asciidoctor, except a nebulous "some equations don't render correctly" I am unable to judge the necessity of reverse-engineering Asciidoc. Given my own experience with Asciidoctor and the fact that Vulkan uses it successfully while having many and complex equations, my feeling is that the issues are more to do with errors in the latexmath blocks than in Asciidoctor. |
|
@oddhack, I have merged main into this branch. I have a couple of minor things still to do before I will be ready to push my work to this branch. After Andrew's review I will want to open a PR to push this to main. Will that cause any problems for you? I have one question. All the tables are striped. Presumably that is being done by something in |
I'd prefer you stage your merge fixes into another PR targeting this branch, than push them directly into it. But this PR is on hold until @fluppeteer has time to look at it and decides how they want to move forward. If they want to go down this path then it will need to be resolved and merged and your fixes will likely be helpful. Can look at CSS issues if and when this is the agreed direction. |
Done. See PR #33.
Before undertaking this work I discussed with @fluppeteer and he has agreed with my plan to merge this. So please look into how to disable striping on some tables. I do not see anywhere setting the document wide |
asciidoc.py is long obsolete and this gets on a path to incorporate the DF spec into Antora builds and use the current asciidoctor. The changes were pretty extensive and include markup conversions to modern asciidoc syntax, toolchain conversions from the old asciidoc style and converter paths, filename changes (.txt->.adoc) in anticipation of use in Antora, incorporation of repository boilerplate (REUSE etc.) common to many Khronos repos, and more.
The spec build works for both HTML and PDF targets, but there are many instances of a few formatting issues, mostly:
Finally, this is not up to date with the default branch. I did most of this work several years and just tweaked the branch tonight to be able to build PDF successfully, so the 1.4 changes are not included. That's a big delta because there were many changes in the formatting while 1.4 also did significant changes. @fluppeteer we should discuss offline if you try this out and want to proceed down this path. While you can still do a meaningful 'git diff' against main, it is enormous and conflict resolution will take considerable effort - I had originally hoped to get this in before major updates to the default branch occurred.
To build if you do not have the Vulkan spec toolchain already installed: