View Single Post
Old 12-07-2020, 11:26 AM   #4
un_pogaz
Chalut o/
un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.
 
un_pogaz's Avatar
 
Posts: 443
Karma: 672378
Join Date: Dec 2017
Device: Kobo
Si t'est français, met ton texte en français dans un Spoiler, et traduit traduit normalement pour le mesage publique.

Spoiler:
Je rappel que j'ai utilisé le module de Calibre telle quelle, et je peut difficilement le "corrigé". Aussi, il est difficile a mettre en tort, encore faut-il comprendre ça logique.

Pour le premier cas:
Apparemment dans type=car. match (not regex), Calibre applique la "CASE applique sur le remplacement" dans tous les cas. Il ne faut vraiment l'utilisé qu'avec parcimonie.
Dans votre cas, il aurait fallut gardé "Casse a appliqué" vide.
Le case-sensitive ne marche que pour la recherche : Cam/cam/cAm => CAM

Pour second cas:
Ça ressemble plus un bug de Calibre. Signale-le en temps que telle, je vais voir de mon coté ce que je peut faire.
En gros, la Casse n'est appliqué normalement que pour le texte de remplacement, le reste est copier telle quelle.
Mais dans le cas où le texte cherchée n'est pas trouvé, il capture tous et applique la Casse.
(CAM)ILLA LACKBERG, (JACK LONDON) => (Cam)ILLA LACKBERG, (Jack London)
Seul le texte entre parenthèse voit ça Casse changé.

A la réflexion, le modificateur de Casse n'e doit être utilisé que pour du Regex.


EDIT: Après avoir regardé, s'est bien le comportement attendu.
Le seul bug est que, en mode "Correspondance de caractères", la Casse n'est pas correctement appliqué dans le champs de test. J'ai corrigé et reporté le bug.


I remind you that I used the Caliber module as is, and I can hardly "correct" it. Also, it is difficult to blame it, but it is still necessary to understand that logic.

For the first case:
Apparently in type=car. match (not regex), Calibre applies the "CASE applies on replacement" in all cases. It should really be used sparingly.
In your case, you should have kept "Case applied" empty.
The case-sensitive only works for search : Cam/cam/cAm => CAM

For second case:
It looks more like a Caliber bug. Report it as such, I'll see what I can do.
Basically, the Case is normally applied only for the replacement text, the rest is copied as is.
But if the text you are looking for is not found, it captures all of it and applies the Casse.
(CAM)ILLA LACKBERG, (JACK LONDON) => (Cam)ILLA LACKBERG, (Jack London)
Only the text in brackets sees that Case changed.

On second thought, the Casse modifier should only be used for Regex.

EDIT: After look, this is expected behaviour.
The only bug is, in "Character Matching" mode, the box is not correctly applied in the test field. I have corrected and reported the bug.

Last edited by un_pogaz; 12-07-2020 at 01:09 PM.
un_pogaz is offline   Reply With Quote