I have been reading many post one this site and I am impressed with the amount of knowledge. I am not well adversed in scripting and hope to find someone who can assist me with the following problem.
In my file, I may have many lines out of thousands which contains id="ATI_. I would like to have each line selected. Within that selected line there will be the following fields which is randomly placed within that line.
x="24.85" y="44.06" width="64.96" height="11.67"
The numberic value can range from 1 to 9999 with either one or two decimal places. Each one of these four values needs to multipled by a factor of .75 with a maximum of two decimal places.
For example the follow line of:
<rect id="ATI_OTHERINSTRUCT1" x="24.85" y="44.06" fill="none" stroke="#EC008C" stroke-width="0.25" width="64.96" height="11.67"/>
would be transformed to
<rect id="ATI_OTHERINSTRUCT1" x="18.64" y="33.05" fill="none" stroke="#EC008C" stroke-width="0.25" width="48.72" height="8.75"/>
Another example:
<rect id="ATI_OTHERINSTRUCT2" x="124.5" y="144.06" height="8.6" fill="none" stroke="#EC008C" stroke-width="0.25" width="64.96"/>
would be transformed to
<rect id="ATI_OTHERINSTRUCT2" x="93.38" y="108.05" height="6.45" fill="none" stroke="#EC008C" stroke-width="0.25" width="48.72"/>
width= should not be confused with stroke-width=
I really appreciate any help that I can get with this issue.
Thank you,
Pete
In my file, I may have many lines out of thousands which contains id="ATI_. I would like to have each line selected. Within that selected line there will be the following fields which is randomly placed within that line.
x="24.85" y="44.06" width="64.96" height="11.67"
The numberic value can range from 1 to 9999 with either one or two decimal places. Each one of these four values needs to multipled by a factor of .75 with a maximum of two decimal places.
For example the follow line of:
<rect id="ATI_OTHERINSTRUCT1" x="24.85" y="44.06" fill="none" stroke="#EC008C" stroke-width="0.25" width="64.96" height="11.67"/>
would be transformed to
<rect id="ATI_OTHERINSTRUCT1" x="18.64" y="33.05" fill="none" stroke="#EC008C" stroke-width="0.25" width="48.72" height="8.75"/>
Another example:
<rect id="ATI_OTHERINSTRUCT2" x="124.5" y="144.06" height="8.6" fill="none" stroke="#EC008C" stroke-width="0.25" width="64.96"/>
would be transformed to
<rect id="ATI_OTHERINSTRUCT2" x="93.38" y="108.05" height="6.45" fill="none" stroke="#EC008C" stroke-width="0.25" width="48.72"/>
width= should not be confused with stroke-width=
I really appreciate any help that I can get with this issue.
Thank you,
Pete