Re: Gem [text2D] including line breaks
IOhannes m zmoelnig via Pd-list <[email protected]> Wed, 28 Jan 2026 12:10:48 +0100
| Newsgroups | gmane.comp.multimedia.puredata.general |
|---|---|
| Message-ID | <[email protected]> |
On 1/28/26 11:50, Peter P. wrote: > Hi Cyrille, > > wow-that's impressive! Merci a lot for your patch and the insight! > > Does this mean that text2d understands fudi? I can't see any conversion > back from fudi. it doesn't understand FUDI. however, you can send it a list of unicode-points via the "string" message, e.g. [string 112 56 116 101 114( if it encounters a linefeed (ascii: 10), it will break the line: [string 108 228 116 101 114 10 112 56 116 101 114( you can also use the normal [text( (or [list() messsage and add a "\n" manually (e.g. generated with [makefilename %c]). like in the attached patch. gdasmr IOhannes -- please do not CC me for list-emails --- [email protected] - the Pure Data mailinglist https://lists.iem.at/hyperkitty/list/[email protected]/message/IKFNT32X3DAILU2EYGJNTW6FNQJOYSW3/ To unsubscribe send an email to [email protected] mailing list UNSUBSCRIBE and account-management -> https://lists.iem.at/
gemMultilineText-mwe3.pd
(text/x-puredata, 1.1 KB)
#N canvas 863 164 630 569 12; #X declare -lib Gem; #X obj 37 69 gemhead; #X obj 200 178 textfile; #X obj 37 256 text2d; #X obj 229 13 declare -lib Gem; #X msg 118 23 create \, 1; #X obj 118 50 gemwin; #X obj 200 294 list prepend append; #X obj 200 353 list store, f 38; #X obj 200 324 list trim; #X obj 200 250 list append; #X obj 286 250 makefilename %c; #X obj 286 201 loadbang; #X msg 286 225 10; #X msg 172 93 symbol multiline.txt; #X msg 200 146 read \$1 cr \, rewind \, bang \, bang; #X obj 172 118 t b s b, f 42; #X text 397 249 append LF; #X obj 200 378 t l l; #X obj 200 403 list split; #X obj 294 381 list length; #X obj 294 406 - 1; #X text 389 402 strip the trailing LF; #X connect 0 0 2 0; #X connect 1 0 9 0; #X connect 4 0 5 0; #X connect 6 0 8 0; #X connect 7 0 17 0; #X connect 8 0 7 0; #X connect 9 0 6 0; #X connect 10 0 9 1; #X connect 11 0 12 0; #X connect 12 0 10 0; #X connect 13 0 15 0; #X connect 14 0 1 0; #X connect 15 0 7 0; #X connect 15 1 14 0; #X connect 15 2 7 1; #X connect 17 0 18 0; #X connect 17 1 19 0; #X connect 18 0 2 0; #X connect 19 0 20 0; #X connect 20 0 18 1;
OpenPGP_signature.asc
(application/pgp-signature, 840 B)
-----BEGIN PGP SIGNATURE----- wsF5BAABCAAjFiEEdAXnRVdICXNIABVttlAZxH96NvgFAml57rgFAwAAAAAACgkQtlAZxH96NvjW sw/+IWc0xmzgfEzypVz1CL5T6ZH2h0txtNDC5t7tZK9ArZX7vhoAlr98YkGx3pejQVCcpjyh0D9h fS505X6M3Bo2LQYXvuXo6n8gHvVr/wWWRG5wENvxyDHthHLGOpbOf/tk4JyGRerFhxfO4VmanUoH v9wWL456Xyo87j6cCxJtGYH6ZgJ4ipJtqPTEr4rIoOV8NhY8WnNcTHYnOXVmgE5DI4zrb681dKqN 7F2Z+2go2+6XW0RzGYa7MmIJ4hUcVbDqwgKE95tJPjWvJjdkmM8K8t8PPWlboHkr8s5T4t8bMpOR h375gOztHuSzoojknkd1oM9IOjArGhBqZ4F4RTWZ+h5EsiXs2YVo9+PDAc187W2DxkPgI6swJk6t hMlEYfamOK0mYFQrTWmMNn5PtpeUBjNrrqjrTiqZH8XEzWB9FOlBNCcLJjWudmlyjOQrm/zRcGnr GRdiix9nUDujBl7PhGl1hT+Mb/yUAuaMSR29KWLSlEryHHpVbMK9hvh/CJGCx2ALLzI52+z1qArJ zrg9Tga6/BHCF83waCXmeZV8t229BxXXj5jKkj7psAv5jIiH1pu9oBuB38CRkumGozd7n77fnlE3 3DD0ErTpwy6SL+QCdGRKMwx5j/VnAPhWAbXh96uUiFN9k9LSLzBPmsfoUDSVfNna/FbCebjlYtYT gJY= =p2sg -----END PGP SIGNATURE-----