File: isolatin.src

package info (click to toggle)
wml 2.0.12ds1-8
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,432 kB
  • ctags: 116
  • sloc: perl: 5,634; sh: 3,663; makefile: 1,004
file content (164 lines) | stat: -rw-r--r-- 3,638 bytes parent folder | download | duplicates (2)
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
##
##  wml::fmt::isolatin - ISO-Latin-1 to HTML Entity Conversion
##  Copyright (c) 1997-2001 Ralf S. Engelschall, All Rights Reserved. 
##

#   the container tag itself
<define-tag isolatin endtag=required>
{:\
    [[s||&nbsp;|g]]\
    [[s||&iexcl;|g]]\
    [[s||&cent;|g]]\
    [[s||&pound;|g]]\
    [[s||&curren;|g]]\
    [[s||&yen;|g]]\
    [[s||&brvbar;|g]]\
    [[s||&sect;|g]]\
    [[s||&uml;|g]]\
    [[s||&copy;|g]]\
    [[s||&ordf;|g]]\
    [[s||&laquo;|g]]\
    [[s||&not;|g]]\
    [[s||&shy;|g]]\
    [[s||&reg;|g]]\
    [[s||&macr;|g]]\
    [[s||&deg;|g]]\
    [[s||&plusmn;|g]]\
    [[s||&sup2;|g]]\
    [[s||&sup3;|g]]\
    [[s||&acute;|g]]\
    [[s||&micro;|g]]\
    [[s||&para;|g]]\
    [[s||&middot;|g]]\
    [[s||&cedil;|g]]\
    [[s||&sup1;|g]]\
    [[s||&ordm;|g]]\
    [[s||&raquo;|g]]\
    [[s||&frac14;|g]]\
    [[s||&frac12;|g]]\
    [[s||&frac34;|g]]\
    [[s||&iquest;|g]]\
    [[s||&Agrave;|g]]\
    [[s||&Aacute;|g]]\
    [[s||&Acirc;|g]]\
    [[s||&Atilde;|g]]\
    [[s||&Auml;|g]]\
    [[s||&Aring;|g]]\
    [[s||&AElig;|g]]\
    [[s||&Ccedil;|g]]\
    [[s||&Egrave;|g]]\
    [[s||&Eacute;|g]]\
    [[s||&Ecirc;|g]]\
    [[s||&Euml;|g]]\
    [[s||&Igrave;|g]]\
    [[s||&Iacute;|g]]\
    [[s||&Icirc;|g]]\
    [[s||&Iuml;|g]]\
    [[s||&ETH;|g]]\
    [[s||&Ntilde;|g]]\
    [[s||&Ograve;|g]]\
    [[s||&Oacute;|g]]\
    [[s||&Ocirc;|g]]\
    [[s||&Otilde;|g]]\
    [[s||&Ouml;|g]]\
    [[s||&times;|g]]\
    [[s||&Oslash;|g]]\
    [[s||&Ugrave;|g]]\
    [[s||&Uacute;|g]]\
    [[s||&Ucirc;|g]]\
    [[s||&Uuml;|g]]\
    [[s||&Yacute;|g]]\
    [[s||&THORN;|g]]\
    [[s||&szlig;|g]]\
    [[s||&agrave;|g]]\
    [[s||&aacute;|g]]\
    [[s||&acirc;|g]]\
    [[s||&atilde;|g]]\
    [[s||&auml;|g]]\
    [[s||&aring;|g]]\
    [[s||&aelig;|g]]\
    [[s||&ccedil;|g]]\
    [[s||&egrave;|g]]\
    [[s||&eacute;|g]]\
    [[s||&ecirc;|g]]\
    [[s||&euml;|g]]\
    [[s||&igrave;|g]]\
    [[s||&iacute;|g]]\
    [[s||&icirc;|g]]\
    [[s||&iuml;|g]]\
    [[s||&eth;|g]]\
    [[s||&ntilde;|g]]\
    [[s||&ograve;|g]]\
    [[s||&oacute;|g]]\
    [[s||&ocirc;|g]]\
    [[s||&otilde;|g]]\
    [[s||&ouml;|g]]\
    [[s||&divide;|g]]\
    [[s||&oslash;|g]]\
    [[s||&ugrave;|g]]\
    [[s||&uacute;|g]]\
    [[s||&ucirc;|g]]\
    [[s||&uuml;|g]]\
    [[s||&yacute;|g]]\
    [[s||&thorn;|g]]\
    [[s||&yuml;|g]]\
    %body\
:}\
</define-tag>

#   the "#include ... global" support
<if "$(global)" <group
<isolatin>
{#ISOLATIN_GLOBAL#}
</isolatin>
{#ISOLATIN_GLOBAL#:
/>/>

##EOF##
__END__

=encoding latin1

=head1 NAME

wml::fmt::isolatin - ISO-Latin-1 to HTML Entity Conversion

=head1 SYNOPSIS

  #use wml::fmt::isolatin [global]

  <isolatin>
  Text with ISO latin 1 characters
  for instance german umlauts: ``''
  </isolatin>

=head1 DESCRIPTION

This creates an area substitution with Pass 6 (asubst) for all ISO-Latin-1
characters to their corresponding HTML entities. Note that this is not really
necessary because HTML 3.2 states that every browser has to understand
ISO-Latin-1 characters. So there is no real need to encode them with this
container tag. But it is safe, because the result is 7Bit which can be
transferred over more mediums then the 8 Bit version with ISO-Latin-1
characters.

When adding the C<global> argument, the complete document gets automatically
encapsulated into a C<E<lt>isolatinE<gt>> container.

=head1 AUTHOR

 Ralf S. Engelschall
 rse@engelschall.com
 www.engelschall.com

=head1 REQUIRES

 Internal: P1, P2, P6
 External: --

=head1 SEE ALSO

ISO Latin 1 character table

=cut