Skip to main content
.aLx.
Inspiring
September 27, 2023
Question

Sequence of Find and Replaces with Special Characters

  • September 27, 2023
  • 0 replies
  • 141 views

Good afternoon!

 

I have a need for the FIND AND REPLACE tool, but it is a slightly more complex issue than what I found in the community (including Carlos Canto's scripts).

 

I need a sequence of FIND AND REPLACES that involve replacing special characters. In other words, replace LINE BREAKERS for DOBLE LINE BREAKERS, something like:

 

to locate:
^n

replace with:
^n^n

 

or


to locate:
(space)^n

replace with:
^n

(to remove spaces at line ends)

 

Another thing I noticed is that when I use the FIND AND REPLACE scripts, the text has the formatting style of the first characters. This is a problem for me because the text already has formatting worked on with bolds, italics, font sizes, etc.

 

So, what I need is something that would allow me to RECORD a Find and Replaces sequence from Illustrator itself.

 

Is this possible?

 

 

-----

 

Boa tarde!

 

Eu tenho uma necessidade com ferramenta FIND AND REPLACE, mas é uma questão um pouco mais complexa do que encontrei na comunidade (inclusive com os scripts do Carlos Canto).

Eu preciso de uma sequência de FIND AND REPLACES que envolvem a substituição de caracteres especiais. Ou seja, substituir LINE BREAKERS for DOBLE LINE BREAKERS, algo como:

 

localizar:
^n

substituir por:
^n^n

 

ou


localizar:
(space)^n

substituir por:
^n

(para remover espaços nos finais de linha)

 

Outra coisa que notei é que quando uso os scripts de FIND AND REPLACE, o texto fica todo com o estilo de formatação dos primeiros caractéres. Isso para mim é um problema pois o texto já tem formatação trabalhada com bolds, itálicos, tamanhos de fontes, etc.

 

Então, o que eu preciso é algo que me permitisse GRAVAR uma sequência de Find and Replaces do próprio Illustrator.

Isto é possível?

 

This topic has been closed for replies.