Forum Replies Created
-
AuthorPosts
-
Marc Autret
MemberHi all,
Just to mention a similar tool for those who need to seamlessly fill the BLEED area:
https://indiscripts.com/post/2018/03/fill-bleed-fix-image-frames-so-they-meet-bleed-edge(Free script.)
Best,
MarcMarch 31, 2012 at 11:20 am in reply to: Script or GREP formatting to apply alternating character colors #61917Marc Autret
MemberJongware said:
Marc, you are a sly devil ;)
But can you make it ignore the space if possible as well?
OK, you win ;-)
However, I'm quite sure it would be possible to deal with spaces by refining the GREP rules, but I confess I have not the courage to try…
@+
Marc
March 31, 2012 at 8:28 am in reply to: Script or GREP formatting to apply alternating character colors #61915Marc Autret
MemberJongware said:
Since you can only apply one color (or char style) at a time using GREP (…)
This is not quite true. In fact, alternating colors can be done through GREP styles, as demonstrated here:
https://www.indiscripts.com/pos…..rep-styles
Hope that helps.
@+
Marc
February 22, 2012 at 7:13 pm in reply to: Batch opening multiple text boxes in InDesign CS 5.5 #61679Marc Autret
Memberfrankdesign305 said:
Do you have a fix for this?
Try this code instead:
//===================================
var FO = FitOptions.FRAME_TO_CONTENT,
tfs = ([]).concat.apply([], app.activeDocument.stories.everyItem().textContainers),
t, i = tfs.length;
while( i-- ) (t=tfs[i]).overflows && ( t.locked || t.fit(FO) );
//===================================
(Note that the native fit() method can only treat single column frames.)
@+
Marc
Marc Autret
MemberAnn_Camilla said:
[…] I've looked at IndexMatic 2 but I don't think it does anything simple like this.
IndexMatic bypasses the native InDesign index feature so it can't help you if you need a pure ID index.
Anyway, the script can generate an independent index from any document or book, including footnotes if required. To retrieve proper nouns, you can target all words which start with an uppercase letter. Use then the Single Query mode and send the following query:
/[A-Z]w+/I
To also grab composite terms such as “Battle of Arras”, or “Marshal Joffre”, use rather the following query:
/[A-Z]w+( w{1,2})?( [A-Z]w+)?/I
Note that this pattern will also collect capitalized common names located at the beginning of sentences–like “The” in: “The cat meows.” So if you run the above query, you probably should generate an intermediate wordlist through the “Hit Report” feature, which allows you to prepare an explicit Query List.
Also, note that the IndexMatic's Query List mode supports simple wordlists. Just paste the items in the Query Editor—or directly open the text file within—and press “Build Index.”
Please refer to the user's guide for advanced topics:
https://www.indiscripts.com/blo…..Manual.pdf
Regards,
Marc
Marc Autret
MemberThanks for mentioning IndexMatic

Note that with the new version—IndexMatic2—you no longer need to 'pre-style' the targets in InDesign since the script allows you to capture any desired pattern through a regular expression.
In frikinelmo's example, one can directly achieve the index using a single query. Something like:
/(CAd+[A-Z]+)t/ => $1
See IndexMatic2 user's guide for further details:
https://www.indiscripts.com/pos…..er-s-guide
Regards,
Marc
-
AuthorPosts
