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|| |g]]\
[[s||¡|g]]\
[[s||¢|g]]\
[[s||£|g]]\
[[s||¤|g]]\
[[s||¥|g]]\
[[s||¦|g]]\
[[s||§|g]]\
[[s||¨|g]]\
[[s||©|g]]\
[[s||ª|g]]\
[[s||«|g]]\
[[s||¬|g]]\
[[s||­|g]]\
[[s||®|g]]\
[[s||¯|g]]\
[[s||°|g]]\
[[s||±|g]]\
[[s||²|g]]\
[[s||³|g]]\
[[s||´|g]]\
[[s||µ|g]]\
[[s||¶|g]]\
[[s||·|g]]\
[[s||¸|g]]\
[[s||¹|g]]\
[[s||º|g]]\
[[s||»|g]]\
[[s||¼|g]]\
[[s||½|g]]\
[[s||¾|g]]\
[[s||¿|g]]\
[[s||À|g]]\
[[s||Á|g]]\
[[s||Â|g]]\
[[s||Ã|g]]\
[[s||Ä|g]]\
[[s||Å|g]]\
[[s||Æ|g]]\
[[s||Ç|g]]\
[[s||È|g]]\
[[s||É|g]]\
[[s||Ê|g]]\
[[s||Ë|g]]\
[[s||Ì|g]]\
[[s||Í|g]]\
[[s||Î|g]]\
[[s||Ï|g]]\
[[s||Ð|g]]\
[[s||Ñ|g]]\
[[s||Ò|g]]\
[[s||Ó|g]]\
[[s||Ô|g]]\
[[s||Õ|g]]\
[[s||Ö|g]]\
[[s||×|g]]\
[[s||Ø|g]]\
[[s||Ù|g]]\
[[s||Ú|g]]\
[[s||Û|g]]\
[[s||Ü|g]]\
[[s||Ý|g]]\
[[s||Þ|g]]\
[[s||ß|g]]\
[[s||à|g]]\
[[s||á|g]]\
[[s||â|g]]\
[[s||ã|g]]\
[[s||ä|g]]\
[[s||å|g]]\
[[s||æ|g]]\
[[s||ç|g]]\
[[s||è|g]]\
[[s||é|g]]\
[[s||ê|g]]\
[[s||ë|g]]\
[[s||ì|g]]\
[[s||í|g]]\
[[s||î|g]]\
[[s||ï|g]]\
[[s||ð|g]]\
[[s||ñ|g]]\
[[s||ò|g]]\
[[s||ó|g]]\
[[s||ô|g]]\
[[s||õ|g]]\
[[s||ö|g]]\
[[s||÷|g]]\
[[s||ø|g]]\
[[s||ù|g]]\
[[s||ú|g]]\
[[s||û|g]]\
[[s||ü|g]]\
[[s||ý|g]]\
[[s||þ|g]]\
[[s||ÿ|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
|