-
Notifications
You must be signed in to change notification settings - Fork 0
/
materials_tei.html
executable file
·406 lines (301 loc) · 12.7 KB
/
materials_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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Digital Scholarly Editions with TEI</title>
<!-- Dublin Core tags for better indexing -->
<meta name="DC.Title" content="Introduction to digital editions. Annotating texts with XML-TEI">
<meta name="DC.Description" content="General Introduction to Digital Scholarly Editions and XML markup">
<meta name="DC.Creator" content="José Luis Losada" />
<meta name="DC.Date" content="2023-11-01" />
<meta name="DC.Rights" content="Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)" />
<meta name="DC.Format" content="text/html" />
<meta name="DC.Type" content="Presentation"/>
<meta name="DC.publisher" content='Universität Basel'>
<!-- portable devices -->
<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 id="portada"> <!--PORTADA-->
<h2 class="portada">
<p>Markup, XML, TEI</p>
</h2>
</section>
<section>
<section data-markdown>
<textarea data-template>
## What is mark-up language?
- To encode, to tag texts;
- To make explicit (to a machine) what is implicit (to a person);
- To add value by supplying multiple annotations.
</textarea>
</section>
<section data-markdown>
<textarea data-template>
## Procedural Markup: HTML
- Visual, typographic, representation;
- WYSWYG: What You See is ALL you Get.
## Descriptive Markup: XML
- Semantic, funcional, structured;
- Meaning before format.
</textarea>
</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 data-markdown>
<textarea data-template>
## Well-formed (syntax)
- A single root element (first node) contains the XML document:
- ```<ROOT>``` _Everything in here_ ```</ROOT>```
- Each element is nested within the root element in a hierarchical structure: <a href="imagenes/matrioszka_tei.html">no overlapping</a>.
- ✅ ```<ROOT><text>``` _Everything in here_ ```</text></ROOT>```
- ❌ ```<ROOT><text>``` _Everything in here_ ```</ROOT></text>```
- ...
</textarea>
</section>
<section data-markdown>
<textarea data-template>
## Valid (grammar)
- Which elements and attributes are used.
- Which elements and attributes can appear where.
- ...
</textarea>
</section>
</section> <!--end terminology-->
<section>
<section data-markdown>
<textarea data-template>
## TEI: Text Encoding Initiative
<img style="width: 50%; box-shadow: none; border-bottom: none" src="imagenes/interreg_markup-xml-tei.png"/>
</textarea>
</section>
<section id="tei">
<div class="imagen-texto">
<img style="box-shadow: none; border: none" 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;" >
<span class="cita">"The Text Encoding Initiative (TEI) is a consortium which collectively develops and maintains a standard for the representation of texts in digital form." </span>
<li>Platform independence;</li>
<li>TEI P5: Version 4.6.0. Last updated on 4th April 2023</li>
</ul>
</section> <!--End TEI definition-->
<section>
<h3>TEI basic structure (root element = <TEI>)</h3>
<img style="box-shadow: none; border: none" src="imagenes/editio-tei_basic-1.png"/>
</section>
<section>
<h3>TEI basic structure</h3>
<h5><teiHeader></h5>
<img style="box-shadow: none; border: none" src="imagenes/editio-tei_basic-2.png"/>
</section>
<section>
<h3>TEI basic structure</h3>
<h5><teiHeader></h5>
<img style="box-shadow: none; border: none" src="imagenes/editio-tei_basic-3.png"/>
</section>
<section data-markdown>
<textarea data-template>
## Content in the `<teiHeader>`
```
<teiHeader>
<fileDesc>
<titleStmt>
<title>Bym złożył sonet, Violente mię prosi</title>
<author>Lope de Vega Carpio</author>
</titleStmt>
<publicationStmt>
<publisher>University of Basel</publisher>
<date when="2021-05-17">17/05/2021</date>
</publicationStmt>
<sourceDesc>
<bibl>Sonety hiszpańskie, Jan Winczakiewicz (tłumacz), Londyn, Oficyna Poetów i Malarzy, 1965.</bibl>
</sourceDesc>
</fileDesc>
</teiHeader>
```
</textarea>
</section>
<section>
<h3>TEI basic structure</h3>
<h5><text></h5>
<img style="box-shadow: none; border: none" src="imagenes/editio-tei_basic-4.png"/>
</section>
<section>
<h3>TEI basic structure</h3>
<h5><text></h5>
<img style="box-shadow: none; border: none" src="imagenes/editio-tei_basic-5.png"/>
</section>
<section>
<h3>TEI basic structure</h3>
<h5><text></h5>
<img style="box-shadow: none; border: none" src="imagenes/editio-tei_basic-6.png"/>
</section>
<section data-markdown>
<textarea data-template>
```
<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>
```
</textarea>
</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 id="guidelines">
<h3><a href="http://www.tei-c.org/release/doc/tei-p5-doc/en/html/index.html" target="_blank">Guidelines</a></h3>
<img src="imagenes/editio-tei-guidelines-1.png"/>
</section>
</section> <!--End TEI structure-->
<!--
*****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 </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>
</ul>
</section>
</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 id="logo">
<a href="http://www.unibas.ch"><img src="imagenes/Logo_Unibas_BraPan_EN.png" title="University of Basel" /></a>
</div>
</body>
</html>