Bug #2207

XTZ Import, HTML editions various bugs

Ajouté par Sebastien Jacquot il y a plus de 8 ans. Mis à jour il y a plus de 6 ans.

Statut:New Début:18/05/2017
Priorité:Normal Echéance:
Assigné à:- % réalisé:

0%

Catégorie:Edition Temps passé: -
Version cible:TXM 0.X.X

Description

1

<?xml version="1.0" encoding="UTF-8"?>

should only be used in XML or XHTML document? remove the line or specify a doctype?

2

CSS declaration must done in head tag (actually they're outside).

3

CSS css/txm.css is defined twice:

<link rel="stylesheet" type="text/css" href="css/txm.css"/><link rel="stylesheet" type="text/css" href="css/LIVRETSOPERAORIGINAL.css"/><link rel="stylesheet" type="text/css" href="css/txm.css"/>

4

Maybe not a bug, it seems all the div tags (from the start of the document to the current page) are repeated each HTML page.
Maybe the purpose is to keep data structure even if the page is an XML fragment of the real source structure?

<title>LIVRETSOPERAORIGINAL Edition - Page 38</title></head><body><div class="txmeditionpage"><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div>
<p class="txmeditionpb" align="center">180</p> <span title=" n:6100" id="w_01_CADMUS_6100">$</span> <span title=" n:6101" id="w_01_CADMUS_6101">180</span>
<h2 class=""> <span title=" n:6102" id="w_01_CADMUS_6102">SCENE</span> <span title=" n:6103" id="w_01_CADMUS_6103">SIXIEME</span><span title=" n:6104" id="w_01_CADMUS_6104">.</span></h2>
 <span title=" n:6105" id="w_01_CADMUS_6105">L’</span><span title=" n:6106" id="w_01_CADMUS_6106">AMOUR</span><span title=" n:6107" id="w_01_CADMUS_6107">,</span> <span title=" n:6108" id="w_01_CADMUS_6108">HERMIONE</span><span title=" n:6109" id="w_01_CADMUS_6109">.</span> <span title=" n:6110" id="w_01_CADMUS_6110">L’</span><span title=" n:6111" id="w_01_CADMUS_6111">AMOUR</span> 
...
<span title=" n:6256" id="w_01_CADMUS_6256">.</span></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></body></html>

I found this page: https://groupes.renater.fr/wiki/txm-info/public/specs_import_xtz_docu saying all other elements that the specified ones are not intended to be kept in default edition. Actually there are no div tags at all in the imported test corpora, only div1, div2, div3 and resulting in the example above in build edition.


Demandes liées

lié à Feature #2050: RCP: X.X, improve XTZ import module New 23/02/2017

Historique

#1 Mis à jour par Sebastien Jacquot il y a plus de 8 ans

  • Description mis à jour (diff)

#2 Mis à jour par Sebastien Jacquot il y a plus de 7 ans

  • Version cible changé de TXM 0.8.0a (split/restructuration) à TXM 0.8.0

#3 Mis à jour par Matthieu Decorde il y a plus de 6 ans

  • Version cible changé de TXM 0.8.0 à TXM 0.X.X

Formats disponibles : Atom PDF