Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
Co-authored-by: printfn <1643883+printfn@users.noreply.github.com>
  • Loading branch information
FrankYFTang and printfn authored Dec 19, 2024
1 parent 428331b commit ee01626
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3347,7 +3347,7 @@ <h1><span class="secnum">1.1.7</span> CharacterDirectionOfLocale ( <var>loc</var
<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>Let <var>script</var> be <emu-xref aoid="GetLocaleScript"><a href="https://tc39.es/ecma402/#sec-getlocalescript">GetLocaleScript</a></emu-xref>(<var>locale</var>).</li><li>If <var>script</var> is <emu-val>undefined</emu-val>, then<ol><li>Let <var>maximal</var> be the result of the <a href="https://unicode.org/reports/tr35/#Likely_Subtags" data-print-href="">Add Likely Subtags</a> algorithm applied to <var>locale</var>. If an error is signaled, return <emu-val>"ltr"</emu-val>.</li><li>Set <var>script</var> to <emu-xref aoid="GetLocaleScript"><a href="https://tc39.es/ecma402/#sec-getlocalescript">GetLocaleScript</a></emu-xref>(<var>maximal</var>).</li><li>If <var>script</var> is <emu-val>undefined</emu-val>, return <emu-val>"ltr"</emu-val>.</li></ol></li><li>If the default general ordering of characters within a line in <var>script</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 within a line in the <var>script</var> cannot be determined, or is not right-to-left, <emu-val>"ltr"</emu-val> will be retruned.
When the direction of default general ordering of characters within a line in the <var>script</var> cannot be determined, or is not right-to-left, <emu-val>"ltr"</emu-val> will be returned.
</div></emu-note>
</emu-clause>
Expand Down

0 comments on commit ee01626

Please sign in to comment.