[PD] svg script (with pdlua?)

João Pais jmmmpais at googlemail.com
Fri Mar 13 09:40:18 CET 2015


that should work theoretically, but it's maybe a too complicated of a  
task, involving lots of extra processing?

meanwhile j wilkes pointed out a fairly simple solution, svg can use  
spaces instead of commas.

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Converting all your text file in its numeric representation, then
> reverting all in character representation could help ?
> There is [list tosymbol] and [list fromsymbol] for such problem.
> If you use lua, i think it should be easy to convert from numeric to
> character representation.
> ++
>
> Jack
>
>
>
> Le 11/03/2015 18:54, João Pais a écrit :
>> Hello list,
>>
>> I wanted to create an svg file using Pd, but it's a bit hard, as
>> the character "," can't be used by [textfile]. There could be some
>> ways to circumvent this such as using another character and change
>> it in a text editor. But I would like to ask if there is any other
>> examples, e.g. about using [pdlua] or something else to create the
>> file.
>>
>> The file to be created would look a bit like this:
>>
>> <svg xmlns="http://www.w3.org/2000/svg"
>> xmlns:xlink="http://www.w3.org/1999/xlink" width="400"> <!-- 180
>> V0 70 V1 50 V2 90 V3 --> <g stroke="black"
>> transform="translate(20,20) scale(.78)" font-size="10"
>> font-family="Courier"> <line x1="0" x2="390"/>
>>
>> <g transform="translate(0,0)"> <text x="5" y="-5">V0</text> <line
>> y1="-5" y2="5"/> </g> <g transform="translate(180,0)">
>> <text>V1</text> <line y1="-5" y2="5"/> </g> <g
>> transform="translate(250,0)"> <text>V2</text> <line y1="-5"
>> y2="5"/> </g> <g transform="translate(300,0)"> <text>V3</text>
>> <line y1="-5" y2="5"/> </g>
>>
>>
>> <g transform="translate(390,0)"> <line y1="-5" y2="5"/> </g> </g>
>> </svg>
>>
>> Thanks,
>>
>> jmmmp
>>
>> _______________________________________________
>> Pd-list at lists.iem.at mailing list UNSUBSCRIBE and
>> account-management -> http://lists.puredata.info/listinfo/pd-list
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
>
> iQEcBAEBAgAGBQJVAKKrAAoJEOuluecjw8GUQbgIAI18vgtl/7GrgI1M7ynfr9+B
> rfqf2PURa8RmTHYd1IEbbv3VXwrQ8Xh3zuqaF0rx5ZIV/IOqHJEnb73sc22We4Wc
> R8/SdPhHolit3YubDpgnC7yO4pQZZSjLTFqSOVBeXstqEq5Kch46YHNhsml6+j4R
> fJI+LrhhcDrxHr5+yP+6BppkdqnkZT2j7CfaZrCh7hmRjwN/iyEGDnGq/WsKc/WY
> h0QilmZiRg9ccsBD8HxUJihGYcEWcHL9V/649o2JDqd68Cf0iudIDCfoaxHI8FIR
> rxJDySBHtqggrx4ZugH2wY1SXsK5o3+xBcQkxlJyXW6VrrpCOuVQeRHA7gdQ9Ds=
> =L35o
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->  
> http://lists.puredata.info/listinfo/pd-list



More information about the Pd-list mailing list