<div dir="ltr">Iohannes,<div>tried your way, bit tricky for my kind of knowledge, but the idea with routing just was the perfect solution.</div><div>2nd outlet of [route] did the job, it natively adds 'list' to the front of the words with sapces which was the missing part for text3d.</div><div>All works perfectly and all the words with spaces are just perfectly rendered in gemwin.</div><div><br></div><div>Have such a lovely day as I have,</div><div><br></div><div>Popesz</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 22, 2021 at 4:08 PM IOhannes m zmoelnig <<a href="mailto:zmoelnig@iem.at" target="_blank">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 3:47 PM, Csaba Láng wrote:<br>
> I try to make it simple without unicode, let's say.<br>
> <br>
> What if I add [list $1 $2 $3 $4( to text3d where each $ is a word (max<br>
> number of $ is the amount of words in the longest sentence)<br>
> How can I achieve not to display 0 0 0 at the and of the list if number of<br>
> words are less than max number of words in the longest sentence.<br>
<br>
<br>
i probably misunderstood your question as "how do I correctly print text <br>
that contains multiple consecutive spaces" instead of the trivial "i <br>
want to print multiple words".<br>
<br>
if your only problem is to create a list of variable length, then this <br>
is pretty unrelated to both [netreceive]/telnet and [text3d]<br>
<br>
checkout the help for [list prepend] and possibly [list split] (and <br>
generally of the [list] objects).<br>
<br>
also, i fail to see why you can't just use the patch i so beautifully <br>
painted. why does it not work for you?<br>
<br>
<br>
gdmfs<br>
IOhannes<br>
<br>
> <br>
> On Mon, Mar 22, 2021 at 3:25 PM IOhannes m zmoelnig <<a href="mailto:zmoelnig@iem.at" target="_blank">zmoelnig@iem.at</a>> wrote:<br>
> <br>
>> 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 -><br>
>> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
>><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>
> <br>
<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>