version 1.15, 2008/11/17 20:24:25
|
version 1.16, 2008/11/20 13:04:24
|
Line 1
|
Line 1
|
# The LearningOnline Network |
# The LearningOnline Network |
# entity -> tex. |
# entity -> tex. |
# |
# |
# |
# entities.pm,v 1.15 2008/11/20 08:00:00 raeburn |
# |
# |
# Copyright Michigan State University Board of Trustees |
# Copyright Michigan State University Board of Trustees |
# |
# |
Line 129 Returns
|
Line 129 Returns
|
|
|
=back |
=back |
|
|
=head1 TABLES ASCII code page |
|
|
|
=cut |
=cut |
|
|
package Apache::entities; |
package Apache::entities; |
use strict; |
use strict; |
|
|
package Apache::entities; |
|
|
|
my %entities = ( |
|
|
|
=pod |
=pod |
|
|
|
=head1 TABLES ASCII code page |
|
|
=over |
=over |
|
|
=item (7-13) |
=item (7-13) |
|
|
# Translation to empty strings: |
Translation to empty strings |
|
|
|
=item (32-126) |
|
|
|
Translations to simple characters |
|
|
|
=item (130-140) |
|
|
|
Controls and Latin-1 supplement. Note that some entities that have |
|
visible effect are not printing unicode characters. Specifically |
|
‚-  |
|
|
|
=item (145-156) |
|
|
|
There's a gap here in my entity table |
|
|
|
=item (159-255) |
|
|
|
Another short gap |
|
|
|
=item (295) |
|
|
|
hbar entity number comes from the unicode character: |
|
see e.g. http://www.unicode.org/charts/PDF/U0100.pdf |
|
ISO also documents a 'planck' entity. |
|
|
|
=item (338-376) |
|
|
|
Latin extended-A HTML 4.01 entities |
|
|
|
=item (402) |
|
|
|
Latin extended B HTML 4.01 entities |
|
|
|
=item (710 & 732) |
|
|
|
Spacing modifier letters |
|
|
|
=item (913-937) |
|
|
|
Greek uppercase (skipss 930) |
|
|
|
=item (945-982) |
|
|
|
Greek lowercase |
|
|
|
=item (8194-8364) |
|
|
|
The general punctuation set |
|
|
|
=item (8472-8501) |
|
|
|
Letter like symbols |
|
|
|
=item (8592-8669) |
|
|
|
Arrows and then some (harpoons from Hon Kie). |
|
|
|
=item (8704-8734) |
|
|
|
Mathematical operators. |
|
|
|
=item (8735-9830) |
|
|
|
The items below require the isoent latex package which I can't find at least for FC5. |
|
Temporarily commented out. |
|
|
|
=back |
|
|
=cut |
=cut |
|
|
|
my %entities = ( |
|
|
|
# Translation to empty strings: |
|
|
7 => "", |
7 => "", |
9 => "", |
9 => "", |
10 => "", |
10 => "", |
13 => "", |
13 => "", |
|
|
=pod |
|
|
|
=item (32-126) |
|
|
|
# Translations to simple characters: |
# Translations to simple characters: |
|
|
=cut |
|
|
|
32 => " ", |
32 => " ", |
33 => "!", |
33 => "!", |
34 => '"', |
34 => '"', |
Line 262 my %entities = (
|
Line 324 my %entities = (
|
125 => '\}', |
125 => '\}', |
126 => '\~', |
126 => '\~', |
|
|
=pod |
# Controls and Latin-1 supplement. |
|
|
=item (130-140) |
|
|
|
Controls and Latin-1 supplement. Note that some entities that have |
|
visible effect are not printing unicode characters. Specifically |
|
‚-  |
|
|
|
=cut |
|
|
|
130 => ',', |
130 => ',', |
131 => '\ensuremath{f}', |
131 => '\ensuremath{f}', |
Line 284 my %entities = (
|
Line 338 my %entities = (
|
139 => '\ensuremath{<}', |
139 => '\ensuremath{<}', |
140 => '{\OE}', |
140 => '{\OE}', |
|
|
=pod |
# There's a gap here in my entity table |
|
|
=item (145-156) |
|
|
|
There's a gap here in my entity table |
|
|
|
=cut |
|
|
|
145 => '`', |
145 => '`', |
146 => '\'', |
146 => '\'', |
Line 305 my %entities = (
|
Line 353 my %entities = (
|
155 => '\ensuremath{>}', |
155 => '\ensuremath{>}', |
156 => '\oe ', |
156 => '\oe ', |
|
|
=pod |
# Another short gap: |
|
|
=item (159-255) |
|
|
|
Another short gap: |
|
|
|
=cut |
|
|
|
159 => '\"Y', |
159 => '\"Y', |
160 => '~', |
160 => '~', |
Line 502 my %entities = (
|
Line 544 my %entities = (
|
'yuml' => '\\"{y}', |
'yuml' => '\\"{y}', |
|
|
|
|
=pod |
# hbar entity number comes from the unicode character: |
|
|
=item (295) |
|
|
|
hbar entity number comes from the unicode charater: |
|
see e.g. http://www.unicode.org/charts/PDF/U0100.pdf |
|
ISO also documents a 'planck' entity. |
|
|
|
=cut |
|
|
|
295 => '\ensuremath{\hbar}', |
295 => '\ensuremath{\hbar}', |
'planck' => '\ensuremath{\hbar}', |
'planck' => '\ensuremath{\hbar}', |
|
|
=pod |
# Latin extended-A HTML 4.01 entities: |
|
|
=item (338-376) |
|
|
|
Latin extended-A HTML 4.01 entities: |
|
|
|
=cut |
|
|
|
338 => '\OE', |
338 => '\OE', |
'OElig' => '\OE', |
'OElig' => '\OE', |
Line 534 my %entities = (
|
Line 562 my %entities = (
|
376 => '\\"{Y}', |
376 => '\\"{Y}', |
'Yuml' => '\\"{Y}', |
'Yuml' => '\\"{Y}', |
|
|
=pod |
# Latin extended B HTML 4.01 entities |
|
|
=item (402) |
|
|
|
Latin extended B HTML 4.01 entities |
|
|
|
=cut |
|
|
|
402 => '\ensuremath{f}', |
402 => '\ensuremath{f}', |
'fnof' => '\ensuremath{f}', |
'fnof' => '\ensuremath{f}', |
|
|
=pod |
# Spacing modifier letters: |
|
|
=item (710 & 732) |
|
|
|
Spacing modifier letters: |
|
|
|
=cut |
|
|
|
710 => '\^{}', |
710 => '\^{}', |
'circ' => '\^{}', |
'circ' => '\^{}', |
732 => '\~{}', |
732 => '\~{}', |
'tilde' => '\~{}', |
'tilde' => '\~{}', |
|
|
=pod |
# Greek uppercase: |
|
|
=item (913-929) |
|
|
|
Greek uppercase: |
|
|
|
=cut |
|
|
|
913 => '\ensuremath{\mathrm{A}}', |
913 => '\ensuremath{\mathrm{A}}', |
'Alpha' => '\ensuremath{\mathrm{A}}', |
'Alpha' => '\ensuremath{\mathrm{A}}', |
Line 600 my %entities = (
|
Line 610 my %entities = (
|
'Pi' => '\ensuremath{\Pi}', |
'Pi' => '\ensuremath{\Pi}', |
929 => '\ensuremath{\mathrm{P}}', |
929 => '\ensuremath{\mathrm{P}}', |
'Rho' => '\ensuremath{\mathrm{P}}', |
'Rho' => '\ensuremath{\mathrm{P}}', |
|
|
|
|
=pod |
|
|
|
=item (931-937) |
|
|
|
Skips 930 |
|
|
|
=cut |
|
|
|
931 => '\ensuremath{\Sigma}', |
931 => '\ensuremath{\Sigma}', |
'Sigma' => '\ensuremath{\Sigma}', |
'Sigma' => '\ensuremath{\Sigma}', |
932 => '\ensuremath{\mathrm{T}}', |
932 => '\ensuremath{\mathrm{T}}', |
Line 625 my %entities = (
|
Line 625 my %entities = (
|
937 => '\ensuremath{\Omega}', |
937 => '\ensuremath{\Omega}', |
'Omega' => '\ensuremath{\Omega}', |
'Omega' => '\ensuremath{\Omega}', |
|
|
=pod |
# Greek lowercase: |
|
|
=item (945-982) |
|
|
|
Greek lowercase: |
|
|
|
=cut |
|
|
|
945 => '\ensuremath{\alpha}', |
945 => '\ensuremath{\alpha}', |
'alpha' => '\ensuremath{\alpha}', |
'alpha' => '\ensuremath{\alpha}', |
Line 690 my %entities = (
|
Line 684 my %entities = (
|
982 => '\ensuremath{\varpi}', |
982 => '\ensuremath{\varpi}', |
'piv' => '\ensuremath{\varpi}', |
'piv' => '\ensuremath{\varpi}', |
|
|
=pod |
# The general punctuation set: |
|
|
=item (8194-8364) |
|
|
|
The general punctuation set: |
|
|
|
=cut |
|
|
|
8194, => '\hspace{.5em}', |
8194, => '\hspace{.5em}', |
'enspc' => '\hspace{.5em}', |
'enspc' => '\hspace{.5em}', |
Line 753 my %entities = (
|
Line 741 my %entities = (
|
8364 => '\texteuro', |
8364 => '\texteuro', |
'euro' => '\texteuro', |
'euro' => '\texteuro', |
|
|
=pod |
# Letter like symbols |
|
|
=item (8472-8501) |
|
|
|
Letter like symbols |
|
|
|
=cut |
|
|
|
|
|
8472 => '\ensuremath{\wp}', |
8472 => '\ensuremath{\wp}', |
'weierp' => '\ensuremath{\wp}', |
'weierp' => '\ensuremath{\wp}', |
Line 773 my %entities = (
|
Line 754 my %entities = (
|
8501 => '\ensuremath{\aleph}', |
8501 => '\ensuremath{\aleph}', |
'alefsym'=> '\ensuremath{\aleph}', |
'alefsym'=> '\ensuremath{\aleph}', |
|
|
=pod |
# Arrows and then some (harpoons from Hon Kie). |
|
|
=item (8592-8669) |
|
|
|
Arrows and then some (harpoons from Hon Kie). |
|
|
|
=cut |
|
|
|
8592 => '\textleftarrow', |
8592 => '\textleftarrow', |
'larr' => '\textleftarrow', |
'larr' => '\textleftarrow', |
Line 825 my %entities = (
|
Line 800 my %entities = (
|
8669 => '\ensuremath{\rightsquigarrow}', |
8669 => '\ensuremath{\rightsquigarrow}', |
'rarrw' => '\ensuremath{\rightsquigarrow}', |
'rarrw' => '\ensuremath{\rightsquigarrow}', |
|
|
=pod |
# Mathematical operators. |
|
|
=item (8704-8734) |
|
|
|
Mathematical operators. |
|
|
|
=cut |
|
|
|
|
|
'forall' => '\ensuremath{\forall}', |
'forall' => '\ensuremath{\forall}', |
8704 => '\ensuremath{\forall}', |
8704 => '\ensuremath{\forall}', |
Line 880 my %entities = (
|
Line 848 my %entities = (
|
'infin' => '\ensuremath{\infty}', |
'infin' => '\ensuremath{\infty}', |
8734 => '\ensuremath{\infty}', |
8734 => '\ensuremath{\infty}', |
|
|
|
# The items below require the isoent latex package which I can't find at least for FC5. |
=pod |
# Temporarily commented out. |
|
|
=item (8735-9830) |
|
|
|
|
|
The items below require the isoent latex package which I can't find at least for FC5. |
|
Temporarily commented out. |
|
|
|
'ang90' => '\ensuremath{\sqangle}', |
'ang90' => '\ensuremath{\sqangle}', |
8735 => '\ensuremath{\sqangle}', |
8735 => '\ensuremath{\sqangle}', |
|
|
=cut |
|
|
|
'ang' => '\ensuremath{\angle}', |
'ang' => '\ensuremath{\angle}', |
8736 => '\ensuremath{\angle}', |
8736 => '\ensuremath{\angle}', |
'angmsd' => '\ensuremath{\measuredangle}', |
'angmsd' => '\ensuremath{\measuredangle}', |
Line 1104 my %entities = (
|
Line 1064 my %entities = (
|
|
|
=pod |
=pod |
|
|
=item * |
=head1 UNICODE TABLE |
|
|
|
=over |
|
|
There are some named entities that don't have a good |
There are some named entities that don't have a good |
latex equivalent, these are converted to utf-8 via this table |
latex equivalent, these are converted to utf-8 via this table |