On 12/5/22 10:27, Camille Bégnis wrote:
Word allows to specify a so-called "Replacement text" that actually
becomes an "alt" when saved to HTML:
<img width=75 height=71
src="test_fichiers/image002.jpg" alt="Icône de rafraichissement"
v:shapes="Image_x0020_1">
However that replacement text is apparently not caught by W2X, while I
wish it to end up in the "alt" element in DocBook.
Is this possible?
Yes. Please use the transform.media-alt parameter (its default is "no")
for that. For example:
w2x -o docbook5 -p transform.media-alt yes test.docx test.xml
More information:
http://www.xmlmind.com/w2x/_distrib/doc/manual/webhelp/transform_step.html#__IDX176__
Word sample attached.
Attached the test.xml result.
<?xml version="1.0" encoding="UTF-8"?><book xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="fr-FR"><info><title>???</title><author><personname>Camille</personname></author><date remap="dcterms.created">2022-12-05T09:13:00Z</date><date remap="dcterms.modified">2022-12-05T09:15:00Z</date></info><chapter><title/><para>Texte normal.</para><para><inlinemediaobject><alt>Icône de rafraichissement</alt><imageobject><imagedata fileref="test_files/image1.png" contentwidth="76" contentdepth="72"/></imageobject></inlinemediaobject></para><para>Encore du texte normal.</para></chapter></book>
--
XMLmind Word To XML Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/w2x-support