Bug #2252
RCP: 0.7.8, XML/w import module, creating text identifiers fails when the root <TEI> element does not contain a <text> child
Statut: | New | Début: | 27/09/2017 | |
---|---|---|---|---|
Priorité: | Normal | Echéance: | ||
Assigné à: | - | % réalisé: | 0% |
|
Catégorie: | Import | Temps passé: | - | |
Version cible: | TXM 0.8.4 |
Description
Diagnostic
If source files have the following structure, the creation of text identifiers fails and some functions (as back-to-text) are unavailable
<TEI> <div> some text </div> <div> in divs </div> </TEI>
gives
<?xml version="1.0" encoding="UTF-8"?> <TEI xmlns="http://www.tei-c.org/ns/1.0" xmlns:txm="http://textometrie.org/1.0"> <teiHeader>...</teiHeader><div> <text id="tei"><w id="w_tei_1"><txm:form>some</txm:form><txm:ana resp="#txm" type="#enpos">DT</txm:ana><txm:ana resp="#txm" type="#enlemma">some</txm:ana><txm:ana resp="#src" type="#n">1</txm:ana></w> <w id="w_tei_2"><txm:form>text</txm:form><txm:ana resp="#txm" type="#enpos">NN</txm:ana><txm:ana resp="#txm" type="#enlemma">text</txm:ana><txm:ana resp="#src" type="#n">2</txm:ana></w> </text> <div> <w id="w_tei_3"><txm:form>in</txm:form><txm:ana resp="#txm" type="#enpos">IN</txm:ana><txm:ana resp="#txm" type="#enlemma">in</txm:ana><txm:ana resp="#src" type="#n">3</txm:ana></w> <w id="w_tei_4"><txm:form>divs</txm:form><txm:ana resp="#txm" type="#enpos">NNS</txm:ana><txm:ana resp="#txm" type="#enlemma">div</txm:ana><txm:ana resp="#src" type="#n">4</txm:ana></w> </div> </div></TEI>
Solution
The XML/w import module must be XML schema agnostic: no particular XML element should be supposed to be present in the source for the module to work.
Historique
#1 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
#2 Mis à jour par Matthieu Decorde il y a plus de 6 ans
- Version cible changé de TXM 0.8.0 à TXM 0.8.2
#3 Mis à jour par Matthieu Decorde il y a environ 5 ans
- Catégorie mis à Import
#4 Mis à jour par Matthieu Decorde il y a plus de 4 ans
- Description mis à jour (diff)
#5 Mis à jour par Matthieu Decorde il y a plus de 4 ans
- Description mis à jour (diff)
- % réalisé changé de 0 à 80
#6 Mis à jour par Matthieu Decorde il y a plus de 4 ans
- Version cible changé de TXM 0.8.2 à TXM 0.8.4
- % réalisé changé de 80 à 0