#481 teitodocx borks on note[@place="foot"]/(quote | ref)


== Summary ==

teitodocx borks on note[@place="foot"]/(quote | ref)

== Versions ==

OS: Ubuntu 12.10

I'm using a checkout of the svn tree:

ldd@karma:~/src/tei/trunk$ svn update
Updating '.':
At revision 11222.

And the installed version:

$ apt-cache policy tei-p5-xsl2
Installed: 6.18
Candidate: 6.18
Version table:
*** 6.18 0
100 /var/lib/dpkg/status

== How to Reproduce ==

1. Download the attached zip file.

2. Unzip. Cd into new directory.

3. Adapt the Makefile to change the values of APPHOME to those appropriate to your system. See the comments in the make file.

4. Execute:

$ make

This will produce test{1,2}.docx file from test{1,2}.xml. Since SHARED is not defined, this will use your svn checkout.

== Expected Results ==

Footnotes that are not broken into multiple pieces.

Openable files.

== Actual Results ==

test1.docx will be openable but footnote number 1 will be split in two parts, each prefaced with the same footnote number. The first part of the footnote will contain the text at the start of the <note> element including the quote. The 2nd part contains the text of the <note> after the quote.

test2.docx will not open at all with Word 2010.

== Observations ==


$ make SHARED=1

will create the same files using the latest release of the TEI files. The files created are both openable, and both have footnotes that are not broken in multiple pieces.

Therefore, it seems this bug was introduced after the last release was made.


  • Sebastian Rahtz

    Sebastian Rahtz - 2012-12-13
    • status: open --> open-accepted
  • Sebastian Rahtz

    Sebastian Rahtz - 2012-12-13

    Interesting. I have made some patches, but you will still be able to catch the footnotes out. Its not clear how to solve the problem, which will have been present for a long time.

  • Louis-Dominique Dubeau

    I've processed with the latest state of the code in svn. It looks fine when I process it with the default profile.

    So I'm not sure what your comment means. I think mainly the problem is that I don't understand the expression "still be able to catch the footnotes out."

  • Sebastian Rahtz

    Sebastian Rahtz - 2012-12-14

    i mean that if you put a block-like object (a verse, say) in the middle of a footnote, you'll see the same bad behaviour

  • Sebastian Rahtz

    Sebastian Rahtz - 2012-12-17
    • status: open-accepted --> closed-fixed
  • Sebastian Rahtz

    Sebastian Rahtz - 2012-12-17

    The tei to docx now checks for multiple paragraphs in a footnote, and makes sure only the first has the footnote marker attached. this allows for block object (ie quoted verses) in a footnote.


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks