mirror of
https://github.com/DS4SD/docling.git
synced 2025-08-02 07:22:14 +00:00
Add pylatexenc to exceptions list
This commit is contained in:
parent
9b5e482d1e
commit
b3bf971eb0
@ -6,7 +6,7 @@ On 23/01/2025
|
||||
"""
|
||||
|
||||
import lxml.etree as ET
|
||||
import pylatexenc # type: ignore
|
||||
from pylatexenc.latexencode import UnicodeToLatexEncoder
|
||||
|
||||
from docling.backend.docx_latex.latex_dict import (
|
||||
ALN,
|
||||
@ -177,7 +177,7 @@ class oMath2Latex(Tag2Method):
|
||||
_t_dict = T
|
||||
|
||||
__direct_tags = ("box", "sSub", "sSup", "sSubSup", "num", "den", "deg", "e")
|
||||
u = pylatexenc.latexencode.UnicodeToLatexEncoder(
|
||||
u = UnicodeToLatexEncoder(
|
||||
replacement_latex_protection="braces-all",
|
||||
unknown_char_policy="keep",
|
||||
unknown_char_warning=False,
|
||||
|
@ -156,7 +156,8 @@ module = [
|
||||
"deepsearch_glm.*",
|
||||
"lxml.*",
|
||||
"bs4.*",
|
||||
"huggingface_hub.*"
|
||||
"huggingface_hub.*",
|
||||
"pylatexenc.*"
|
||||
]
|
||||
ignore_missing_imports = true
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user