TEIC / Stylesheets

TEI XSL Stylesheets
232 stars 124 forks source link

Add conversion of track change markup to docx2tei #677

Open GVogeler opened 6 months ago

GVogeler commented 6 months ago

docx2tei currently seems to neglect the w:del and w:ins annotations in the docx XML (and exporting the content of both as a simple sequence). Converting them into tei:del and tei:add could be beneficial. Covering full range of track change (comments, transpositions, responsibilities for the deletings and additions from @w:author @w:date etc.) seems to be a larger set of work.

GVogeler commented 6 months ago

https://github.com/TEIC/Stylesheets/blob/released/docx/from/textruns.xsl#L870-L916 should handle this. I cannot find where the in the stylesheets stack the parameter processChangeInformation (defined in https://github.com/TEIC/Stylesheets/blob/released/docx/from/docxtotei.xsl#L54 ) is set to further debug. @sydb ?

hcayless commented 6 months ago

It's not clear to me whether you can pass in XSLT parameters via the transformtei / Ant build-from.xml (looks superficially like the answer is no), so you might have to invoke the XSLT directly (assuming an unpacked docx file), modify the Ant build to pass in the parameter, or change the default value to 'true'.