You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

428 lines
10 KiB

  1. <?php
  2. // Project: Web Reference Database (refbase) <http://www.refbase.net>
  3. // Copyright: Matthias Steffens <mailto:refbase@extracts.de> and the file's
  4. // original author(s).
  5. //
  6. // This code is distributed in the hope that it will be useful,
  7. // but WITHOUT ANY WARRANTY. Please see the GNU General Public
  8. // License for more details.
  9. //
  10. // File: ./includes/transtab_latin1_bibtex.inc.php
  11. // Repository: $HeadURL: file:///svn/p/refbase/code/branches/bleeding-edge/includes/transtab_latin1_bibtex.inc.php $
  12. // Author(s): Matthias Steffens <mailto:refbase@extracts.de>
  13. //
  14. // Created: 13-Aug-06, 13:30
  15. // Modified: $Date: 2007-02-17 01:10:14 +0000 (Sat, 17 Feb 2007) $
  16. // $Author: msteffens $
  17. // $Revision: 894 $
  18. // This is a translation table for conversion from ISO-8859-1 to LaTeX/BibTeX entities. It contains a list of substitution strings for 'ISO-8859-1 West European' characters,
  19. // which can be used with the 'T1' font encoding. Uses commands from the 'textcomp' package.
  20. // Adopted from 'transtab' by Markus Kuhn
  21. // (transtab.utf v1.8 2000-10-12 11:01:28+01 mgk25 Exp); see <http://www.cl.cam.ac.uk/~mgk25/unicode.html> for more info about Unicode and transtab.
  22. $transtab_latin1_bibtex = array(
  23. // NUMBER SIGN
  24. "(?<!\\\\)#" => '$\\#$',
  25. // <U0023> <U0023>
  26. // PERCENT SIGN
  27. "(?<!\\\\)%" => "\\%",
  28. // <U0025> <U0025>
  29. // AMPERSAND
  30. // "(?<!\\\\)&" => "\\&", // encoding of ampersands is already handled by bibutils (which handles it better since it excludes ampersands in URLs from encoding)
  31. // <U0026> <U0026>
  32. // APOSTROPHE
  33. "(?<!\\\\)'" => "{\\textquoteright}",
  34. // <U0027> <U2019>
  35. // GRAVE ACCENT
  36. "(?<!\\\\)`" => "{\\textquoteleft}",
  37. // <U0060> <U201B>;<U2018>
  38. // NO-BREAK SPACE
  39. "" => "~",
  40. // <U00A0> <U0020>
  41. // INVERTED EXCLAMATION MARK
  42. "" => "{\\textexclamdown}",
  43. // <U00A1> <U0021>
  44. // CENT SIGN
  45. "" => "{\\textcent}",
  46. // <U00A2> <U0063>
  47. // POUND SIGN
  48. "" => "{\\textsterling}",
  49. // <U00A3> "<U0047><U0042><U0050>"
  50. // YEN SIGN
  51. "" => "{\\textyen}",
  52. // <U00A5> <U0059>
  53. // BROKEN BAR
  54. "" => "{\\textbrokenbar}",
  55. // <U00A6> <U007C>
  56. // SECTION SIGN
  57. "" => "{\\textsection}",
  58. // <U00A7> <U0053>
  59. // DIAERESIS
  60. "" => "{\\textasciidieresis}",
  61. // <U00A8> <U0022>
  62. // COPYRIGHT SIGN
  63. "" => "{\\textcopyright}",
  64. // <U00A9> "<U0028><U0063><U0029>";<U0063>
  65. // FEMININE ORDINAL INDICATOR
  66. "" => "{\\textordfeminine}",
  67. // <U00AA> <U0061>
  68. // LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
  69. "" => "{\\guillemotleft}",
  70. // <U00AB> "<U003C><U003C>"
  71. // NOT SIGN
  72. "" => "{\\textlnot}",
  73. // <U00AC> <U002D>
  74. // SOFT HYPHEN
  75. "" => "-", // correct?
  76. // <U00AD> <U002D>
  77. // REGISTERED SIGN
  78. "" => "{\\textregistered}",
  79. // <U00AE> "<U0028><U0052><U0029>"
  80. // MACRON
  81. "" => "{\\textasciimacron}",
  82. // <U00AF> <U002D>
  83. // DEGREE SIGN
  84. "" => "{\\textdegree}",
  85. // <U00B0> <U0020>
  86. // PLUS-MINUS SIGN
  87. "" => "{\\textpm}",
  88. // <U00B1> "<U002B><U002F><U002D>"
  89. // SUPERSCRIPT TWO
  90. "" => "{\\texttwosuperior}",
  91. // <U00B2> "<U005E><U0032>";<U0032>
  92. // SUPERSCRIPT THREE
  93. "" => "{\\textthreesuperior}",
  94. // <U00B3> "<U005E><U0033>";<U0033>
  95. // ACUTE ACCENT
  96. "" => "{\\textasciiacute}",
  97. // <U00B4> <U0027>
  98. // MICRO SIGN
  99. "" => "{\\textmu}",
  100. // <U00B5> <U03BC>;<U0075>
  101. // PILCROW SIGN
  102. "" => "{\\textparagraph}",
  103. // <U00B6> <U0050>
  104. // MIDDLE DOT
  105. "" => "{\\textperiodcentered}",
  106. // <U00B7> <U002E>
  107. // CEDILLA
  108. "" => "{\\c\\ }",
  109. // <U00B8> <U002C>
  110. // SUPERSCRIPT ONE
  111. "" => "{\\textonesuperior}",
  112. // <U00B9> "<U005E><U0031>";<U0031>
  113. // MASCULINE ORDINAL INDICATOR
  114. "" => "{\\textordmasculine}",
  115. // <U00BA> <U006F>
  116. // RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
  117. "" => "{\\guillemotright}",
  118. // <U00BB> "<U003E><U003E>"
  119. // VULGAR FRACTION ONE QUARTER
  120. "" => "{\\textonequarter}",
  121. // <U00BC> "<U0020><U0031><U002F><U0034>"
  122. // VULGAR FRACTION ONE HALF
  123. "" => "{\\textonehalf}",
  124. // <U00BD> "<U0020><U0031><U002F><U0032>"
  125. // VULGAR FRACTION THREE QUARTERS
  126. "" => "{\\textthreequarters}",
  127. // <U00BE> "<U0020><U0033><U002F><U0034>"
  128. // INVERTED QUESTION MARK
  129. "" => "{\\textquestiondown}",
  130. // <U00BF> <U003F>
  131. // LATIN CAPITAL LETTER A WITH GRAVE
  132. "" => "{\\`A}", // \symbol{"C0}
  133. // <U00C0> <U0041>
  134. // LATIN CAPITAL LETTER A WITH ACUTE
  135. "" => "{\\'A}", // \symbol{"C1}
  136. // <U00C1> <U0041>
  137. // LATIN CAPITAL LETTER A WITH CIRCUMFLEX
  138. "" => "{\\^A}", // \symbol{"C2}
  139. // <U00C2> <U0041>
  140. // LATIN CAPITAL LETTER A WITH TILDE
  141. "" => "{\\~A}", // \symbol{"C3}
  142. // <U00C3> <U0041>
  143. // LATIN CAPITAL LETTER A WITH DIAERESIS
  144. "" => "{\\\"A}", // \symbol{"C4}
  145. // <U00C4> "<U0041><U0065>";<U0041>
  146. // LATIN CAPITAL LETTER A WITH RING ABOVE
  147. "" => "{\\r A}", // "\\AA" // \symbol{"C5}
  148. // <U00C5> "<U0041><U0061>";<U0041>
  149. // LATIN CAPITAL LETTER AE
  150. "" => "{\\AE}", // \symbol{"C6}
  151. // <U00C6> "<U0041><U0045>";<U0041>
  152. // LATIN CAPITAL LETTER C WITH CEDILLA
  153. "" => "{\\c C}", // \symbol{"C7}
  154. // <U00C7> <U0043>
  155. // LATIN CAPITAL LETTER E WITH GRAVE
  156. "" => "{\\`E}", // \symbol{"C8}
  157. // <U00C8> <U0045>
  158. // LATIN CAPITAL LETTER E WITH ACUTE
  159. "" => "{\\'E}", // \symbol{"C9}
  160. // <U00C9> <U0045>
  161. // LATIN CAPITAL LETTER E WITH CIRCUMFLEX
  162. "" => "{\\^E}", // \symbol{"CA}
  163. // <U00CA> <U0045>
  164. // LATIN CAPITAL LETTER E WITH DIAERESIS
  165. "" => "{\\\"E}", // \symbol{"CB}
  166. // <U00CB> <U0045>
  167. // LATIN CAPITAL LETTER I WITH GRAVE
  168. "" => "{\\`I}", // \symbol{"CC}
  169. // <U00CC> <U0049>
  170. // LATIN CAPITAL LETTER I WITH ACUTE
  171. "" => "{\\'I}", // \symbol{"CD}
  172. // <U00CD> <U0049>
  173. // LATIN CAPITAL LETTER I WITH CIRCUMFLEX
  174. "" => "{\\^I}", // \symbol{"CE}
  175. // <U00CE> <U0049>
  176. // LATIN CAPITAL LETTER I WITH DIAERESIS
  177. "" => "{\\\"I}", // \symbol{"CF}
  178. // <U00CF> <U0049>
  179. // LATIN CAPITAL LETTER ETH
  180. "" => "{\\DH}", // \symbol{"D0}
  181. // <U00D0> <U0044>
  182. // LATIN CAPITAL LETTER N WITH TILDE
  183. "" => "{\\~N}", // \symbol{"D1}
  184. // <U00D1> <U004E>
  185. // LATIN CAPITAL LETTER O WITH GRAVE
  186. "" => "{\\`O}", // \symbol{"D2}
  187. // <U00D2> <U004F>
  188. // LATIN CAPITAL LETTER O WITH ACUTE
  189. "" => "{\\'O}", // \symbol{"D3}
  190. // <U00D3> <U004F>
  191. // LATIN CAPITAL LETTER O WITH CIRCUMFLEX
  192. "" => "{\\^O}", // \symbol{"D4}
  193. // <U00D4> <U004F>
  194. // LATIN CAPITAL LETTER O WITH TILDE
  195. "" => "{\\~O}", // \symbol{"D5}
  196. // <U00D5> <U004F>
  197. // LATIN CAPITAL LETTER O WITH DIAERESIS
  198. "" => "{\\\"O}", // \symbol{"D6}
  199. // <U00D6> "<U004F><U0065>";<U004F>
  200. // MULTIPLICATION SIGN
  201. "" => "{\\texttimes}", // \symbol{"D7}
  202. // <U00D7> <U0078>
  203. // LATIN CAPITAL LETTER O WITH STROKE
  204. "" => "{\\O}", // \symbol{"D8}
  205. // <U00D8> <U004F>
  206. // LATIN CAPITAL LETTER U WITH GRAVE
  207. "" => "{\\`U}", // \symbol{"D9}
  208. // <U00D9> <U0055>
  209. // LATIN CAPITAL LETTER U WITH ACUTE
  210. "" => "{\\'U}", // \symbol{"DA}
  211. // <U00DA> <U0055>
  212. // LATIN CAPITAL LETTER U WITH CIRCUMFLEX
  213. "" => "{\\^U}", // \symbol{"DB}
  214. // <U00DB> <U0055>
  215. // LATIN CAPITAL LETTER U WITH DIAERESIS
  216. "" => "{\\\"U}", // \symbol{"DC}
  217. // <U00DC> "<U0055><U0065>";<U0055>
  218. // LATIN CAPITAL LETTER Y WITH ACUTE
  219. "" => "{\\'Y}", // \symbol{"DD}
  220. // <U00DD> <U0059>
  221. // LATIN CAPITAL LETTER THORN
  222. "" => "{\\TH}", // \symbol{"DE}
  223. // <U00DE> "<U0054><U0068>"
  224. // LATIN SMALL LETTER SHARP S
  225. "" => "{\\ss}", // \symbol{"DF}
  226. // <U00DF> "<U0073><U0073>";<U03B2>
  227. // LATIN SMALL LETTER A WITH GRAVE
  228. "" => "{\\`a}", // \symbol{"E0}
  229. // <U00E0> <U0061>
  230. // LATIN SMALL LETTER A WITH ACUTE
  231. "" => "{\\'a}", // \symbol{"E1}
  232. // <U00E1> <U0061>
  233. // LATIN SMALL LETTER A WITH CIRCUMFLEX
  234. "" => "{\\^a}", // \symbol{"E2}
  235. // <U00E2> <U0061>
  236. // LATIN SMALL LETTER A WITH TILDE
  237. "" => "{\\~a}", // \symbol{"E3}
  238. // <U00E3> <U0061>
  239. // LATIN SMALL LETTER A WITH DIAERESIS
  240. "" => "{\\\"a}", // \symbol{"E4}
  241. // <U00E4> "<U0061><U0065>";<U0061>
  242. // LATIN SMALL LETTER A WITH RING ABOVE
  243. "" => "{\\r a}", // "\\aa" // \symbol{"E5}
  244. // <U00E5> "<U0061><U0061>";<U0061>
  245. // LATIN SMALL LETTER AE
  246. "" => "{\\ae}", // \symbol{"E6}
  247. // <U00E6> "<U0061><U0065>";<U0061>
  248. // LATIN SMALL LETTER C WITH CEDILLA
  249. "" => "{\\c c}", // \symbol{"E7}
  250. // <U00E7> <U0063>
  251. // LATIN SMALL LETTER E WITH GRAVE
  252. "" => "{\\`e}", // \symbol{"E8}
  253. // <U00E8> <U0065>
  254. // LATIN SMALL LETTER E WITH ACUTE
  255. "" => "{\\'e}", // \symbol{"E9}
  256. // <U00E9> <U0065>
  257. // LATIN SMALL LETTER E WITH CIRCUMFLEX
  258. "" => "{\\^e}", // \symbol{"EA}
  259. // <U00EA> <U0065>
  260. // LATIN SMALL LETTER E WITH DIAERESIS
  261. "" => "{\\\"e}", // \symbol{"EB}
  262. // <U00EB> <U0065>
  263. // LATIN SMALL LETTER I WITH GRAVE
  264. "" => "{\\`\\i}", // \symbol{"EC}
  265. // <U00EC> <U0069>
  266. // LATIN SMALL LETTER I WITH ACUTE
  267. "" => "{\\'\\i}", // \symbol{"ED}
  268. // <U00ED> <U0069>
  269. // LATIN SMALL LETTER I WITH CIRCUMFLEX
  270. "" => "{\\^\\i}", // \symbol{"EE}
  271. // <U00EE> <U0069>
  272. // LATIN SMALL LETTER I WITH DIAERESIS
  273. "" => "{\\\"\\i}", // \symbol{"EF}
  274. // <U00EF> <U0069>
  275. // LATIN SMALL LETTER ETH
  276. "" => "{\\dh}", // \symbol{"F0}
  277. // <U00F0> <U0064>
  278. // LATIN SMALL LETTER N WITH TILDE
  279. "" => "{\\~n}", // \symbol{"F1}
  280. // <U00F1> <U006E>
  281. // LATIN SMALL LETTER O WITH GRAVE
  282. "" => "{\\`o}", // \symbol{"F2}
  283. // <U00F2> <U006F>
  284. // LATIN SMALL LETTER O WITH ACUTE
  285. "" => "{\\'o}", // \symbol{"F3}
  286. // <U00F3> <U006F>
  287. // LATIN SMALL LETTER O WITH CIRCUMFLEX
  288. "" => "{\\^o}", // \symbol{"F4}
  289. // <U00F4> <U006F>
  290. // LATIN SMALL LETTER O WITH TILDE
  291. "" => "{\\~o}", // \symbol{"F5}
  292. // <U00F5> <U006F>
  293. // LATIN SMALL LETTER O WITH DIAERESIS
  294. "" => "{\\\"o}", // \symbol{"F6}
  295. // <U00F6> "<U006F><U0065>";<U006F>
  296. // DIVISION SIGN
  297. "" => "{\\textdiv}", // \symbol{"F7}
  298. // <U00F7> <U003A>
  299. // LATIN SMALL LETTER O WITH STROKE
  300. "" => "{\\o}", // \symbol{"F8}
  301. // <U00F8> <U006F>
  302. // LATIN SMALL LETTER U WITH GRAVE
  303. "" => "{\\`u}", // \symbol{"F9}
  304. // <U00F9> <U0075>
  305. // LATIN SMALL LETTER U WITH ACUTE
  306. "" => "{\\'u}", // \symbol{"FA}
  307. // <U00FA> <U0075>
  308. // LATIN SMALL LETTER U WITH CIRCUMFLEX
  309. "" => "{\\^u}", // \symbol{"FB}
  310. // <U00FB> <U0075>
  311. // LATIN SMALL LETTER U WITH DIAERESIS
  312. "" => "{\\\"u}", // \symbol{"FC}
  313. // <U00FC> "<U0075><U0065>";<U0075>
  314. // LATIN SMALL LETTER Y WITH ACUTE
  315. "" => "{\\'y}", // \symbol{"FD}
  316. // <U00FD> <U0079>
  317. // LATIN SMALL LETTER THORN
  318. "" => "{\\th}", // \symbol{"FE}
  319. // <U00FE> "<U0074><U0068>"
  320. // LATIN SMALL LETTER Y WITH DIAERESIS
  321. "" => "{\\\"y}" // \symbol{"FF}
  322. // <U00FF> <U0079>
  323. );
  324. ?>