{"id":158,"date":"2005-08-19T21:27:54","date_gmt":"2005-08-20T02:27:54","guid":{"rendered":"http:\/\/blog.uvm.edu\/hag\/2005\/08\/19\/tei-open-office\/"},"modified":"2005-08-19T21:27:54","modified_gmt":"2005-08-20T02:27:54","slug":"tei-open-office","status":"publish","type":"post","link":"https:\/\/blog.uvm.edu\/hag\/2005\/08\/19\/tei-open-office\/","title":{"rendered":"TEI: Open Office"},"content":{"rendered":"<p><a href=\"http:\/\/www.tei-c.org\/Software\/teioo\/\">http:\/\/www.tei-c.org\/Software\/teioo\/<\/a><br \/>\nUsing TEI with Open Office, including footnotes info<\/p>\n<p><!--more--><br \/>\nDaniel O&#8217;Donnel wrote<br \/>\n&gt;&gt;<br \/>\n&gt;&gt; I&#8217;ve been doing what Michael suggests for a while, but was just getting<br \/>\n&gt;&gt; round to looking into what Paul is doing. I wanted to do this because of<br \/>\n&gt;&gt; the footnote business. Journals I deal with tend to prefer Word files and<br \/>\n&gt;&gt; when I convert to HTML, I ?have to? turn all footnotes to end notes, which<br \/>\n&gt;&gt; then need to be tediously put back in place in OO. Is there another way of<br \/>\n&gt;&gt; doing this?<br \/>\n&gt;&gt;<br \/>\nAh yes, if you want that, or even more sophisticated formatting, you are<br \/>\nindeed going to have to generate OO xml from your TEI input, but by far the<br \/>\nneatest way to do it is through XSLT, which, once debugged, can then be<br \/>\nembedded into an OO filter and so will appear on the Open and Save-As menus<br \/>\nand can be used by others who have no interest in or knowledge of scripting<br \/>\nlanguages. [i.e. what Sebastian has already done, at least in highly useful<br \/>\noutline, though unfortunately the changes in XML model mean it has to be<br \/>\nreworked somewhat]. For someone who has a reasonable grasp of XSLT<br \/>\ntechniques, this is not very hard to do (though getting it initially set up<br \/>\ninvolves some tedium).<br \/>\nSupposing you have this in your TEI<br \/>\n[&#8230;]<\/p>\n<p>This is text. ThisThis is the footnote<br \/>\nword has a footnote attached. By contrast, thisThis<br \/>\nis the endnote word has an endnote attached.<\/p>\n<p>[&#8230;]<br \/>\nIn essence, what your transform has to produce in OO xml (plus a lot of<br \/>\nwrapping gunk, which can, however, be templated in) is this (assuming you<br \/>\nwant auto-numbering for both sets of note refs and a distinct styles for<br \/>\nbody, foot and end notes)<br \/>\n===========<br \/>\nThis is text the this1This is the<br \/>\nfootnote word has a footnote<br \/>\nattached. By contrast, thisiThis is the<br \/>\nendnote. word has an endnote<br \/>\nattached.<br \/>\n===========<br \/>\nPretty straightforward really.<br \/>\nIf anyone is interested, the corresponding &#8220;meat&#8221; (plus even more gunk) in a<br \/>\nWord 2003 xml version of the same would be<br \/>\n===========<br \/>\nThis is text the<br \/>\nthisThis is<br \/>\nthe footnote word has a<br \/>\nfootnote attached. By contrast, thisThis is<br \/>\nthe endnote. word has an<br \/>\nendnote attached.<br \/>\n===========<br \/>\nThis may look messier, but in fact Word 2003 xml has a number of significant<br \/>\nadvantages over OO xml in terms of conversion to and from TEI, none of which<br \/>\nis really visible in this snippet. Apart from one brief hint. Notice that<br \/>\n in which the paragraph text is wrapped. This is one of a set of<br \/>\nelements MS placed in the wx-prefixed namespace, which are NOT needed or<br \/>\nused by Word or indeed any other MS application, but are there to ease the<br \/>\ntask of interoperating with other XML applications which may encode things<br \/>\nthat Word itself either doesn&#8217;t need or represents in a text-stream oriented<br \/>\nway.  In particular, Word 2003 will use these  and the related<br \/>\n elements to encode nesting of sections, enabling them to be<br \/>\neasily converted to and from nested TEI divs (numbered or not) without any<br \/>\nof the hoop-jumping required to attempt that task when using OO xml.<br \/>\nMichael Beddow<\/p>\n","protected":false},"excerpt":{"rendered":"<p>http:\/\/www.tei-c.org\/Software\/teioo\/ Using TEI with Open Office, including footnotes info<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[150],"tags":[],"class_list":["post-158","post","type-post","status-publish","format-standard","hentry","category-techow"],"_links":{"self":[{"href":"https:\/\/blog.uvm.edu\/hag\/wp-json\/wp\/v2\/posts\/158","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.uvm.edu\/hag\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.uvm.edu\/hag\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.uvm.edu\/hag\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.uvm.edu\/hag\/wp-json\/wp\/v2\/comments?post=158"}],"version-history":[{"count":0,"href":"https:\/\/blog.uvm.edu\/hag\/wp-json\/wp\/v2\/posts\/158\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.uvm.edu\/hag\/wp-json\/wp\/v2\/media?parent=158"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.uvm.edu\/hag\/wp-json\/wp\/v2\/categories?post=158"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.uvm.edu\/hag\/wp-json\/wp\/v2\/tags?post=158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}