[PD] What's the easiest way to cut various symbols to a fixed length?

Roman Haefeli reduzent at gmail.com
Wed Nov 13 12:54:00 CET 2019


On Tue, 2019-11-12 at 18:39 +0100, tim vets wrote:
> how about [list fromsymbol], [list split] and [list tosymbol]?

This works as long as your characters are strictly ASCII. You get
"interesting" results when cutting in the middle of an multi-byte
unicode character. When the left-hand part of [list split] contains
multi-byte unicode characters, the displayed string is shorter than
what you intended.

Roman
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20191113/0c482dd9/attachment.sig>


More information about the Pd-list mailing list