Closed nmtoken closed 4 days ago
2021-07-01: Change them all to the smaller font, single spaced. If possible, suppress the box that appears around each line.
Set them all to use
<code>
<pre>
</pre>
</code>
With <style>pre {line-height:1; tab-size:2}</style>
(accepting that Firefox doesn't recognize tab-size - so will default to 8 character width tab stops).
Also delete the <br>
from inside <pre>
sections, that had been giving double line spacing in Figure 21. And switch from multiple characters to tabs inside the pre.
I'll also fix the duplication of the text & figures from "Figure 2" to the end of that section.
Included obvious work around for lack of Firefox support - extend the style string with -moz-tab-size:2
having the 'code' inside the 'pre' seems a bit better. And needed to be careful of any white space inside either....
Turns out this page also suffered from #2, so fixed those links as well.
Reduced separation between lines in the 'contents' at the start (replaced HTML p with br/) & introduced the 'spacer' needed above each link target to cope with AGI's new 'fat banner': .spacer{padding-bottom:80px}
Also remove the totally incorrect rel="alternate"
attribute from these 'contents' hyperlinks
I also now have a "clean" HTML version, which may suit them (& us in future) better.
I think it shouldn't be closed until it is live
As at October 2023, after migration to publishing by GitHub / Ascii Doc, the examples are all now consistently styled. The pull request simply removes a number of blank lines within quite a few examples to reduce the white space in this document (my view: the XML lines are quite spread out!).
Looking at the guidance (https://www.agi.org.uk/gemini/40-gemini/1048-uk-gemini-encoding-guidance/) you can see that the code examples have different fonts/styles, for example Figure 23 is using 17px, Consolas whereas Figure 22b is using 23px font.
Looking at source there is a difference in the HTML, but not sure how this has come about.
v.s.
Can we have just one style (preferably the smaller font)