-
Notifications
You must be signed in to change notification settings - Fork 0
/
xml-tei.html
executable file
·487 lines (369 loc) · 16 KB
/
xml-tei.html
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
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Markup, XML, TEI</title>
<meta name="description" content="Workshop · Markup, XML, TEI">
<meta name="author" content="José Luis Losada">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">
<link rel="apple-touch-icon" type="image/png" href="../manual/imagen/edigital.png">
<link rel="shortcut icon" type="image/x-icon" href="../manual/imagen/favicon.ico">
<!-- Hojas de estilo-->
<link rel="stylesheet" href="reveal/css/reveal.css">
<link rel="stylesheet" href="reveal/css/theme/simple.css">
<link rel="stylesheet" href="css/mychanges.css">
<!-- <link rel="stylesheet" href="reveal/css/theme/black.css"> -->
<!-- code syntax highlighting -->
<link rel="stylesheet" href="css/github.css">
<!-- Printing and PDF exports -->
<script>
var link = document.createElement( 'link' );
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match( /print-pdf/gi ) ? 'reveal/css/print/pdf.css' : 'reveal/ss/print/paper.css';
document.getElementsByTagName( 'head' )[0].appendChild( link );
</script>
<!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<section>
<!--PORTADA-->
<section id="portada">
<h2 class="portada">Markup, XML, TEI</h2>
<h3> Character, structure, guidelines</h3>
<h1><span id="filete">☵</span></h1>
</section> <!--FIN PORTADA-->
<!--INDICE-->
<section id="indice"> <!--ID de las secciones para hacer enlaces-->
<h3>Content</h3>
<div class="">
<ul>
<li><a href="#/markup">Markup language</a><span class="weiter">↡(3-8)</span></li>
<li><a href="#/tei">Text Encoding Initiative</a><span class="weiter">↡(9-25)</span></li>
<li><a href="#/guidelines">TEI Guidelines</a><span class="weiter">↡(26-31)</span></li>
<li><a href="#/biblio">References</a><span class="weiter">↡(30)</span></li>
</ul>
</div>
</section> <!--FIN INDICE-->
</section> <!--FIN PORTADA E INDICE-->
<section>
<!-- <section id="markup">
<h3>What is markup language?</h3>
</br>
<ul>
<li> To encode, to tag texts;</li>
<li> To make explicit (to a machine) what is implicit (to a person); </li>
<li> To add value by supplying multiple annotations. </li>
</ul>
</section>
<section>
<h3>XML vs. HTML</h3>
<ul>
<li>XML is extensible: it does not consist of a fixed set of tags;</li>
<li>XML documents must be well-formed according to a defined syntax;</li>
<li>XML documents can be formally validated against a schema;</li>
<li>XML is more about the meaning of data than about presentation.</li>
</ul>
</section> -->
<section id="markup">
<h3>Procedural Markup</h3>
<li>Visual, typographic, representation;</li>
<li>WYSWYG: What You See is <i>ALL</i> you Get.</li>
</br>
<h3>Descriptive Markup</h3>
<li>Semantic, funcional, structured;</li>
<li>Meaning before format.</li>
</ul>
</section>
<section>
<h5>"<b>Miguel de Cervantes</b> wrote <i>Don Quixote</i>"</h5>
</br>
<h3>Procedural</h3>
<pre><code><bold>Miguel de Cervantes</bold> wrote <italic>Don Quixote</italic></code></pre>
<h3>Descriptive</h3>
<pre> Markup<code><name>Miguel de Cervantes</name> wrote <title>Don Quixote</title></code></pre>
<pre> Visualization<code>name {font-weight: bold;} title {font-style: italic;} </code></pre>
<pre> Process<code><xsl:for-each select="//name"></code></pre>
</section>
<section>
<h3>XML Golden Rules </h3>
<pre class="xml"> An element consists of a <b>start-tag</b>, optional <b>content</b>, and an <b>end-tag</b>.<code> <persName>Miguel de Cervantes</persName></code></pre>
<pre class="xml"> An element may have <b>attributes</b>, each consisting of a name and a value.<code> <name type="person">Miguel de Cervantes</name></code></pre>
<pre class="xml"> An XML document may contain <b>processing</b> instructions or <b>comments</b>.<code> <? xml-stylesheet type="text/css" href="visualize-tei-xml.css"?></code>
<code> <!-- This is a comment: here starts the first sonnet --></code></pre>
<pre class="xml"> Elements and attributes are <b>case sensitive</b>.<code> <name> ≠ <Name></code></pre>
<pre class="xml"> <b>Empty elements</b> can use a minimized tag syntax.<code> <pb/> = <pb></pb> </code></pre>
</section>
<section>
<h3>Well-formed (good syntax) </h3>
<div class="imagen-texto">
<img src="imagenes/editio-wellformed-xml.png"/>
</div>
<ul style="width: 55%; float: right;" >
<li>XML-Version, character set;</li>
<li>A single root element (first node) contains the XML document;</li>
<li>Each element is nested within the root element in a hierarchical structure: no overlapping;</li>
<li>Elements, attributes, etc., are case sensitive;</li>
<li>Start-tags and end-tags are mandatory;</li>
<li>Attribute values are quoted.</li>
</ul>
</section>
<section>
<h3>Valid (against the schema)</h3>
<h5></h5>
<div class="imagen-texto">
<img src="imagenes/editio-valid-xml.png"/>
</div>
<ul style="width: 55%; float: right;" >
<li>Well-formed;</li>
<li>Follows a structural definition (schema);</li>
<li>Which elements and attributes are used;</li>
<li>Which elements and attributes can appear where;</li>
<li>Names, datatypes, and default values for all attributes.</li>
</ul>
</section>
<section>
<div class="imagen-sola">
<img src="imagenes/marginalia-xml-tei.png"/>
<div class="caption">C. Schöch <a class="fuente" href="https://de.dariah.eu/tei-tutorial">Digitale Textedition mit TEI (Tutorial)</a>
</div>
</div>
</section> <!-- Fin tei Bubble-->
</section> <!--end terminology-->
<section>
<section id="tei">
<div class="imagen-texto">
<img src="imagenes/marginalia-tei-logo.jpg"/>
<div class="caption"><a class="fuente" href="http://www.tei-c.org">TEI: Text Encoding Initiative</a></div>
</div>
<ul style="width: 50%; float: right;" >
<li>Development of markup for texts;</li>
<li>International standard;</li>
<li>Interchange of data;</li>
<li>Platform independence;</li>
<li>Preservation;</li>
<li>Research community.</li>
<li>TEI P5: Version 3.5.0. Last updated on 29th January 2019</li>
</ul>
</section> <!--End TEI definition-->
<section>
<h3>Modular system</h3>
<h5>Each module defines a group of elements and attributes</h5>
<img src="imagenes/editio-TEI_module.png"/>
</section>
<section>
<h3>TEI basic structure</h3>
<img src="imagenes/editio-tei_basic-1.png"/>
</section>
<section>
<h3>TEI basic structure</h3>
<h5><teiHeader></h5>
<img src="imagenes/editio-tei_basic-2.png"/>
</section>
<section>
<h3>TEI basic structure</h3>
<h5><teiHeader></h5>
<img src="imagenes/editio-tei_basic-3.png"/>
</section>
<section>
<h3>Content in the <teiHeader></h3>
<pre><code><teiHeader>
<fileDesc>
<titleStmt>
<title>EXERCISE 01 · Encodage de base</title>
<author>José Luis Losada</author>
</titleStmt>
<publicationStmt>
<publisher></publisher>
<date when="2019-04-25">25/04/2019</date>
</publicationStmt>
<sourceDesc>
<bibl><title>La perle de Séville</title></bibl>
</sourceDesc>
</fileDesc>
</teiHeader></code></pre></section>
<section>
<h3>TEI basic structure</h3>
<h5><text></h5>
<img src="imagenes/editio-tei_basic-4.png"/>
</section>
<section>
<h3>TEI basic structure</h3>
<h5><text></h5>
<img src="imagenes/editio-tei_basic-5.png"/>
</section>
<section>
<h3>TEI basic structure</h3>
<h5><text></h5>
<img src="imagenes/editio-tei_basic-6.png"/>
</section>
<section>
<h3>Content in the <text></h3>
<pre><code style="font-size: 1.4em;"><text>
<body>
<div>
<head>AVERTISSEMENT</head>
<p>Je demande pardon aux lecteurs français d'avoir choisi, parmi le nombreuses pièces de Lope de Vega, celle-ci, où le précepte des trois unités semble avoir été plus scandaleusement violé</p>
</div>
</body>
</text></code></pre>
<!-- Chefs-d'oeuvre du théâtre espagnol, Paris: Ladvocat, 1822, vol.1, p. 3 -->
</section>
<section>
<h3>Classes of elements</h3>
<li>grouped semantically: names, places, titles, ...</li>
<li>grouped structurally: divisions, paragraphs, verses,...</li>
</section>
<section>
<h3>Verse and name annotation</h3>
<pre><code><body>
<lg>
<l><persName>Doris</persName>, qui sait qu'aux vers quelquefois je me plais,</l>
<l>Me demande un sonnet, et je m'en désespère:</l>
<l>Quatorze vers, grand Dieu! Le moyen de les faire?</l>
<l>En voilà cependant déjà quatre de faits.</l>
</lg>
</body>
</code></pre>
</section>
<section>
<h3>Atributtes inside of elements</h3>
<div style="font-size: 1.2em;"><pre> Provides a unique identifier for any element:<code> @xml:id </code></pre>
<pre> Provides a name or number for any element:<code> @n </code></pre>
<pre> Specifies the language of any element:<code> @xml:lang </code></pre>
<pre> Characterizes the element in some sense:<code> @type </code></pre>
<pre> Specifies the visual appearance (rendition):<code> @rend, @style, @rendition </code></pre></div>
</section>
<section>
<h3>Atributtes and elements</h3>
<pre><code><body>
<lg type="quatrain">
<l n="1">Doris, qui ſait qu'aux vers quelquefois je me plais,</l>
<l n="3">Me demande un Sonnet; & je m'en deſeſpere:</l>
<l n="4">Quatorze vers, grand Dieu! le moyen de les faire!</l>
<l n="5">En voilà cependant desja quatre de faits.</l>
</lg>
</body>
</code></pre>
</section>
<section>
<h3>Metatextual markup for editions</h3>
<h5>Enriched with corrections, regularizations, expansions</h5>
<div style="font-size: 1.2em;"><pre class="xml" style="text-align:center ;"> Groups alternative encodings: <code> <choice> </code></pre>
<pre class="xml"> Apparent error:<code> <sic> </code></pre>
<pre class="xml"> Corrected error: <code> <corr> </code></pre>
<pre class="xml"> Original form: <code> <orig> </code></pre>
<pre class="xml"> Regularized form: <code> <reg> </code></pre></div>
</section>
<section>
<h3>Markup for corrections</h3>
<pre><code data-line-numbers="7-10"><body>
<lg type="quatrain">
<l n="1">Doris, qui ſait qu'aux vers quelquefois je me plais,</l>
<l n="3">Me demande un Sonnet; & je m'en deſeſpere:</l>
<l n="4">Quatorze vers, grand Dieu! le moyen de les faire!</l>
<l n="5">En voilà cependant
<choice>
<orig>desja</orig>
<reg>déjà</reg>
</choice>
quatre de faits.</l>
</lg>
</body></code></pre>
</section>
<section>
<h3>Critical Apparatus, Dictionaries, Manuscript Description, Bibliographies, ...</h3>
<h5>nearly 500 elements </h5>
</section>
</section> <!--End TEI structure-->
<section>
<section id="guidelines">
<h3><a href="http://www.tei-c.org/release/doc/tei-p5-doc/en/html/index.html">Guidelines</a></h3>
<img src="imagenes/editio-tei-guidelines-1.png"/>
</section>
<section>
<h3>Information, eg., on an element</h3>
<img src="imagenes/editio-tei-guidelines-2.png"/>
</section>
<section>
<h3>Quick look up in the TEI <i>Guidelines</i>. </h3>
<a href="javascript:Qr=document.getSelection();if(Qr==''){void(Qr=prompt('Introduce%20TEI-P5%20Element%20Name:%20',''))};if(Qr!='')location.href='http://www.tei-c.org/release/doc/tei-p5-doc/en/html/ref-'+escape(Qr)+'.html'">TEI-Look up</a>
</section>
<section>
<h3>TEI Roma (tool)</h3>
<h5><a href="https://roma2.tei-c.org">Generating customizations for the TEI</a></h5>
<ul>
<li>possibility to choose your modules;</li>
<li>possibility to create new elements;</li>
<li>possibility to generate your schema;</li>
<li>possibility to generate your documentation.</li>
</ul>
</section>
</section>
<!--
*****References****
-->
<section id="biblio">
<h3>References</h3>
<ul style="font-size: 0.7em;">
<li><i>A Gentle Introduction to XML, </i><a href="http://www.tei-c.org/release/doc/tei-p5-doc/en/html/SG.html">Guidelines for Electronic Text Encoding and Interchange</a>, TEI P5: Version 3.5.0. </li>
<li><i>digital.humanities @ Oxford, </i><a href="http://tei.it.ox.ac.uk/Talks/">TEI @ Oxford Teaching Pages</a>.</li>
<li>Lou Burnard (2014), </i><a href="http://books.openedition.org/oep/426"><i>What is the Text Encoding Initiative? How to add intelligent markup to digital resources </i></a>, Marseille: OpenEdition Press.</li>
<li>Christof Schöch (2014), <i>Digitale Textedition mit TEI</i>, <a href="https://de.dariah.eu/tei-tutorial">DARIAH TEI-Tutorial</a>.</li>
</ul>
</section>
<!--
*****************
*****CREDITOS****
*****************
-->
<section id="impressum">
<div><a href="http://www.ifr.uni.wroc.pl/pl/nasz-instytut/pracownicy/dr-jose-luis-losada-palenzuela">José Luis Losada Palenzuela</a>, <i>Markup, XML, TEI. Character, structure, guidelines</i>, <a href="http://editio.github.io/presentations/xml-tei"><http://editio.github.io/presentations/xml-tei></a>, 2019.</div>
<h2 id="filete"><a href="http://editio.github.io/presentations/xml-tei?print-pdf" title="To export to PDF. Go to this link and use the print dialog in your browser (CTRL/CMD+P)"><i style="font-size:24px;" class="fa"></i></a></h2>
<div ><a href="http://creativecommons.org/licenses/by-sa/4.0/"><img class="licencia" alt="License Creative Commons" src="https://i.creativecommons.org/l/by-sa/4.0/80x15.png"></a></div>
</div>
</section> <!--impressum-->
</div> <!--End of slides container-->
</div>
<script src="reveal/lib/js/head.min.js"></script>
<script src="reveal/js/reveal.js"></script>
<script>
// More info https://github.com/hakimel/reveal.js#configuration
Reveal.configure({ slideNumber: "c/t" });
Reveal.initialize({
controls: true,
progress: true,
history: true,
center: true,
transition: 'slide', // none/fade/slide/convex/concave/zoom
// More info https://github.com/hakimel/reveal.js#dependencies
dependencies: [
{ src: 'reveal/lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'reveal/plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'reveal/plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'reveal/plugin/highlight/highlight.js', async: true, condition: function() { return !!document.querySelector( 'pre code' ); }, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: 'reveal/plugin/zoom-js/zoom.js', async: true },
{ src: 'reveal/plugin/notes/notes.js', async: true }
]
});
</script>
<!--ESQUINAS MENU en TODAS DIAS-->
<div class="footer">
<p>José Luis Losada Palenzuela · 2019</p>
</div> <!--FIN FOOTER FIRMA-->
<div id="menu">
<a href="#/indice" title="Content">☰</a>
</div> <!--FIN INDICE-->
<div id="logo">
<a href="http://www.uni.wroc.pl"><img src="imagenes/logo_UWr_ang.png" title="Universty of Wrocław"/></a>
</div> <!--FIN LOGO-->
</body>
</html>