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

Regex. Avoid single words (orphans). Éviter les mots isolés (orphelins).


uneMule

Recommended Posts

Bonjour à tous.
Rechercher les deux derniers mots du paragraphe et appliquer " pas de saut " de la palette de caractères, partie " positionnement et transformation ".
Rechercher : \S+\x{20}\S+$
Remplacer : appliquer le format ou une feuille de style de caractères " sans_retour_automatique ".

*****

Hello everyone.
Search for the last two words of the paragraph and apply "no jump" from the character palette, "positioning and transformation" section.
Search for : \S+\x{20}\S+$
Replace: apply the format or a character style sheet "no_automatic_return".

regex_mot_isole.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

30 minutes ago, uneMule said:

\S+x{20}\S+$

Thanks. One correction: the English version needs to have \x{20} not simply x{20} :)

-- 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

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.