UNSOLVED Access Space Center input texts by script
benedikt last edited by
When I access the input text in a Space Center with the
CurrentSpaceCenter.getRaw()command, it returns a
objc.pyobjc_unicodeobject. When I want to get the template glyphs before and after, I’d use
getAfter(). What confused me was that these return lists.
I’m curious to learn why these are handled differently. Would it be possible (and make sense) to have all of them return the same type of object?
Thanks in advance for the clarification. ;-)
I see... they will be added
benedikt last edited by benedikt
Ah, that makes sense. Thanks for clearing this up.
In my specific case (switching from uppercase to lowercase) it would actually be quite helpful to have the possibility of using raw commands for pre and after too, avoiding names like “/THREE” and “/euro” when doing a simple
spacCenter.get()returns a list of glyph names if available in the font. Use
spaceCenter.set(["a", "b", "agrave"])to set items.
spaceCenter.getRaw()returns the input string. Use
spaceCenter.setRaw("abà")to set an input string. There is no raw for pre and after, I could add them if required.