diff --git a/dsLightRag/ShiTi/T3_DocxToMd.py b/dsLightRag/ShiTi/T3_DocxToMd.py index 15537627..c799d1e6 100644 --- a/dsLightRag/ShiTi/T3_DocxToMd.py +++ b/dsLightRag/ShiTi/T3_DocxToMd.py @@ -78,10 +78,11 @@ async def main(): ) """ - 修正一下MinerU生成的Latex中,如果是数字加圆圈的样式 \textcircled{1},无法在Typora或者PyCharm中显示的问题,改成兼容性更强的 \enclose{circle}{1} + 修正一下MinerU生成的Latex中,如果是数字加圆圈的样式 \textcircled{1}, + 无法在Typora或者PyCharm中显示的问题,改成兼容性更强的 \enclose{circle}{1} """ - path = r'../output/《动能定理》巩固练习/auto' - finalName = path + r'/《动能定理》巩固练习.md' + path = r'../output/' + fileName + '/auto' + finalName = path + r'/' + fileName + '.md' with open(finalName, 'r', encoding='utf-8') as f: content = f.read() content = content.replace(r'\textcircled', r'\enclose{circle}') diff --git a/dsLightRag/Util/__pycache__/LightRagUtil.cpython-310.pyc b/dsLightRag/Util/__pycache__/LightRagUtil.cpython-310.pyc index 29ee8d0e..1b422074 100644 Binary files a/dsLightRag/Util/__pycache__/LightRagUtil.cpython-310.pyc and b/dsLightRag/Util/__pycache__/LightRagUtil.cpython-310.pyc differ diff --git a/dsLightRag/output/《动能定理》巩固练习/auto/《动能定理》巩固练习_origin.pdf b/dsLightRag/output/《动能定理》巩固练习/auto/《动能定理》巩固练习_origin.pdf index ca7a218a..ccdd174f 100644 Binary files a/dsLightRag/output/《动能定理》巩固练习/auto/《动能定理》巩固练习_origin.pdf and b/dsLightRag/output/《动能定理》巩固练习/auto/《动能定理》巩固练习_origin.pdf differ