From 1c53d4595ecd77b5102e9ac66fdd921bbfa8ca39 Mon Sep 17 00:00:00 2001 From: jdmasa <47989615+jdmasa@users.noreply.github.com> Date: Wed, 4 Sep 2024 09:53:57 +0200 Subject: [PATCH] Latex MIME type detection output changed (#161) It seems the output of the MIME Type detector has slightly changed for LaTex files. Co-authored-by: Sushain Cherivirala --- apertium_apy/handlers/translate_doc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apertium_apy/handlers/translate_doc.py b/apertium_apy/handlers/translate_doc.py index 6a094bdd6..c9b186e20 100644 --- a/apertium_apy/handlers/translate_doc.py +++ b/apertium_apy/handlers/translate_doc.py @@ -21,6 +21,8 @@ 'text/plain': 'txt', 'text/html': 'html-noent', 'text/rtf': 'rtf', + 'text/x-latex': 'latex', + 'text/x-tex': 'latex', 'application/rtf': 'rtf', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document': 'docx', 'application/vnd.openxmlformats-officedocument.presentationml.presentation': 'pptx',