Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
take_data_contracts_from_file
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
take_data_contracts_from_file
Commits
d92639e2
Commit
d92639e2
authored
Apr 08, 2026
by
Vũ Hoàng Anh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix OCR floating page numbers
parent
b9f8d512
Pipeline
#3414
failed with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
docx_converter.py
docx_converter.py
+6
-0
No files found.
docx_converter.py
View file @
d92639e2
...
...
@@ -219,6 +219,12 @@ def _paragraph_to_markdown(
if
not
line
:
return
""
# Lọc bỏ các dòng chỉ chứa số trang hoặc chữ "Trang / Page" do OCR chèn nhầm
if
line
.
isdigit
()
and
len
(
line
)
<=
3
:
return
""
if
re
.
fullmatch
(
r"Trang\s+\d+(/\d+)?|Page\s+\d+(/\d+)?|\d+\s*-.*-.*|^\d+$"
,
line
,
re
.
IGNORECASE
):
return
""
# Apply heading styles
heading_level
=
0
style_lower
=
style_name
.
lower
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment