Replacing inline lines with underscores


hi all,

 

i have test manual full of inline .5-point lines act fill-in-the-blanks lines. i'm trying convert these lines underscore characters. can find them searching anchored objects, can't see way add more detail distinguish 1 type of rule another. rules aren't styled character or object styles (which 1 way it), need find way. there 3 different lengths of inline rules short answers, medium-length answers, , longer full line answers (i can 1 grep find/replace). length of each type consistent (4p short, 6p medium).

 

i'm working on cobbling script using generous example scripts posted in forum, advice or pointers appreciated! i'll share results.

 

many thanks!

jason

hi jason,

i have test manual full of inline .5-point lines act fill-in-the-blanks lines. i'm trying convert these lines underscore characters. can find them searching anchored objects, can't see way add more detail distinguish 1 type of rule another. rules aren't styled character or object styles (which 1 way it), need find way. there 3 different lengths of inline rules short answers, medium-length answers, , longer full line answers (i can 1 grep find/replace). length of each type consistent (4p short, 6p medium).

if "different type" mean "different length" - here answer

you should check .geometricbounds of anchored / inline graphics.

returned array (y1,x1,y2,x2) first pair topleft corner , second pair bottomright corner.

 

robin

www.adobescripts.co.uk



More discussions in InDesign Scripting


adobe

Comments

Popular posts from this blog

Joomla site hacked, cant see front and - Joomla! Forum - community, help and support

Christian Home School Programs - Joomla! Forum - community, help and support

Trouble with PF_OutFlag_I_USE_AUDIO and PF_CHECKOUT_LAYER_AUDIO