public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* What is the format of the filename of images in the Pictures/ folder inside odt?
@ 2023-12-02 14:16 Adam Ryczkowski
       [not found] ` <88f8c8dc-b9b6-4e6e-91ce-75e08412e466n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Adam Ryczkowski @ 2023-12-02 14:16 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1021 bytes --]

Hi!

I write a script that replaces "svg" images with "emf" in the odt in order 
to allow lossless convertion to "docx" format using LibreOffice. 

The problem is that mere replacing the files and fixing the `content.xml` 
does not suffice. The image file name is some form of hash of its contents. 
If the contents does not match, Libreoffice reports the document to be 
"broken" (but allows to repair). Alas, this repair cannot be automated. 

I tried to get that from the Pandoc source code, but Haskell's syntax seem 
too alien to me. 

What is the naming convention for the files in the Pictures/ folder?

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/88f8c8dc-b9b6-4e6e-91ce-75e08412e466n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 1440 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-12-03 18:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-02 14:16 What is the format of the filename of images in the Pictures/ folder inside odt? Adam Ryczkowski
     [not found] ` <88f8c8dc-b9b6-4e6e-91ce-75e08412e466n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-12-02 21:05   ` John MacFarlane
     [not found]     ` <CD7D354B-58AD-485A-8B5A-2DD06510C517-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2023-12-03 11:13       ` Adam Ryczkowski
     [not found]         ` <734880a0-db9e-4855-b228-22902fbb387an-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-12-03 18:29           ` John MacFarlane

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).