Stylesheets icon indicating copy to clipboard operation
Stylesheets copied to clipboard

docx2tei footnote with list bug

Open TomazErjavec opened this issue 7 years ago • 5 comments

If a footnote (or endnote) in a docx has a list in it, it is not converted to note/list but wrongly to note/p+.

The culprit is in Stylesheets/docx/from/marginals.xsl, the w:endnoteReference template which does not seem to do anything for lists.

I tried using the listSection named template in the w:endnoteReference template but it immediatelly falls into endless recursion. So, after an hour of digging around, I'm stumped how to fix this.

TomazErjavec avatar Jan 31 '18 19:01 TomazErjavec

Ping for Magdalena to look at this. Council subgroup thinks this sounds like something that ought to be fixed.

hcayless avatar May 08 '19 14:05 hcayless

@ebeshero and I have added high priority because this has been sitting unfixed for two years.

martindholmes avatar Jun 11 '20 15:06 martindholmes

If @tuurma does not want this, feel free to assign me. I will be doing some work on docxtotei as part of a grant later this year.

hcayless avatar Jun 11 '20 15:06 hcayless

A MS Word document for testing here.

bleekere avatar Feb 26 '25 19:02 bleekere

@TomazErjavec a workaround might be to use TEI Publisher's DOCX conversion based on the TEI Processing Model, attaching the results below

Image

test-SS-issue309.docx.xml

tuurma avatar Sep 15 '25 10:09 tuurma