Single char text

(by Google Translate:)

I have some old drawings where texts consist of individual letters. I have some scripts (probably from Lee Mac) and I can then rotate the vertical text, or letters, to horizontal position, convert to text, which then gives an extra space, edit out those spaces, add spaces where there should be one. It then goes faster if I write a new text instead. Not a big problem but curious if there is a smoother solution?

Comments

  • Express Tools / Text / convert Text To Mtext?

  • True! It was not by script, it was by Express tools.
    But the issue remains, it gives a extra space between all letters.

  • Will this do what you want?

  • Well, almost. I does the job for one (resulting) text by one.

    see attached example

  • The lisp I posted uses a left to right, top to bottom sort. You should be able to modify the code to split the sorted data into lines, then split each line into character groups using a gap of (* interval 2.0) between characters as a delimiter, then convert each character group to a text entity.

  • I think it will be good enough with ctot as is.

    In the set of drawing there is only one sheet like the one I posted above, then one almost similar, then it is sheets with texts in random positions, and angles. So if I want to "clean up" the drawings, I will use ctot, one by one.

    Thanks!

    (Modify/writing code is beyond my skills)

  • if the text is say close to each other then you could do a search window comparing based on X & Y and angle so text on angle is done as well. Still a big task, needs text to be readable so angles are not a problem. you can sort many levels deep maybe X Y ANG then check polar distance