On 27-Nov-2012 19:26, Jelle wrote:
And David,
If you've ever imported a PDF file with lots of text in layouts, you may have noticed that every single character gets a position. Now that's fine until you try to change the text in any way as the text string will change, but not the positions string. In other words, you end up with garbage. The workaround for that is to use the split text extension. Which cleans up all the manual kernings nicely.
Split text goes the other way - it breaks strings into smaller pieces. Maybe you meant text -> Remove Manual Kerns? AFAIK there is no function that merges two <text>'s, other than by doing it manually: cutting one and pasting it into the end of the other. Which will generally move the second <text>. The "split text" extension also moves the component pieces, and does the entire <text> not just a selected substring, but I guess I could modify it to be better behaved.
There is another problem with some PS files - they drop all the spaces. So that "this is text" becomes the character set {t,h,i,s,i,s,t,e,x,t}. The code I'm working on will have an option to try to reinsert the spaces based on the letter spacing.
Regards,
David Mathog mathog@...1176... Manager, Sequence Analysis Facility, Biology Division, Caltech