]> granicus.if.org Git - recode/commitdiff
Add LaTeX translations for <, > and ^ (Debian bug #24436)
authorReuben Thomas <rrt@sc3d.org>
Tue, 23 Jan 2018 21:50:06 +0000 (21:50 +0000)
committerReuben Thomas <rrt@sc3d.org>
Tue, 23 Jan 2018 21:50:06 +0000 (21:50 +0000)
src/lat1ltex.c
src/ltexlat1.l

index 958941c25437aecf158b261a3c005f7aec5b1762..43e98981a3dbbe3335e1c82ea95fe7c5e0d5285f 100644 (file)
@@ -95,7 +95,10 @@ static struct translation const other_translations [] =
     { 36, "\\$"},
     { 37, "\\%"},
     { 38, "\\&"},
+    { 60, "$<$"},
+    { 62, "$>$"},
     { 92, "\\backslash{}"},
+    { 94, "\\textasciicircum{}"},
     { 95, "\\_"},
     {123, "\\{"},
     {125, "\\}"},
index 493bd6b87cbcc073a594383c86c8a4231dacf3b9..0fba2f2f5347fedb6b3836f0ee6f904999a1bb32 100644 (file)
@@ -28,10 +28,13 @@ Braces                      [ \t]*(\{\})?
 \\"$"                          { PUT_NON_DIACRITIC_BYTE ('$', subtask); }
 \\"%"                          { PUT_NON_DIACRITIC_BYTE ('%', subtask); }
 \\"&"                          { PUT_NON_DIACRITIC_BYTE ('&', subtask); }
+\\mbox"{$<$}"                  { PUT_NON_DIACRITIC_BYTE ('<', subtask); }
+\\mbox"{$>$}"                  { PUT_NON_DIACRITIC_BYTE ('>', subtask); }
 \\"_"                          { PUT_NON_DIACRITIC_BYTE ('_', subtask); }
 \\"{"                          { PUT_NON_DIACRITIC_BYTE ('{', subtask); }
 \\"}"                          { PUT_NON_DIACRITIC_BYTE ('}', subtask); }
 
+\\textasciicircum{Braces}      { PUT_NON_DIACRITIC_BYTE ('^', subtask); }
 \\backslash{Braces}            { PUT_NON_DIACRITIC_BYTE ('\\', subtask); }
 
 "~"                            { PUT_NON_DIACRITIC_BYTE (160, subtask); }