Reply To: Variable Drop Caps…

#55514

Nothing you can do about that. “Drop Caps” only work with a preset number of characters — unlike nested styles and such, which can react to something in the text.

Either adjust the number of characters manually per paragraph, or make loads of drop cap styles, each one with a different number of characters.

Would a small Javascript help you out? (A bit?) As in

par = app.selection[0].paragraphs[0];
spacePos = par.contents.indexOf(“u00a0”);
if (spacePos == -1)
alert (“There is no Hard Space in this paragraph!!”);
else
par.dropCapCharacters = spacePos;

(Ed.) Only one backslash in that script and it got eaten! Added again.

(Ed. again) And it got et again. If you see two backslashes (or five, if I can't restrain myself): there should be only one.

This article was last modified on April 14, 2010

Comments (0)

Loading comments...