From b26f158bc03b9033326114dc55624fbd407ac780 Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Sat, 13 Feb 2021 23:41:41 +0800 Subject: [PATCH] =?UTF-8?q?Dev:=20Fix=20os=5Fextract=20in=20map=20name=20M?= =?UTF-8?q?=C3=A9diterran=C3=A9e=20(#340)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dev_tools/os_extract.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dev_tools/os_extract.py b/dev_tools/os_extract.py index 0289b186b..2dab0e651 100644 --- a/dev_tools/os_extract.py +++ b/dev_tools/os_extract.py @@ -59,7 +59,9 @@ class OSChapter: for index, chapter in data.items(): if not isinstance(index, int) or index >= 200: continue - out[index] = chapter['name'] + name = chapter['name'] + name = name.replace('é', 'e') # OCR can't recognise letter "é" + out[index] = name return out