home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / gnurecod.zip / ltexlat1.l < prev    next >
Text File  |  1994-03-11  |  5KB  |  141 lines

  1. /* Conversion of files between different charsets and usages.
  2.    Copyright (C) 1990, 1993 Free Software Foundation, Inc.
  3.    Francois Pinard <pinard@iro.umontreal.ca>, 1988.
  4.  
  5.    This program is free software; you can redistribute it and/or modify
  6.    it under the terms of the GNU General Public License as published by
  7.    the Free Software Foundation; either version 2, or (at your option)
  8.    any later version.
  9.  
  10.    This program is distributed in the hope that it will be useful, but
  11.    WITHOUT ANY WARRANTY; without even the implied warranty of
  12.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  13.    General Public License for more details.
  14.  
  15.    You should have received a copy of the GNU General Public License
  16.    along with this program; if not, write to the Free Software
  17.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18. */
  19.  
  20. /* Step name: latex_latin1.  */
  21.  
  22. Letter            [a-zA-Z]
  23. Braces            [ \t]*(\{\})?
  24.  
  25. %%
  26.  
  27. \\"#"            { if (diacritics_only) ECHO; else output ('#'); }
  28. \\"$"            { if (diacritics_only) ECHO; else output ('$'); }
  29. \\"%"            { if (diacritics_only) ECHO; else output ('%'); }
  30. \\"&"            { if (diacritics_only) ECHO; else output ('&'); }
  31. \\"_"            { if (diacritics_only) ECHO; else output ('_'); }
  32. \\"{"            { if (diacritics_only) ECHO; else output ('{'); }
  33. \\"}"            { if (diacritics_only) ECHO; else output ('}'); }
  34.  
  35. \\backslash{Braces}    { if (diacritics_only) ECHO; else output ('\\'); }
  36. "~"            { if (diacritics_only) ECHO; else output (160); }
  37. "!'"            { if (diacritics_only) ECHO; else output (161); }
  38.  
  39. \\S{Braces}        { if (diacritics_only) ECHO; else output (167); }
  40. \\\"            { if (diacritics_only) ECHO; else output (168); }
  41.  
  42. "``"            { if (diacritics_only) ECHO; else output (171); }
  43. \\neg{Braces}        { if (diacritics_only) ECHO; else output (172); }
  44. \\"-"            { if (diacritics_only) ECHO; else output (173); }
  45.  
  46. \\mbox"{$^\\circ$}"    { if (diacritics_only) ECHO; else output (176); }
  47. \\mbox"{$\\pm$}"    { if (diacritics_only) ECHO; else output (177); }
  48. \\mbox"{$^2$}"        { if (diacritics_only) ECHO; else output (178); }
  49. \\mbox"{$^3$}"        { if (diacritics_only) ECHO; else output (179); }
  50. \\"'"            { if (diacritics_only) ECHO; else output (180); }
  51. \\mbox"{$\\mu$}"    { if (diacritics_only) ECHO; else output (181); }
  52.  
  53. \\cdotp            { if (diacritics_only) ECHO; else output (183); }
  54. \\","            { if (diacritics_only) ECHO; else output (184); }
  55. \\mbox"{$^1$}"        { if (diacritics_only) ECHO; else output (185); }
  56.  
  57. "''"            { if (diacritics_only) ECHO; else output (187); }
  58. \\frac"1/4"{Braces}    { if (diacritics_only) ECHO; else output (188); }
  59. \\frac"1/2"{Braces}    { if (diacritics_only) ECHO; else output (189); }
  60. \\frac"3/4"{Braces}    { if (diacritics_only) ECHO; else output (190); }
  61. "?'"            { if (diacritics_only) ECHO; else output (191); }
  62.  
  63. \\"`"A|\\"`{A}"            { output (192); }
  64. \\"'"A|\\"'{A}"            { output (193); }
  65. \\"^"A|\\"^{A}"            { output (194); }
  66. \\"~"A|\\"~{A}"            { output (195); }
  67. \\\"A|\\\""{A}"            { output (196); }
  68. \\AA{Braces}            { output (197); }
  69. \\AE{Braces}            { output (198); }
  70. \\c[ \t]+C|\\c"{C}"        { output (199); }
  71. \\"`"E|\\"`{E}"            { output (200); }
  72. \\"'"E|\\"'{E}"            { output (201); }
  73. \\"^"E|\\"^{E}"            { output (202); }
  74. \\\"E|\\\""{E}"            { output (203); }
  75. \\"`"I|\\"`{I}"            { output (204); }
  76. \\"'"I|\\"'{I}"            { output (205); }
  77. \\"^"I|\\"^{I}"            { output (206); }
  78. \\\"I|\\\""{I}"            { output (207); }
  79.     
  80. \\"~"N|\\"~{N}"            { output (209); }
  81. \\"`"O|\\"`{O}"            { output (210); }
  82. \\"'"O|\\"'{O}"            { output (211); }
  83. \\"^"O|\\"^{O}"            { output (212); }
  84. \\"~"O|\\"~{O}"            { output (213); }
  85. \\\"O|\\\""{O}"            { output (214); }
  86.     
  87. \\O{Braces}            { output (216); }
  88. \\"`"U|\\"`{U}"            { output (217); }
  89. \\"'"U|\\"'{U}"            { output (218); }
  90. \\"^"U|\\"^{U}"            { output (219); }
  91. \\\"U|\\\""{U}"            { output (220); }
  92. \\"'"Y|\\"'{Y}"            { output (221); }
  93.     
  94. \\ss{Braces}            { output (223); }
  95. \\"`"a|\\"`{a}"            { output (224); }
  96. \\"'"a|\\"'{a}"            { output (225); }
  97. \\"^"a|\\"^{a}"            { output (226); }
  98. \\"~"a|\\"~{a}"            { output (227); }
  99. \\\"a|\\\""{a}"            { output (228); }
  100. \\aa{Braces}            { output (229); }
  101. \\ae{Braces}            { output (230); }
  102. \\c[ \t]+c|\\c"{c}"        { output (231); }
  103. \\"`"e|\\"`{e}"            { output (232); }
  104. \\"'"e|\\"'{e}"            { output (233); }
  105. \\"^"e|\\"^{e}"            { output (234); }
  106. \\\"e|\\\""{e}"            { output (235); }
  107. \\"`"\\i{Braces}|\\"`{\\i}"    { output (236); }
  108. \\"'"\\i{Braces}|\\"'{\\i}"    { output (237); }
  109. \\"^"\\i{Braces}|\\"^{\\i}"    { output (238); }
  110. \\\"\\i{Braces}|\\\""{\\i}"    { output (239); }
  111.  
  112. \\"~"n|\\"~{n}"            { output (241); }
  113. \\"`"o|\\"`{o}"            { output (242); }
  114. \\"'"o|\\"'{o}"            { output (243); }
  115. \\"^"o|\\"^{o}"            { output (244); }
  116. \\"~"o|\\"~{o}"            { output (245); }
  117. \\\"o|\\\""{o}"            { output (246); }
  118.     
  119. \\o{Braces}            { output (248); }
  120. \\"`"u|\\"`{u}"            { output (249); }
  121. \\"'"u|\\"'{u}"            { output (250); }
  122. \\"^"u|\\"^{u}"            { output (251); }
  123. \\\"u|\\\""{u}"            { output (252); }
  124. \\"'"y|\\"'{y}"            { output (253); }
  125.     
  126. \\\"y|\\\""{y}"            { output (255); }
  127.  
  128. \\[`'^"]\\i{Letter}*{Braces}    { ECHO; }
  129. \\{Letter}+{Braces}        { ECHO; }
  130.  
  131. %%
  132.  
  133. void
  134. module_latex_latin1 (void)
  135. {
  136.   declare_step ("LaTeX", "Latin-1", MANY_TO_ONE, NULL, file_latex_latin1);
  137.  
  138.   declare_alias ("TeX", "LaTeX");
  139.   declare_alias ("ltex", "LaTeX");
  140. }
  141.