Debian Codegraph @

ucd/NamesList.html

raw symbols SCIP
1 <!doctype html>
2
3 <html lang="en-us">
4
5 <head>
6 <meta charset="utf-8">
7 <title>Unicode NamesList Format</title>
8 <link rel="stylesheet" type="text/css" href="https://www.unicode.org/reports/reports-v2.css">
9 <style>
10 a.headernav {
11 font-size: 90%;
12 }
13 a.headernav:link {
14 color: white;
15 }
16 a.headernav:visited {
17 color: white;
18 }
19 a.headernav:active {
20 color: white;
21 }
22 a.headernav:hover {
23 color: #B0B0B0;
24 }
25 .pageheader {
26 margin-top: 0;
27 padding: 0 .5em 0 0;
28 display: flex;
29 flex-direction: row;
30 flex-wrap: nowrap;
31 justify-content: flex-start;
32 background-color: #5555FF;
33 color: white;
34 font-family: arial, geneva, sans-serif;
35 font-weight:bold;
36 align-items: center;
37 }
38 .pageicon {
39 padding : 2px 4px 0 2px;
40 }
41 .pagelogo {
42 height: 33px; width: 34px;
43 border: 0;
44 padding-bottom: 0px;
45 margin-bottom:-2px;
46 }
47 .pagetitle {
48 font-size: 115%;
49 flex-grow: 4;
50 padding-left: 1em;
51 }
52 .headernav { padding-top: 0px;
53 font-weight: bold;
54 font-size: 100%;
55 color: white; font-family: arial, geneva, sans-serif;
56 text-align:right;
57 }
58 .graybar {
59 width: 100%;padding:0;
60 font-size:50%;
61 background-color: #EEEEFE;
62 }
63 .pagecontents {
64 padding-left: 3.25em;
65 padding-right: 3.25em;
66 padding-bottom: 1.75em;
67 padding-top: 1em;
68 }
69 .pagebottom img
70 {
71 padding-top: 2px;
72 width:216px;
73 height:50px;
74 border: 0;
75 }
76 .pagebottom
77 {
78 margin: auto;
79 text-align:center;
80 }
81 </style>
82 </head>
83
84 <body>
85
86 <div class="pageheader">
87 <div class="pageicon"><a href="https://www.unicode.org/"><img class="pagelogo"
88 src="https://www.unicode.org/webscripts/logo60s2.gif"
89 alt="[Unicode]" ></a></div>
90
91 <div class="pagetitle"><a class="headernav"
92 href="https://www.unicode.org/ucd/">Unicode Character Database</a></div>
93
94 </div>
95 <div class="graybar">&nbsp;</div>
96
97 <div class="body">
98 <h1>UnicodeĀ® NamesList File Format</h1>
99 <table class="simple">
100 <tbody>
101 <tr>
102 <td>Revision</td>
103 <td>17.0.0</td>
104 </tr>
105 <tr>
106 <td>Editors</td>
107 <td>Asmus Freytag, Ken Whistler</td>
108 </tr>
109 <tr>
110 <td>Date</td>
111 <td>2025-08-05</td>
112 </tr>
113 <tr>
114 <td>This Version</td>
115 <td >
116 <a href="https://www.unicode.org/Public/17.0.0/ucd/NamesList.html">
117 https://www.unicode.org/Public/17.0.0/ucd/NamesList.html</a></td>
118 </tr>
119 <tr>
120 <td>Previous Version</td>
121 <td>
122 <a href="https://www.unicode.org/Public/16.0.0/ucd/NamesList.html">
123 https://www.unicode.org/Public/16.0.0/ucd/NamesList.html</a></td>
124 </tr>
125 <tr>
126 <td>Latest Version</td>
127 <td><a href="https://www.unicode.org/Public/UCD/latest/ucd/NamesList.html">https://www.unicode.org/Public/UCD/latest/ucd/NamesList.html</a></td>
128 </tr>
129 </tbody>
130 </table>
131 <p>&nbsp;</p>
132 <h3><i>Summary</i></h3>
133 <blockquote>
134 <p>This file describes the format and contents of NamesList.txt</p>
135 </blockquote>
136 <h3><i>Status</i></h3>
137 <blockquote>
138 <p><i>The file and the files described herein are part of the <a href="https://www.unicode.org/ucd/">Unicode
139 Character Database</a> (UCD). The Unicode <a href="https://www.unicode.org/terms_of_use.html">
140 Terms of Use</a> apply.</i></p>
141 </blockquote>
142 <hr style="width:50%">
143
144 <h2 id="Introduction">1.0 <a href="#Introduction">Introduction</a></h2>
145
146 <p>The Unicode name list file NamesList.txt (also NamesList.lst) is a plain
147 text file used to drive the layout of the character code charts in the Unicode
148 Standard. The information in this file is a combination of several fields from
149 the UnicodeData.txt and Blocks.txt files, together with additional annotations
150 for many characters.</p>
151 <p>This document describes the syntax rules for the file
152 format, but also gives brief information on how each construct is rendered
153 when laid out for the code charts. Some of the syntax elements are used only in
154 preparation of the drafts of the code charts and are not present in the final,
155 released form of the NamesList.txt file.</p>
156
157 <p>Over time, the syntax has been extended by adding new features. The syntax for formal aliases and index tabs was introduced with Unicode
158 5.0. The syntax for marginal sidebar comments is utilized extensively in
159 draft versions of the NamesList.txt file. The support for UTF-8 encoded files and the syntax for the UTF-8 charset
160 declaration in a comment at the head of the file were introduced after Unicode
161 6.1.0 was published, as was the syntax for the specification of variation sequences and alternate glyphs and their respective summaries. The repertoire restriction
162 in comments and aliases in the names list format was loosened from the earlier
163 limitation to U+0020..U+00FF, to include the wider range U+0020..U+02FF, as of Unicode 11.0, and dropped entirely as of Unicode 16.0.0.</p>
164
165 <p>The same input file can be used for the preparation of drafts and final editions for ISO/IEC
166 10646. Earlier versions of that standard used a different style, referred to below as ISO-style. That style necessitated the presence of some
167 information in the name list file that is not needed (and in fact removed
168 during parsing) for the Unicode code charts.</p>
169
170 <p>With access to the layout program (<a href="https://www.unicode.org/unibook/">Unibook</a>) it is a simple matter of
171 creating name lists for the purpose of formatting working drafts or other documents containing
172 proposed characters.</p>
173 <p>The content of the NamesList.txt file is optimized for code chart creation.
174 Some information that can be inferred by the reader from context has been
175 suppressed to make the code charts more readable. See the chapter on Code
176 Charts in the <a href="https://www.unicode.org/versions/latest">Unicode
177 Standard</a>.</p>
178
179 <h3 id="Overview">1.1 <a href="#Overview">NamesList File Overview</a></h3>
180
181 <p>The NamesList files are plain text files which in their most simple form look
182 like this:</p>
183
184 <p>@@&lt;tab&gt;0020&lt;tab&gt;BASIC LATIN&lt;tab&gt;007F<br>
185 ; this is a file comment (ignored)<br>
186 0020&lt;tab&gt;SPACE<br>
187 0021&lt;tab&gt;EXCLAMATION MARK<br>
188 0022&lt;tab&gt;QUOTATION MARK<br>
189 . . . <br>
190 007F&lt;tab&gt;DELETE</p>
191
192 <p>The semicolon (as first character), @ and &lt;tab&gt; characters are used
193 by the file syntax and must be provided as shown. Hexadecimal digits must be
194 in UPPERCASE. A double @@ introduces a block header, with the title, and
195 start and ending code of the block provided as shown.</p>
196
197 <p>For a minimal name list, only the NAME_LINE and BLOCKHEADER and
198 their constituent syntax elements are needed.</p>
199
200 <p>The full syntax with all the options is provided in the following sections.</p>
201
202 <h2 id="FileStructure">2.0 <a href="#FileStructure">NamesList File Structure</a></h2>
203
204 <p>This section defines the overall file structure</p>
205
206 <pre><strong>NAMELIST: FILE_COMMENT* TITLE_PAGE* EXTENDED_BLOCK*</strong>
207
208 <strong>TITLE_PAGE: TITLE
209 | TITLE_PAGE SUBTITLE
210 | TITLE_PAGE SUBHEADER
211 | TITLE_PAGE IGNORED_LINE
212 | TITLE_PAGE EMPTY_LINE
213 | TITLE_PAGE NOTICE_LINE
214 | TITLE_PAGE COMMENT_LINE
215 | TITLE_PAGE PAGEBREAK
216 | TITLE_PAGE FILE_COMMENT
217
218
219 EXTENDED_BLOCK: BLOCK
220 | BLOCK SUMMARY
221
222
223 BLOCK: BLOCKHEADER
224 | BLOCKHEADER INDEX_TAB
225 | BLOCK CHAR_ENTRY
226 | BLOCK SUBHEADER
227 | BLOCK NOTICE_LINE
228 | BLOCK EMPTY_LINE
229 | BLOCK IGNORED_LINE
230 | BLOCK SIDEBAR_LINE
231 | BLOCK PAGEBREAK
232 | BLOCK FILE_COMMENT
233 | BLOCK CROSS_REF
234
235
236 CHAR_ENTRY: NAME_LINE | RESERVED_LINE
237 | CHAR_ENTRY ALIAS_LINE
238 | CHAR_ENTRY FORMALALIAS_LINE
239 | CHAR_ENTRY COMMENT_LINE
240 | CHAR_ENTRY CROSS_REF
241 | CHAR_ENTRY DECOMPOSITION
242 | CHAR_ENTRY COMPAT_MAPPING
243 | CHAR_ENTRY IGNORED_LINE
244 | CHAR_ENTRY EMPTY_LINE
245 | CHAR_ENTRY NOTICE_LINE
246 | CHAR_ENTRY FILE_COMMENT
247 | CHAR_ENTRY VARIATION_LINE</strong>
248 </pre>
249
250 <p>In other words:</p>
251 <p>
252 Neither TITLE nor SUBTITLE may occur after the first BLOCKHEADER. </p>
253 <p>Only TITLE, SUBTITLE, SUBHEADER, PAGEBREAK, COMMENT_LINE, NOTICE_LINE,
254 EMPTY_LINE, IGNORED_LINE and FILE_COMMENT may occur before the first BLOCKHEADER.</p>
255 <ul>
256 <li>CROSS_REF, DECOMPOSITION, COMPAT_MAPPING, VARIATION_LINE, ALIAS and FORMALALIAS_LINE lines
257 occurring before the first block header are treated as if they were
258 COMMENT_LINEs.</li>
259 </ul>
260 <p>Directly following either a NAME_LINE or a RESERVED_LINE an uninterrupted
261 sequence of the following lines may occur (in any order and repeated as often
262 as needed): ALIAS_LINE, CROSS_REF, DECOMPOSITION, COMPAT_MAPPING, FORMALALIAS_LINE, NOTICE_LINE,
263 EMPTY_LINE, IGNORED_LINE, VARIATION_LINE and FILE_COMMENT.</p>
264 <ul>
265 <li>The conventional order of elements in a char entry: NAME_LINE,
266 FORMALALIAS_LINE, ALIAS, COMMENT_LINE or NOTICE_LINE, CROSS_REFs, VARIATION_LINE, and optionally
267 ending in either DECOMPOSITION or COMPAT_MAPPING is not enforced by the layout program
268 (<a href="https://www.unicode.org/unibook/">Unibook</a>). </li>
269 </ul>
270 <p>Except for CROSS_REF, NOTICE_LINE, SIDEBAR_LINE, EMPTY_LINE, IGNORED_LINE and
271 FILE_COMMENT, none of these lines may
272 occur in any other place.</p>
273 <ul>
274 <li>A NOTICE_LINE or CROSS_REF displays differently depending on whether it follows a header or title
275 or is part of a CHAR_ENTRY</li>
276 </ul>
277 <p>A PAGEBREAK may appear anywhere, except the middle of a CHARACTER_ENTRY.
278 A PAGEBREAK before the file title lines may not be supported. INDEX_TABs may
279 appear after any block header.</p>
280 <p>If the first line of a file is a file comment, it may contain a UTF-8
281 charset declaration (see below). Alternatively, or in addition, a BOM may be
282 present at the very beginning of the file, forcing the encoding to be
283 interpreted as UTF-16 (little-endian only) or UTF-8. When
284 declared as UTF-8, the names list format will support use of any Unicode characters in
285 STRING and LABEL elements. Otherwise,
286 the supported repertoire is limited to Latin-1, and attempted use of characters outside
287 the Latin-1 range will result in data corruption.</p>
288 <p>The NamesList file format does not support styled text; each line or other element
289 will usually be displayed in a specific font selected for it. To allow CHAR elements
290 that normally use chart glyphs to better coexist with running text in LABEL and STRING
291 elements, a user defined limit can be set, below which the normal selection of (chart) glyphs
292 for the CHAR element is overridden in favor of equivalent glyphs from a font selected for better
293 readability in running text. Any running text outside that range will use standard chart
294 glyphs, which may result in a ransom note effect. For production of the Unicode Standard
295 Version 16.0.0 and later the limit is set to U+1EFF.</p>
296 <p>Several of these elements, while part of the formal definition of the
297 file format, do not occur in final published versions of
298 NamesList.txt in the <a href="https://www.unicode.org/Public/UCD/latest/">UCD</a>.</p>
299
300 <h4>Blocks followed by Summaries</h4>
301 <p>A block may be extended by a summary of standard variation sequences or selected alternate glyphs (or both) defined for characters in the block:</p>
302 <pre><strong>
303 SUMMARY: ALTGLYPH_SUMMARY
304 | VARIATION SUMMARY
305 | ALTGLYPH_SUMMARY VARIATION_SUMMARY
306 | MIXED_SUMMARY
307
308 ALTGLYPH_SUMMARY: ALTGLYPH_SUBHEADER
309 | ALTGLYPH_SUMMARY SUMMARY_LINE
310
311 VARIATION_SUMMARY: VARIATION_SUBHEADER
312 | VARIATION_SUMMARY SUMMARY_LINE
313
314 MIXED_SUMMARY: MIXED_SUBHEADER
315 | MIXED_SUMMARY SUMMARY_LINE
316
317 SUMMARY_LINE: SUBHEADER
318 | NOTICE_LINE
319 | FILE_COMMENT
320 | EMPTY_LINE</strong>
321 </pre>
322
323 <p>When formatted for display, each summary will recap the information presented in the VARIATION_LINE elements
324 of the preceding block, grouped by alternate glyph variants and standardized variation sequences, and
325 preceded by the corresponding subheader. Additional SUBHEADER and NOTICE lines, if provided, immediately
326 follow the ALTGLYPH_SUBHEADER, VARIATION_SUBHEADER or MIXED_SUBHEADER. There is no provision to provide subheaders that are
327 interspersed between items in the summary.</p>
328
329 <p>These syntax constructs are entirely optional. If the ALTGLYPH_SUBHEADER or VARIATION_SUBHEADER are
330 omitted from the names list, but the preceding block nevertheless contains VARIATION_LINE elements
331 as described below, Unibook will automatically generate any required summaries using a default format for the headers.</p>
332
333 <p>Thus, the main purpose for providing ALTGLYPH_SUBHEADER or VARIATION_SUBHEADER elements would be to
334 provide specific contents for these summary titles as well as allow the ability to add additional
335 information via SUBHEADER and NOTICE elements. The final published version of the Unicode names list
336 is machine generated and will always explicitly provide any summary subheaders.</p>
337
338 <h3 id="FileElements">2.1 <a href="#FileElements">NamesList File Elements</a></h3>
339
340 <p>This section provides the details of the syntax for the individual elements.</p>
341
342 <pre><strong>ELEMENT SYNTAX</strong> // How rendered
343
344 <strong>NAME_LINE: CHAR TAB NAME LF</strong>
345 // The CHAR and the corresponding image are echoed,
346 // followed by the name as given in NAME
347
348 <strong> | CHAR TAB &quot;&lt;&quot; LCNAME &quot;&gt;&quot; LF</strong>
349 // Control and noncharacters use this form of
350 // lowercase, bracketed pseudo character name
351
352 <strong> | CHAR TAB NAME SP COMMENT LF</strong>
353 // Names may have a comment, which is stripped off
354 // unless the file is parsed for an ISO style list
355
356 <strong> | CHAR TAB &quot;&lt;&quot; LCNAME &quot;&gt;&quot; SP COMMENT LF</strong>
357 // Control and noncharacters may also have comments
358
359 <strong>RESERVED_LINE: CHAR TAB &quot;&lt;reserved&gt;&quot; LF</strong>
360 // The CHAR is echoed followed by an icon for the
361 // reserved character and a fixed string e.g. &quot;&lt;reserved&gt;&quot;
362
363 <strong>COMMENT_LINE: TAB &quot;*&quot; SP EXPAND_LINE</strong>
364 // * is replaced by BULLET, output line as comment
365
366 <strong> | TAB EXPAND_LINE</strong>
367 // Output line as comment
368
369 <strong>ALIAS_LINE: TAB &quot;=&quot; SP LINE</strong>
370 // Replace = by itself, output line as alias
371
372 <strong>FORMALALIAS_LINE:
373 TAB &quot;%&quot; SP NAME LF</strong>
374 // Replace % by U+203B, output line as formal alias
375
376 <strong>CROSS_REF: TAB &quot;x&quot; SP CHAR SP LCNAME LF
377 | TAB &quot;x&quot; SP CHAR SP &quot;&lt;&quot; LCNAME &quot;&gt;&quot; LF</strong>
378 // x is replaced by a right arrow
379
380 <strong> | TAB &quot;x&quot; SP &quot;(&quot; LCNAME SP &quot;-&quot; SP CHAR &quot;)&quot; LF
381 | TAB &quot;x&quot; SP &quot;(&quot; &quot;&lt;&quot; LCNAME &quot;&gt;&quot; SP &quot;-&quot; SP CHAR &quot;)&quot; LF</strong>
382 // x is replaced by a right arrow;
383 // (second type as used for control and noncharacters)
384
385 // In the forms with parentheses the &quot;(&quot;,&quot;-&quot; and &quot;)&quot; are removed
386 // and the order of CHAR and LCNAME is reversed;
387 // i.e. all inputs result in the same order of output
388
389 <strong> | TAB &quot;x&quot; SP CHAR LF</strong>
390 // x is replaced by a right arrow
391 // (this type is the only one without LCNAME
392 // and is used for ideographs)
393
394 <strong>VARIATION_LINE: TAB &quot;~&quot; SP CHAR VARSEL SP LABEL LF
395 | TAB &quot;~&quot; SP CHAR VARSEL SP LABEL &quot;(&quot; LCTAG &quot;)&quot; LF</strong>
396 // output standardized variation sequence or simply the char code in case of alternate
397 // glyphs, followed by the alternate glyph or variation glyph and the label and context
398
399 <strong>FILE_COMMENT: &quot;;&quot; LINE</strong>
400
401 <strong>EMPTY_LINE: LF</strong>
402 // Empty and ignored lines as well as
403 // file comments are ignored
404
405 <strong>IGNORED_LINE: TAB &quot;;&quot; LINE</strong>
406 // Ignore LINE
407
408 <strong>SIDEBAR_LINE: &quot;;;&quot; LINE</strong>
409 // Output LINE as marginal note
410
411 <strong>DECOMPOSITION: TAB &quot;:&quot; SP EXPAND_LINE
412 | TAB &quot;:&quot; SP &quot;&lt;&quot; TAG &quot;&gt;&quot; SP EXPAND_LINE</strong>
413 // Replace ':' by EQUIV, expand line into decomposition
414 // The &lt;tag&gt; gives optional information,
415 // e.g., about composition exclusion.
416 // by convention the tag has initial lowercase
417
418 <strong>COMPAT_MAPPING: TAB &quot;#&quot; SP EXPAND_LINE
419 | TAB &quot;#&quot; SP &quot;&lt;&quot; TAG &quot;&gt;&quot; SP EXPAND_LINE</strong>
420 // Replace '#' by APPROX, output line as mapping
421 // The &lt;tag&gt; is the optional compatibility decomposition tag.
422 // by convention the tag has initial lowercase
423
424 <strong>NOTICE_LINE: &quot;@+&quot; TAB LINE</strong>
425 // Output LINE as notice
426
427 <strong> | &quot;@+&quot; TAB &quot;*&quot; SP LINE</strong>
428 // Output LINE as notice
429 // &quot;*&quot; expands to a bullet character
430 // Notices following a character code apply to the
431 // character and are indented. Notices not following
432 // a character code apply to the page/block/column
433 // and are italicized, but not indented
434
435 <strong>TITLE: &quot;@@@&quot; TAB LINE</strong>
436 // Output LINE as text
437 // Title is used in page headers
438
439 <strong>SUBTITLE: &quot;@@@+&quot; TAB LINE</strong>
440 // Output LINE as subtitle
441
442 <strong>SUBHEADER: &quot;@&quot; TAB LINE</strong>
443 // Output LINE as column header
444
445 <strong>VARIATION_SUBHEADER:</strong> <strong>&quot;@~&quot; TAB LINE</strong>
446 // Output LINE as column header (summary subheader)
447 <strong>| &quot;@~&quot; LF</strong>
448 // Output a default standard variation sequences summary subheader
449 <strong>| &quot;@~&quot; TAB &quot;!&quot; LF</strong>
450 // Suppress output of a default standard variant sequences summary subheader
451 // and disable display of summary
452 <strong>| &quot;@~&quot; TAB &quot;!&quot; VARSEL_LIST LF</strong>
453 <strong>| &quot;@~&quot; TAB &quot;!&quot; VARSEL_LIST LINE</strong>
454 // Output a standard summary subheader, using default or LINE respectively
455 // Suppress any std variation sequences using selectors from the list
456
457 <strong>ALTGLYPH_SUBHEADER:</strong> <strong>&quot;@@~&quot; TAB LINE</strong>
458 // Output LINE as column header (summary subheader)
459 <strong>| &quot;@@~&quot; LF</strong>
460 // Output a default alternate glyph summary subheader
461 <strong>| &quot;@@~&quot; TAB &quot;!&quot; LF</strong>
462 // Suppress output of a default alternate glyph summary subheader
463 // and disable display of summary
464
465 <strong>MIXED_SUBHEADER: </strong><strong>&quot;@@@~&quot; TAB LINE</strong>
466 // Output LINE as column header (summary subheader)
467 <strong>| &quot;@@@~&quot; LF</strong>
468 // Output a default combined variation and alternate glyph summary subheader
469 <strong>| &quot;@@@~&quot; TAB &quot;!&quot; LF</strong>
470 // Suppress output of a default alternate glyph summary subheader
471 // and disable display of summary
472 <strong>| &quot;@@@~&quot; TAB &quot;!&quot; VARSEL_LIST LF</strong>
473 <strong>| &quot;@@@~&quot; TAB &quot;!&quot; VARSEL_LIST LINE</strong>
474 // Output a combined summary subheader, using default or LINE respectively
475 // Suppress any std variation sequences using selectors from the list
476
477 <strong>BLOCKHEADER: &quot;@@&quot; TAB BLOCKSTART TAB BLOCKNAME TAB BLOCKEND LF</strong>
478 // Cause a page break and optional
479 // blank page, then output one or more charts
480 // followed by the list of character names.
481 // Use BLOCKSTART and BLOCKEND to define
482 // what characters belong to a block.
483 // Use BLOCKNAME in page and table headers
484
485 <strong>BLOCKNAME: LABEL
486 | LABEL SP &quot;(&quot; LABEL &quot;)&quot;</strong>
487 // If an alternate label is present it replaces
488 // the BLOCKNAME when an ISO-style names list is
489 // laid out; it is ignored in the Unicode charts
490
491 <strong>BLOCKSTART: CHAR</strong> // First character position in block
492 <strong>BLOCKEND: CHAR</strong> // Last character position in block
493 <strong>PAGEBREAK: &quot;@@&quot;</strong> // Insert a (column) break
494 <strong>INDEX_TAB: &quot;@@+&quot;</strong> // Start a new index tab at latest BLOCKSTART
495
496 <strong>EXPAND_LINE: {ESC_CHAR | CHAR | STRING | ESC +}+ LF</strong>
497 // Instances of CHAR (see Notes) are replaced by
498 // CHAR NBSP x NBSP where x is the single Unicode
499 // character corresponding to CHAR.
500 // If character is combining, it is replaced with
501 // CHAR NBSP &lt;circ&gt; x NBSP where &lt;circ&gt; is the
502 // dotted circle
503 </pre>
504
505
506 <b>Notes:</b><ul>
507 <li>Blocks must be aligned on 16-code point boundary and contain an integer
508 multiple of 16-code point columns. The exception to that rule is for blocks of
509 ideographs, <i>etc.</i>, for which no names are listed in the file. The BLOCKEND for such blocks
510 must correspond to the last assigned character, and not the actual end of the block.</li>
511 <li>Blocks must be non-overlapping and in ascending order. NAME_LINEs
512 must be in ascending order and follow the block header for the block to
513 which they belong. </li>
514 <li>Reserved entries are optional, and will normally be supplied automatically. They are
515 required whenever followed by ALIAS_LINE, COMMENT_LINE, NOTICE_LINE or CROSS_REF.
516 </li>
517 <li>An empty alternative glyph summary subheader expression will result in default header &quot;Selected Alternative Glyphs&quot;</li>
518 <li>An empty standard variation subheader expression will result in the default header &quot;Standardized Variation Sequences&quot;</li>
519 <li>A VARSEL_LIST may only contain code points for standard variation selectors (including script specific ones)</li>
520 <li>When displaying a VARIATION_LINE for alternate glyphs, the &quot;ALTn&quot; selector is not displayed. </li>
521 <li>If a glyph is unavailable for the variant glyph in a VARIATION_LINE it is replaced by the glyph for U+2591 LIGHT SHADE.</li>
522 <li>Because a LINE or an EXPAND_LINE can itself start with a special character followed
523 by a SP or LF, an &quot;unmarked&quot; COMMENT_LINE should match the input in lower priority than line
524 types that require a special character or have a more restrictive set of characters than EXPAND_LINE.
525 Similarly, a SUBHEADER containing TAB &quot;!&quot; LF should match with a higher priority than one
526 where the TAB is followed by a LINE.</li>
527 </ul>
528
529
530 <h3 id="FilePrimitives">2.2 <a href="#FilePrimitives">NamesList File Primitives</a></h3>
531
532 <p>The following are the primitives and terminals for the NamesList syntax. "Limit" is a user-defined value; see discussion of the implications of Limit in the notes below.</p>
533
534 <pre><strong>LINE</strong>: <strong>STRING LF
535 COMMENT: &quot;(&quot; LABEL &quot;)&quot;
536 | &quot;(&quot; LABEL &quot;)&quot; SP &quot;*&quot;
537 | &quot;*&quot;</strong>
538
539 <strong>NAME</strong>: &lt;sequence of uppercase ASCII letters, digits, space and hyphen&gt;
540 <strong>LCNAME</strong>: &lt;sequence of lowercase ASCII letters, digits, space and hyphen&gt; <strong> (&quot;-&quot; CHAR)?</strong>
541
542 <strong>TAG</strong>: &lt;sequence of ASCII letters&gt;
543 <strong>LCTAG</strong>: &lt;sequence of lowercase ASCII letters&gt;
544 <strong>STRING</strong>: &lt;sequence of characters, except controls&gt;
545 <strong>LABEL</strong>: &lt;sequence of characters, except controls, &quot;(&quot; or &quot;)&quot;&gt;
546 <strong>VARSEL</strong>: <strong>CHAR
547 | &quot;ALT&quot; ( &quot;1&quot;|&quot;2&quot;|&quot;3&quot;|&quot;4&quot;|&quot;5&quot;|&quot;6&quot;|&quot;7&quot;|&quot;8&quot;|&quot;9&quot; )</strong>
548 <strong>VARSEL_LIST</strong>: <strong>&quot;{&quot; CHAR_LIST &quot;}&quot;</strong>
549 <strong>CHAR_LIST</strong>: <strong>CHAR
550 | CHAR_LIST SP CHAR</strong>
551 <strong>CHAR</strong>: <strong>X X X X</strong>
552 <strong>| X X X X X </strong>
553 <strong>| X X X X X X </strong>
554 <strong>X</strong>: <strong>&quot;0&quot;|&quot;1&quot;|&quot;2&quot;|&quot;3&quot;|&quot;4&quot;|&quot;5&quot;|&quot;6&quot;|&quot;7&quot;|&quot;8&quot;|&quot;9&quot;|&quot;A&quot;|&quot;B&quot;|&quot;C&quot;|&quot;D&quot;|&quot;E&quot;|&quot;F&quot;</strong>
555 <strong>ESC_CHAR</strong>: <strong>ESC CHAR</strong>
556 <strong>ESC</strong>: <strong>&quot;\&quot;</strong>
557 // Special semantics of backslash (\) are supported
558 // only in EXPAND_LINE.
559 <strong>TAB</strong>: &lt;sequence of one or more ASCII tab characters 0x09&gt;
560 <strong>SP</strong>: &lt;ASCII 20&gt;
561 <strong>LF</strong>: &lt;any sequence of a single ASCII 0A or 0D, or both&gt;
562 </pre>
563
564 <p><b>Notes:</b></p>
565 <ul>
566 <li>Multiple or leading spaces, multiple or leading hyphens, as well as
567 word-initial digits in NAMEs or LCNAMEs are illegal.</li>
568 <li>The French version of the names list uses French rules, which allow
569 apostrophe and accented letters in character names.</li>
570 <li>When names containing code points are lowercased to make them LCNAMEs,
571 the code point values remain uppercase. Such code points by convention
572 follow a hyphen and are the last element in the name.</li>
573 <li>Special limited lookbehind logic prevents a 4 digit number for a standard, such
574 as ISO 9999 from being misinterpreted as ISO CHAR. Currently recognized are
575 &quot;ISO&quot;, &quot;DIN&quot;, &quot;IEC&quot; and &quot;S X&quot; as well as &quot;S C&quot; for the JIS X and JIS C series of
576 standards. (In addition &quot;EEE&quot; and &quot;S X&quot; are recognized for use with IEEE and KSC X standards. For the GB series of standards, &quot; GB&quot; is defined to prevent conversion to CHAR, but has no effect at the start of a line). For other standards, or for four-digit years in a comment, use a
577 NOTICE_LINE instead, which prevents expansion, or use &quot;\&quot; to escape the digits.</li>
578 <li>Single and double straight quotes in an EXPAND_LINE are replaced by curly quotes using English rules.
579 Smart apostrophes are supported, but nested quotes are not.
580 Single quotes can only be applied around a single word.</li>
581 <li>A CHAR inside ' or &quot; is expanded, but only its glyph image is printed, the
582 code value is not echoed.</li>
583 <li>Inside an EXPAND_LINE, backslash is treated as an escape character that
584 removes the special meaning of any literal character and also prevents
585 the following digit sequence from being expanded. A backslash character in
586 isolation is never displayed. A sequence of two backslash characters results
587 in display of a single backslash, but has no effect on the interpretation
588 of following characters.</li>
589 <li>The hyphen in a character range CHAR-CHAR is replaced by an EN DASH on
590 output.</li>
591 <li>The NamesList.txt file is encoded in UTF-8 if the <i>first line</i> is a
592 FILE_COMMENT containing the declaration &quot;UTF-8&quot; or any casemap variation
593 thereof. Otherwise the file is encoded in Latin-1 (older versions). Beyond
594 detecting the charset declaration (typically: &quot;; charset=utf-8&quot;) the
595 remainder of that comment is ignored.
596 When declared as UTF-8, the NamesList format will support any Unicode character
597 in STRING or LABEL elements, but see further implications below.</li>
598 <li>In a STRING or LABEL element, a Unicode character outside the range
599 U+0020..Limit is displayed with a glyph matching
600 the chart font, and not with the font that is otherwise defined for that element.
601 The Limit value is user defined.
602 For production of the Unicode Standard from Version 16.0.0 and later the Limit
603 value is set to U+1EFF.
604 All code points less than the Limit value can be mapped onto a font selected for best
605 results in running text. However, any CHAR elements contained in an EXPAND_LINE
606 are exempt from this and are always displayed with a glyph matching the chart font.
607 The net effect is a workaround for the fact that the NamesList format does
608 not support style runs within any element that encompasses a single unit of flowed text.</li>
609 <li>When drafting STRING or LABEL elements, one should note that text containing
610 characters outside the range U+0020..Limit may result in a ransom note effect,
611 as the regular text font and charts fonts would be alternated. This is best avoided.</li>
612 <li>The code chart layout program
613 (<a href="https://www.unicode.org/unibook/">Unibook</a>)
614 can accept files in several other formats. These include little-endian UTF-16,
615 prefixed with a BOM, or UTF-8 prefixed with the UTF-8 BOM.</li>
616 <li>While the format allows multiple &lt;tab&gt; characters, by convention the
617 actual number of tabs is always one or two, chosen to provide the best
618 layout of the plain text file.</li>
619 <li>Earlier published versions of the NamesList.txt file may contain trailing or otherwise extraneous
620 spaces or tab characters; while these are errors in the files, they are not
621 being corrected, to retain stability of the published versions. Anyone
622 writing a parser for older versions of this file may need to be prepared to
623 handle such exceptions.</li>
624 <li>Lines are terminated by \r, \n, \r\n or \n\r. Repeated terminators imply empty lines, e.g. \r\r\n is treated as 2 lines, as is \r\n\r\n.</li>
625 <li>The final LF in the file must be present.</li>
626 </ul>
627 <h2 id="Modifications"><a href="#Modifications">Modifications</a></h2>
628
629 <p><b>Version 17.0.0</b></p>
630 <ul>
631 <li>Reissued for Unicode 17.0.0</li>
632 </ul>
633
634 <p><b>Version 16.0.0</b></p>
635 <ul>
636 <li>Reissued for Unicode 16.0.0</li>
637 <li>Reflect the wider range of possible values for the user defined Limit.</li>
638 <li>Added an explanation of the effect of the Limit value.</li>
639 </ul>
640
641 <p><b>Version 15.1.0</b></p>
642 <ul>
643 <li>Reissued for Unicode 15.1.0.</li>
644 <li>Adjusted NAMELIST definition to account for positions of FILE_COMMENT.</li>
645 <li>Added a note to the bullets in Section 2.1 to clarify priority of matching for
646 some line types.</li>
647 <li>In Section 2.2, added a note clarifying the font handling for characters
648 outside the range U+0000..U+02FF occurring in NAME or LABEL elements.</li>
649 <li>Also in Section 2.2, updated the bullet about lookbehind logic
650 for identifying digit sequences that are part of identifiers for various standards,
651 to include the detection of IEEE, KSC X, and GB standards.</li>
652 <li>Added missing quotation marks around * in second expansion for
653 NOTICE_LINE.</li>
654 <li>Corrected and clarified the BNF statement of nameslist syntax.</li>
655 <li>Some literals had not been quoted, some productions were missing the trailing LF</li>
656 <li>The LF and LCNAME productions were clarified</li>
657 <li>Updated to HTML5</li>
658 </ul>
659 <p><b>Version 15.0.0</b></p>
660 <ul>
661 <li>Reissued for Unicode 15.0.0.</li>
662 </ul>
663 <p><b>Version 14.0.0</b></p>
664 <ul>
665 <li>Reissued for Unicode 14.0.0.</li>
666 <li>Corrected character name LIGHT SCREEN to LIGHT SHADE.</li>
667 </ul>
668 <p><b>Version 13.0.0</b></p>
669 <ul>
670 <li>Reissued for Unicode 13.0.0.</li>
671 <li>Added a second expansion for DECOMPOSITION, for possible future
672 use to designate specific subtypes of canonical decompositions
673 in the names list output.</li>
674 </ul>
675 <p><b>Version 12.1.0</b></p>
676 <ul>
677 <li>Reissued for Unicode 12.1.0.</li>
678 </ul>
679 <p><b>Version 12.0.0</b></p>
680 <ul>
681 <li>Reissued for Unicode 12.0.0.</li>
682 <li>Added definition of TAG (allowing uppercase letters), distinct from LCTAG.</li>
683 <li>Corrected definition of VARIATION_LINE to use LCTAG instead of LCNAME.</li>
684 <li>Corrected definition of COMPAT_MAPPING to use TAG instead of LCTAG.</li>
685 <li>Corrected the documentation regarding which elements allow use of characters
686 in the range U+0020..U+02FF.</li>
687 </ul>
688 <p><b>Version 11.0.0</b></p>
689 <ul>
690 <li>Reissued for Unicode 11.0.0.</li>
691 <li>Loosened the limitation on repertoire allowed in LINE and LABEL
692 elements to include characters outside Latin-1, in the range
693 U+0100..U+02FF.</li>
694 </ul>
695 <p><b>Version 10.0.0</b></p>
696 <ul>
697 <li>Reissued for Unicode 10.0.0.</li>
698 </ul>
699 <p><b>Version 9.0.0</b></p>
700 <ul>
701 <li>Reissued for Unicode 9.0.0.</li>
702 </ul>
703 <p><b>Version 8.0.0</b></p>
704 <ul>
705 <li>Reissued for Unicode 8.0.0.</li>
706 <li>Added MIXED_SUBHEADER, VARSEL_LIST, and CHAR_LIST to the syntax.</li>
707 <li>Tweaked BNF and notes for variation summaries.</li>
708 </ul>
709 <p><b>Version 7.0.0</b></p>
710 <ul>
711 <li>Reissued for Unicode 7.0.0.</li>
712 </ul>
713 <p><b>Version 6.3.0</b></p>
714 <ul>
715 <li>Reissued for Unicode 6.3.0.</li>
716 </ul>
717 <p><b>Version 6.2.0</b></p>
718 <ul>
719 <li>Edited the variation syntax definitions, description and corresponding notes for wording.</li>
720 <li>Minor tweaks to the layout of BNF syntax, mostly adding tabs and | characters as needed.</li>
721 <li>Fixed some typographical errors and minor inconsistencies.</li>
722 <li>Added syntax for elements required by variation sequence and alternate glyph summaries.</li>
723 <li>Edited and reformatted some notes for readability.</li>
724 <li>Documented the permitted presence of CROSS_REF outside character entries within blocks.
725 Such CROSS_REFs have been present in published names lists, but that information was missing in
726 the syntax description. For an example see the Currency Symbols block in the code charts.</li>
727 <li>Added description of UTF-8 charset declaration and file encoding.</li>
728 </ul>
729 <p><b>Version 6.1.0</b></p>
730 <ul>
731 <li>Removed constraint that LCTAG consist only of lowercase letters,
732 because of the existence of the &quot;noBreak&quot; tag.</li>
733 </ul>
734 <p><b>Version 6.0.0</b></p>
735 <ul>
736 <li>Added definitions for ESC_CHAR and ESC primitives.</li>
737 <li>Clarified interpretation of backslash escapes in EXPAND_LINE.</li>
738 </ul>
739 <p><b>Version 5.2.0</b></p>
740 <ul>
741 <li>Better aligned the rules section with the actual published files and
742 behavior of existing parsers. This included fixing some obvious typos
743 and clarifying some notes as well as the following changes, which are
744 listed individually.</li>
745 <li>Replaced instances of &lt;tab&gt; by TAB throughout.</li>
746 <li>NAME_LINE for special names may have trailing COMMENTs including COMMENTs
747 consisting entirely of &quot;*&quot;.</li>
748 <li>In CROSS_REF added the form without LCNAME, fixed the literal to the
749 correct lowercase &quot;x&quot; and noted that LCNAME may have &quot;&lt;&quot; and &quot;&gt;&quot; around
750 it in the data. Also added missing LF in the rules.</li>
751 <li>Removed a redundant rule for BLOCKHEADER.</li>
752 <li>Changed FORMALALIAS_LINE from LINE to NAME to match actual restriction
753 on contents.</li>
754 <li>Extended the documentation of lookahead logic for CHAR.</li>
755 <li>Accounted for FILE_COMMENT in overall file structure.</li>
756 </ul>
757 <p><b>Version 5.1.0</b></p>
758 <ul>
759 <li>Noted that comments in NAME_LINEs must be preceded by SP.</li>
760 <li>Provided additional information on allowable characters in names.</li>
761 <li>Added SIDEBAR_LINE.</li>
762 <li>Noted that CROSS_REF must contain a SP and CHAR, and that
763 COMPAT_MAPPING must contain a SP and may contain a &lt;tag&gt;</li>
764 <li>Noted that LCNAME may contain uppercase characters under
765 exceptional circumstances.</li>
766 <li>Relaxed the restriction on lines starting with #, :, %, x and = on
767 the TITLE_PAGE. These are now treated as comments.</li>
768 </ul>
769 <p><b>Version 5.0.0</b></p>
770 <ul>
771 <li>Added FORMALALIAS_LINE and INDEX_TAB to syntax.</li>
772 <li>Fixed the list of lines that may appear before a BLOCKHEADER by
773 adding NOTICE_LINE.</li>
774 <li>Minor fixes to the wording of several syntax definitions.</li>
775 </ul>
776 <p><b>Version 4.0.0</b></p>
777 <ul>
778 <li>Fixed syntax to better reflect restrictions on characters
779 in character and block names.</li>
780 <li>Better document treatment of comments in block names, plus
781 French name rules.</li>
782 </ul>
783 <p><b>Version 3.2.0</b></p>
784 <ul>
785 <li>Fixed several broken links, added a left margin,
786 changed version numbering.</li>
787 </ul>
788 <p><b>Version 3.1.0 (2)</b></p>
789 <ul>
790 <li>Use of 4-6 digit hex notation is now supported.</li>
791 </ul>
792 </div>
793
794 <div class="pagebottom">
795 <hr style="width:50%">
796 <a href="https://www.unicode.org/copyright.html">
797 <img src="https://www.unicode.org/img/hb_notice.gif"
798 alt="Access to Copyright and terms of use" ></a>
799 </div>
800
801 </body>
802
803 </html>
804