[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sc-devel] help files - html title



Okay, I'll do it then.

S.

On 3 Dec 2007, at 23:38, Andrea Valle wrote:

Ah no, I can't do it.
In the sense I can write the html tmp file, but then we agreed on prompting for save as in order to let the user decide where to save the html file.
The Save as mechanism involves NSHTMLblabla rewriting the file. (Maybe it's simple but  I don't know where to look)

Best


-a-

On 4 Dec 2007, at 00:23, Andrea Valle wrote:

I can surely update the Helper classes (I know nothing about NSHTMLblabla...).
With the Helper you start from the what will be the tmp file name, so no problem in setting the title tag.
So, I will put as a title the file name: should I prepend "SuperCollider Help-"?

Best

-a-



On 3 Dec 2007, at 19:36, Scott Wilson wrote:


On 3 Dec 2007, at 18:30, Dan Stowell wrote:

2007/12/3, nescivi <nescivi@xxxxxxxxx>:
On Monday 03 December 2007 18:38:50 you wrote:
This is doable, but the title would need to be generated
automatically from the WYSIWYG editor.

Well, since the first word is usually the class name...
And we can easily prepend "SuperCollider Help - " to it...

The title would typically be taken from the filename I guess (this
would then cover non-class helpfiles too).

Is it possible (I guess I'm asking Scott here) for the html title to
be indicated to the cocoa-html-generator as long as (as soon as?) the
doc has a filename?

Dan

Well, you'd just edit the generated HTML string afterwards in the write method (already happening for a couple of reasons...). Since you have to have a path to write and generate html, you should have the path name and could write it as a title tag. On read you could harvest that (if it's not dealt with automatically).

Existing files without title strings could default to file name.

None of this would be hard to do. I can look at it, but I think maybe Andrea wanted to?

S.

_______________________________________________
Sc-devel mailing list

--------------------------------------------------
Andrea Valle
--------------------------------------------------
CIRMA - DAMS
Università degli Studi di Torino
--------------------------------------------------


I did this interview where I just mentioned that I read Foucault. Who doesn't in university, right? I was in this strip club giving this guy a lap dance and all he wanted to do was to discuss Foucault with me. Well, I can stand naked and do my little dance, or I can discuss Foucault, but not at the same time; too much information.
(Annabel Chong)




_______________________________________________
Sc-devel mailing list

--------------------------------------------------
Andrea Valle
--------------------------------------------------
CIRMA - DAMS
Università degli Studi di Torino
--------------------------------------------------


I did this interview where I just mentioned that I read Foucault. Who doesn't in university, right? I was in this strip club giving this guy a lap dance and all he wanted to do was to discuss Foucault with me. Well, I can stand naked and do my little dance, or I can discuss Foucault, but not at the same time; too much information.
(Annabel Chong)




_______________________________________________
Sc-devel mailing list