Skip to content

Commit

Permalink
Merge pull request #95 from tc39/FrankYFTang-patch-4
Browse files Browse the repository at this point in the history
Editorial: Add note about locale or scripts without any direction.
  • Loading branch information
FrankYFTang authored Dec 18, 2024
2 parents 25f9349 + 446705c commit 121dc7f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3290,7 +3290,7 @@
</ul></div><div id="menu-toggle"><svg xmlns="http://www.w3.org/2000/svg" style="width:100%; height:100%; stroke:currentColor" viewBox="0 0 120 120" width="54" height="54">
<title>Menu</title>
<path stroke-width="10" stroke-linecap="round" d="M30,60 h60 M30,30 m0,5 h60 M30,90 m0,-5 h60"></path>
</svg></div><div id="menu-spacer" class="menu-spacer"></div><div id="menu"><div id="menu-search"><input type="text" id="menu-search-box" placeholder="Search..."><div id="menu-search-results" class="inactive"></div></div><div id="menu-pins"><div class="menu-pane-header">Pins<button class="unpin-all">clear</button></div><ul id="menu-pins-list"></ul></div><div class="menu-pane-header">Table of Contents</div><div id="menu-toc"><ol class="toc"><li><span class="item-toggle-none"></span><a href="#sec-intro" title="Introduction">Introduction</a></li><li><span class="item-toggle">+</span><a href="#locale-objects" title="Locale Objects"><span class="secnum">1</span> Locale Objects</a><ol class="toc"><li><span class="item-toggle">+</span><a href="#sec-locale-abstracts" title="Abstract Operations for Locale Objects"><span class="secnum">1.1</span> Abstract Operations for Locale Objects</a><ol class="toc"><li><span class="item-toggle-none"></span><a href="#sec-create-array-from-list-or-restricted" title="CreateArrayFromListOrRestricted ( list, restricted )"><span class="secnum">1.1.1</span> CreateArrayFromListOrRestricted ( <var>list</var>, <var>restricted</var> )</a></li><li><span class="item-toggle-none"></span><a href="#sec-calendars-of-locale" title="CalendarsOfLocale ( loc )"><span class="secnum">1.1.2</span> CalendarsOfLocale ( <var>loc</var> )</a></li><li><span class="item-toggle-none"></span><a href="#sec-collations-of-locale" title="CollationsOfLocale ( loc )"><span class="secnum">1.1.3</span> CollationsOfLocale ( <var>loc</var> )</a></li><li><span class="item-toggle-none"></span><a href="#sec-hour-cycles-of-locale" title="HourCyclesOfLocale ( loc )"><span class="secnum">1.1.4</span> HourCyclesOfLocale ( <var>loc</var> )</a></li><li><span class="item-toggle-none"></span><a href="#sec-numbering-systems-of-locale" title="NumberingSystemsOfLocale ( loc )"><span class="secnum">1.1.5</span> NumberingSystemsOfLocale ( <var>loc</var> )</a></li><li><span class="item-toggle-none"></span><a href="#sec-time-zones-of-locale" title="TimeZonesOfLocale ( loc )"><span class="secnum">1.1.6</span> TimeZonesOfLocale ( <var>loc</var> )</a></li><li><span class="item-toggle-none"></span><a href="#sec-character-direction-of-locale" title="CharacterDirectionOfLocale ( loc )"><span class="secnum">1.1.7</span> CharacterDirectionOfLocale ( <var>loc</var> )</a></li><li><span class="item-toggle-none"></span><a href="#sec-weekday-to-string" title="WeekdayToString ( fw )"><span class="secnum">1.1.8</span> WeekdayToString ( <var>fw</var> )</a></li><li><span class="item-toggle-none"></span><a href="#sec-string-to-weekday-value" title="StringToWeekdayValue ( fw )"><span class="secnum">1.1.9</span> StringToWeekdayValue ( <var>fw</var> )</a></li><li><span class="item-toggle-none"></span><a href="#sec-week-info-of-locale" title="WeekInfoOfLocale ( loc )"><span class="secnum">1.1.10</span> WeekInfoOfLocale ( <var>loc</var> )</a></li></ol></li><li><span class="item-toggle">+</span><a href="#sec-intl-locale-constructor" title="The Intl.Locale Constructor"><span class="secnum">1.2</span> The Intl.Locale Constructor</a><ol class="toc"><li><span class="item-toggle-none"></span><a href="#sec-Intl.Locale" title="Intl.Locale ( tag [ , options ] )"><span class="secnum">1.2.1</span> Intl.Locale ( <var>tag</var> [ , <var>options</var> ] )</a></li></ol></li><li><span class="item-toggle">+</span><a href="#sec-properties-of-intl-locale-constructor" title="Properties of the Intl.Locale Constructor"><span class="secnum">1.3</span> Properties of the Intl.Locale Constructor</a><ol class="toc"><li><span class="item-toggle-none"></span><a href="#sec-intl.locale-internal-slots" title="Internal slots"><span class="secnum">1.3.1</span> Internal slots</a></li></ol></li><li><span class="item-toggle">+</span><a href="#sec-properties-of-intl-locale-prototype-object" title="Properties of the Intl.Locale Prototype Object"><span class="secnum">1.4</span> Properties of the Intl.Locale Prototype Object</a><ol class="toc"><li><span class="item-toggle-none"></span><a href="#sec-Intl.Locale.prototype.firstDayOfWeek" title="get Intl.Locale.prototype.firstDayOfWeek"><span class="secnum">1.4.1</span> get Intl.Locale.prototype.firstDayOfWeek</a></li><li><span class="item-toggle-none"></span><a href="#sec-Intl.Locale.prototype.getCalendars" title="Intl.Locale.prototype.getCalendars ( )"><span class="secnum">1.4.2</span> Intl.Locale.prototype.getCalendars ( )</a></li><li><span class="item-toggle-none"></span><a href="#sec-Intl.Locale.prototype.getCollations" title="Intl.Locale.prototype.getCollations ( )"><span class="secnum">1.4.3</span> Intl.Locale.prototype.getCollations ( )</a></li><li><span class="item-toggle-none"></span><a href="#sec-Intl.Locale.prototype.getHourCycles" title="Intl.Locale.prototype.getHourCycles ( )"><span class="secnum">1.4.4</span> Intl.Locale.prototype.getHourCycles ( )</a></li><li><span class="item-toggle-none"></span><a href="#sec-Intl.Locale.prototype.getNumberingSystems" title="Intl.Locale.prototype.getNumberingSystems ( )"><span class="secnum">1.4.5</span> Intl.Locale.prototype.getNumberingSystems ( )</a></li><li><span class="item-toggle-none"></span><a href="#sec-Intl.Locale.prototype.getTimeZones" title="Intl.Locale.prototype.getTimeZones ( )"><span class="secnum">1.4.6</span> Intl.Locale.prototype.getTimeZones ( )</a></li><li><span class="item-toggle-none"></span><a href="#sec-Intl.Locale.prototype.getTextInfo" title="Intl.Locale.prototype.getTextInfo ( )"><span class="secnum">1.4.7</span> Intl.Locale.prototype.getTextInfo ( )</a></li><li><span class="item-toggle-none"></span><a href="#sec-Intl.Locale.prototype.getWeekInfo" title="Intl.Locale.prototype.getWeekInfo ( )"><span class="secnum">1.4.8</span> Intl.Locale.prototype.getWeekInfo ( )</a></li></ol></li><li><span class="item-toggle-none"></span><a href="#sec-properties-of-intl-locale-instances" title="Properties of Intl.Locale Instances"><span class="secnum">1.5</span> Properties of Intl.Locale Instances</a></li></ol></li><li><span class="item-toggle-none"></span><a href="#annex-implementation-dependent-behaviour" title="Implementation Dependent Behaviour"><span class="secnum">A</span> Implementation Dependent Behaviour</a></li><li><span class="item-toggle-none"></span><a href="#sec-copyright-and-software-license" title="Copyright &amp; Software License"><span class="secnum">B</span> Copyright &amp; Software License</a></li></ol></div></div><div id="spec-container"><h1 class="version">Stage 3 Draft / November 21, 2024</h1><h1 class="title">Intl Locale Info Proposal</h1>
</svg></div><div id="menu-spacer" class="menu-spacer"></div><div id="menu"><div id="menu-search"><input type="text" id="menu-search-box" placeholder="Search..."><div id="menu-search-results" class="inactive"></div></div><div id="menu-pins"><div class="menu-pane-header">Pins<button class="unpin-all">clear</button></div><ul id="menu-pins-list"></ul></div><div class="menu-pane-header">Table of Contents</div><div id="menu-toc"><ol class="toc"><li><span class="item-toggle-none"></span><a href="#sec-intro" title="Introduction">Introduction</a></li><li><span class="item-toggle">+</span><a href="#locale-objects" title="Locale Objects"><span class="secnum">1</span> Locale Objects</a><ol class="toc"><li><span class="item-toggle">+</span><a href="#sec-locale-abstracts" title="Abstract Operations for Locale Objects"><span class="secnum">1.1</span> Abstract Operations for Locale Objects</a><ol class="toc"><li><span class="item-toggle-none"></span><a href="#sec-create-array-from-list-or-restricted" title="CreateArrayFromListOrRestricted ( list, restricted )"><span class="secnum">1.1.1</span> CreateArrayFromListOrRestricted ( <var>list</var>, <var>restricted</var> )</a></li><li><span class="item-toggle-none"></span><a href="#sec-calendars-of-locale" title="CalendarsOfLocale ( loc )"><span class="secnum">1.1.2</span> CalendarsOfLocale ( <var>loc</var> )</a></li><li><span class="item-toggle-none"></span><a href="#sec-collations-of-locale" title="CollationsOfLocale ( loc )"><span class="secnum">1.1.3</span> CollationsOfLocale ( <var>loc</var> )</a></li><li><span class="item-toggle-none"></span><a href="#sec-hour-cycles-of-locale" title="HourCyclesOfLocale ( loc )"><span class="secnum">1.1.4</span> HourCyclesOfLocale ( <var>loc</var> )</a></li><li><span class="item-toggle-none"></span><a href="#sec-numbering-systems-of-locale" title="NumberingSystemsOfLocale ( loc )"><span class="secnum">1.1.5</span> NumberingSystemsOfLocale ( <var>loc</var> )</a></li><li><span class="item-toggle-none"></span><a href="#sec-time-zones-of-locale" title="TimeZonesOfLocale ( loc )"><span class="secnum">1.1.6</span> TimeZonesOfLocale ( <var>loc</var> )</a></li><li><span class="item-toggle-none"></span><a href="#sec-character-direction-of-locale" title="CharacterDirectionOfLocale ( loc )"><span class="secnum">1.1.7</span> CharacterDirectionOfLocale ( <var>loc</var> )</a></li><li><span class="item-toggle-none"></span><a href="#sec-weekday-to-string" title="WeekdayToString ( fw )"><span class="secnum">1.1.8</span> WeekdayToString ( <var>fw</var> )</a></li><li><span class="item-toggle-none"></span><a href="#sec-string-to-weekday-value" title="StringToWeekdayValue ( fw )"><span class="secnum">1.1.9</span> StringToWeekdayValue ( <var>fw</var> )</a></li><li><span class="item-toggle-none"></span><a href="#sec-week-info-of-locale" title="WeekInfoOfLocale ( loc )"><span class="secnum">1.1.10</span> WeekInfoOfLocale ( <var>loc</var> )</a></li></ol></li><li><span class="item-toggle">+</span><a href="#sec-intl-locale-constructor" title="The Intl.Locale Constructor"><span class="secnum">1.2</span> The Intl.Locale Constructor</a><ol class="toc"><li><span class="item-toggle-none"></span><a href="#sec-Intl.Locale" title="Intl.Locale ( tag [ , options ] )"><span class="secnum">1.2.1</span> Intl.Locale ( <var>tag</var> [ , <var>options</var> ] )</a></li></ol></li><li><span class="item-toggle">+</span><a href="#sec-properties-of-intl-locale-constructor" title="Properties of the Intl.Locale Constructor"><span class="secnum">1.3</span> Properties of the Intl.Locale Constructor</a><ol class="toc"><li><span class="item-toggle-none"></span><a href="#sec-intl.locale-internal-slots" title="Internal slots"><span class="secnum">1.3.1</span> Internal slots</a></li></ol></li><li><span class="item-toggle">+</span><a href="#sec-properties-of-intl-locale-prototype-object" title="Properties of the Intl.Locale Prototype Object"><span class="secnum">1.4</span> Properties of the Intl.Locale Prototype Object</a><ol class="toc"><li><span class="item-toggle-none"></span><a href="#sec-Intl.Locale.prototype.firstDayOfWeek" title="get Intl.Locale.prototype.firstDayOfWeek"><span class="secnum">1.4.1</span> get Intl.Locale.prototype.firstDayOfWeek</a></li><li><span class="item-toggle-none"></span><a href="#sec-Intl.Locale.prototype.getCalendars" title="Intl.Locale.prototype.getCalendars ( )"><span class="secnum">1.4.2</span> Intl.Locale.prototype.getCalendars ( )</a></li><li><span class="item-toggle-none"></span><a href="#sec-Intl.Locale.prototype.getCollations" title="Intl.Locale.prototype.getCollations ( )"><span class="secnum">1.4.3</span> Intl.Locale.prototype.getCollations ( )</a></li><li><span class="item-toggle-none"></span><a href="#sec-Intl.Locale.prototype.getHourCycles" title="Intl.Locale.prototype.getHourCycles ( )"><span class="secnum">1.4.4</span> Intl.Locale.prototype.getHourCycles ( )</a></li><li><span class="item-toggle-none"></span><a href="#sec-Intl.Locale.prototype.getNumberingSystems" title="Intl.Locale.prototype.getNumberingSystems ( )"><span class="secnum">1.4.5</span> Intl.Locale.prototype.getNumberingSystems ( )</a></li><li><span class="item-toggle-none"></span><a href="#sec-Intl.Locale.prototype.getTimeZones" title="Intl.Locale.prototype.getTimeZones ( )"><span class="secnum">1.4.6</span> Intl.Locale.prototype.getTimeZones ( )</a></li><li><span class="item-toggle-none"></span><a href="#sec-Intl.Locale.prototype.getTextInfo" title="Intl.Locale.prototype.getTextInfo ( )"><span class="secnum">1.4.7</span> Intl.Locale.prototype.getTextInfo ( )</a></li><li><span class="item-toggle-none"></span><a href="#sec-Intl.Locale.prototype.getWeekInfo" title="Intl.Locale.prototype.getWeekInfo ( )"><span class="secnum">1.4.8</span> Intl.Locale.prototype.getWeekInfo ( )</a></li></ol></li><li><span class="item-toggle-none"></span><a href="#sec-properties-of-intl-locale-instances" title="Properties of Intl.Locale Instances"><span class="secnum">1.5</span> Properties of Intl.Locale Instances</a></li></ol></li><li><span class="item-toggle-none"></span><a href="#annex-implementation-dependent-behaviour" title="Implementation Dependent Behaviour"><span class="secnum">A</span> Implementation Dependent Behaviour</a></li><li><span class="item-toggle-none"></span><a href="#sec-copyright-and-software-license" title="Copyright &amp; Software License"><span class="secnum">B</span> Copyright &amp; Software License</a></li></ol></div></div><div id="spec-container"><h1 class="version">Stage 3 Draft / November 23, 2024</h1><h1 class="title">Intl Locale Info Proposal</h1>
<emu-intro id="sec-intro">
<h1>Introduction</h1>
Expand Down Expand Up @@ -3346,6 +3346,9 @@ <h1><span class="secnum">1.1.6</span> TimeZonesOfLocale ( <var>loc</var> )</h1>
<h1><span class="secnum">1.1.7</span> CharacterDirectionOfLocale ( <var>loc</var> )</h1>
<p>The abstract operation CharacterDirectionOfLocale takes argument <var>loc</var> (an Intl.Locale) and returns <emu-val>"ltr"</emu-val> or <emu-val>"rtl"</emu-val>. The following algorithm refers to Locale data specified in <a href="https://www.unicode.org/reports/tr35/tr35-general.html#Layout_Elements" data-print-href="">UTS 35's Layouts Elements</a>. It performs the following steps when called:</p>
<emu-alg><ol><li>Let <var>locale</var> be <var>loc</var>.<var class="field">[[Locale]]</var>.</li><li>If the default general ordering of characters (characterOrder) within a line in <var>locale</var> is right-to-left, return <emu-val>"rtl"</emu-val>.</li><li>Return <emu-val>"ltr"</emu-val>.</li></ol></emu-alg>
<emu-note><span class="note">Note</span><div class="note-contents">
When the direction of default general ordering of characters (characterOrder) within a line in the locale cannot be determined, or is not right-to-left, <emu-val>"ltr"</emu-val> will be retruned.
</div></emu-note>
</emu-clause>
<emu-clause id="sec-weekday-to-string" type="abstract operation" aoid="WeekdayToString">
Expand Down
3 changes: 3 additions & 0 deletions locale.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ <h1>
1. If the default general ordering of characters (characterOrder) within a line in _locale_ is right-to-left, return *"rtl"*.
1. Return *"ltr"*.
</emu-alg>
<emu-note>
When the direction of default general ordering of characters (characterOrder) within a line in the locale cannot be determined, or is not right-to-left, *"ltr"* will be retruned.
</emu-note>
</emu-clause>

<emu-clause id="sec-weekday-to-string" type="abstract operation">
Expand Down

0 comments on commit 121dc7f

Please sign in to comment.