Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"prebuild-only": "npm run clean && mkdir out && cp -R img out",
"build-only": "npm run build-to -- out/index.html --assets-dir=out",
"build": "npm run build-only -- --lint-spec --strict",
"build-for-pdf": "npm run build -- --old-toc",
"build-for-pdf": "npm run build -- --printable",
"pdf": "npm run build-for-pdf && prince-books --script ./node_modules/ecmarkup/js/print.js out/index.html -o out/ECMA-402.pdf",
"test": "npm run build-to -- /dev/null --lint-spec --strict",
"watch": "npm run build-only -- --lint-spec --watch"
},
Expand Down
4 changes: 2 additions & 2 deletions spec/colophon.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<emu-annex id="sec-colophon">
<emu-annex id="sec-colophon" backmatter>
<h1>Colophon</h1>
<p>This specification is authored on <a href="https://github.com/tc39/ecma402">GitHub</a> in a plaintext source format called <a href="https://github.com/tc39/ecmarkup">Ecmarkup</a>. Ecmarkup is an HTML and Markdown dialect that provides a framework and toolset for authoring ECMAScript specifications in plaintext and processing the specification into a full-featured HTML rendering that follows the editorial conventions for this document. Ecmarkup builds on and integrates a number of other formats and technologies including <a href="https://github.com/rbuckton/grammarkdown">Grammarkdown</a> for defining syntax and <a href="https://github.com/tc39/ecmarkdown">Ecmarkdown</a> for authoring algorithm steps. PDF renderings of this specification are produced using a print stylesheet which takes advantage of the CSS Paged Media specification and is converted using <a href="https://www.princexml.com/">PrinceXML</a>.</p>
<p>This specification is authored on <a href="https://github.com/tc39/ecma402">GitHub</a> in a plaintext source format called <a href="https://github.com/tc39/ecmarkup">Ecmarkup</a>. Ecmarkup is an HTML and Markdown dialect that provides a framework and toolset for authoring Ecma specifications in plaintext and processing the specification into a full-featured HTML rendering that follows the editorial conventions for this document. Ecmarkup builds on and integrates a number of other formats and technologies including <a href="https://github.com/rbuckton/grammarkdown">Grammarkdown</a> for defining syntax and <a href="https://github.com/tc39/ecmarkdown">Ecmarkdown</a> for authoring algorithm steps. PDF renderings of this specification are produced using <a href="https://www.princexml.com/books/">Prince for Books</a>, the book publishing-optimized version of <a href="https://www.princexml.com/">PrinceXML</a>, and this document's print stylesheet.</p>
<p>Prior editions of this specification were authored using Word—the Ecmarkup source text that formed the basis of this edition was produced by converting the ECMAScript 2015 Word document to Ecmarkup using an automated conversion tool.</p>
</emu-annex>
37 changes: 24 additions & 13 deletions spec/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,33 @@
location.protocol = 'https:';
}
</script>
<style>
#metadata-block {
margin: 4em 0;
padding: 10px;
border: 1px solid #ee8421;

<style media="print">
/** ECMA-402-specific print styles */

/* These tables are too narrow for their captions */
#table-sanctioned-single-unit-identifiers table,
#table-listformat-resolvedoptions-properties table,
#table-segmenter-resolvedoptions-properties table {
width: 102mm;
}
#metadata-block h1 {
font-size: 1.5em;
margin-top: 0;
#table-intl-unsigned-rounding-modes table,
#table-displaynames-resolvedoptions-properties table,
#table-relativetimeformat-resolvedoptions-properties table {
width: 130mm;
}
#metadata-block > ul {
list-style-type: none;
margin: 0; padding: 0;

/* This note is so long it takes up several pages anyway, let it break. */
#note-example-datetime-format-record {
break-inside: initial;
}
#ecma-logo {
width: 500px;

/**
* Prevent line wrapping in print
* (for future publishing, this keeps the thead in #table-numbering-system-digits from wrapping unexpectedly)
*/
.print-no-break {
white-space: nowrap;
}
</style>
<pre class="metadata">
Expand Down
2 changes: 1 addition & 1 deletion spec/numberformat.html
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,7 @@ <h1>
<table class="real-table">
<thead>
<tr>
<th>Numbering System</th>
<th class="print-no-break">Numbering System</th>
<th>Digits</th>
</tr>
</thead>
Expand Down
Loading