Hey all,
At the strong urging of Sofy Yuditskaya, I finally wrote up a quick interface for searching the Pd docs using a keyword or a regexp. Its in the form of an 0.43 plugin, so you can just drop it into your user-folder and you should get a "Search" item on the Help menu.
Test it out and let me know how it works for you.
.hc
On Wed, 12 Jan 2011, Hans-Christoph Steiner wrote:
At the strong urging of Sofy Yuditskaya, I finally wrote up a quick interface for searching the Pd docs using a keyword or a regexp. Its in the form of an 0.43 plugin, so you can just drop it into your user-folder and you should get a "Search" item on the Help menu.
so, if one is looking for "obj", "text" or "connect", they find how many thousands of them ?
| Mathieu Bouchard ---- tél: +1.514.383.3801 ---- Villeray, Montréal, QC
On Wed, 2011-01-12 at 10:10 -0500, Mathieu Bouchard wrote:
On Wed, 12 Jan 2011, Hans-Christoph Steiner wrote:
At the strong urging of Sofy Yuditskaya, I finally wrote up a quick interface for searching the Pd docs using a keyword or a regexp. Its in the form of an 0.43 plugin, so you can just drop it into your user-folder and you should get a "Search" item on the Help menu.
so, if one is looking for "obj", "text" or "connect", they find how many thousands of them ?
Yup, that is true. I'd love to see you improve it :)
.hc
On Wed, 2011-01-12 at 10:10 -0500, Mathieu Bouchard wrote:
On Wed, 12 Jan 2011, Hans-Christoph Steiner wrote:
At the strong urging of Sofy Yuditskaya, I finally wrote up a quick interface for searching the Pd docs using a keyword or a regexp. Its in the form of an 0.43 plugin, so you can just drop it into your user-folder and you should get a "Search" item on the Help menu.
so, if one is looking for "obj", "text" or "connect", they find how many thousands of them ?
I found bugs, so here's an updated version (attached).
.hc
1 the results aren't clickable 2 you can't enter multiple non-contiguous terms 3 no control over AND vs. OR (or is there?) 4 doesn't differentiate between tutorial/example patches and object-help patches (what if I just want to find the object named 'gate'?) 5 most of the results don't fit into the window size 6 full text search makes it impossible to get useful results for 'float', array', 'list', etc. 7 can't search by inlet, object function, author, etc. (PDDP META tags) 8 non-friendly user interface 9 it doesn't seem to be searching the manual
I've already got a pd patch that is well on its way to curing 1-8 (posted screenshots awhile back), but it requires toxy, which seems to have been removed from pd-ext, and there is currently no (non-buggy) tk 'entry' object in existence.
-Jonathan
--- On Wed, 1/12/11, Hans-Christoph Steiner hans@at.or.at wrote:
From: Hans-Christoph Steiner hans@at.or.at Subject: [PD] keyword/regexp search of documentation in a plugin To: "pd-list" PD-list@iem.at Date: Wednesday, January 12, 2011, 7:10 AM
Hey all,
At the strong urging of Sofy Yuditskaya, I finally wrote up a quick interface for searching the Pd docs using a keyword or a regexp. Its in the form of an 0.43 plugin, so you can just drop it into your user-folder and you should get a "Search" item on the Help menu.
Test it out and let me know how it works for you.
.hc
-----Inline Attachment Follows-----
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Attached is an updated version:
On Jan 12, 2011, at 9:13 PM, Jonathan Wilkes wrote:
1 the results aren't clickable
Which platform? They are for me on Ubuntu/maverick, Mac OS X 10.5 and
10.6.
2 you can't enter multiple non-contiguous terms
Its a regexp really, so it doesn't really do keyword searches.
Ideally, this would use a search engine like xapian, then it could do
keyword searches. I just added code to replace spaces in the
searchtext with the regexp code ".*" so that it'll search non-
contiguous words, but the first word will always be before the second
in search results.
3 no control over AND vs. OR (or is there?)
regexp
4 doesn't differentiate between tutorial/example patches and object- help patches (what if I just want to find the object named 'gate'?)
Hmm, that wouldn't be too hard to do, I guess it would be a pull down
menu of: object, message, comment, array, any.
5 most of the results don't fit into the window size
The window should be resizable.
6 full text search makes it impossible to get useful results for
'float', array', 'list', etc.
That sounds like fully typed searching, which would be very nice, but
much harder to do. My goal right now is to get a basic search
function working. Hopefully my code is clear enough that others will
make their own custom search plugins. I could see simple search,
regexp, search engine, etc.
7 can't search by inlet, object function, author, etc. (PDDP META
tags)
Why not? This works for me: author.*steiner
8 non-friendly user interface
I spruced it up a bit with this latest version.
9 it doesn't seem to be searching the manual
Ah, I'll add .html to the file types it searches.
.hc
I've already got a pd patch that is well on its way to curing 1-8
(posted screenshots awhile back), but it requires toxy, which seems to have
been removed from pd-ext, and there is currently no (non-buggy) tk 'entry' object in existence.-Jonathan
--- On Wed, 1/12/11, Hans-Christoph Steiner hans@at.or.at wrote:
From: Hans-Christoph Steiner hans@at.or.at Subject: [PD] keyword/regexp search of documentation in a plugin To: "pd-list" PD-list@iem.at Date: Wednesday, January 12, 2011, 7:10 AM
Hey all,
At the strong urging of Sofy Yuditskaya, I finally wrote up a quick interface for searching the Pd docs using a keyword or a regexp. Its in the form of an 0.43 plugin, so you can just drop it into your user-folder and you should get a "Search" item on the Help menu.
Test it out and let me know how it works for you.
.hc
-----Inline Attachment Follows-----
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
“We must become the change we want to see. - Mahatma Gandhi
Hi Hans, Two questions:
widget in the tcl shell, say, with "grid [button .b -text Hello]" the font size looks fine. So what exactly is happening in Pd to make things look too small in windows? (I remember this was a problem with the font bomb but I don't know what the solution was.) 2) What is the "_" command? I.e.: button .b -text [_ "Search"]
-Jonathan
--- On Wed, 1/12/11, Hans-Christoph Steiner hans@at.or.at wrote:
From: Hans-Christoph Steiner hans@at.or.at Subject: [PD] keyword/regexp search of documentation in a plugin To: "pd-list" PD-list@iem.at Date: Wednesday, January 12, 2011, 7:10 AM
Hey all,
At the strong urging of Sofy Yuditskaya, I finally wrote up a quick interface for searching the Pd docs using a keyword or a regexp. Its in the form of an 0.43 plugin, so you can just drop it into your user-folder and you should get a "Search" item on the Help menu.
Test it out and let me know how it works for you.
.hc
-----Inline Attachment Follows-----
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On Feb 6, 2011, at 4:19 PM, Jonathan Wilkes wrote:
Hi Hans, Two questions:
- widgets and text appear super tiny on winxp. But when I create a
widget in the tcl shell, say, with "grid [button .b -text Hello]" the font size looks fine. So what exactly is happening in Pd to make
things look too small in windows? (I remember this was a problem with the font bomb but I don't know what the solution was.)
In order to make the patches all look/work the same on all platforms,
Tk scaling is turned off. On Windows, this can mean small fonts, so
you have to use the scaled fonts that are speced in pd-gui.tcl.
- What is the "_" command? I.e.:
button .b -text [_ "Search"]
It marks text for localization. So if, for example, you are using Pd
in German it'll read "suchen" rather then "search".
.hc
-Jonathan
--- On Wed, 1/12/11, Hans-Christoph Steiner hans@at.or.at wrote:
From: Hans-Christoph Steiner hans@at.or.at Subject: [PD] keyword/regexp search of documentation in a plugin To: "pd-list" PD-list@iem.at Date: Wednesday, January 12, 2011, 7:10 AM
Hey all,
At the strong urging of Sofy Yuditskaya, I finally wrote up a quick interface for searching the Pd docs using a keyword or a regexp. Its in the form of an 0.43 plugin, so you can just drop it into your user-folder and you should get a "Search" item on the Help menu.
Test it out and let me know how it works for you.
.hc
-----Inline Attachment Follows-----
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
All mankind is of one author, and is one volume; when one man dies,
one chapter is not torn out of the book, but translated into a better
language; and every chapter must be so translated.... -John Donne
--- On Sun, 2/6/11, Hans-Christoph Steiner hans@at.or.at wrote:
From: Hans-Christoph Steiner hans@at.or.at Subject: Re: [PD] keyword/regexp search of documentation in a plugin To: "Jonathan Wilkes" jancsika@yahoo.com Cc: "pd-list" PD-list@iem.at Date: Sunday, February 6, 2011, 11:24 PM
On Feb 6, 2011, at 4:19 PM, Jonathan Wilkes wrote:
Hi Hans, Two questions:
- widgets and text appear super tiny on winxp.
But when I create a
widget in the tcl shell, say, with "grid [button .b
-text Hello]" the
font size looks fine. So what exactly is
happening in Pd to make
things look too small in windows? (I remember this was
a problem with the
font bomb but I don't know what the solution was.)
In order to make the patches all look/work the same on all platforms, Tk scaling is turned off. On Windows, this can mean small fonts, so you have to use the scaled fonts that are speced in pd-gui.tcl.
How do I specify them? I don't see them specified at all in the code for the "find" dialog but the fonts look fine there.
-Jonathan
- What is the "_" command? I.e.:
button .b -text [_ "Search"]
It marks text for localization. So if, for example, you are using Pd in German it'll read "suchen" rather then "search".
.hc
-Jonathan
--- On Wed, 1/12/11, Hans-Christoph Steiner hans@at.or.at
wrote:
From: Hans-Christoph Steiner hans@at.or.at Subject: [PD] keyword/regexp search of
documentation in a plugin
To: "pd-list" PD-list@iem.at Date: Wednesday, January 12, 2011, 7:10 AM
Hey all,
At the strong urging of Sofy Yuditskaya, I finally
wrote up
a quick interface for searching the Pd docs using a
keyword or a
regexp. Its in the form of an 0.43 plugin, so you can just drop
it into
your user-folder and you should get a "Search" item on
the Help
menu.
Test it out and let me know how it works for you.
.hc
-----Inline Attachment Follows-----
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
All mankind is of one author, and is one volume; when one man dies, one chapter is not torn out of the book, but translated into a better language; and every chapter must be so translated.... -John Donne
On Feb 6, 2011, at 5:54 PM, Jonathan Wilkes wrote:
--- On Sun, 2/6/11, Hans-Christoph Steiner hans@at.or.at wrote:
From: Hans-Christoph Steiner hans@at.or.at Subject: Re: [PD] keyword/regexp search of documentation in a plugin To: "Jonathan Wilkes" jancsika@yahoo.com Cc: "pd-list" PD-list@iem.at Date: Sunday, February 6, 2011, 11:24 PM
On Feb 6, 2011, at 4:19 PM, Jonathan Wilkes wrote:
Hi Hans, Two questions:
- widgets and text appear super tiny on winxp.
But when I create a
widget in the tcl shell, say, with "grid [button .b
-text Hello]" the
font size looks fine. So what exactly is
happening in Pd to make
things look too small in windows? (I remember this was
a problem with the
font bomb but I don't know what the solution was.)
In order to make the patches all look/work the same on all platforms, Tk scaling is turned off. On Windows, this can mean small fonts, so you have to use the scaled fonts that are speced in pd-gui.tcl.
How do I specify them? I don't see them specified at all in the code for the "find" dialog but the fonts look fine there.
-Jonathan
Its done using classes and the option system. If you make the
toplevel of your search like:
toplevel .font -class DialogWindow
It'll inherit stuff like that.
.hc
- What is the "_" command? I.e.:
button .b -text [_ "Search"]
It marks text for localization. So if, for example, you are using Pd in German it'll read "suchen" rather then "search".
.hc
-Jonathan
--- On Wed, 1/12/11, Hans-Christoph Steiner hans@at.or.at
wrote:
From: Hans-Christoph Steiner hans@at.or.at Subject: [PD] keyword/regexp search of
documentation in a plugin
To: "pd-list" PD-list@iem.at Date: Wednesday, January 12, 2011, 7:10 AM
Hey all,
At the strong urging of Sofy Yuditskaya, I finally
wrote up
a quick interface for searching the Pd docs using a
keyword or a
regexp. Its in the form of an 0.43 plugin, so you can just drop
it into
your user-folder and you should get a "Search" item on
the Help
menu.
Test it out and let me know how it works for you.
.hc
-----Inline Attachment Follows-----
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
All mankind is of one author, and is one volume; when one man dies, one chapter is not torn out of the book, but translated into a better language; and every chapter must be so translated.... -John Donne
“We must become the change we want to see. - Mahatma Gandhi
Ah, great. Thanks Hans.
-Jonathan
--- On Mon, 2/7/11, Hans-Christoph Steiner hans@at.or.at wrote:
From: Hans-Christoph Steiner hans@at.or.at Subject: Re: [PD] keyword/regexp search of documentation in a plugin To: "Jonathan Wilkes" jancsika@yahoo.com Cc: "pd-list" PD-list@iem.at Date: Monday, February 7, 2011, 12:14 AM
On Feb 6, 2011, at 5:54 PM, Jonathan Wilkes wrote:
--- On Sun, 2/6/11, Hans-Christoph Steiner hans@at.or.at
wrote:
From: Hans-Christoph Steiner hans@at.or.at Subject: Re: [PD] keyword/regexp search of
documentation in a plugin
To: "Jonathan Wilkes" jancsika@yahoo.com Cc: "pd-list" PD-list@iem.at Date: Sunday, February 6, 2011, 11:24 PM
On Feb 6, 2011, at 4:19 PM, Jonathan Wilkes
wrote:
Hi Hans, Two questions:
- widgets and text appear super tiny on
winxp.
But when I create a
widget in the tcl shell, say, with "grid
[button .b
-text Hello]" the
font size looks fine. So what exactly
is
happening in Pd to make
things look too small in windows? (I remember
this was
a problem with the
font bomb but I don't know what the solution
was.)
In order to make the patches all look/work the
same on all
platforms, Tk scaling is turned off. On Windows, this
can mean
small fonts, so you have to use the scaled fonts that are speced
in
pd-gui.tcl.
How do I specify them? I don't see them
specified at all in
the code for the "find" dialog but the fonts look fine
there.
-Jonathan
Its done using classes and the option system. If you make the toplevel of your search like:
toplevel .font -class DialogWindow
It'll inherit stuff like that.
.hc
- What is the "_" command? I.e.:
button .b -text [_ "Search"]
It marks text for localization. So if, for
example,
you are using Pd in German it'll read "suchen" rather then
"search".
.hc
-Jonathan
--- On Wed, 1/12/11, Hans-Christoph Steiner
wrote:
From: Hans-Christoph Steiner hans@at.or.at Subject: [PD] keyword/regexp search of
documentation in a plugin
To: "pd-list" PD-list@iem.at Date: Wednesday, January 12, 2011, 7:10
AM
Hey all,
At the strong urging of Sofy Yuditskaya, I
finally
wrote up
a quick interface for searching the Pd docs using
a
keyword or a
regexp. Its in the form of an 0.43 plugin, so you can
just drop
it into
your user-folder and you should get a "Search"
item on
the Help
menu.
Test it out and let me know how it works
for you.
.hc
-----Inline Attachment Follows-----
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
All mankind is of one author, and is one volume;
when one
man dies, one chapter is not torn out of the book, but
translated
into a better language; and every chapter must be so
translated.... -John
Donne
“We must become the change we want to see. - Mahatma Gandhi