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
|
### File: hebrew.pl
### Version 0.1, June 29, 2002
### Written by Ross Moore <ross@maths.mq.edu.au>
### includes macros in Babel's 8859-8.def (hebrew_p)
###
### ISO_8859-8 encoding information
###
## Copyright (C) 2002 by Ross Moore
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2 of the License, or
## (at your option) any later version.
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
$LR_CHARSET = 'iso-8859-8';
$BIDI_CHARSET = 'iso-8859-8-i';
$INPUTENC = 'hebrew';
$CHARSET=$BIDI_CHARSET;
#Character ranges for lower --> upper-case conversion
$sclower = '';
$scupper = '';
#extra pattern match preceding lower --> upper-case conversion
$scextra = '';
%extra_small_caps = ();
%low_entities = ();
sub do_cmd_textcurrency { join('', &iso_map("curren", ""), $_[0]);}
sub do_cmd_textperiodcentered { join('', &iso_map("middot", ""), $_[0]);}
sub do_cmd_textonequarter { join('', &iso_map("frac14", ""), $_[0]);}
sub do_cmd_textonehalf { join('', &iso_map("frac12", ""), $_[0]);}
sub do_cmd_textthreequarters { join('', &iso_map("frac34", ""), $_[0]);}
sub do_cmd_mathdegree { join('', &iso_map("deg", ""), $_[0]);}
sub do_cmd_mathonesuperior { join('', &iso_map("sup1", ""), $_[0]);}
sub do_cmd_mathtwosuperior { join('', &iso_map("sup2", ""), $_[0]);}
sub do_cmd_maththreesuperior { join('', &iso_map("sup3", ""), $_[0]);}
sub do_cmd_S { join('', &iso_map("sect", ""), $_[0]);}
sub do_cmd_P { join('', &iso_map("para", ""), $_[0]);}
sub do_cmd_div { join('', &iso_map("divide", ""), $_[0]);}
sub do_cmd_times { join('', &iso_map("times", ""), $_[0]);}
sub do_cmd_minus { join('', &iso_map("shy", ""), $_[0]);}
sub do_cmd_pounds { join('', &iso_map("pound", ""), $_[0]);}
sub do_cmd_cdot { join('', &iso_map("middot", ""), $_[0]);}
sub do_cmd_micron { join('', &iso_map("micro", ""), $_[0]);}
sub do_cmd_makafgadol { &do_cmd_textendash(@_) }
sub do_cmd_makafanak { &do_cmd_textemdash(@_) }
sub do_cmd_geresh { &do_cmd_textquoteright(@_) }
sub do_cmd_opengeresh { &do_cmd_textquoteright(@_) }
sub do_cmd_closegeresh { &do_cmd_textquoteleft(@_) }
sub do_cmd_openquote { &do_cmd_textquotedblright(@_) }
sub do_cmd_closequote { &do_cmd_textquotedblleft(@_) }
sub do_cmd_leftquotation { &do_cmd_textquotedblright(@_) }
sub do_cmd_rightquotation { &do_cmd_textquotedblleft(@_) }
# special macros for right-left typesetting
sub do_cmd_L { $_[0] }
sub do_cmd_R { $_[0] }
%iso_8859_8_character_map
= (
'alef', 'à', # Hebrew letter ALEF
'bet', 'á', # Hebrew letter BET
'gimel', 'â', # Hebrew letter GIMEL
'dalet', 'ã', # Hebrew letter DALET
'he', 'ä', # Hebrew letter HE
'vav', 'å', # Hebrew letter VAV
'zayin', 'æ', # Hebrew letter ZAYIN
'het', 'ç', # Hebrew letter HET
'tet', 'è', # Hebrew letter TET
'yod', 'é', # Hebrew letter YOD
'finalkaf', 'ê', # Hebrew letter final KAF
'kaf', 'ë', # Hebrew letter KAF
'lamed', 'ì', # Hebrew letter LAMED
'finalmem', 'í', # Hebrew letter final MEM
'mem', 'î', # Hebrew letter MEM
'finalnun', 'ï', # Hebrew letter final NUN
'nun', 'ð', # Hebrew letter NUN
'samekh', 'ñ', # Hebrew letter SAMEKH
'ayin', 'ò', # Hebrew letter AYIN
'finalpe', 'ó', # Hebrew letter final PE
'pe', 'ô', # Hebrew letter PE
'finaltsadi', 'õ', # Hebrew letter final TSADI
'tsadi', 'ö', # Hebrew letter TSADI
'qof', '÷', # Hebrew letter QOF
'resh', 'ø', # Hebrew letter RESH
'shin', 'ù', # Hebrew letter SHIN
'tav', 'ú', # Hebrew letter TAV
'amp', '&', # ampersand
'gt', '>', # greater than
'lt', '<', # less than
'quot', '"', # double quote
# These have HTML4 mnemonic names ...
'nbsp', ' ', # non-breaking space
'pound', '£', # pound sign
'curren', '¤', # currency sign
'sect', '§', # section mark
'shy', '­',
'sup2', '²',
'sup3', '³',
'micro', 'µ',
'middot', '·',
'sup1', '¹',
'frac14', '¼',
'frac12', '½',
'frac34', '¾',
'times', '×',
# These are character types without arguments ...
'grave' , "`",
'circ', '^',
'tilde', '~',
'uml', '¨',
'breve', '¯',
'deg', '°',
'acute' , "´",
'cedil', "¸",
);
%iso_8859_8_character_map_inv =
(
'>' , '\\ensuremath{>}',
'<' , '\\ensuremath{<}',
'&' , '&',
'^' , '\\^{}',
'~' , '\\~{}',
'"' , '"',
' ' , '\\nobreakspace{}',
'¡' , '',
'¢' , '\\textcent{}',
'£' , '\\pounds{}',
'¤' , '\\textcurrency{}',
'¥' , '\\textyen{}',
'¦' , '\\textbrokenbar',
'§' , '\\S{}',
'¨' , '\\"{}',
'©' , '\\textcopyright{}',
'ª' , '\\ensuremath{\\times}',
'«' , '\\guillemotleft{}',
'¬' , '\\lnot{}',
'­' , '\\-',
'®' , '\\textregistered{}',
'¯' , '\\={}',
'°' , '\\ensuremath{^{\\circ}}',
'±' , '\\ensuremath{\\pm}',
'²' , '\\ensuremath{^{2}}',
'³' , '\\ensuremath{^{3}}',
'´' , '\\\'{}',
'µ' , '\ensuremath{\\micron}',
'¶' , '\\P{}',
'·' , '\\ensuremath{\\cdot{}}',
'¸' , '\\c{}',
'¹' , '\\ensuremath{^{1}}',
'º' , '\\ensuremath{\\div}',
'»' , '\\guillemotright',
# '¼' , '\\textonequarter{}',
'¼' , '\\ensuremath{\\frac{1}{4}}',
# '½' , '\\textonehalf{}',
'½' , '\\ensuremath{\\frac{1}{2}}',
# '¾' , '\\textthreequarters{}',
'¾' , '\\ensuremath{\\frac{3}{4}}',
'¿' , '',
'À' , '',
'Á' , '',
'Â' , '',
'Ã' , '',
'Ä' , '',
'Å' , '',
'Æ' , '',
'Ç' , '',
'È' , '',
'É' , '',
'Ê' , '',
'Ë' , '',
'Ì' , '',
'Í' , '',
'Î' , '',
'Ï' , '',
'Ð' , '',
'Ñ' , '',
'Ò' , '',
'Ó' , '',
'Ô' , '',
'Õ' , '',
'Ö' , '',
'×' , '',
'Ø' , '',
'Ù' , '',
'Ú' , '',
'Û' , '',
'Ü' , '',
'Ý' , '',
'Þ' , '',
'ß' , '\\doubleunderline{}',
'à' , '\\alef{}',
'á' , '\\bet{}',
'â' , '\\gimel{}',
'ã' , '\\dalet{}',
'ä' , '\\he{}',
'å' , '\\vav{}',
'æ' , '\\zayin{}',
'ç' , '\\het{}',
'è' , '\\tet{}',
'é' , '\\yod{}',
'ê' , '\\finalkaf{}',
'ë' , '\\kaf{}',
'ì' , '\\lamed{}',
'í' , '\\finalmem{}',
'î' , '\\mem{}',
'ï' , '\\finalnun{}',
'ð' , '\\nun{}',
'ñ' , '\\samekh{}',
'ò' , '\\ayin{}',
'ó' , '\\finalpe{}',
'ô' , '\\pe{}',
'õ' , '\\finaltsadi{}',
'ö' , '\\tsadi{}',
'÷' , '\\qof{}',
'ø' , '\\resh{}',
'ù' , '\\shin{}',
'ú' , '\\tav{}',
'û' , '',
'ü' , '',
'ý' , '',
'þ' , '',
'ÿ' , ''
);
1;
|