-
Notifications
You must be signed in to change notification settings - Fork 0
/
Parser.pm
2525 lines (2481 loc) · 40.5 KB
/
Parser.pm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# This code can be redistributed and modified under the terms of the GNU Affero
# General Public License as published by the Free Software Foundation, either
# version 3 of the License, or (at your option) any later version.
# See the "COPYING" file for details.
package HTML::Blitz::Parser;
use HTML::Blitz::pragma;
use HTML::Blitz::ParseError ();
use HTML::Blitz::TokenType qw(
TT_TAG_OPEN
TT_TAG_CLOSE
TT_TEXT
TT_COMMENT
TT_DOCTYPE
);
our $VERSION = '0.03';
method _fail(
$msg,
:$pos = pos(${$self->{src_ref}}),
:$width = 1,
:$alt_msg = undef,
:$alt_pos = undef,
:$alt_width = 1,
) {
die HTML::Blitz::ParseError->new(
src_name => $self->{src_name},
src_ref => $self->{src_ref},
msg => $msg,
pos => $pos,
width => $width,
alt_msg => $alt_msg,
alt_pos => $alt_pos,
alt_width => $alt_width,
)
}
method throw_for($token, $msg) {
my $type = $token->{type};
$self->_fail(
$msg,
pos => $token->{pos},
$type eq TT_TAG_OPEN || $type eq TT_TAG_CLOSE
? (width => 1 + ($type eq TT_TAG_CLOSE) + length $token->{name})
: (),
);
}
method new($class: $src_name, $src) {
my $self = bless {
src_name => $src_name,
src_ref => \$src,
tag_stack => [],
in_foreign_elem => 0,
}, $class;
$src =~ s/\r\n?/\n/g; # normalize newlines
$src =~ /([\x{d800}-\x{dfff}])/
and $self->_fail(sprintf("surrogate codepoint U+%04X in input", ord $1), pos => $-[1]);
$src =~ /(
[\x{fdd0}-\x{fdef}]
| [\x{fffe}\x{ffff}]
| [\x{1fffe}\x{1ffff}]
| [\x{2fffe}\x{2ffff}]
| [\x{3fffe}\x{3ffff}]
| [\x{4fffe}\x{4ffff}]
| [\x{5fffe}\x{5ffff}]
| [\x{6fffe}\x{6ffff}]
| [\x{7fffe}\x{7ffff}]
| [\x{8fffe}\x{8ffff}]
| [\x{9fffe}\x{9ffff}]
| [\x{afffe}\x{affff}]
| [\x{bfffe}\x{bffff}]
| [\x{cfffe}\x{cffff}]
| [\x{dfffe}\x{dffff}]
| [\x{efffe}\x{effff}]
| [\x{ffffe}\x{fffff}]
| [\x{10fffe}\x{10ffff}]
)/x and $self->_fail(sprintf("non-character codepoint U+%04X in input", ord $1), pos => $-[1]);
$src =~ /((?![ \t\n\f])[\x00-\x1f\x7f-\x9f])/
and $self->_fail(sprintf("control character U+%04X in input", ord $1), pos => $-[1]);
pos($src) = 0;
$self
}
my %entities;
{
while (my $line = readline DATA) {
chomp $line;
my ($name, $value) = $line =~ /^(\w+) (\d+(?:,\d+)*)\z/a
or die "Internal error: malformed entitiy definition '$line'";
$value =~ s/(\d+),?/chr $1/aeg;
$entities{$name} = $value;
}
close DATA;
}
my %void_tags = map +($_ => 1), qw(
area
base br
col
embed
hr
img input
link
meta
source
track
wbr
);
my %foreign_tags = map +($_ => 1), qw(
math
svg
);
method _consume_entity_maybe($chunk) {
$chunk eq '&' or return $chunk;
my $src_ref = $self->{src_ref};
my $char;
if ($$src_ref =~ /\G#/gc) {
if ($$src_ref =~ /\G[xX]/gc) {
$$src_ref =~ /\G([[:xdigit:]]+)/gc
or $self->_fail("missing hex digits after '&#x'");
$char = chr hex $1;
} else {
$$src_ref =~ /\G(\d+)/agc
or $self->_fail("missing digits after '&#'");
$char = chr $1;
}
} else {
$$src_ref =~ /\G(\w+)/agc
or $self->_fail("missing character name after '&'");
$char = $entities{$1}
// $self->_fail("invalid character reference '$1' after '&'", pos => $-[1], width => length $1 );
}
$$src_ref =~ /\G;/gc
or $self->_fail("missing ';' after character reference");
$char
}
method current_tag() {
my $tag_stack = $self->{tag_stack};
@$tag_stack ? $tag_stack->[-1][0] : ''
}
method parse() {
my $src_ref = $self->{src_ref};
my $tag_stack = $self->{tag_stack};
my $cur_tag = @$tag_stack ? $tag_stack->[-1][0] : '';
if ($$src_ref =~ /\G\z/) {
length $cur_tag
and $self->_fail("unclosed '<$cur_tag>' tag", pos => $tag_stack->[-1][1], width => 1 + length($cur_tag));
return undef;
}
my $pos = pos $$src_ref;
{
my $text = '';
if ($cur_tag eq 'script') {
my $err = fun () { $self->_fail("unclosed '<$cur_tag>' tag", pos => $tag_stack->[-1][1], width => 1 + length($cur_tag)) };
SCRIPT_DATA: {
$$src_ref =~ m{ ( <!-- (?! -?> ) ) | </script [ \t\n\f/>] }xaaigc or $err->();
my $match_start = $-[0];
if ($1) {
SCRIPT_DATA_ESCAPED: {
$$src_ref =~ m{ (-->) | < (/?) script [ \t\n\f/>] }xaaigc or $err->();
$match_start = $-[0];
if ($1) {
redo SCRIPT_DATA;
}
if (!$2) {
$$src_ref =~ m{ (-->) | </script [ \t\n\f/>] }xaaigc or $err->();
if ($1) {
redo SCRIPT_DATA;
}
redo SCRIPT_DATA_ESCAPED;
}
}
}
pos($$src_ref) = $match_start;
}
$text = substr $$src_ref, $pos, pos($$src_ref) - $pos;
} elsif ($cur_tag eq 'style') {
if ($$src_ref =~ m{\G ( (?: (?! </ (?aai: style ) [ \t\n\f/>] ) . )+ ) }xsgc) {
$text = $1;
}
} elsif ($cur_tag eq 'title') {
while ($$src_ref =~ m{\G ( (?: (?! </ (?aai: title ) [ \t\n\f/>] ) [^&] )+ | & ) }xgc) {
$text .= $self->_consume_entity_maybe($1);
}
} elsif ($cur_tag eq 'textarea') {
while ($$src_ref =~ m{\G ( (?: (?! </ (?aai: textarea ) [ \t\n\f/>] ) [^&] )+ | & ) }xgc) {
$text .= $self->_consume_entity_maybe($1);
}
} else {
while ($$src_ref =~ /\G ( [^<&]+ | & )/xgc) {
$text .= $self->_consume_entity_maybe($1);
}
}
if (length $text) {
return {
type => TT_TEXT,
pos => $pos,
content => $text,
};
}
}
if ($$src_ref =~ /\G</gc) {
if ($$src_ref =~ /\G!/gc) {
if ($$src_ref =~ /\G--/gc) {
if ($$src_ref =~ /\G(-?>)/) {
$self->_fail("improperly closed comment", width => length($1));
}
$$src_ref =~ /\G(.*?)(<!-->?|--!?>)/sgc
or $self->_fail("unterminated comment", pos => $pos, width => 4);
my ($text, $closer) = ($1, $2);
if ($closer eq '<!--') {
$self->_fail(
"improperly nested comment",
pos => $-[2],
width => length($closer),
alt_msg => "within outer comment",
alt_pos => $pos,
alt_width => 4,
);
}
if ($closer eq '--!>') {
$self->_fail(
"improperly closed comment (should be '-->')",
pos => $-[2],
width => length($closer),
alt_msg => "comment starting here",
alt_pos => $pos,
alt_width => 4,
);
}
if ($closer eq '<!-->') {
$text .= '<!';
$closer = '-->';
}
return {
type => TT_COMMENT,
pos => $pos,
content => $text,
};
}
if ($$src_ref =~ /\Gdoctype/aaigc) {
$$src_ref =~ /\G[ \t\n\f]+/gc
or $self->_fail("missing whitespace after '<!DOCTYPE'");
$$src_ref =~ /\Ghtml/aaigc
or $self->_fail("invalid non-html doctype");
$$src_ref =~ /\G[ \t\n\f]*>/gc
or $self->_fail("missing '>' after '<!DOCTYPE html'");
return {
type => TT_DOCTYPE,
pos => $pos,
};
}
if ($self->{in_foreign_elem} && $$src_ref =~ /\G\[CDATA\[/gc) {
my $text_start = $+[0];
$$src_ref =~ /\]\]>/gc or $self->_fail("missing ']]>' after '<![CDATA['");
my $text_end = $-[0];
return {
type => TT_TEXT,
pos => $text_start,
content => substr($$src_ref, $text_start, $text_end - $text_start),
};
}
$self->_fail("invalid declaration (should be '--' or 'DOCTYPE')");
}
my $closing = $$src_ref =~ m{\G/}gc;
$$src_ref =~ m{\G([a-zA-Z][^\s/>[:cntrl:]]*)}gc
or $self->_fail("invalid tag name");
(my $name = $1) =~ tr/A-Z/a-z/;
$$src_ref =~ /\G[ \t\n\f]+/gc;
my (%attrs, %attr_pos);
while ($$src_ref =~ m{\G([^\s/>="'<[:cntrl:]]+)}gc) {
my $apos = $-[1];
if ($closing) {
$self->_fail("invalid attribute in end tag '</$name>'", pos => $apos, width => length $1);
}
(my $attr_name = $1) =~ tr/A-Z/a-z/;
if (exists $attrs{$attr_name}) {
$self->_fail("duplicate attribute '$attr_name' in '<$name>' tag", pos => $apos, width => length($attr_name), alt_msg => "first defined here", alt_pos => $attr_pos{$attr_name}, alt_width => length($attr_name));
}
$$src_ref =~ /\G[ \t\n\f]+/gc;
my $attr_value = '';
if ($$src_ref =~ /\G=[ \t\n\f]*/gc) {
if ($$src_ref =~ /\G"/gc) {
my $qpos = $-[0];
my $text = '';
while ($$src_ref =~ /\G ( [^"&]+ | & ) /xgc) {
$text .= $self->_consume_entity_maybe($1);
}
$$src_ref =~ /\G"/gc
or $self->_fail(q{missing '"' after attribute value}, alt_msg => 'starting here', alt_pos => $qpos);
$$src_ref =~ m{\G[^ \t\n\f/>]}
and $self->_fail('missing whitespace after attribute value');
$attr_value = $text;
} elsif ($$src_ref =~ /\G'/gc) {
my $qpos = $-[0];
my $text = '';
while ($$src_ref =~ /\G ( [^'&]+ | & ) /xgc) {
$text .= $self->_consume_entity_maybe($1);
}
$$src_ref =~ /\G'/gc
or $self->_fail(q{missing "'" after attribute value}, alt_msg => 'starting here', alt_pos => $qpos);
$$src_ref =~ m{\G[^ \t\n\f/>]}
and $self->_fail('missing whitespace after attribute value');
$attr_value = $text;
} elsif ($$src_ref =~ /\G ( [^ \t\n\f&>"'<=`]+ | & )/xgc) {
my $text = '';
do {
$text .= $self->_consume_entity_maybe($1);
} while $$src_ref =~ /\G ( [^ \t\n\f&>"'<=`]+ | & )/xgc;
$attr_value = $text;
} else {
$self->_fail("missing attribute value after '='");
}
}
$attrs{$attr_name} = $attr_value;
$attr_pos{$attr_name} = $apos;
$$src_ref =~ /\G[ \t\n\f]+/gc;
}
$$src_ref =~ m{\G(/?)>}gc
or $self->_fail("missing '>' at end of tag", alt_msg => 'starting here', alt_pos => $pos, alt_width => 1 + $closing + length($name));
my $is_self_closing = length $1;
if ($closing) {
$is_self_closing and $self->_fail("invalid '/' at end of closing tag '</$name>'", pos => $-[1]);
@$tag_stack
or $self->_fail("closing tag '</$name>' has no corresponding open tag", pos => $pos, width => 1 + 1 + length($name));
$cur_tag eq $name
or $self->_fail("closing tag '</$name>' does not match current open tag '<$cur_tag>'", pos => $pos, width => 1 + 1 + length($name), alt_msg => 'starting here', alt_pos => $tag_stack->[-1][1], alt_width => 1 + length($cur_tag));
if ($foreign_tags{$cur_tag}) {
$self->{in_foreign_elem}--;
}
pop @$tag_stack;
return {
type => TT_TAG_CLOSE,
pos => $pos,
name => $name,
};
}
my $is_void = $void_tags{$name};
if ($is_self_closing && !$is_void && !$self->{in_foreign_elem}) {
$self->_fail("invalid '/' at end of non-void tag '<$name>'", pos => $-[1], alt_msg => 'starting here', alt_pos => $pos, alt_width => 1 + length($name));
}
$is_self_closing ||= $is_void;
if (!$is_self_closing) {
push @{$self->{tag_stack}}, [$name, $pos];
if ($foreign_tags{$name}) {
$self->{in_foreign_elem}++;
}
}
return {
type => TT_TAG_OPEN,
pos => $pos,
name => $name,
attrs => \%attrs,
is_void => $is_void,
is_self_closing => $is_self_closing,
};
}
die "Internal error: unparsable input '${\substr $$src_ref, pos($$src_ref), 10}'...";
}
1
__DATA__
AElig 198
AMP 38
Aacute 193
Abreve 258
Acirc 194
Acy 1040
Afr 120068
Agrave 192
Alpha 913
Amacr 256
And 10835
Aogon 260
Aopf 120120
ApplyFunction 8289
Aring 197
Ascr 119964
Assign 8788
Atilde 195
Auml 196
Backslash 8726
Barv 10983
Barwed 8966
Bcy 1041
Because 8757
Bernoullis 8492
Beta 914
Bfr 120069
Bopf 120121
Breve 728
Bscr 8492
Bumpeq 8782
CHcy 1063
COPY 169
Cacute 262
Cap 8914
CapitalDifferentialD 8517
Cayleys 8493
Ccaron 268
Ccedil 199
Ccirc 264
Cconint 8752
Cdot 266
Cedilla 184
CenterDot 183
Cfr 8493
Chi 935
CircleDot 8857
CircleMinus 8854
CirclePlus 8853
CircleTimes 8855
ClockwiseContourIntegral 8754
CloseCurlyDoubleQuote 8221
CloseCurlyQuote 8217
Colon 8759
Colone 10868
Congruent 8801
Conint 8751
ContourIntegral 8750
Copf 8450
Coproduct 8720
CounterClockwiseContourIntegral 8755
Cross 10799
Cscr 119966
Cup 8915
CupCap 8781
DD 8517
DDotrahd 10513
DJcy 1026
DScy 1029
DZcy 1039
Dagger 8225
Darr 8609
Dashv 10980
Dcaron 270
Dcy 1044
Del 8711
Delta 916
Dfr 120071
DiacriticalAcute 180
DiacriticalDot 729
DiacriticalDoubleAcute 733
DiacriticalGrave 96
DiacriticalTilde 732
Diamond 8900
DifferentialD 8518
Dopf 120123
Dot 168
DotDot 8412
DotEqual 8784
DoubleContourIntegral 8751
DoubleDot 168
DoubleDownArrow 8659
DoubleLeftArrow 8656
DoubleLeftRightArrow 8660
DoubleLeftTee 10980
DoubleLongLeftArrow 10232
DoubleLongLeftRightArrow 10234
DoubleLongRightArrow 10233
DoubleRightArrow 8658
DoubleRightTee 8872
DoubleUpArrow 8657
DoubleUpDownArrow 8661
DoubleVerticalBar 8741
DownArrow 8595
DownArrowBar 10515
DownArrowUpArrow 8693
DownBreve 785
DownLeftRightVector 10576
DownLeftTeeVector 10590
DownLeftVector 8637
DownLeftVectorBar 10582
DownRightTeeVector 10591
DownRightVector 8641
DownRightVectorBar 10583
DownTee 8868
DownTeeArrow 8615
Downarrow 8659
Dscr 119967
Dstrok 272
ENG 330
ETH 208
Eacute 201
Ecaron 282
Ecirc 202
Ecy 1069
Edot 278
Efr 120072
Egrave 200
Element 8712
Emacr 274
EmptySmallSquare 9723
EmptyVerySmallSquare 9643
Eogon 280
Eopf 120124
Epsilon 917
Equal 10869
EqualTilde 8770
Equilibrium 8652
Escr 8496
Esim 10867
Eta 919
Euml 203
Exists 8707
ExponentialE 8519
Fcy 1060
Ffr 120073
FilledSmallSquare 9724
FilledVerySmallSquare 9642
Fopf 120125
ForAll 8704
Fouriertrf 8497
Fscr 8497
GJcy 1027
GT 62
Gamma 915
Gammad 988
Gbreve 286
Gcedil 290
Gcirc 284
Gcy 1043
Gdot 288
Gfr 120074
Gg 8921
Gopf 120126
GreaterEqual 8805
GreaterEqualLess 8923
GreaterFullEqual 8807
GreaterGreater 10914
GreaterLess 8823
GreaterSlantEqual 10878
GreaterTilde 8819
Gscr 119970
Gt 8811
HARDcy 1066
Hacek 711
Hat 94
Hcirc 292
Hfr 8460
HilbertSpace 8459
Hopf 8461
HorizontalLine 9472
Hscr 8459
Hstrok 294
HumpDownHump 8782
HumpEqual 8783
IEcy 1045
IJlig 306
IOcy 1025
Iacute 205
Icirc 206
Icy 1048
Idot 304
Ifr 8465
Igrave 204
Im 8465
Imacr 298
ImaginaryI 8520
Implies 8658
Int 8748
Integral 8747
Intersection 8898
InvisibleComma 8291
InvisibleTimes 8290
Iogon 302
Iopf 120128
Iota 921
Iscr 8464
Itilde 296
Iukcy 1030
Iuml 207
Jcirc 308
Jcy 1049
Jfr 120077
Jopf 120129
Jscr 119973
Jsercy 1032
Jukcy 1028
KHcy 1061
KJcy 1036
Kappa 922
Kcedil 310
Kcy 1050
Kfr 120078
Kopf 120130
Kscr 119974
LJcy 1033
LT 60
Lacute 313
Lambda 923
Lang 10218
Laplacetrf 8466
Larr 8606
Lcaron 317
Lcedil 315
Lcy 1051
LeftAngleBracket 10216
LeftArrow 8592
LeftArrowBar 8676
LeftArrowRightArrow 8646
LeftCeiling 8968
LeftDoubleBracket 10214
LeftDownTeeVector 10593
LeftDownVector 8643
LeftDownVectorBar 10585
LeftFloor 8970
LeftRightArrow 8596
LeftRightVector 10574
LeftTee 8867
LeftTeeArrow 8612
LeftTeeVector 10586
LeftTriangle 8882
LeftTriangleBar 10703
LeftTriangleEqual 8884
LeftUpDownVector 10577
LeftUpTeeVector 10592
LeftUpVector 8639
LeftUpVectorBar 10584
LeftVector 8636
LeftVectorBar 10578
Leftarrow 8656
Leftrightarrow 8660
LessEqualGreater 8922
LessFullEqual 8806
LessGreater 8822
LessLess 10913
LessSlantEqual 10877
LessTilde 8818
Lfr 120079
Ll 8920
Lleftarrow 8666
Lmidot 319
LongLeftArrow 10229
LongLeftRightArrow 10231
LongRightArrow 10230
Longleftarrow 10232
Longleftrightarrow 10234
Longrightarrow 10233
Lopf 120131
LowerLeftArrow 8601
LowerRightArrow 8600
Lscr 8466
Lsh 8624
Lstrok 321
Lt 8810
Map 10501
Mcy 1052
MediumSpace 8287
Mellintrf 8499
Mfr 120080
MinusPlus 8723
Mopf 120132
Mscr 8499
Mu 924
NJcy 1034
Nacute 323
Ncaron 327
Ncedil 325
Ncy 1053
NegativeMediumSpace 8203
NegativeThickSpace 8203
NegativeThinSpace 8203
NegativeVeryThinSpace 8203
NestedGreaterGreater 8811
NestedLessLess 8810
NewLine 10
Nfr 120081
NoBreak 8288
NonBreakingSpace 160
Nopf 8469
Not 10988
NotCongruent 8802
NotCupCap 8813
NotDoubleVerticalBar 8742
NotElement 8713
NotEqual 8800
NotEqualTilde 8770,824
NotExists 8708
NotGreater 8815
NotGreaterEqual 8817
NotGreaterFullEqual 8807,824
NotGreaterGreater 8811,824
NotGreaterLess 8825
NotGreaterSlantEqual 10878,824
NotGreaterTilde 8821
NotHumpDownHump 8782,824
NotHumpEqual 8783,824
NotLeftTriangle 8938
NotLeftTriangleBar 10703,824
NotLeftTriangleEqual 8940
NotLess 8814
NotLessEqual 8816
NotLessGreater 8824
NotLessLess 8810,824
NotLessSlantEqual 10877,824
NotLessTilde 8820
NotNestedGreaterGreater 10914,824
NotNestedLessLess 10913,824
NotPrecedes 8832
NotPrecedesEqual 10927,824
NotPrecedesSlantEqual 8928
NotReverseElement 8716
NotRightTriangle 8939
NotRightTriangleBar 10704,824
NotRightTriangleEqual 8941
NotSquareSubset 8847,824
NotSquareSubsetEqual 8930
NotSquareSuperset 8848,824
NotSquareSupersetEqual 8931
NotSubset 8834,8402
NotSubsetEqual 8840
NotSucceeds 8833
NotSucceedsEqual 10928,824
NotSucceedsSlantEqual 8929
NotSucceedsTilde 8831,824
NotSuperset 8835,8402
NotSupersetEqual 8841
NotTilde 8769
NotTildeEqual 8772
NotTildeFullEqual 8775
NotTildeTilde 8777
NotVerticalBar 8740
Nscr 119977
Ntilde 209
Nu 925
OElig 338
Oacute 211
Ocirc 212
Ocy 1054
Odblac 336
Ofr 120082
Ograve 210
Omacr 332
Omega 937
Omicron 927
Oopf 120134
OpenCurlyDoubleQuote 8220
OpenCurlyQuote 8216
Or 10836
Oscr 119978
Oslash 216
Otilde 213
Otimes 10807
Ouml 214
OverBar 8254
OverBrace 9182
OverBracket 9140
OverParenthesis 9180
PartialD 8706
Pcy 1055
Pfr 120083
Phi 934
Pi 928
PlusMinus 177
Poincareplane 8460
Popf 8473
Pr 10939
Precedes 8826
PrecedesEqual 10927
PrecedesSlantEqual 8828
PrecedesTilde 8830
Prime 8243
Product 8719
Proportion 8759
Proportional 8733
Pscr 119979
Psi 936
QUOT 34
Qfr 120084
Qopf 8474
Qscr 119980
RBarr 10512
REG 174
Racute 340
Rang 10219
Rarr 8608
Rarrtl 10518
Rcaron 344
Rcedil 342
Rcy 1056
Re 8476
ReverseElement 8715
ReverseEquilibrium 8651
ReverseUpEquilibrium 10607
Rfr 8476
Rho 929
RightAngleBracket 10217
RightArrow 8594
RightArrowBar 8677
RightArrowLeftArrow 8644
RightCeiling 8969
RightDoubleBracket 10215
RightDownTeeVector 10589
RightDownVector 8642
RightDownVectorBar 10581
RightFloor 8971
RightTee 8866
RightTeeArrow 8614
RightTeeVector 10587
RightTriangle 8883
RightTriangleBar 10704
RightTriangleEqual 8885
RightUpDownVector 10575
RightUpTeeVector 10588
RightUpVector 8638
RightUpVectorBar 10580
RightVector 8640
RightVectorBar 10579
Rightarrow 8658
Ropf 8477
RoundImplies 10608
Rrightarrow 8667
Rscr 8475
Rsh 8625
RuleDelayed 10740
SHCHcy 1065
SHcy 1064
SOFTcy 1068
Sacute 346
Sc 10940
Scaron 352
Scedil 350
Scirc 348
Scy 1057
Sfr 120086
ShortDownArrow 8595
ShortLeftArrow 8592
ShortRightArrow 8594
ShortUpArrow 8593
Sigma 931
SmallCircle 8728
Sopf 120138
Sqrt 8730
Square 9633
SquareIntersection 8851
SquareSubset 8847
SquareSubsetEqual 8849
SquareSuperset 8848
SquareSupersetEqual 8850
SquareUnion 8852
Sscr 119982
Star 8902
Sub 8912
Subset 8912
SubsetEqual 8838
Succeeds 8827
SucceedsEqual 10928
SucceedsSlantEqual 8829
SucceedsTilde 8831
SuchThat 8715
Sum 8721
Sup 8913
Superset 8835
SupersetEqual 8839
Supset 8913
THORN 222
TRADE 8482
TSHcy 1035
TScy 1062
Tab 9
Tau 932
Tcaron 356
Tcedil 354
Tcy 1058
Tfr 120087
Therefore 8756
Theta 920
ThickSpace 8287,8202
ThinSpace 8201
Tilde 8764
TildeEqual 8771
TildeFullEqual 8773
TildeTilde 8776
Topf 120139
TripleDot 8411
Tscr 119983
Tstrok 358
Uacute 218
Uarr 8607
Uarrocir 10569
Ubrcy 1038
Ubreve 364
Ucirc 219
Ucy 1059
Udblac 368
Ufr 120088
Ugrave 217
Umacr 362
UnderBar 95
UnderBrace 9183
UnderBracket 9141
UnderParenthesis 9181
Union 8899
UnionPlus 8846
Uogon 370
Uopf 120140
UpArrow 8593
UpArrowBar 10514
UpArrowDownArrow 8645
UpDownArrow 8597
UpEquilibrium 10606
UpTee 8869
UpTeeArrow 8613
Uparrow 8657
Updownarrow 8661
UpperLeftArrow 8598
UpperRightArrow 8599
Upsi 978
Upsilon 933
Uring 366
Uscr 119984
Utilde 360
Uuml 220
VDash 8875
Vbar 10987
Vcy 1042
Vdash 8873
Vdashl 10982
Vee 8897
Verbar 8214
Vert 8214
VerticalBar 8739
VerticalLine 124
VerticalSeparator 10072
VerticalTilde 8768
VeryThinSpace 8202
Vfr 120089
Vopf 120141
Vscr 119985
Vvdash 8874
Wcirc 372
Wedge 8896
Wfr 120090
Wopf 120142
Wscr 119986
Xfr 120091
Xi 926
Xopf 120143
Xscr 119987
YAcy 1071
YIcy 1031
YUcy 1070
Yacute 221
Ycirc 374
Ycy 1067
Yfr 120092
Yopf 120144
Yscr 119988
Yuml 376
ZHcy 1046
Zacute 377
Zcaron 381
Zcy 1047
Zdot 379
ZeroWidthSpace 8203
Zeta 918
Zfr 8488
Zopf 8484
Zscr 119989
aacute 225
abreve 259