|Hans-Christoph Steiner||Apr 29, 2005 2:30 pm|
|Frank Barknecht||Apr 29, 2005 7:01 pm|
|Michal Seta||Apr 30, 2005 8:24 am|
|Krzysztof Czaja||Apr 30, 2005 8:30 am|
|Hans-Christoph Steiner||Apr 30, 2005 4:44 pm|
|Krzysztof Czaja||May 1, 2005 3:42 am|
|Hans-Christoph Steiner||May 1, 2005 8:06 am|
|Krzysztof Czaja||May 1, 2005 9:29 am|
|Hans-Christoph Steiner||May 1, 2005 2:34 pm|
|Hans-Christoph Steiner||May 1, 2005 2:49 pm|
|Hans-Christoph Steiner||May 1, 2005 2:50 pm|
|Frank Barknecht||May 1, 2005 3:42 pm|
|Michal Seta||May 1, 2005 9:04 pm|
|Hans-Christoph Steiner||May 1, 2005 9:59 pm|
|Krzysztof Czaja||May 2, 2005 12:18 am|
|Krzysztof Czaja||May 2, 2005 12:21 am|
|B. Bogart||May 2, 2005 7:26 am|
|B. Bogart||May 2, 2005 9:22 am|
|Anton Woldhek||May 2, 2005 12:24 pm|
|Krzysztof Czaja||May 3, 2005 11:33 am|
|Frank Barknecht||May 3, 2005 3:47 pm|
|Anton Woldhek||May 3, 2005 4:26 pm|
|Krzysztof Czaja||May 4, 2005 4:04 am|
|Anton Woldhek||May 4, 2005 4:08 am|
|Krzysztof Czaja||May 4, 2005 4:11 am|
|B. Bogart||May 4, 2005 8:42 am|
|B. Bogart||May 4, 2005 12:24 pm|
|B. Bogart||May 4, 2005 12:38 pm|
|Hans-Christoph Steiner||May 4, 2005 4:33 pm|
|Hans-Christoph Steiner||May 4, 2005 4:36 pm|
|Hans-Christoph Steiner||May 4, 2005 4:40 pm|
|Anton Woldhek||May 5, 2005 2:04 am|
|Krzysztof Czaja||May 5, 2005 4:14 am|
|B. Bogart||May 5, 2005 8:03 am|
|B. Bogart||May 5, 2005 8:14 am|
|B. Bogart||May 5, 2005 8:18 am|
|B. Bogart||May 5, 2005 8:52 am|
|Hans-Christoph Steiner||May 5, 2005 1:36 pm|
|Krzysztof Czaja||May 6, 2005 7:20 am|
|B. Bogart||May 6, 2005 8:06 am|
|B. Bogart||May 9, 2005 8:15 am|
|Subject:||Re: [PD-dev] pddp style guide|
|From:||Hans-Christoph Steiner (ha...@eds.org)|
|Date:||May 1, 2005 8:06:21 am|
On May 1, 2005, at 6:43 AM, Krzysztof Czaja wrote:
Hans-Christoph Steiner wrote: ...
As for HTML docs, I don't understand why you want to separate the patches from the text. Yes, the text formatting abilities of Pd are
but you want them separate too... a reference page should be kept in a separate window anyway, so what is wrong about that window being controlled by another application?
If we can do it in Pd, why not do it in Pd? The example patches that go with the text would need to be opened from the browser (or whatever). There are a number of problems with launching .pd files from other applications, many of which are platform-specific and browser-specific. For example, on MacOSX, if you double-click a .pd file and Pd is not running, it loads the .pd file first, before loading the .pdrc or the prefs. So it'll the patch will throw errors if it needs anything from a non-standard path or a lib. This might affect other platforms too.
Plus, I think MacOSX is the only platform that automatically gets the file associations set up by Pd. On GNU/Linux and Windows, you need to manually create the file associations. That means for newbies, we'd have a lot of requests on the lists of how to do that. And each OS and each browser does it differently. Plus GNOME and KDE do it differently as well. If we write the references in Pd, we don't need to do anything to have the example patches launch in Pd.
However, my point is not about using a web browser, but about storing a reference page as a single parsable resource, instead of breaking it into several unparsable comments (same goes for any other type of longer self-contained text).
I am not sure what you mean by "unparsable comments". Using a multi-line regexp, you can grab all chunks that start with '#X text [0-9-]* [0-9-]*' and ends with a non-escaped ';'. The '#X text [0-9-]* [0-9-]*' would be equivalent to an HTML <p> and ';' to a </p> Start that comment with a keyword, they its quite easy to assign that text to that keyword in a hash or whatever. The regexps could be used in Tcl to be cross-platform. I don't think it'd be any harder to parse a .pd file than it would be to parse a .html file for our uses.
The way it is displayed is quite another matter. I am proposing the external browser, as the easiest, and the most old-fashioned-Pdish way to do it. Another option is including some kind of a browser widget in pd-gui, which you seem proposing:
of that. With a little more work on the [comment] object, I think we could have all of the text formatting capabilities that we'd really need to make very nice, linked help patches with texts, all within Pd.