Skip to content
Open
Show file tree
Hide file tree
Changes from 3 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 --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
2 changes: 1 addition & 1 deletion spec/colophon.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<emu-annex id="sec-colophon">
<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/bterlson/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/domenic/ecmarkdown">Ecmarkdown</a> for authoring algorithm steps. PDF renderings of this specification are produced by printing the HTML rendering to a PDF.</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/bterlson/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/domenic/ecmarkdown">Ecmarkdown</a> for authoring algorithm steps. PDF renderings of this specification are produced using <a href="https://www.princexml.com/">PrinceXML</a>.</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>
2 changes: 1 addition & 1 deletion spec/datetimeformat.html
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ <h1>DateTime Style Range Records</h1>
</emu-table>
</emu-clause>

<emu-note>
<emu-note id="note-example-datetime-format-record">
For example, an implementation might include the following Record as part of its English locale data:
<ul>
<li>[[hour]]: *"numeric"*</li>
Expand Down
33 changes: 33 additions & 0 deletions spec/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,44 @@
width: 500px;
}
</style>

<style media="print">
/** ECMA-402-specific print styles */
emu-normative-optional {
break-inside: avoid-page;
}

/* 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;
}
#table-intl-unsigned-rounding-modes table,
#table-displaynames-resolvedoptions-properties table,
#table-relativetimeformat-resolvedoptions-properties table {
width: 130mm;
}

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

/**
* 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">
title: ECMAScript&reg; 2026 Internationalization API Specification
shortname: ECMA-402
status: draft
location: https://tc39.es/ecma402/
version: 13th Edition
</pre>
<p><img src="img/ecma-logo.svg" id="ecma-logo"></p>
<emu-import href="metablock.html"></emu-import>
Expand Down
12 changes: 2 additions & 10 deletions spec/introduction.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,10 @@ <h1>Introduction</h1>
</p>
<p>
Richard Gibson, Ujjwal Sharma<br>
ECMA-402, 10<sup>th</sup> Edition Project Editors
</p>
<p>
Richard Gibson, Ujjwal Sharma<br>
ECMA-402, 11<sup>th</sup> Edition Project Editors
</p>
<p>
Ben Allen, Richard Gibson, Ujjwal Sharma<br>
ECMA-402, 12<sup>th</sup> Edition Project Editors
ECMA-402, 10<sup>th</sup> &amp; 11<sup>th</sup> Edition Project Editors
</p>
<p>
Ben Allen, Richard Gibson, Ujjwal Sharma<br>
ECMA-402, 13<sup>th</sup> Edition Project Editors
ECMA-402, 12<sup>th</sup> &amp; 13<sup>th</sup> Edition Project Editors
</p>
</emu-intro>
2 changes: 1 addition & 1 deletion spec/numberformat.html
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,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