[PD] help - building txt reader Gem

IOhannes m zmoelnig zmoelnig at iem.at
Mon Oct 10 12:47:44 CEST 2005


Georg Holzmann wrote:
> Hallo!
> 
>> How to encode a text file with multiple blanks which will be correctly 
>> read by [textfile]?
> 
> also can't imagine how to do it with textfile ...

actually it is fairly simple (piotr's attempts to escape characters made 
me think...)
using "\ " instead of just " " is fairly trivial in your favourite 
editor (as long as it is not Pd...)

attached is an example how to load ascii-art into Gem.

> anyway, there is a nother problem with textfile: if you have "," in a 
> text you won't see the rest in text3d, because it is handled as a new 
> message ...

like the spaces, it is just a matter of escaping: use "comma\,comma" 
instead of "comma,comma" in your textfile (tested!)



mfg.asd.r
IOhannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Pd-text.zip
Type: application/zip
Size: 645 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20051010/3c5c5671/attachment.zip>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Pd.txt
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20051010/3c5c5671/attachment.txt>


More information about the Pd-list mailing list