TEI: Open Office

Using TEI with Open Office, including footnotes info

Daniel O’Donnel wrote
>> I’ve been doing what Michael suggests for a while, but was just getting
>> round to looking into what Paul is doing. I wanted to do this because of
>> the footnote business. Journals I deal with tend to prefer Word files and
>> when I convert to HTML, I ?have to? turn all footnotes to end notes, which
>> then need to be tediously put back in place in OO. Is there another way of
>> doing this?
Ah yes, if you want that, or even more sophisticated formatting, you are
indeed going to have to generate OO xml from your TEI input, but by far the
neatest way to do it is through XSLT, which, once debugged, can then be
embedded into an OO filter and so will appear on the Open and Save-As menus
and can be used by others who have no interest in or knowledge of scripting
languages. [i.e. what Sebastian has already done, at least in highly useful
outline, though unfortunately the changes in XML model mean it has to be
reworked somewhat]. For someone who has a reasonable grasp of XSLT
techniques, this is not very hard to do (though getting it initially set up
involves some tedium).
Supposing you have this in your TEI

This is text. ThisThis is the footnote
word has a footnote attached. By contrast, thisThis
is the endnote word has an endnote attached.

In essence, what your transform has to produce in OO xml (plus a lot of
wrapping gunk, which can, however, be templated in) is this (assuming you
want auto-numbering for both sets of note refs and a distinct styles for
body, foot and end notes)
This is text the this1This is the
footnote word has a footnote
attached. By contrast, thisiThis is the
endnote. word has an endnote
Pretty straightforward really.
If anyone is interested, the corresponding “meat” (plus even more gunk) in a
Word 2003 xml version of the same would be
This is text the
thisThis is
the footnote word has a
footnote attached. By contrast, thisThis is
the endnote. word has an
endnote attached.
This may look messier, but in fact Word 2003 xml has a number of significant
advantages over OO xml in terms of conversion to and from TEI, none of which
is really visible in this snippet. Apart from one brief hint. Notice that
in which the paragraph text is wrapped. This is one of a set of
elements MS placed in the wx-prefixed namespace, which are NOT needed or
used by Word or indeed any other MS application, but are there to ease the
task of interoperating with other XML applications which may encode things
that Word itself either doesn’t need or represents in a text-stream oriented
way. In particular, Word 2003 will use these and the related
elements to encode nesting of sections, enabling them to be
easily converted to and from nested TEI divs (numbered or not) without any
of the hoop-jumping required to attempt that task when using OO xml.
Michael Beddow

Be Sociable, Share!
This entry was posted in Techow. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *