• 60htz

    2011 MacBook Pro Apple French

    &é"'(§è!çà
    azertyuiop
    asdfghjklm
    <wxcvbn,;:

    1234567890
    AZERTYUIOP
    QSDFGHKLM

    WXCVBN?./

    posted in technical issues read more
  • 60htz

    Ah, so simple, thanks for the explanation :)

    posted in technical issues read more
  • 60htz

    Last but not least, what would be the best way to know that the replace process is finished? I think about a logical check... if the max_lines equal the actual line AND if the max length equal to max_length then the replace process is done. But it's a bit painfull with the [until] loops, I need to use [tof/streamMinMax] in order to get the maximum...

    posted in technical issues read more
  • 60htz

    Wow thanks @ingox it's working well :)

    posted in technical issues read more
  • 60htz

    Thanks all for the clever clues!

    I got rid of error message by checking the lines length with a simple [list length] like @ingox said... sometimes things are so simple you need to ask on a forum and then check back your code to see it's one or two object ahead! ;)

    here is the result (it's a particular case, but it might help others...)

    Search_and_replace2.zip

    As for the xml tags, I will investigate detox thanks... I remember that with some xml it freezes my pd so I try to be careful.

    posted in technical issues read more
  • 60htz

    Hi,
    I did a patch using [text] objet that is able to search and replace words in a xml file by a random dictionary. It is working a bit, but with some errors and limitation...

    1- Since [text search] is very limited, I use [text get] and loop every line and field to search a field that match my word... but I don't know the maximum field numbers per line, which is a bit annoying...
    So I get red errors in the pd console when I am out of field.

    2- Because of my [text get] field's looping system, every words need to be surrounded by a space. but the xml tag formatting is a bit limiting here... like "<noun ...>" string cannot match "noun".

    Would be very happy to know how to improve it/get rid of some limitation here :)

    Here is the source:
    Search_and_replace.zip

    Cheers

    posted in technical issues read more
  • 60htz

    Yes, thanks after some hard time... it finally works by calling a script.

    The [shell] object in Unix environnment is very different from the Terminal: absolute path needed, root mode needed, and pd "..." string limitation make it a bit painfull!

    posted in technical issues read more
  • 60htz

    I tried with shell and sed command wich is working perfectly inside a terminal, but unfortunately I can't make it work in pd with [shell] object from ggee...

    sudo /usr/bin/sed  "s/coucou/replaced/" /Users/raphael/Desktop/input.svg > /Users/raphael/Desktop/output.svg
    

    posted in technical issues read more
  • 60htz

    @whale-av

    Thanks for you suggestion, actually I only need to change some text (ex "coucou" in line id="flowPara3352">coucou</flowPara></flowRoot> </g>... )

    I guess I really need to leave [text] for that since importing the file would break the semi-colon... other objects like [jasch_lib/detox] or [pofxml] freeze pd when using my xml :(

    posted in technical issues read more
  • 60htz

    Hi,

    I need to replace some text field in a svg.

    I use the new pd-48 [text] objet for that and a message with -c flag in order to keep the formating [read -c file.svg(

    When I write the svg file out, I use the same -c flag and my file can be read by Inkscape, but semicolon separated field (1) are removed, so it ended with a forgotten text-style parameters:

    Is there a workaround this? or I face the limit of the xml-style text-formtating with [text] object in pd?

    (1)

    style="font-style:normal;font-weight:normal;font-size:40px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
    

    Original svg file, (semicolon to keep are ligne 58)
    Test-text.svg.zip

    Thanks

    posted in technical issues read more

Internal error.

Oops! Looks like something went wrong!