Skip to content

Commit 9296c05

Browse files
committed
[uaxid, macros, etc.] Smaller capital-style glyphs
The "hash"/"number" sign is reduced in size and placed on the baseline. This seems to look less distracting and disruptive. We also use the usual small-caps presentation for universal character names.
1 parent 020a312 commit 9296c05

File tree

7 files changed

+22
-21
lines changed

7 files changed

+22
-21
lines changed

source/back.tex

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ \chapter{Bibliography}
2121
\item
2222
%%% Format for the following entry is based on that specified at
2323
%%% http://www.iec.ch/standardsdev/resources/draftingpublications/directives/principles/referencing.htm
24-
The Unicode Consortium. Unicode Standard Annex, UAX \#29,
24+
The Unicode Consortium. Unicode Standard Annex, \UAX{29},
2525
\doccite{Unicode Text Segmentation} [online].
2626
Edited by Mark Davis. Revision 35; issued for Unicode 12.0.0. 2019-02-15 [viewed 2020-02-23].
2727
Available from: \url{http://www.unicode.org/reports/tr29/tr29-35.html}
2828
\item
29-
The Unicode Consortium. Unicode Standard Annex, UAX \#31,
29+
The Unicode Consortium. Unicode Standard Annex, \UAX{31},
3030
\doccite{Unicode Identifier and Pattern Syntax} [online].
3131
Edited by Mark Davis. Revision 33; issued for Unicode 13.0.0.
3232
2020-02-13 [viewed 2021-06-08].

source/compatibility.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
\diffref{lex.name}
1717
\change
1818
Previously valid identifiers containing characters
19-
not present in UAX \#44 properties XID_Start or XID_Continue, or
19+
not present in \UAX{44} properties XID_Start or XID_Continue, or
2020
not in Normalization Form C, are now rejected.
2121
\rationale
2222
Prevent confusing characters in identifiers.

source/intro.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
Standard Ecma-262, third edition, 1999.
7777
\item
7878
The Unicode Consortium.
79-
Unicode Standard Annex, UAX \#44, \doccite{Unicode Character Database}.
79+
Unicode Standard Annex, \UAX{44}, \doccite{Unicode Character Database}.
8080
Edited by Ken Whistler and Lauren\c{t}iu Iancu.
8181
Available from: \url{http://www.unicode.org/reports/tr44/}
8282
\item

source/lex.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@
914914
\indextext{name!length of}%
915915
\indextext{name}%
916916
The character classes XID_Start and XID_Continue
917-
are Derived Core Properties as described by UAX \#44.
917+
are Derived Core Properties as described by \UAX{44}.
918918
\begin{footnote}
919919
On systems in which linkers cannot accept extended
920920
characters, an encoding of the \grammarterm{universal-character-name} can be used in

source/macros.tex

+1
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,7 @@
406406
}
407407
\newcommand{\uname}[1]{\textsc{#1}}
408408
\newcommand{\unicode}[2]{\ucode{#1} \uname{#2}}
409+
\newcommand{\UAX}[1]{\texorpdfstring{UAX~\textsmaller[1]{\raisebox{0.35ex}{\#}}#1}{UAX \##1}}
409410
\newcommand{\NTS}[1]{\textsc{#1}}
410411
\newcommand{\ntbs}{\NTS{ntbs}}
411412
\newcommand{\ntmbs}{\NTS{ntmbs}}

source/uax31.tex

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
%!TEX root = std.tex
2-
\infannex{uaxid}{Conformance with UAX \#31}
2+
\infannex{uaxid}{Conformance with \UAX{31}}
33

44
\rSec1[uaxid.general]{General}
55

66
\pnum
77
This Annex describes the choices made in application of
8-
UAX \#31 (``Unicode Identifier and Pattern Syntax'')
9-
to \Cpp{} in terms of the requirements from UAX \#31 and
8+
\UAX{31} (``Unicode Identifier and Pattern Syntax'')
9+
to \Cpp{} in terms of the requirements from \UAX{31} and
1010
how they do or do not apply to \Cpp{}.
11-
In terms of UAX \#31,
11+
In terms of \UAX{31},
1212
\Cpp{} conforms by meeting the requirements
1313
R1 ``Default Identifiers'' and
1414
R4 ``Equivalent Normalized Identifiers''.
@@ -20,8 +20,8 @@
2020
\rSec2[uaxid.def.general]{General}
2121

2222
\pnum
23-
UAX \#31 specifies a default syntax for identifiers
24-
based on properties from the Unicode Character Database, UAX \#44.
23+
\UAX{31} specifies a default syntax for identifiers
24+
based on properties from the Unicode Character Database, \UAX{44}.
2525
The general syntax is
2626
\begin{codeblock}
2727
<Identifier> := <Start> <Continue>* (<Medial> <Continue>+)*
@@ -33,7 +33,7 @@
3333
to the set of permitted \tcode{<Start>} characters,
3434
the \tcode{<Medial>} set is empty, and
3535
the \tcode{<Continue>} characters are unmodified.
36-
In the grammar used in UAX \#31, this is
36+
In the grammar used in \UAX{31}, this is
3737
\begin{codeblock}
3838
<Identifier> := <Start> <Continue>*
3939
<Start> := XID_Start + @\textrm{\ucode{005f}}@
@@ -49,8 +49,8 @@
4949
\rSec2[uaxid.def.rfmt]{R1a Restricted format characters}
5050

5151
\pnum
52-
If an implementation of UAX \#31 wishes to allow format characters
53-
such as ZERO WIDTH JOINER or ZERO WIDTH NON-JOINER
52+
If an implementation of \UAX{31} wishes to allow format characters
53+
such as \unicode{200d}{zero width joiner} or \unicode{200c}{zero width non-joiner}
5454
it must define a profile allowing them, or
5555
describe precisely which combinations are permitted.
5656

@@ -60,13 +60,13 @@
6060
\rSec2[uaxid.def.stable]{R1b Stable identifiers}
6161

6262
\pnum
63-
An implementation of UAX \#31 may choose to guarantee
63+
An implementation of \UAX{31} may choose to guarantee
6464
that identifiers are stable across versions of the Unicode Standard.
6565
Once a string qualifies as an identifier it does so in all future versions.
6666

6767
\pnum
6868
\Cpp{} does not make this guarantee,
69-
except to the extent that UAX \#31 guarantees
69+
except to the extent that \UAX{31} guarantees
7070
the stability of the XID_Start and XID_Continue properties.
7171

7272
\rSec1[uaxid.immutable]{R2 Immutable identifiers}
@@ -85,7 +85,7 @@
8585
\rSec1[uaxid.pattern]{R3 Pattern_White_Space and Pattern_Syntax characters}
8686

8787
\pnum
88-
UAX \#31 describes how formal languages
88+
\UAX{31} describes how formal languages
8989
such as computer languages should describe and implement
9090
their use of whitespace and syntactically significant characters
9191
during the processes of lexing and parsing.
@@ -96,7 +96,7 @@
9696
\rSec1[uaxid.eqn]{R4 Equivalent normalized identifiers}
9797

9898
\pnum
99-
UAX \#31 requires that implementations describe
99+
\UAX{31} requires that implementations describe
100100
how identifiers are compared and considered equivalent.
101101

102102
\pnum
@@ -115,7 +115,7 @@
115115

116116
\pnum
117117
If any characters are excluded from normalization,
118-
UAX \#31 requires a precise specification of those exclusions.
118+
\UAX{31} requires a precise specification of those exclusions.
119119

120120
\pnum
121121
\Cpp{} does not make any such exclusions.

source/utilities.tex

+2-2
Original file line numberDiff line numberDiff line change
@@ -15017,7 +15017,7 @@
1501715017
implementations should estimate the width of a string
1501815018
as the sum of estimated widths of
1501915019
the first code points in its extended grapheme clusters.
15020-
The extended grapheme clusters of a string are defined by UAX \#29.
15020+
The extended grapheme clusters of a string are defined by \UAX{29}.
1502115021
The estimated width of the following code points is 2:
1502215022
\begin{itemize}
1502315023
\item \ucode{1100} -- \ucode{115f}
@@ -15963,7 +15963,7 @@
1596315963
a UCS scalar value whose Unicode property \tcode{General_Category}
1596415964
has a value in the groups \tcode{Separator} (\tcode{Z}) or \tcode{Other} (\tcode{C}) or to
1596515965
a UCS scalar value which has the Unicode property \tcode{Grapheme_Extend=Yes},
15966-
as described by table 12 of UAX \#44, or
15966+
as described by table 12 of \UAX{44}, or
1596715967

1596815968
\item
1596915969
\placeholder{CE} is not a Unicode encoding and

0 commit comments

Comments
 (0)