automatic brackets

瀏覽次數:8 次
跳到第一則未讀訊息

Michel Raj

未讀,
2017年12月19日 上午9:29:562017/12/19
收件者:indesi...@googlegroups.com
Hi,

I'm looking for a way to automatically put these [brackets] around titles.
I believe it's only possible by a search/replace (grep or not), but I would have liked a style or ?

Any idea ?

TIA
Michel


Boris Kas

未讀,
2017年12月19日 上午9:44:562017/12/19
收件者:InDesign Talk - Google
As variant:
Select title and run this script:
app.activeDocument.selection[0].contents = "[" + app.activeDocument.selection[0].contents + "]";
(+ keyboard shortcut for this script)

Michel


--
You received this message because you are subscribed to the Google Groups "InDesign talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to indesign-talk+unsubscribe@googlegroups.com.
To post to this group, send email to indesi...@googlegroups.com.
Visit this group at https://groups.google.com/group/indesign-talk.
For more options, visit https://groups.google.com/d/optout.



--
Всего доброго, Борис

Judy Hicks

未讀,
2017年12月19日 上午11:11:212017/12/19
收件者:indesi...@googlegroups.com
You could also set the para style using [ as a bullet and then s/r all paragraph returns in that style with ]\r (can't remember if \r is return or ^p). 
Judy

via mobile
(punctuation optional)
To unsubscribe from this group and stop receiving emails from it, send an email to indesign-tal...@googlegroups.com.

Michel Raj

未讀,
2017年12月19日 上午11:43:122017/12/19
收件者:indesi...@googlegroups.com
Thanks,

I thought of doing a simple search in the document
with
(.+) on the style
and replace with
[$1]

And keep the script of Boris for when I need to add brackets punctually.

But I would have dreamed of a kind of style with includes in front (like a bullet) and also in end of the title...

Regards
Michel



> Le 19 déc. 2017 à 17:11, Judy Hicks <plushd...@gmail.com> a écrit :
>
> You could also set the para style using [ as a bullet and then s/r all paragraph returns in that style with ]\r (can't remember if \r is return or ^p).
> Judy
>
> via mobile
> (punctuation optional)
>
> On Dec 19, 2017, at 6:44 AM, Boris Kas <boriska...@gmail.com> wrote:
>
>> As variant:
>> Select title and run this script:
>> app.activeDocument.selection[0].contents = "[" + app.activeDocument.selection[0].contents + "]";
>> (+ keyboard shortcut for this script)
>>
>> 2017-12-19 17:29 GMT+03:00 Michel Raj <mr...@mac.com>:
>> Hi,
>>
>> I'm looking for a way to automatically put these [brackets] around titles.
>> I believe it's only possible by a search/replace (grep or not), but I would have liked a style or ?
>>
>> Any idea ?
>>
>> TIA
>> Michel
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups "InDesign talk" group.

Boris Kas

未讀,
2017年12月19日 中午12:45:512017/12/19
收件者:InDesign Talk - Google

Find Grep: 

F?.+E?$ + para style 

Replace: 

[$0]


F is Front Symbol

E is End Symbol

Repeat

? is Zero or One time (0,1)

+ is Times More or One (1, 1+)


>> To unsubscribe from this group and stop receiving emails from it, send an email to indesign-talk+unsubscribe@googlegroups.com.

>> To post to this group, send email to indesi...@googlegroups.com.
>> Visit this group at https://groups.google.com/group/indesign-talk.
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>
>> --
>> Всего доброго, Борис
>> +7 977 273 4896
>> +7 926 358 9522
>> www.adobeindesign.ru
>>
>> --
>> You received this message because you are subscribed to the Google Groups "InDesign talk" group.
>> To unsubscribe from this group and stop receiving emails from it, send an email to indesign-talk+unsubscribe@googlegroups.com.

>> To post to this group, send email to indesi...@googlegroups.com.
>> Visit this group at https://groups.google.com/group/indesign-talk.
>> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups "InDesign talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to indesign-talk+unsubscribe@googlegroups.com.

> To post to this group, send email to indesi...@googlegroups.com.
> Visit this group at https://groups.google.com/group/indesign-talk.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "InDesign talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to indesign-talk+unsubscribe@googlegroups.com.

To post to this group, send email to indesi...@googlegroups.com.
Visit this group at https://groups.google.com/group/indesign-talk.
For more options, visit https://groups.google.com/d/optout.
回覆所有人
回覆作者
轉寄
0 則新訊息