Skip to content

Commit 2b4e390

Browse files
authored
Sync character naming template from i18n specdev (#342)
1 parent a02b071 commit 2b4e390

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

manual-of-style/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -210,19 +210,19 @@ <h5>Character naming template</h5>
210210
<p>Internationalization specifications use (and we recommend the use of) this template for character references:</p>
211211

212212
<pre>
213-
&lt;span class="codepoint" translate="no">&lt;bdi lang="??">&#xXXXX;&lt;/bdi>
214-
[&lt;code class="uname">U+XXXX Unicode_character_name&lt;/code>]&lt;/span>
213+
&lt;span class="codepoint" translate="no">&lt;bdi lang="??">&#xXXXX;&lt;/bdi>
214+
&lt;code class="uname">U+XXXX Unicode_character_name&lt;/code>&lt;/span>
215215
</pre>
216216

217217
<aside class="example" title="Example of a character reference">
218218
<p>Filling in the above template like this:</p>
219219

220220
<pre>
221-
&lt;span class="codepoint" translate="no">&lt;bdi lang="fr">&#x00E9;&lt;/bdi>
222-
[&lt;code class="uname">U+00E9 LATIN SMALL LETTER E WITH ACUTE&lt;/code>]&lt;/span>
221+
&lt;span class="codepoint" translate="no">&lt;bdi lang="fr">&#x00E9;&lt;/bdi>
222+
&lt;code class="uname">U+00E9 LATIN SMALL LETTER E WITH ACUTE&lt;/code>&lt;/span>
223223
</pre>
224224

225-
<p>Produces output in the page like this: <span class="codepoint" translate="no"><bdi lang="fr">é</bdi> [<code class="uname">U+00E9 LATIN SMALL LETTER E WITH ACUTE</code>]</span>.</p>
225+
<p>Produces output in the page like this: <span class="codepoint" translate="no"><bdi lang="fr">é</bdi><code class="uname">U+00E9 LATIN SMALL LETTER E WITH ACUTE</code></span>.</p>
226226
</aside>
227227

228228
<p>Some notes about the markup used. The <code translate=no>bdi</code> element is used to ensure that example characters that are [=right-to-left=] do not interfere with the layout of the page. The <code translate=no>lang</code> attribute should be filled in with the most appropriate [[BCP47]] [=language tag=] to get the correct font selection (and other processing) for a given context. Examples in East Asian languages (such as Chinese, Japanese, or Korean) or in the Arabic script can sometimes require greater care in choosing a language tag.</p>

0 commit comments

Comments
 (0)