jit.gl.text character replacement and carriage return


    Apr 07 2016 | 1:17 pm
    Hello, I'm struggling with something I thought easier...
    I'm feeding a "jit.gl.text" with files names read from a "folder" object.
    - First I'm trying to replace - or _ with "regexp" and "@subsititute" message. It's almost working but I can't find what symbol designates a space...
    - Even better than space, I'd like to replace - or _ with carriage return.
    I've tried several objects that I don't handle well, like "spell" or "tosymbol" without success...
    Any advices ?
    Alain

    • Apr 08 2016 | 7:21 pm
      hi alain.
      unfortunately this is not such a straight forward task. i think the best/easiest way to go about it is use a simple JS to parse the text and write the output to a file, and read the file with jit.textfile. i've attached a basic example of this.
      i'll be looking at ways to make this easier in the future.
    • Apr 08 2016 | 9:12 pm
      It seems good ! I'll test it longer in a few days.
      Thanks !
    • Apr 08 2016 | 9:55 pm
      I've been working with text a lot recently. Trying to get consistent formatting and translation. Post a patch and I might be able to offer some help.
    • Apr 09 2016 | 3:27 pm
      Thanks Noah, here is basically what I'd like to achieve :
    • Jun 10 2016 | 3:10 pm
      Hello Rob, I've finally tested your solution with JS object.
      That's exactly what I needed !
      Thanks !