If anyone is interested,
I've written an external for assembling text-strings, which also allows for single-character backspace and a preview of the string being assembled.
The source code is on my website:
http://www.uwm.edu/~gssurges/ http://www.uwm.edu/%7Egssurges/
Hope it's useful to someone else,
Message: 2 Date: Wed, 13 Aug 2008 15:37:13 +0200 From: Jack jack@rybn.org Subject: Re: [PD] Keyname Object Changed? To: "Mike McGonagle" mjmogo@gmail.com Cc: PD-List data pd-list@iem.at Message-ID: AF3B3BDB-8BE8-4B64-9A7A-F7C09F3AB490@rybn.org Content-Type: text/plain; charset="utf-8"
Hola Mike,
In fact, Greg wanted a method to make something like 'hello world' and not 'helloSpaceworld' working in purePd style (I use the purePd [list-l2s] abs from 'list-abs' that i forget to join). So i just make a small patch to transform the 'Space' to ' ' (from [keyname]) in a sentence working with Pd vanilla. For the other key like 'Shift_L' or 'Tab', etc. it's possible to add them in a [sel] object to make them inactive. Or if you work with Pd-entended the [entry] object seems very nice ;) I attach this last patch with abstractions (Pure Pd patch, working with Pd Vanilla) with new keys. ++
Jack ?
Le 12 ao?t 08 ? 20:34, Mike McGonagle a ?crit :
Jack,
I tested out your patch, textB.pd, and whenever I hit the 'shift' key, it put "Shift_L" into the list of atoms. I am certain there are other keys that don't correspond exactly from how [keyname] represents them, and how us Humans might want to see them in text.
Other keys that do this are "Tab", "Caps_Lock", "BackSpace" (for the delete key), "Left" (left arrow, etc. for the other arrow keys). The Help, Home, End, PageUp, and PageDown keys also insert other text into the list.
Mike
On Mon, Aug 11, 2008 at 8:57 PM, Jack jack@rybn.org wrote: Yes, i had totaly forgotten this method ! Thanx Hans. So here the patch to create sentence with the keyboard using [makefilename %c] (more simple). ++
Jack
Le 12 ao?t 08 ? 03:32, Hans-Christoph Steiner a ?crit :
[keyname] changed to be more cross-platform, and more key commands were added. Also, "Space" is used as the key symbol since Tcl uses "Space" to represent a space; " " wasn't working on all platforms IIRC ; and, it is much easier to deal with "Space" than " " in Pd.
You could make a patch something like this to get a " ":
[keyname] | [select Space] | [32( | [makefilename %c]
.hc
On Aug 10, 2008, at 3:35 PM, Jack wrote:
i make three patches : one to send text mith a message box via OSC : send.pd one to receive text in a message box via OSC : receive.pd one to create a text with keyboard (to write), space (for a space) and return (to send) : text.pd Hope it is what you are looking for. ++
Jack <Archive.zip>
Le 10 ao?t 08 ? 17:25, Greg Surges a ?crit :
Sure,
I'm working on constructing strings, to allow chat over OSC. So, I want to be able to use " " as a space, instead of getting results like "helloSpaceworld".
I've written an external that will do it, but I want to see if there's a pd-vanilla way to do it.
Thanks for the reply!
On Sun, Aug 10, 2008 at 10:10 AM, Jack jack@rybn.org wrote: Hello Greg, To help you, can you tell us what you want to do with " " ? ++
Jack
Le 10 ao?t 08 ? 15:37, Greg Surges a ?crit :
Hi all,
First, pd-extended 0.40.3 is all-around great. Seems like lots of hard work went into it. So thanks to the people who worked on that.
Second, has the vanilla keyname object changed? Specifically, does it now output "Space" instead of " " when the spacebar is used? Is there a work-around to get the " " back?
Thanks,
- Greg
-- http://www.uwm.edu/~gssurges/ http://www.uwm.edu/%7Egssurges/ _______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list