I have a system where a localized string is inserted into a "tag" in a vanilla ps-file and run through a preprocessor. The output is captured and printed as a batch job later.
My problem is that most of the strings assigned are different lenght for different languages and I can only align the left side of the strings. When I align the right side of the strings they don't stay inside the bounding box box.
I have made the vanilla ps. template with a program and just replaced the texts inside with tags for the pre-processor.
I have tried to find a simple answer from PS cookbook and the net, but haven't found any simple enough answer to my limited brainpower.
here's a small snip of one template. the tag is {LBL1}
/_Helvetica 9 tfn
({LBL1}) 138.148 753.803 tpt
T
[1 0 0 1 333.3 -336.6] e
120.412 751.895 -6.78653 761.948 tbx
0 tal
10 tld
The text to be assigned to LBL1 should stop at position xxx and "expand" to left not right.
I really don't know PS at all, I can find a specific place inside a file, and can make some adjustements and thats all.
What I have gathered so far involves finding out the total lenght of the string, deducting that from the right most borders value and the adding that value to the leftmost borders value, move the cursor to that position and showing the string? But thats just the metacode...
I was hoping there would be a readymade way to make it happen, like clicking a button in wordprocessor
any assitance more than welcome.
My problem is that most of the strings assigned are different lenght for different languages and I can only align the left side of the strings. When I align the right side of the strings they don't stay inside the bounding box box.
I have made the vanilla ps. template with a program and just replaced the texts inside with tags for the pre-processor.
I have tried to find a simple answer from PS cookbook and the net, but haven't found any simple enough answer to my limited brainpower.
here's a small snip of one template. the tag is {LBL1}
/_Helvetica 9 tfn
({LBL1}) 138.148 753.803 tpt
T
[1 0 0 1 333.3 -336.6] e
120.412 751.895 -6.78653 761.948 tbx
0 tal
10 tld
The text to be assigned to LBL1 should stop at position xxx and "expand" to left not right.
I really don't know PS at all, I can find a specific place inside a file, and can make some adjustements and thats all.
What I have gathered so far involves finding out the total lenght of the string, deducting that from the right most borders value and the adding that value to the leftmost borders value, move the cursor to that position and showing the string? But thats just the metacode...
I was hoping there would be a readymade way to make it happen, like clicking a button in wordprocessor
any assitance more than welcome.