« CFP: wikis book | Main | Photos »
August 19, 2005
TEI: Open Office
http://www.tei-c.org/Software/teioo/
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. This
word has a footnote attached. By contrast, this
is the endnote
[...]
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)
===========
footnote
attached. By contrast, this
endnote.
attached.
===========
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
the footnote
footnote attached. By contrast, this
the endnote.
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
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
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
Posted by hag at August 19, 2005 9:27 PM
Comments
Post a comment
Thanks for signing in, . Now you can comment. (sign out)
(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)