From f39b46d8b7523a679702517f96d2f891cdc55d89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sylvain=20Hall=C3=A9?= Date: Mon, 5 Aug 2019 13:10:15 -0400 Subject: [PATCH] Closes #52 --- .../src/ca/uqac/lif/textidote/cleaning/latex/LatexCleaner.java | 3 +++ config.xml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Core/src/ca/uqac/lif/textidote/cleaning/latex/LatexCleaner.java b/Source/Core/src/ca/uqac/lif/textidote/cleaning/latex/LatexCleaner.java index e879716d..ebb23e47 100644 --- a/Source/Core/src/ca/uqac/lif/textidote/cleaning/latex/LatexCleaner.java +++ b/Source/Core/src/ca/uqac/lif/textidote/cleaning/latex/LatexCleaner.java @@ -339,6 +339,9 @@ protected AnnotatedString removeMarkup(AnnotatedString as_out, int line_pos) // Ligatures as_out = as_out.replaceAll("\\\\oe\\{\\}", "œ"); as_out = as_out.replaceAll("\\\\ae\\{\\}", "æ"); + // Escaped braces + as_out = as_out.replaceAll("\\\\\\{", "{"); + as_out = as_out.replaceAll("\\\\\\}", "}"); // Line breaks and paragraphs as_out = as_out.replaceAll("\\\\\\\\", ""); as_out = as_out.replaceAll("\\\\par(\\b)", "$1"); diff --git a/config.xml b/config.xml index bd5c90fe..377c03d0 100644 --- a/config.xml +++ b/config.xml @@ -74,7 +74,7 @@ Language Tool org.languagetool.JLanguageTool - https://github.com/sylvainhalle/languagetool/releases/download/v4.1b-standalone/languagetool-bundle-4.1b.jar + https://github.com/sylvainhalle/languagetool/releases/download/v4.6-standalone/languagetool-bundle-4.6.zip true