Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pdf-miner
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
Qin Kaijie
pdf-miner
Commits
c5624ace
Commit
c5624ace
authored
Mar 21, 2024
by
赵小蒙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
line_to_standard_format 逻辑更新
parent
d062bb6c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
ocr_mkcontent.py
magic_pdf/dict2md/ocr_mkcontent.py
+2
-1
No files found.
magic_pdf/dict2md/ocr_mkcontent.py
View file @
c5624ace
...
@@ -125,7 +125,8 @@ def line_to_standard_format(line):
...
@@ -125,7 +125,8 @@ def line_to_standard_format(line):
line_text
+=
f
"${inline_equation}$"
line_text
+=
f
"${inline_equation}$"
inline_equation_num
+=
1
inline_equation_num
+=
1
elif
span
[
'type'
]
==
ContentType
.
Text
:
elif
span
[
'type'
]
==
ContentType
.
Text
:
line_text
+=
span
[
'content'
]
text_content
=
ocr_escape_special_markdown_char
(
span
[
'content'
])
# 转义特殊符号
line_text
+=
text_content
content
=
{
content
=
{
'type'
:
'text'
,
'type'
:
'text'
,
'text'
:
line_text
,
'text'
:
line_text
,
...
...
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