From: angel.of.north@gmail.com
To: ntg-context@ntg.nl
Subject: [NTG-context] Re: creating a printed book
Date: Sat, 12 Oct 2024 22:32:04 -0000 [thread overview]
Message-ID: <172877232488.1601628.9517458488028249480@cgl.ntg.nl> (raw)
In-Reply-To: <28f92289-a332-41d0-b307-6ee7e847b1a7@fiee.net>
I think that there is a bug in your docx2ctx.py. It works for files which do not have embedded pngs in them. But for files which do:
Traceback (most recent call last):
File "/home/dmr104/Downloads/context-tools/docx2ctx/docx2ctx.py", line 872, in <module>
process_doc(Path(doc), copy.copy(args))
File "/home/dmr104/Downloads/context-tools/docx2ctx/docx2ctx.py", line 673, in process_doc
result = obj.process()
^^^^^^^^^^^^^
File "/home/dmr104/Downloads/context-tools/docx2ctx/docx2ctx.py", line 515, in process
dst_fname = self.options['imagedir'] / pname.name
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
TypeError: unsupported operand type(s) for /: 'str' and 'str'
2024-10-12 23:21:10,979 DEBUG a_graphic ['xmlns:a']
2024-10-12 23:21:10,979 DEBUG pic_cNvPr ['id', 'name']
2024-10-12 23:21:10,980 DEBUG a_blip ['r:embed']
2024-10-12 23:21:10,980 DEBUG image reference found: rId7 = image2.png
2024-10-12 23:21:10,980 DEBUG p ['w14:paraId', 'w14:textId', 'w:rsidR', 'w:rsidRDefault', 'w:rsidP']
2024-10-12 23:21:10,980 DEBUG pStyle ['w:val']
2024-10-12 23:21:10,980 DEBUG p ['w14:paraId', 'w14:textId', 'w:rsidR', 'w:rsidRDefault', 'w:rsidP']
2024-10-12 23:21:10,980 DEBUG pStyle ['w:val']
2024-10-12 23:21:10,980 DEBUG p ['w14:paraId', 'w14:textId', 'w:rsidR', 'w:rsidRDefault', 'w:rsidP']
2024-10-12 23:21:10,981 DEBUG pStyle ['w:val']
2024-10-12 23:21:10,981 DEBUG p ['w14:paraId', 'w14:textId', 'w:rsidR', 'w:rsidRDefault', 'w:rsidP']
2024-10-12 23:21:10,981 DEBUG pStyle ['w:val']
2024-10-12 23:21:10,981 DEBUG p ['w14:paraId', 'w14:textId', 'w:rsidR', 'w:rsidRDefault', 'w:rsidP']
2024-10-12 23:21:10,981 DEBUG pStyle ['w:val']
2024-10-12 23:21:10,981 DEBUG Not an image file: [Content_Types].xml
2024-10-12 23:21:10,982 DEBUG Not an image file: _rels/.rels
2024-10-12 23:21:10,982 DEBUG Not an image file: word/document.xml
2024-10-12 23:21:10,982 DEBUG Not an image file: word/_rels/document.xml.rels
2024-10-12 23:21:10,982 DEBUG Not an image file: word/footnotes.xml
2024-10-12 23:21:10,982 DEBUG Not an image file: word/endnotes.xml
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2024-10-12 22:42 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-11 16:19 [NTG-context] " David Roderick
2024-10-11 20:16 ` [NTG-context] " Hraban Ramm
2024-10-12 17:59 ` Hans Hagen via ntg-context
2024-10-13 12:19 ` angel.of.north
2024-10-13 22:25 ` Hans Hagen via ntg-context
2024-10-13 13:50 ` Henning Hraban Ramm
2024-10-12 22:32 ` angel.of.north [this message]
2024-10-13 13:37 ` Henning Hraban Ramm
2024-10-14 11:12 ` David Roderick
2024-10-14 16:00 ` Henning Hraban Ramm
2024-10-14 16:17 ` Wolfgang Schuster
2024-10-14 19:19 ` David Roderick
2024-10-14 19:32 ` Denis Maier via ntg-context
2024-10-14 19:19 ` Henning Hraban Ramm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=172877232488.1601628.9517458488028249480@cgl.ntg.nl \
--to=angel.of.north@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).