From 1f5c2f3a76bd2f600f450482293277a8d234359c Mon Sep 17 00:00:00 2001 From: breezedeus Date: Sun, 19 Feb 2023 20:07:12 +0800 Subject: [PATCH 1/3] bugfix --- pix2text/latex_ocr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pix2text/latex_ocr.py b/pix2text/latex_ocr.py index 2336dca..f25599c 100644 --- a/pix2text/latex_ocr.py +++ b/pix2text/latex_ocr.py @@ -92,7 +92,7 @@ def find_all_left_or_right(latex, left_or_right='left'): # 如 "\left \big(" while latex[end - 1] in ('\\', ' '): end += 1 - while latex[end].isalpha(): + while end < len(latex) and latex[end].isalpha(): end += 1 ori_str = latex[start + prefix_len : end].strip() # FIXME: ori_str中可能出现多个 '\left',此时需要分隔开 From 7f06eb07286f0e1429e8df4360ec74ad19095968 Mon Sep 17 00:00:00 2001 From: breezedeus Date: Sun, 19 Feb 2023 20:07:30 +0800 Subject: [PATCH 2/3] bump version --- Makefile | 2 +- pix2text/__version__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d9cffa3..a56bf40 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ package: rm -rf build python setup.py sdist bdist_wheel -VERSION = 0.2.2 +VERSION = 0.2.2.1 upload: python -m twine upload dist/pix2text-$(VERSION)* --verbose diff --git a/pix2text/__version__.py b/pix2text/__version__.py index b6a7459..b5b5aeb 100644 --- a/pix2text/__version__.py +++ b/pix2text/__version__.py @@ -1,4 +1,4 @@ # coding: utf-8 # Copyright (C) 2022, [Breezedeus](https://github.com/breezedeus). -__version__ = '0.2.2' +__version__ = '0.2.2.1' From bcee8a267aee23da3097ca71db3de2fff240b9e1 Mon Sep 17 00:00:00 2001 From: breezedeus Date: Sun, 19 Feb 2023 20:14:24 +0800 Subject: [PATCH 3/3] update doc --- RELEASE.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/RELEASE.md b/RELEASE.md index 042c228..a3defcd 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -1,5 +1,11 @@ # Release Notes +## Update 2023.02.19:发布 **V0.2.2.1** + +主要变更: +* 修复bug。 + + ## Update 2023.02.19:发布 **V0.2.2** 主要变更: