Import, XTZ, join word options, right and both values
Manage the "left", "right" and "both" @join values in XTZ editions.
ALSO the CQP word property must be renamed to "joined" because "join" is a CQP reserved keyword.
Validation test
Import the following file with XTZ : test.xml
concordance of [joined!="_UNDEF_"] gives :
Solution 1
Set the internal variable spaceAlreadyInserted=true if join=right|both. spaceAlreadyInserted is used to avoid insert spaces when a tag precede a word
Solution 2 (if 1 fails)
Pour l'attribut join le fichier text.xml n'est pas conforme aux guidelines. Il faut remplacer join="not" par join="no" et ajouter join="both"
Pour contourner le problème de @join="right", une solution peut être de rajouter @join="left" au mot suivant après la tokenisation selon l'algo suivant :
- si @join="right" ou @join="both"
- va au mot suivant et
- si @join="left", ne rien faire (conserver l'attribut)
- si not(@join), ajouter @join="left"
- si @join="right", remplacer la valeur par "both" et réappliquer l'algo au mot suivant.
- va au mot suivant et