Bug #1898

Updated by Serge Heiden about 3 years ago

Setting the 'out of text to edit' parameter to 'head' for a XML-TEI corpus containing one head removes the head content from indexes AND from edition.

Input source extract:
<pre>
<text>
<body>
<pb n="1" facs="https://upload.wikimedia.org/wikipedia/commons/thumb/0/0b/La_Fayette_-_La_Princesse_de_Cl%C3%A8ves_-_tome_1.djvu/page6-1024px-La_Fayette_-_La_Princesse_de_Cl%C3%A8ves_-_tome_1.djvu.jpg"/>
<head>La<lb/>Princesse<lb/>De<lb/>Cleves.</head>
<p>LA magnificence &amp; la galanterie n'ont jamais paru en France avec tant d'éclat, que dans les dernieres
</pre>

Resulting edition:
!{width:900px}cleve-edition.png!

Corresponding XHTML:
<pre>
<?xml version="1.0" encoding="UTF-8"?>
<html>
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8"/>
<link rel="stylesheet" type="text/css" href="css/txm.css"/>
<link rel="stylesheet" type="text/css" href="css/PRINCESSE.css"/>
<link rel="stylesheet" type="text/css" href="css/txm.css"/>
<link rel="stylesheet" type="text/css" href="css/PRINCESSEDECLEVES.css"/>
<head><title>PRINCESSE Edition - Page 1</title></head>
<body>
<div class="txmeditionpage">
<p>
<h3>Cleves-brut-simplifie-texte</h3>
<table>
<tr><td>titre</td><td>La Princesse de Clèves</td></tr>
<tr><td>auteur</td><td>Madame de La Fayette</td></tr>
<tr><td>date</td><td>1689</td></tr>
<tr><td>langue</td><td>fr</td></tr>
<tr><td>license</td><td>Texte libre de droits</td></tr>
</table>
</p>
<h2 rend="null"><br/><br/><br/></h2>
<p rend="null">
<span title=" n:1 frpos:DET:ART frlemma:le" id="w_Cleves-brut-simplifie-texte_1">LA</span>
<span title=" n:2 frpos:NOM frlemma:magnificence" id="w_Cleves-brut-simplifie-texte_2">magnificence</span>
</pre>

See the doubled CSS declarations. Note: PRINCESSEDECLEVES was the previous name of the corpus in the import.xml file.

Back