From: Reuben Thomas Date: Tue, 23 Jan 2018 21:50:06 +0000 (+0000) Subject: Add LaTeX translations for <, > and ^ (Debian bug #24436) X-Git-Tag: v3.7~64 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6add91e1b2fa5f054a93f39594971216a6443c5c;p=recode Add LaTeX translations for <, > and ^ (Debian bug #24436) --- diff --git a/src/lat1ltex.c b/src/lat1ltex.c index 958941c..43e9898 100644 --- a/src/lat1ltex.c +++ b/src/lat1ltex.c @@ -95,7 +95,10 @@ static struct translation const other_translations [] = { 36, "\\$"}, { 37, "\\%"}, { 38, "\\&"}, + { 60, "$<$"}, + { 62, "$>$"}, { 92, "\\backslash{}"}, + { 94, "\\textasciicircum{}"}, { 95, "\\_"}, {123, "\\{"}, {125, "\\}"}, diff --git a/src/ltexlat1.l b/src/ltexlat1.l index 493bd6b..0fba2f2 100644 --- a/src/ltexlat1.l +++ b/src/ltexlat1.l @@ -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); }