使用pandoc将docx转换为rst时嵌入的图像位置错误(在Kivy RstDocument.source中)

时间:2016-06-09 21:18:22

标签: kivy pandoc restructuredtext

我使用以下pandoc命令将包含图像的单词docx文档转换为rst:

pandoc -s dsrtest2.docx --extract-media=C:\Container\ -t rst -o dtest2rst.txt

图像文件很好地存储在Container中。但是查看器(Kivy RstDocument.source属性)显示文件底部的图像。见第一内容:

===================     这只是一个考验     ===================

***ProcessView***

The sample text that is inserted in the English version of

-  Word 2007

-  Word 2010 appears resembles the following :

The quick brown fox jumps over the lazy dog.

|image0|

1. The quick brown fox jumps over the lazy dog.

2. The quick brown fox jumps over the lazy dog. ¶

The quick brown fox jumps over the lazy dog. The quick brown fox jumps
over the lazy dog.

| *The quick brown fox jumps over the lazy dog. ¶
  *
| The quick brown fox jumps over the lazy dog. The quick brown fox jumps
  over the lazy dog. The quick brown fox jumps over the lazy dog. ¶

Notice that the sample text in other language versions of Word 2007 or
Word 2010 does not have the same meaning as the text that is mentioned
earlier in this section. 

.. |image0| image:: C:\Container\/media/image1.png
   :width: 1.68750in
   :height: 6.34375in

当我手动将图像文件路径复制到| image0 |时占位符,第一个查看器(Kivy RstDocument.source属性)将图像显示在正确的位置。

如何将文档文件引用自动定位到占位符?

0 个答案:

没有答案