Bug #2207

XTZ Import, HTML editions various bugs

Added by Sebastien Jacquot over 2 years ago. Updated 7 months ago.

Status:New Start date:05/18/2017
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:Edition Spent time: -
Target version:TXM 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.


Related issues

related to Feature #2050: RCP: X.X, improve XTZ import module New 02/23/2017

History

#1 Updated by Sebastien Jacquot over 2 years ago

  • Description updated (diff)

#2 Updated by Sebastien Jacquot over 1 year ago

  • Target version changed from TXM 0.8.0a (split/restructuration) to TXM 0.8.0

#3 Updated by Matthieu Decorde 7 months ago

  • Target version changed from TXM 0.8.0 to TXM X.X

Also available in: Atom PDF