-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
118 lines (83 loc) · 3.52 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
oo2teilite-xslt2
================
OpenDocument Writer to TEI lite P5 converter, written in XSLT 2.0
Works with OpenOffice 3.2 and newer.
* This package contains:
- oo-identity.xsl exports the internal .odt document representation
- oo2teilite.xsl the actual TEI export filter
- oo2teilite.jar XML export filter package, to be installed in
"Tools > XML Filter Settings..."
- beispiele.odt sample OpenDocument 1.2 file, illustrating some
of the export filter's features.
You may use oo-identity.xsl for debugging purposes. The XML that is
exported by this stylesheet looks exactly as OOo sees the data when
applying a stylesheet. You can run saxon on this export on the command
line, which will make debugging easier.
A sample invocation looks like:
saxon -xsl:oo2teilite.xsl -s:mydoc.ooo.xml -o:mydoc.tei.xml debug=yes
When the parameter debug is at any value, several debug files (pattern:
debug.00.pass.xml) will be created where the consecutive conversion
stages may be tracked.
* Features:
- nested <div>s, either (if present) via h/@outline-level or via named
paragraph styles ('Heading 1', 'Heading 2', ... -- configurable)
- nested text formatting, e.g.:
bold
/bold
bold+italic
/bold+italic
bold+italic+wide
/bold+italic+wide
bold+italic
/bold+italic
bold
/bold
=>
bold
italic
wide
/wide
/italic
/bold
- tables
- [glossary] a table with name "glossary" will be rendered as a list in tei (see tei-doc: examples)
- lists (ordered and unordered)
- footnotes
- sequential numbering ("Randnummern") of content-carrying elements via xml:id
- track changes (the final version will be exported)
- comments
* Missing features:
- image support
- better table support
- nested lists
- many more
- documentation (using XSLTdoc, XSLStyle or similar)
* Bugs:
- track changes doesn't work correctly (see the corresponding comments
in beispiele.odt, or run the export filter on that file if you don't
speak German)
- this is work in progress, don't expect everything to run smoothly
- text style resolution doesn't look for default styles or for text styles
of the containig paragraph. This may lead to redundant <hi> tags for
default formatting, such as <p><hi rend="style-normal">...
These files are made available subject to the terms of
the GNU Lesser General Public License Version 2.1
Authors:
Gerrit Imsieke, Ralph Krüger, le-tex publishing services GmbH, Leipzig
http://www.le-tex.de/
Funded by Yanus Verlag GmbH, Hamburg
http://www.yanus.de/
GNU Lesser General Public License Version 2.1
=============================================
Copyright (C) 2009 le-tex publishing services GmbH
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA