Special space

Is it possible to have an automatic special space (bigger than a regular space) before the diamond that dissapears when the diamond starts the line.

Is it possible to have an automatic special space (bigger than a regular space) before the diamond that dissapears when the diamond starts the line.
Hi @yeshayac ,
you said: "… that dissapears when the diamond starts the line. "
Every flexible space will do that automatically. The space will always land on the end of the line before.
We only need a GREP Style that is changing the width of a flexible space when the space is followed by a diamond.
Let's assume the diamond has the Unicode code point 25CA for LOZENGE, the GREP pattern for the blank character before could be done with a positive lookahead to the diamond character:
\x{0020}(?=\x{25CA})
Assigned a character style that will change tracking to e.g. 500.
From my German InDesign 2022 on Windows 10:

What's not clear from your screenshot is how the justification of your paragraph is defined and what characters exactly compose the white space around your diamond. Also the Unicode code point of your diamond is unknown. Select the diamond and look this up in the Info panel:

Regards,
Uwe Laubender
( Adobe Community Professional )
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.