main
HuangHai 2 weeks ago
parent 573ae10aa1
commit cffd9f275b

@ -1,12 +1,12 @@
{ {
"doc-e396943b31916331288c8d48716ba964": { "doc-649eda4a829e2210c955c627ef9e4b49": {
"status": "processing", "status": "processing",
"chunks_count": 1, "chunks_count": 1,
"content": "硝酸光照分解的方程式\n$$4HNO_{3}overset{overset{}{phantom{Delta}}}{underset{underset{}{text{或光照}}}{=}}4NO_{2} uparrow + O_{2} uparrow + 2HO_{2}$$\n氢气与氧气燃烧的现象如下图所示\n![氢气在氧气中燃烧的现象 - 生活 -\n布条百科](./static/Images/cdb29037bef24c8eaea74ac3ca2eaf5e/media/image1.png){width=\"3.6132075678040243in\"", "content": "硝酸光照分解的方程式\n$$4HNO_{3}overset{overset{}{phantom{Delta}}}{underset{underset{}{text{或光照}}}{=}}4NO_{2} uparrow + O_{2} uparrow + 2HO_{2}$$\n氢气与氧气燃烧的现象如下图所示\n![](./static/Images/b1737f8d76564d9e86123045b53fc973/media/image1.png)",
"content_summary": "硝酸光照分解的方程式\n$$4HNO_{3}overset{overset{}{phantom{Delta}}}{underset{underset{}{text{或光照}}}{=}}4NO_{2} uparrow + O_{2} uparrow + 2HO_{2}$$\n氢气与氧气燃烧的现象如下图所示\n![氢气在氧气中燃烧的现象 - 生活 -\n布条百科](./static/Images/cdb29037bef24c8eaea74ac3ca2eaf5e/media/image1.png){widt...", "content_summary": "硝酸光照分解的方程式\n$$4HNO_{3}overset{overset{}{phantom{Delta}}}{underset{underset{}{text{或光照}}}{=}}4NO_{2} uparrow + O_{2} uparrow + 2HO_{2}$$\n氢气与氧气燃烧的现象如下图所示\n![](./static/Images/b1737f8d76564d9e86123045b53fc973/media/image1.png)",
"content_length": 274, "content_length": 222,
"created_at": "2025-07-09T08:01:14.988081+00:00", "created_at": "2025-07-09T08:05:51.068278+00:00",
"updated_at": "2025-07-09T08:01:14.990490+00:00", "updated_at": "2025-07-09T08:05:51.071523+00:00",
"file_path": "unknown_source" "file_path": "unknown_source"
} }
} }

@ -25,8 +25,6 @@ def get_docx_content_by_pandoc(docx_file):
if line.startswith('height=') and line.endswith('in"}'): if line.startswith('height=') and line.endswith('in"}'):
continue continue
# 使用find()方法安全地检查图片模式 # 使用find()方法安全地检查图片模式
is_wmf = line.find("![](") >= 0 and line.find(".wmf") > 0
# 使用find()方法安全地检查图片模式
is_img = line.find("![](") >= 0 and ( is_img = line.find("![](") >= 0 and (
line.find(".png") > 0 or line.find(".png") > 0 or
line.find(".jpg") > 0 or line.find(".jpg") > 0 or
@ -36,7 +34,7 @@ def get_docx_content_by_pandoc(docx_file):
# ![](media/image3.png){width="3.1251607611548557in" # ![](media/image3.png){width="3.1251607611548557in"
# height="3.694634733158355in"} # height="3.694634733158355in"}
# ![](../static/Images/01b20e04085e406ea5375791da58a60f/media/image3.png){width="3.1251607611548557in" # ![](../static/Images/01b20e04085e406ea5375791da58a60f/media/image3.png){width="3.1251607611548557in"
pos = line.find("\)") pos = line.find(")")
q = line[:pos + 1] q = line[:pos + 1]
img_idx += 1 img_idx += 1
content += q + "\n" content += q + "\n"

Binary file not shown.

After

Width:  |  Height:  |  Size: 195 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 195 KiB

@ -1,9 +1,4 @@
硝酸光照分解的方程式 硝酸光照分解的方程式
$$4HNO_{3}\overset{\overset{}{\phantom{\Delta}}}{\underset{\underset{}{\text{或光照}}}{=}}4NO_{2} \uparrow + O_{2} \uparrow + 2HO_{2}$$ $$4HNO_{3}\overset{\overset{}{\phantom{\Delta}}}{\underset{\underset{}{\text{或光照}}}{=}}4NO_{2} \uparrow + O_{2} \uparrow + 2HO_{2}$$
氢气与氧气燃烧的现象如下图所示: 氢气与氧气燃烧的现象如下图所示:
![](./static/Images/b1737f8d76564d9e86123045b53fc973/media/image1.png)
![氢气在氧气中燃烧的现象 - 生活 -
布条百科](./static/Images/0f45b267e04a4ceb8b28b43ce48b4c87/media/image1.png){width="3.6132075678040243in"
height="2.887173009623797in"}

Loading…
Cancel
Save