-
Notifications
You must be signed in to change notification settings - Fork 2
/
Group 4 workflow.htm
403 lines (334 loc) · 20.4 KB
/
Group 4 workflow.htm
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1256">
<meta name=Generator content="Microsoft Word 15 (filtered)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"MS Gothic";
panose-1:2 11 6 9 7 2 5 8 2 4;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@MS Gothic";
panose-1:2 11 6 9 7 2 5 8 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin-top:0cm;
margin-right:0cm;
margin-bottom:8.0pt;
margin-left:0cm;
line-height:107%;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:#954F72;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{margin-top:0cm;
margin-right:0cm;
margin-bottom:8.0pt;
margin-left:36.0pt;
line-height:107%;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst
{margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
line-height:107%;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle
{margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
line-height:107%;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast
{margin-top:0cm;
margin-right:0cm;
margin-bottom:8.0pt;
margin-left:36.0pt;
line-height:107%;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
.MsoPapDefault
{margin-bottom:8.0pt;
line-height:107%;}
@page WordSection1
{size:595.3pt 841.9pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
-->
</style>
</head>
<body lang=EN-GB link=blue vlink="#954F72">
<div class=WordSection1>
<p class=MsoNormal><span lang=EN-US>Group 4 workflow</span></p>
<p class=MsoNormal><span lang=EN-US> </span></p>
<p class=MsoListParagraphCxSpFirst style='text-indent:-18.0pt'>1.<span
style='font:7.0pt "Times New Roman"'> </span><span
dir=LTR></span><span lang=EN-US>We set up a GitHub <b>repository</b> for the
project: </span><a href="https://github.com/djbpitt/tufts_2018"><span
style='font-size:10.5pt;line-height:107%;font-family:"Arial",sans-serif;
color:#00649A;background:white'>https://github.com/djbpitt/tufts_2018</span></a>
; with the following <b>folder structure</b>: </p>
<p class=MsoListParagraphCxSpMiddle style='text-indent:-18.0pt'><span
lang=EN-US style='font-family:Symbol'>·<span style='font:7.0pt "Times New Roman"'>
</span></span><span dir=LTR></span><span lang=EN-US>(at the root):</span></p>
<p class=MsoListParagraphCxSpMiddle style='margin-left:72.0pt;text-indent:-18.0pt'><span
lang=EN-US style='font-family:"Courier New"'>o<span style='font:7.0pt "Times New Roman"'>
</span></span><span dir=LTR></span><span lang=EN-US>index.html (the main page
of our website, see below)</span></p>
<p class=MsoListParagraphCxSpMiddle style='margin-left:72.0pt;text-indent:-18.0pt'><span
lang=EN-US style='font-family:"Courier New"'>o<span style='font:7.0pt "Times New Roman"'>
</span></span><span dir=LTR></span><span lang=EN-US>site.css: main css for the
website (but not the only one)</span></p>
<p class=MsoListParagraphCxSpMiddle style='margin-left:72.0pt;text-indent:-18.0pt'><span
lang=EN-US style='font-family:"Courier New"'>o<span style='font:7.0pt "Times New Roman"'>
</span></span><span dir=LTR></span><span lang=EN-US>README.md: markdown file
that describes the repo</span></p>
<p class=MsoListParagraphCxSpMiddle style='text-indent:-18.0pt'><span
lang=EN-US style='font-family:Symbol'>·<span style='font:7.0pt "Times New Roman"'>
</span></span><span dir=LTR></span><span lang=EN-US>(and these subfolders:) </span></p>
<p class=MsoListParagraphCxSpMiddle style='margin-left:72.0pt;text-indent:-18.0pt'><span
lang=EN-US style='font-family:"Courier New"'>o<span style='font:7.0pt "Times New Roman"'>
</span></span><span dir=LTR></span><span lang=EN-US>composite: holds the html
files for the pages of our digital edition of each plant (generated by XSLT,
see below)</span></p>
<p class=MsoListParagraphCxSpMiddle style='margin-left:72.0pt;text-indent:-18.0pt'><span
lang=EN-US style='font-family:"Courier New"'>o<span style='font:7.0pt "Times New Roman"'>
</span></span><span dir=LTR></span><span lang=EN-US>images: holds the images of
the four plants from the French edition (edited by hand to create a transparent
background with Gimp; format needs to be PNG, because jpeg does not allow
transparent backgrounds)</span></p>
<p class=MsoListParagraphCxSpMiddle style='margin-left:72.0pt;text-indent:-18.0pt'><span
lang=EN-US style='font-family:"Courier New"'>o<span style='font:7.0pt "Times New Roman"'>
</span></span><span dir=LTR></span><span lang=EN-US>meta: holds the html files
for the metadata pages for each historical edition (generated by XSLT, see
below)</span></p>
<p class=MsoListParagraphCxSpMiddle style='margin-left:72.0pt;text-indent:-18.0pt'><span
lang=EN-US style='font-family:"Courier New"'>o<span style='font:7.0pt "Times New Roman"'>
</span></span><span dir=LTR></span><span lang=EN-US>old: files we don’t need
anymore (similar folders can be found at other levels)</span></p>
<p class=MsoListParagraphCxSpMiddle style='margin-left:72.0pt;text-indent:-18.0pt'><span
lang=EN-US style='font-family:"Courier New"'>o<span style='font:7.0pt "Times New Roman"'>
</span></span><span dir=LTR></span><span lang=EN-US>reading_views: holds folders
for each language, each of which holds for every plant</span></p>
<p class=MsoListParagraphCxSpMiddle style='margin-left:108.0pt;text-indent:
-18.0pt'><span lang=EN-US style='font-family:Wingdings'>§<span
style='font:7.0pt "Times New Roman"'> </span></span><span dir=LTR></span><span
lang=EN-US>tt.xml files (converted from the original EXMARaLDA treetagger
export) that have a numbered list of the sentences in the plant description
(see below)</span></p>
<p class=MsoListParagraphCxSpMiddle style='margin-left:108.0pt;text-indent:
-18.0pt'><span lang=EN-US style='font-family:Wingdings'>§<span
style='font:7.0pt "Times New Roman"'> </span></span><span dir=LTR></span><span
lang=EN-US>html files that were converted from these tt.xml files (see below)</span></p>
<p class=MsoListParagraphCxSpMiddle style='margin-left:72.0pt;text-indent:-18.0pt'><span
lang=EN-US style='font-family:"Courier New"'>o<span style='font:7.0pt "Times New Roman"'>
</span></span><span dir=LTR></span><span lang=EN-US>sources: holds folders for
each language, each of which contains data provided by the other teams (and
Thomas), which had to be sometimes manually corrected: </span></p>
<p class=MsoListParagraphCxSpMiddle style='margin-left:108.0pt;text-indent:
-18.0pt'><span lang=EN-US style='font-family:Wingdings'>§<span
style='font:7.0pt "Times New Roman"'> </span></span><span dir=LTR></span><span
lang=EN-US>.exb export files for every plant from EXMARaLDA</span></p>
<p class=MsoListParagraphCxSpMiddle style='margin-left:108.0pt;text-indent:
-18.0pt'><span lang=EN-US style='font-family:Wingdings'>§<span
style='font:7.0pt "Times New Roman"'> </span></span><span dir=LTR></span><span
lang=EN-US>.tt (treetagger) xml files for every plant, converted from .exb via
pepper by Thomas</span></p>
<p class=MsoListParagraphCxSpMiddle style='margin-left:108.0pt;text-indent:
-18.0pt'><span lang=EN-US style='font-family:Wingdings'>§<span
style='font:7.0pt "Times New Roman"'> </span></span><span dir=LTR></span><span
lang=EN-US>metadata xml files for the book level</span></p>
<p class=MsoListParagraphCxSpMiddle style='margin-left:108.0pt;text-indent:
-18.0pt'><span lang=EN-US style='font-family:Wingdings'>§<span
style='font:7.0pt "Times New Roman"'> </span></span><span dir=LTR></span><span
lang=EN-US>a pdf of the relevant pages of the historical edition</span></p>
<p class=MsoListParagraphCxSpMiddle style='margin-left:72.0pt;text-indent:-18.0pt'><span
lang=EN-US style='font-family:"Courier New"'>o<span style='font:7.0pt "Times New Roman"'>
</span></span><span dir=LTR></span><span lang=EN-US>stemma: holds the GraphViz .dot
file that produces the stemma, and the stemma svg itself (lightly edited by
hand)</span></p>
<p class=MsoListParagraphCxSpMiddle style='margin-left:72.0pt;text-indent:-18.0pt'><span
lang=EN-US style='font-family:"Courier New"'>o<span style='font:7.0pt "Times New Roman"'>
</span></span><span dir=LTR></span><span lang=EN-US>util: holds the xslt and
python files, with some support files, for development (see below)</span></p>
<p class=MsoListParagraphCxSpLast style='margin-left:72.0pt;text-indent:-18.0pt'><span
lang=EN-US style='font-family:"Courier New"'>o<span style='font:7.0pt "Times New Roman"'>
</span></span><span dir=LTR></span><span lang=EN-US>wireframes: contains a
number of tests and sketches for the design of the website </span></p>
<p class=MsoNormal><span lang=EN-US> </span></p>
<p class=MsoListParagraphCxSpFirst style='text-indent:-18.0pt'><span
lang=EN-US>2.<span style='font:7.0pt "Times New Roman"'>
</span></span><span dir=LTR></span><span lang=EN-US>We <b>set up a GitHubPages
website</b> for the project (go to the properties of the project and set it to
allow the setup of a GitHubPages site): </span><a
href="https://djbpitt.github.io/tufts_2018"><span style='font-size:10.5pt;
line-height:107%;font-family:"Arial",sans-serif;color:#00376C;background:white'>https://djbpitt.github.io/tufts_2018</span></a></p>
<p class=MsoListParagraphCxSpMiddle style='text-indent:-18.0pt'><span
lang=EN-US style='font-family:Symbol'>·<span style='font:7.0pt "Times New Roman"'>
</span></span><span dir=LTR></span><span lang=EN-US>When you create
GitHubPages, a .yaml file is created; in GitHubPages you can use Jekyll
templates (but we didn’t). For more on Jekyll, see: <a
href="https://jekyllrb.com">https://jekyllrb.com</a> , <a
href="https://programminghistorian.org/en/lessons/building-static-sites-with-jekyll-github-pages">https://programminghistorian.org/en/lessons/building-static-sites-with-jekyll-github-pages</a>
</span></p>
<p class=MsoListParagraphCxSpMiddle><span lang=EN-US> </span></p>
<p class=MsoListParagraphCxSpMiddle style='text-indent:-18.0pt'><span
lang=EN-US>3.<span style='font:7.0pt "Times New Roman"'>
</span></span><span dir=LTR></span><b><span lang=EN-US>Homepage workflow</span></b><span
lang=EN-US>: </span></p>
<p class=MsoListParagraphCxSpMiddle style='text-indent:-18.0pt'><span
lang=EN-US style='font-family:Symbol'>·<span style='font:7.0pt "Times New Roman"'>
</span></span><span dir=LTR></span><span lang=EN-US>We sketched out on paper
what the website should look like (see pictures in the wireframes directory); thinking
about how users would like to interact with the site, we decided to make
separate pages for every plant, linked from the main page</span></p>
<p class=MsoListParagraphCxSpMiddle style='text-indent:-18.0pt'><span
lang=EN-US style='font-family:Symbol'>·<span style='font:7.0pt "Times New Roman"'>
</span></span><span dir=LTR></span><span lang=EN-US>We put the index.html file,
which we built by hand, in the Github repository’s root directory</span></p>
<p class=MsoListParagraphCxSpMiddle style='text-indent:-18.0pt'><span
lang=EN-US style='font-family:Symbol'>·<span style='font:7.0pt "Times New Roman"'>
</span></span><span dir=LTR></span><span lang=EN-US>Three main sections on the
main page: </span></p>
<p class=MsoListParagraphCxSpMiddle style='margin-left:72.0pt;text-indent:-18.0pt'><span
lang=EN-US style='font-family:"Courier New"'>o<span style='font:7.0pt "Times New Roman"'>
</span></span><span dir=LTR></span><span lang=EN-US>Links to the plant pages: we
took images from the French edition to hold the links to the plant pages</span></p>
<p class=MsoListParagraphCxSpMiddle style='margin-left:72.0pt;text-indent:-18.0pt'><span
lang=EN-US style='font-family:"Courier New"'>o<span style='font:7.0pt "Times New Roman"'>
</span></span><span dir=LTR></span><span lang=EN-US>Stemma: We made a quick (but
thoughtful) manual comparison of the texts of one plant to build a provisional
stemma</span></p>
<p class=MsoListParagraphCxSpLast style='margin-left:72.0pt;text-indent:-18.0pt'><span
lang=EN-US style='font-family:"Courier New"'>o<span style='font:7.0pt "Times New Roman"'>
</span></span><span dir=LTR></span><span lang=EN-US>Bibliography table with links
to the pdf editions + metadata of every edition </span></p>
<p class=MsoNormal><span lang=EN-US> </span></p>
<p class=MsoListParagraphCxSpFirst style='text-indent:-18.0pt'><span
lang=EN-US>4.<span style='font:7.0pt "Times New Roman"'>
</span></span><span dir=LTR></span><b><span lang=EN-US>Metadata of the editions
workflow</span></b><span lang=EN-US>:</span></p>
<p class=MsoListParagraphCxSpMiddle style='text-indent:-18.0pt'><span
lang=EN-US style='font-family:Symbol'>·<span style='font:7.0pt "Times New Roman"'>
</span></span><span dir=LTR></span><span lang=EN-US>converted the metadata files
the groups produced to (well-formed) xml files, partly with a python script (in
/tufts_2018/util), partly by hand</span></p>
<p class=MsoListParagraphCxSpMiddle style='text-indent:-18.0pt'><span
lang=EN-US style='font-family:Symbol'>·<span style='font:7.0pt "Times New Roman"'>
</span></span><span dir=LTR></span><span lang=EN-US>Annis link in the metadata:
in Annis, we made a search for “sentence” in the relevant corpus, copied the link
to the search results, and added it to the metadata file (xml base file)</span></p>
<p class=MsoListParagraphCxSpLast style='text-indent:-18.0pt'><span lang=EN-US
style='font-family:Symbol'>·<span style='font:7.0pt "Times New Roman"'>
</span></span><span dir=LTR></span><span lang=EN-US>With an XSLT file (/tufts_2018/util
/meta-to-html.xsl), we transformed these xml metadata files into html pages
linked from the index.html page, and residing in the meta subdirectory </span></p>
<p class=MsoNormal><span lang=EN-US> </span></p>
<p class=MsoListParagraphCxSpFirst style='text-indent:-18.0pt'><b><span
lang=EN-US>5.<span style='font:7.0pt "Times New Roman"'>
</span></span></b><span dir=LTR></span><b><span lang=EN-US>Digital edition workflow:</span></b></p>
<p class=MsoListParagraphCxSpMiddle style='text-indent:-18.0pt'><span
lang=EN-US style='font-family:Symbol'>·<span style='font:7.0pt "Times New Roman"'>
</span></span><span dir=LTR></span><span lang=EN-US>Thomas used pepper to
convert the EXMARaLDA .exb files to treetagger (.tt) xml files</span></p>
<p class=MsoListParagraphCxSpMiddle style='text-indent:-18.0pt'><span
lang=EN-US style='font-family:Symbol'>·<span style='font:7.0pt "Times New Roman"'>
</span></span><span dir=LTR></span><span lang=EN-US>We started from .tt files (in
/tufts_2018/sources (renaming them to be consistent, and fixing a number of xml
errors by hand))</span></p>
<p class=MsoListParagraphCxSpMiddle style='text-indent:-18.0pt'><span
lang=EN-US style='font-family:Symbol'>·<span style='font:7.0pt "Times New Roman"'>
</span></span><span dir=LTR></span><span lang=EN-US>Using the tt_to_html.xsl file,
we transformed these to .tt.xml files that have numbered list of sentences;
these were put into the language subdirectories of the reading_views directory.
<br>
$ saxon –s:botrys.tt –o:botrys.tt.xml –xsl:../../util/tt_to_html.xsl</span></p>
<p class=MsoListParagraphCxSpMiddle><span lang=EN-US>(we later automated this
by writing a shell script, reading_views.sh, in the util directory; it has to
be run from the main directory)</span></p>
<p class=MsoListParagraphCxSpMiddle style='text-indent:-18.0pt'><span
lang=EN-US style='font-family:Symbol'>·<span style='font:7.0pt "Times New Roman"'>
</span></span><span dir=LTR></span><span lang=EN-US>We hand-built an html table
for every plant, that provides a comparison of the sentence numbers in every
language (/tufts_2018/util/mapping.html). Canonic line numbers were added to
these tables to make comparison possible. </span></p>
<p class=MsoListParagraphCxSpMiddle style='text-indent:-18.0pt'><span
lang=EN-US style='font-family:Symbol'>·<span style='font:7.0pt "Times New Roman"'>
</span></span><span dir=LTR></span><span lang=EN-US>Using the util<u>/add_sentence_numbers.xsl</u>
(running it from the language subdirectories of the reading_views directory),
we added the canonic line numbers in the @class attribute of the ordered lists:</span></p>
<p class=MsoListParagraphCxSpMiddle><span lang=EN-US>$ saxon –s:botrys.tt.xml –o:
botrys.html –xsl:../../util/add_sentence_numbers.xsl </span></p>
<p class=MsoListParagraphCxSpMiddle style='text-indent:-18.0pt'><span
lang=EN-US style='font-family:Symbol'>·<span style='font:7.0pt "Times New Roman"'>
</span></span><span dir=LTR></span><span lang=EN-US>The final plant html files
were built with combine_[plantname].xsl scripts (in the ideal world, we would
have made just one xslt script that built all these pages), and put into the
composite directory. <br>
Run “<u>combine_artemisia_herba-alba.xsl</u>” (from the util directory): (BUT:
adapt the file names + the number of files we are looping over + title+header)</span></p>
<p class=MsoListParagraphCxSpMiddle><span lang=EN-US>$ saxon –it –xsl:combine_artemisia_herba-alba.xsl
–o:../composite/ambrosia.html<br>
NB: -it = initial template: to use if there is not a direct input file for the
xslt</span></p>
<p class=MsoListParagraphCxSpMiddle style='text-indent:-18.0pt'><span
lang=EN-US style='font-family:Symbol'>·<span style='font:7.0pt "Times New Roman"'>
</span></span><span dir=LTR></span><span lang=EN-US>In order to have
corresponding sentences light up when hovering over a sentence, we produced a
javascript file (in /composite/scripts.js)</span></p>
<p class=MsoListParagraphCxSpMiddle style='text-indent:-18.0pt'><span
lang=EN-US style='font-family:Symbol'>·<span style='font:7.0pt "Times New Roman"'>
</span></span><span dir=LTR></span><span lang=EN-US>We also added the metadata
on each plant in each language, in a popup that appears when clicking the small
circled </span><span lang=EN-US style='font-family:"MS Gothic"'>ⓘ</span><span
lang=EN-US> after each language title; and a link to a pdf of a scan of the relevant
historical edition (which is located in the sources/[language] folder).</span><span
lang=EN-US style='font-family:"MS Gothic"'> </span></p>
<p class=MsoListParagraphCxSpMiddle><span lang=EN-US> </span></p>
<p class=MsoListParagraphCxSpLast><span lang=EN-US> </span></p>
<p class=MsoNormal><span lang=EN-US>NB: saxon is an xslt engine (the same one
used by oXygen)</span></p>
<p class=MsoNormal><span lang=EN-US>Running saxon from Windows: </span></p>
<p class=MsoNormal><span lang=EN-US>Download Saxon HE9 and save it in a
directory (make sure that the path does not include spaces)</span></p>
<p class=MsoNormal><span lang=EN-US>Instead of simply the command saxon, use:<br>
</span>java –jar C:/Programme/SaxonHE9-8-0-12J/saxon9he.jar</p>
<p class=MsoNormal><span lang=EN-US>You can create an alias for saxon by
typing: <br>
doskey saxon= java –jar C:/Programme/SaxonHE9-8-0-12J/saxon9he.jar</span></p>
<p class=MsoNormal><span lang=EN-US> </span></p>
<p class=MsoNormal><span lang=EN-US>Mac users can install saxon using homebrew:
</span></p>
<p class=MsoNormal style='text-indent:36.0pt'><span lang=EN-US>$ brew install
saxon</span></p>
</div>
</body>
</html>