<div dir="ltr"><div>I try to make it simple without unicode, let's say.</div><div><br></div>What if I add [list $1 $2 $3 $4( to text3d where each $ is a word (max number of $ is the amount of words in the longest sentence)<div>How can I achieve not to display 0 0 0 at the and of the list if number of words are less than max number of words in the longest sentence.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 22, 2021 at 3:25 PM IOhannes m zmoelnig <<a href="mailto:zmoelnig@iem.at">zmoelnig@iem.at</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 3/22/21 2:52 PM, Csaba Láng wrote:<br>
> Iohannes,<br>
> <br>
> can you explain how I can send unicodepoints to text3d?<br>
<br>
using the [string( message (see the [text3d] help-patch)<br>
<br>
e.g. [string 67 115 97 98 97 32 76 225 110 103(<br>
<br>
the problem is mainly that what comes out of [netreceive -b] is not <br>
going to be unicode-points but utf-8 encodings thereof.<br>
this is where the unicode-library i mentioned earlier comes into play.<br>
<br>
something like:<br>
<br>
[declare -path unicode]<br>
<br>
[netreceive -b 9999]<br>
[select 10 13]<br>
|     /      [append $1(<br>
|    /       [s $0-store]<br>
| __/<br>
|/           [r $0-store]<br>
[list   store]<br>
|<br>
[t a b]<br>
|     [s $0-store]<br>
|<br>
[route bang]<br>
            [utf82unicodenumber]<br>
            [list prepend string]<br>
            [list trim]<br>
            |<br>
            [text3d]<br>
<br>
(the [s/r $0-store] is only to make the ascii-art nice; use proper <br>
connections instead)<br>
<br>
if you can use UDP instead of TCP, you can practically omit anything <br>
between [select] and [route].<br>
<br>
gfmadsr<br>
IOhannes<br>
<br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote></div>