diff --git a/ecma-style/cover.odt b/ecma-style/cover.odt new file mode 100644 index 0000000..5a598ac Binary files /dev/null and b/ecma-style/cover.odt differ diff --git a/ecma-style/ecma.css b/ecma-style/ecma.css new file mode 100644 index 0000000..a907d93 --- /dev/null +++ b/ecma-style/ecma.css @@ -0,0 +1,54 @@ +.head, .toc-nav, .self-link { + display: none; +} + +#toc span { + margin-top: 0 !important; +} + +#toc { + break-after: page; +} + + +#pdf-title, +#copyright, +/* #copyright-before, */ +#copyright-after { + display: block !important; +} + +#copyright { + border: 2px solid black; + padding: 10px; + break-before: page; + break-after: page; + + * { + line-height: 1; + } +} + +#copyright-before, #copyright-after { + break-before: page; + break-after: page; +} + + +#contents { + margin-top: 0; +} + +dt, h1, h2, h3, h4, h5, h6 { + break-after: avoid; +} + +#print-title, #license, #index { + break-before: page; +} + +@page { + margin-top: 4cm; + margin-bottom: 2.5cm; + size: A4 portrait; +} \ No newline at end of file diff --git a/ecma-style/headers-and-footers-numbers.pdf b/ecma-style/headers-and-footers-numbers.pdf new file mode 100644 index 0000000..bcbbd6a Binary files /dev/null and b/ecma-style/headers-and-footers-numbers.pdf differ diff --git a/ecma-style/headers-and-footers-roman.pdf b/ecma-style/headers-and-footers-roman.pdf new file mode 100644 index 0000000..b07c8e4 Binary files /dev/null and b/ecma-style/headers-and-footers-roman.pdf differ diff --git a/ecma-style/instructions.txt b/ecma-style/instructions.txt new file mode 100644 index 0000000..5851c6b --- /dev/null +++ b/ecma-style/instructions.txt @@ -0,0 +1,28 @@ +This document explains how to generate a PDF version of the spec + +1. Open ./cover.odt, adjust the year, and print it as PDF. +2. Add `` to the bikeshed + document. +3. View the print preview of the specification as PDF from a browser + - If needed, add `break-before`/`break-after`/`break-inside` CSS rules to + specific elements to ensure that page breaks are inserted in the right + places. +4. Print as PDF the pages containing the "Table of Contents", "Introduction", + and "copyright notice". Also include the empty page after the copyright. + - Make sure that the copyright notice is on an _odd_ page, by toggling + `display: none` on `#copyright-before`. + - Using https://tools.pdf24.org/en/overlay-pdf, overlay the + ./headers-and-footers-roman.pdf on top of the generated PDF to add + headers and footers. +5. Print as PDF pages from the one containing the "Scope" section to the end + - Using https://tools.pdf24.org/en/overlay-pdf, overlay the + ./headers-and-footers-numbers.pdf on top of the generated PDF to add + headers and footers. +6. Using https://pdfjoiner.com/, merge the 3 PDFs obtained at the previous + steps. + +This has been verified using Firefox. Results with different browsers may vary. + +The files ./headers-and-footers-numbers.pdf and ./headers-and-footers-roman.pdf +have been generated by adding a lot of empty pages in the template for +specifications from the Ecma drive. diff --git a/source-map.bs b/source-map.bs index 76c2fdd..453e337 100644 --- a/source-map.bs +++ b/source-map.bs @@ -21,6 +21,9 @@ Markup Shorthands: markdown yes Group: tc39 + + +