Jump to content
You must now use your email address to sign in [click for more info] ×

Texte change after find and replace


Recommended Posts

Bonne nuit à tous,
le texte recherché est en vert.
Dans la première capture le texte avant le remplacement.
Dans le seconde capture le texte après remplacement.
Observez le mot remplace (bicolore) mais la couleur d'autre mots change également, comme si il y avait un glissement.
Étonnant, non ?

*****

Good night to all,
the text looking for is in green.
In the first capture the text before the replacement.
In the second capture the text after replacement.
Observe the word replaced (two-coloured) and colour of other words also change, as if there was a shift.
Amazing, isn't it?

Publisher 1.9.2.1035. Windows 10 19042.1052.

Capture d’écran (36).png

Capture d’écran (37).png

Toujours pas !
Windows 10 Pro 21H2 - Intel Core i7-3630QM CPU @ 2.40GHz - 16 Gb Ram - GeForce GT 650M - Intel HD 4000
Affinity Photo | Affinity Designer | Affinity Publisher | 2

Link to comment
Share on other sites

Quite interesting.

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1

Link to comment
Share on other sites

  • 2 weeks later...
21 minutes ago, Pauls said:

I'm going to guess that the page number is a field which isn't matching as a printable character.

But how does that explain all the color changes in the text after a Replace?

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1

Link to comment
Share on other sites

19 minutes ago, Pauls said:

a bit further investigation might suggest that group replacments are not updating some formatting locations correctly

That's my suspicion, too :)

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1

Link to comment
Share on other sites

@Pauls

@walt.farrell

Merci messieurs. Bonne soirée.

Thank you, gentlemen. Have a nice evening.

regex_limiter_la_zone_de_recherche.afpub

Toujours pas !
Windows 10 Pro 21H2 - Intel Core i7-3630QM CPU @ 2.40GHz - 16 Gb Ram - GeForce GT 650M - Intel HD 4000
Affinity Photo | Affinity Designer | Affinity Publisher | 2

Link to comment
Share on other sites

It looks like some errors that can occur in ID when using scripts to search on text value, and not "objects" using regular expressions. The "styles" stay in place (attributed to the same objects’ — characters —  positions, but the content/text is different (longer or shorter).

===

Ce problème est similaire à l'utilisation de scripts dans ID, modifiant la valeur du texte, sans prendre en compte les styles. Les styles restent à leur position, tandis que le texte modifié est plus long ou plus court.

Link to comment
Share on other sites

9 minutes ago, Wosven said:

Ce problème est similaire à l'utilisation de scripts dans ID, modifiant la valeur du texte, sans prendre en compte les styles. Les styles restent à leur position, tandis que le texte modifié est plus long ou plus court.

@WosvenBonsoir

Mais comment expliquer la modification sur le second paragraphe qui n'a pas subi de modification de texte ?

But how to explain the change in the second paragraph, which has not supported any text change?

Toujours pas !
Windows 10 Pro 21H2 - Intel Core i7-3630QM CPU @ 2.40GHz - 16 Gb Ram - GeForce GT 650M - Intel HD 4000
Affinity Photo | Affinity Designer | Affinity Publisher | 2

Link to comment
Share on other sites

2 hours ago, uneMule said:

But how to explain the change in the second paragraph

Imagine it's like boxes:

[0][1][2][3][4][5][6][7][8][9]

You replace "1" by "99":

[0][9][9][2][3][4][5][6][7][8][9]

The "red style" stay in place, and the line is longer of 1.

Supposing it doesn't affect only at line or paragraph level, but at story level, we can imagine next paragraph is modified too.

====

Imagine des boîtes:

[0][1][2][3][4][5][6][7][8][9]

On remplace "1" par "99":

[0][9][9][2][3][4][5][6][7][8][9]

La boîte "style rouge" reste à sa position, et la ligne est plus longue d'1 caractère.

En supposant que cela n'affecte pas uniquement au niveau d'une ligne ou d'un paragraphe, mais de l'article complet, on peut imaginer que le paragraphe suivant (ou la liste de boîtes suivantes) est aussi modifié/décalé.

Link to comment
Share on other sites

3 minutes ago, Wosven said:

mais de l'article complet

Oui. Dans ce cas, pourquoi pas.

Yes. In this case, why not.

Toujours pas !
Windows 10 Pro 21H2 - Intel Core i7-3630QM CPU @ 2.40GHz - 16 Gb Ram - GeForce GT 650M - Intel HD 4000
Affinity Photo | Affinity Designer | Affinity Publisher | 2

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.