From c541ca0474df547e29f531b6af470a8d5946bc95 Mon Sep 17 00:00:00 2001 From: Jack Rueter Date: Sat, 6 Jul 2024 13:15:37 +0300 Subject: [PATCH] Add modify-tags.regex to avoid continuous regressions in tags for apertium.relabel --- tools/mt/apertium/tagsets/Makefile.am | 2 +- tools/mt/apertium/tagsets/modify-tags.regex | 83 +++++++++++++++++++++ 2 files changed, 84 insertions(+), 1 deletion(-) create mode 100644 tools/mt/apertium/tagsets/modify-tags.regex diff --git a/tools/mt/apertium/tagsets/Makefile.am b/tools/mt/apertium/tagsets/Makefile.am index 09a3f969..fd35b2ae 100644 --- a/tools/mt/apertium/tagsets/Makefile.am +++ b/tools/mt/apertium/tagsets/Makefile.am @@ -6,7 +6,7 @@ TAGSET_SRCS= # List reorder regex source files here: -REGEX_SRCS= +REGEX_SRCS=modify-tags.regex ####### Other targets: ########### diff --git a/tools/mt/apertium/tagsets/modify-tags.regex b/tools/mt/apertium/tagsets/modify-tags.regex new file mode 100644 index 00000000..a5787154 --- /dev/null +++ b/tools/mt/apertium/tagsets/modify-tags.regex @@ -0,0 +1,83 @@ +[ + [ % % -> % ] + [ "" -> "" "" ] .o. + [ "" -> "" "" ] .o. + [ "" -> "" "" ] .o. + [ "" -> "" "" ] .o. + [ "" -> "" "" ] .o. + [ "" -> "" "" ] .o. + [ "" -> "" ] .o. + [ "" -> "" ] .o. + [ "" -> "" ] .o. + [ "" -> "" ] .o. + [ "" -> "" ] .o. + [ "" -> "" ] .o. + [ "" -> "" ] .o. + [ "" -> "" ] .o. + [ "" -> "" ] .o. + [ "" -> "" ] .o. + [ "" -> "" ] .o. + [ "#" -> "+" ] .o. + [ % -> % ] .o. + [ % -> % ] .o. + [ "" -> "¹" , + "" -> "²" , + "" -> "³" , + "" -> "⁴" , + "" -> "⁵" , + "" -> "⁶" , + "" -> "⁷" , + "" -> "⁸" , + "" -> "⁹" , + "" -> "" , + "Ex/N" -> "" , + "Ex/A" -> "" , + "Ex/V" -> "" , + "" -> "" , + "" -> "" , + "+Ex/TV" -> "" , + "+Ex/IV" -> "" , + "+AA" -> "" , + "+NN" -> "" , + "+VV" -> "" , + "+IVV" -> "" , + "+TVV" -> "" , + "" -> "" , + "" -> "" , + "" -> "" , + "" -> "" , + "" -> "" , + "" -> "" , + "" -> "" , + "" -> "" , + "" -> "" , + "" -> "" , + "" -> "" , + "" -> "" , + "" -> "" , + "" -> "" , + "" -> "" , + "" -> "" , + "" -> "" ] .o. + [ "^" -> 0 ] .o. + [ "" -> 0 ] .o. + [ "" -> 0 ] .o. + [ {excl} "" -> "!" "" ] .o. + [ {pipe} "" -> "|" "" ] .o. + [ "" -> "" || "," _ ] .o. + [ "" -> "" || "." _ ] .o. + [ "" -> "" || "…" _ ] .o. + [ "" -> "" || {..} _ ] .o. + [ "" -> "" || {...} _ ] .o. + [ "" -> "" || "¿" _ ] .o. + [ "" -> "" || "¶" _ ] .o. + [ "" -> "" || "?" _ ] .o. + [ "" -> "" || ":" _ ] .o. + [ "" -> "" || ";" _ ] .o. + [ "" -> "" || "-" _ ] .o. + [ "-" -> "" || [ "" ] _ ] .o. + [ "" "" -> "" ] + [ "" "" -> "" ] + [ "" -> "" || %" _ ] +] ; +