|
From: Guenter M. <mi...@us...> - 2026-01-28 10:23:46
|
On 2026-01-27, Matěj Cepl wrote: > On Tue Jan 27, 2026 at 2:11 PM CET, Guenter Milde via Docutils-users wrote: > Gemini wrote to me this > https://paste.sr.ht/~mcepl/6dc49185a90e19ba623fd940f3e48d1b20f5ee0d, but > I am afraid it hallucinated most of the code, I cannot find that module > `svg2odg` anywhere. I guess, we would have to try to vibe-code that > converter anew (hopefully, conversion between two XML-based formats > should be something LLM should be able to do). > What do you think? We might go the easy way and start with implementing support for ODG images. Then, authors may use the tool of their choice to convert PDF, SVG or other vector formats to ODG (or export their own creations in ODG format) and use this in rST or Markdown documents intended for docutils --writer=odg. A simplified variant of Sphinx's "only" directive may be helpfull in case a document source should be converted to several formats: ~~~ (future rST) .. only:: html xml .. image:: cute-cat.svg .. only:: latex xetex .. image:: cute-cat.pdf .. only:: odt .. image:: cute-cat.odg ~~~ but this is an independent feature proposal... https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html#directive-only Günter Günter |