Forum Replies Created
-
AuthorPosts
-
redbook
Memberthank you, I am able to replace the hyphens in the word list with double tildes, and then paste into the dictionary. Slow but sure, all 200+ words. This is a one time project, but still an idea I thought worth pursuing, since it is casting off at 1354 pages. I just hate checking line endings :-).
But I DO appreciate your response.
redbook
Memberand I see that just by posting the sanskrit word here, I lost the a-macrons, the dot under the n, now just questions marks. Hard to illustrate my point, but I hope someone understands.
August 27, 2015 at 11:46 am in reply to: find: any italic letter followed by any roman paren? #77640redbook
Memberthanks very much Ariel! another helpful script you’ve written (I have the LineNumber script as well).
Lori Holland (aka redbook)
August 25, 2015 at 11:36 am in reply to: find: any italic letter followed by any roman paren? #77547redbook
Member:-( is right, I was so hopeful!!
redbook
MemberI think that would have best been corrected in Word before importing, where you can control a: endnotes or footnotes, and b: start numbering at each section, or continuous from start of document. THEN import. Once in Indesign, I don’t know that there is any way to fix other than manual renumbering.
Perhaps there is a script someone has written for this?
redbook
MemberNevermind! I got it, I had accidentally applied the character style to the entire sentence, rather than letting the grep expression do the work. Now all good, and my thanks again!
Jongware
I tried the grep style, and it did not cancel after the em dashes, all the type following also had the -120 tracking.
What I did:
In “rf” paragraph style, I pasted the expression from your response (?<!~_)~_~_(?=~_(?!~_)) into the find box of the grep style window, and applied character style “3 em dash”. “3 em dash” character style has -120 tracking.
why is it kerning the whole sentence? I have screen shots to show(jpg) but do not know how to include here in my response.
sorry I’m so daft!
redbook
MemberMany, many thanks both! I can’t believe that after all these years I still struggle with these simple tasks (always knowing there must be better way). In my next life I’m going to be a brilliant programmer and make lots more money than compositors do :-).
redbook
MemberI’m happy, too, that we both got the answer we needed!
redbook
MemberI also needed to adjust the boxes and positioning, that is the part I did as a search and replace using the “find” menu (find, object, object format options,anchored object options/chose “custom” in the top box). I replaced with my anchored box object style, so all the boxes are exactly the same size, exactly in 12 pts in the margins, etc. All you need to do is specify your custom object style and it should change all the anchored boxes, and place them where you want them and apply the tint.
I do wish I knew how to put all that into the script, but I don’t. At least it works this way, and even though an extra step, it only takes a minute or so.
Javascript training . . . on my list of to dos!
redbook
MemberI recently asked nearly the same question (see my post “Marginal line numbers extracted from text” at the top of the forum).
Jongware replied with this nifty script he wrote that does the trick for me. Be sure to make all of the quote marks straight quotes (retype them so they look straight). And you’ll need to paste in your grep expression in line 2 to replace mine: “[d+]”;
Keep the quotes and the final semicolon, my grep expression starts with the first slash and ends with the close bracket.
once done, the anchored boxes weren’t quite in the right position, so I searched for all anchored boxes (using “object” in the find menu) with custom positioning, and changed to an object style I had created that positioned them 12 pts into the outside margin, base aligned with the anchor point. If I knew java, I could probably finesse the script to do that as well, but it was easy enough as a separate search.
good luck!
app.findGrepPreferences = null;
app.findGrepPreferences.findWhat = ?[d+]?;
numberList = app.activeDocument.findGrep(true);for (i=0; i<numberList.length; i++)
{
tf = numberList[i].textFrames.add({anchoredObjectSettings:{anchoredPosition:AnchorPosition.ANCHORED, anchorXoffset:?1mm?}});
tf.geometricBounds = [“0mm”,”0mm”,”10mm”, “50mm” ];
numberList[i].move(LocationOptions.AT_BEGINNING, tf.texts[0]);
tf.fit (FitOptions.FRAME_TO_CONTENT);
}redbook
MemberNevermind!!! I got it to work (the quotes had turned into open and closed instead of straight, that was the problem.
thanks so much, I can adjust to my exact needs now.
YOU ARE GENIUS!
redbook
Memberwow, that was really fast!
I copied and pasted both versions (this one on the forum, and also the one you emailed) into a new java script. Both give syntax errors when I try to run them. The email version in line 9 (the semicolon after “length” possibly, and in the forum version, line 2.
I appreciate any insight you can give.
-
AuthorPosts
