Bug #1652

RCP: 0.7.8alpha: back to text broken for corpus with word element not "w"

Added by Matthieu Decorde over 7 years ago. Updated over 7 years ago.

Status:New Start date:02/05/2016
Priority:Normal Due date:
Assignee:- % Done:

80%

Category:Import Spent time: -
Target version:TXM - Oriflamms 2.0

Description

see: https://groupes.renater.fr/wiki/txm-info/publics/specs_hyperliens_commandes/toedition

The last edition page is shown instead of the right one. If the user moves to the right page, the character is highlighted.

FR, AL mail:
Par contre, le retour au texte est cassé dans le corpus "caractère" (dans default aussi bien que dans facsimile).
(Ça ne se voit pas sur le corpus d'une page, car la page affichée est forcément la bonne).

Solution

Change the way word ids are compared :
compare("c_w_P1719_5_3", "c_w_P1719_5_3") returns 0
compare("c_w_P1719_5_3", "c_w_P1719_5_6") returns -3
compare("c_w_P1719_5_6", "c_w_P1719_5_3") returns 3
compare("c_w_P1719_5_3", "c_w_P1719_16_8") returns -11
compare("c_w_P1719_16_8", "c_w_P1719_5_6") returns 11

This compare method implies that the numbers in the ids are hierarchical.

History

#1 Updated by Matthieu Decorde over 7 years ago

  • Description updated (diff)

#2 Updated by Matthieu Decorde over 7 years ago

  • Description updated (diff)

#3 Updated by Alexey Lavrentev over 7 years ago

  • Description updated (diff)

#4 Updated by Matthieu Decorde over 7 years ago

  • Description updated (diff)
  • % Done changed from 0 to 80

Also available in: Atom PDF