Home » Computing » Geek City » Tuck related programming
Tuck related programming [message #3072] Sun, 30 January 2005 05:01 Go to next message
Quoth  is currently offline Quoth
Messages: 7
Registered: December 2004
Location: Australia
Junior Member
Quote:


There's plenty enough geeks; it's just hard to get them to say anything.

Ellen
nosig



Ok, I'll bite Razz

Anyone else done any programming related to Tuck? I wrote a utility to (nicely) split Tuck into 4k files for reading on my iPod, and another to convert the Tuck Notes page into an RSS feed. Both are written in C#, though they seem to compile on mono.

I'm playing with the idea of writing "The MacinClock Two, Alarming Version," based on Ellen/Tuck's occasional meager descriptions. Well, the one real description I can find, in Chapter 84 at 06:00 25 Aug. Thoughts? Suggested features or implementation ideas? Anyone else with way too much time to kill waiting for 108, or is it just me? Razz
Re: Tuck related programming [message #3076] Sun, 30 January 2005 08:48 Go to previous messageGo to next message
Sir Lee  is currently offline Sir Lee
Messages: 440
Registered: October 2003
Location: São Paulo, Brazil
Senior Member
Not real programming (I haven't done that in something like 15 years), but...

I did some scripting for the NoteTab text editor. For instance, I have made a "clip" (NoteTab jargon for a macro) which will strip the PGP signature (it won't work after editing anyway), eliminate line breaks inside paragraphs and then invoke another custom clip to convert the quotes into typographical quotes.

This eliminates about 80% of the work involved in doing a formatted, compiled version of Tuck, ready for printing. The remaining work to be done is just about joining the parts, converting it into HTML and doing some style-applying.

Sir Lee


Don't call me Shirley. You will surely make me surly.
Re: Tuck related programming [message #3079] Sun, 30 January 2005 20:26 Go to previous messageGo to next message
rachel.greenham  is currently offline rachel.greenham
Messages: 290
Registered: November 2002
Location: Bristol, UK
Senior Member
Quoth wrote on Sun, 30 January 2005 10:01

Quote:


There's plenty enough geeks; it's just hard to get them to say anything.

Ellen
nosig



Ok, I'll bite Razz

Anyone else done any programming related to Tuck? I wrote a utility to (nicely) split Tuck into 4k files for reading on my iPod, and another to convert the Tuck Notes page into an RSS feed. Both are written in C#, though they seem to compile on mono.


I wrote a program (in Java) called Tuck2HTML which converts the whole of Tuck into nice clean XHTML with attached stylesheet, and also keeps the original verbatim in a small textarea so the pgp signature verification still works. It also emitted a version that could be read on the Palm Pilot, although for space reasons that version omitted the embedded verbatim version.

I also wrote (twice, better second time) a Java program to convert the stuff *I* write, which is authored in OpenOffice, into XHTML and plaintext. Also the PHP template and CSS for the new website (TBA) for hosting the new story, plus some other hacking around in the Mambo sources to make it work the way I wanted.


Rachel
Re: Tuck related programming [message #3080] Sun, 30 January 2005 20:28 Go to previous messageGo to next message
Luthien  is currently offline Luthien
Messages: 15
Registered: July 2003
Junior Member
re: pgp signatures etc - Ellen has stated many times that she wants no version of Tuck floating around on the 'net that has been modified in ANY way. Just a word of warning Smile

I've had a number of computers floating around on my house net for a while, and I've been thinking about a division-of-labor setup much like that occasionally described in Tuck's room. The problem is that with classes and work, there's just no time to get things set up the way I want them, sadly.
Re: Tuck related programming [message #3086] Mon, 31 January 2005 03:48 Go to previous messageGo to next message
rachel.greenham  is currently offline rachel.greenham
Messages: 290
Registered: November 2002
Location: Bristol, UK
Senior Member
Luthien wrote on Mon, 31 January 2005 01:28

re: pgp signatures etc - Ellen has stated many times that she wants no version of Tuck floating around on the 'net that has been modified in ANY way. Just a word of warning Smile


Why do you think you haven't already got Tuck2HTML on your system? Smile I wrote it in 2002.

Specifically she says that any other versions on the net must validate using PGP and her key, and mine does (because the validation is only done on the text between a BEGIN and END line). Side-benefit - or rather the point being - it's always possible to verify that the conversion process didn't alter the text or meaning of the original. Still, she didn't seem happy with the idea, so I didn't let it out and I haven't kept it up to ensure it works on the most recent episodes. Sir Lee's right though, it would be trivial to go from there to a print-ready version - just a matter of writing a for-print CSS stylesheet.

Quote:

I've had a number of computers floating around on my house net for a while, and I've been thinking about a division-of-labor setup much like that occasionally described in Tuck's room. The problem is that with classes and work, there's just no time to get things set up the way I want them, sadly.


In my case, I exclusively use the powerbook, from anywhere in the house and when I'm away. Downstairs are three headless PCs. An old Dell Pentium 200 is running Smoothwall (router/firewall specialist Linux distro), an 800MHz Duron is running the mail server including mailing list and webmail software, and the 'vault', and a 1.3GHz Athlon with a gig of memory is running the main web server (one Wordpress instance, two Mambo instances, plus static content), IRC server and a VMWare instance running Windows XP just to run as an iTunes server now I've eliminated all work uses for it. Both the larger PCs are running Gentoo Linux. Am considering replacing them both with a headless Mac Mini - after I get one to actually *use*. The goal being to reduce noise, size and power consumption.


Rachel
Re: Tuck related programming [message #3094] Sun, 06 February 2005 21:56 Go to previous messageGo to next message
Ellen Hayes  is currently offline Ellen Hayes
Messages: 684
Registered: September 2002
Senior Member
Actually, I wouldn't mind posting on my site, some conversion tools that folks had found or written. The restriction is in distributing Tuck without PGP signatures - you can flux your own all you want. But if you start handing out modified versions, and I find out, I'll simply post everything I can find about your RL identity and refuse to release any more, EVER, until I am satisfied.


Ellen
nosig

Re: Tuck related programming [message #3102] Mon, 07 February 2005 03:20 Go to previous messageGo to next message
rachel.greenham  is currently offline rachel.greenham
Messages: 290
Registered: November 2002
Location: Bristol, UK
Senior Member
Ellen Hayes wrote on Mon, 07 February 2005 02:56

Actually, I wouldn't mind posting on my site, some conversion tools that folks had found or written. The restriction is in distributing Tuck without PGP signatures - you can flux your own all you want. But if you start handing out modified versions, and I find out, I'll simply post everything I can find about your RL identity and refuse to release any more, EVER, until I am satisfied.


Ellen
nosig




Tuck2HTML winging its way to you then. Shows how long ago I last worked on it: The minor version number is the most recent episode it was tested against, and that's 91. I just ran it now and it runs OK on all episodes up to 108, but I haven't read through 92-108 in converted form to check it didn't mess stuff up. The ones I did scan look OK though.

It's also so old it knows how to convert the original Tucky Seasons, but as the files are no longer there it can't actually fetch them of course, so it's just dead code. It *may* work on the new version unmodified, but I doubt it, and I'm not trying it now. Smile

It's GPL, so people can modify it freely, as long as they make the source of their modifications available if they plan to make their modified version available. Anyone wants to put a GUI on it, for instance, is welcome to do so, as it's purely command-line at the moment.

Also, feel welcome to make CSS files for the output. That's external to the program itself - but the program can be told where to find a CSS file and put a link, or embed, the stylesheet at will. *This* is the part that makes it on-topic for this thread. Smile

[Updated on: Mon, 07 February 2005 03:25]


Rachel
Re: Tuck related programming [message #3118] Tue, 08 February 2005 02:03 Go to previous messageGo to next message
B00Zy  is currently offline B00Zy
Messages: 2
Registered: January 2005
Location: .nl
Junior Member

RSS is an evil bandwidth eating monster Razz </semi OT>
Re: Tuck related programming [message #3120] Tue, 08 February 2005 05:43 Go to previous messageGo to next message
rachel.greenham  is currently offline rachel.greenham
Messages: 290
Registered: November 2002
Location: Bristol, UK
Senior Member
B00Zy wrote on Tue, 08 February 2005 07:03

RSS is an evil bandwidth eating monster Razz </semi OT>


Not really. For sites I check every day, visiting them manually means fetching all page elements; graphics and markup and everything. For those I can subscribe to with RSS, the browser just fetches an XML file of summary information, I can see if there's something new and only then go to the site. It should be a net saving of bandwidth.

... can't seem to get Mambo's RSS working though. Sage (Firefox extension) won't read it for no reason I can see. Sad


Rachel
Re: Tuck related programming [message #4436] Wed, 22 February 2006 05:39 Go to previous messageGo to next message
Foxen
Messages: 5
Registered: February 2006
Location: 127.0.0.1 (NC, US)
Junior Member
Luthien wrote on Sun, 30 January 2005 20:28

. . . . I've had a number of computers floating around on my house net for a while, and I've been thinking about a division-of-labor setup much like that occasionally described in Tuck's room. The problem is that with classes and work, there's just no time to get things set up the way I want them, sadly.


well im in a different boat, nothing but time unfortunately. division of labor is a constant flux around here. I think ill start a thread about what is what in my cave soon including names of systems, maybe that would be a good thing to get going, finding out how people name their systems. Ill get to that thread now.
Re: Tuck related programming [message #6061] Thu, 23 October 2008 02:37 Go to previous messageGo to next message
Brandonyoung  is currently offline Brandonyoung
Messages: 11
Registered: October 2008
Location: California
Junior Member
I created a perl script to convert Tuck into a set of XML files.
I then used XSL and CSS so my web browser would read them as web pages with a top header bar with navigation links for forward and back, and a chapter index along the side for direct access to any chapter.

The challenge was getting the text to show correctly without substituting the escape characters for HTML, which would mean changing the data. So, the PGP signatures still work in the converted files. I spot checked the signatures for a few files with FireGPG.

[Updated on: Thu, 23 October 2008 12:05]


--Brandon Young
Re: Tuck related programming [message #6064] Wed, 29 October 2008 00:29 Go to previous messageGo to next message
iWindoze  is currently offline iWindoze
Messages: 172
Registered: September 2002
Location: USA
Senior Member
I'm obviously confused...

I used your perl script to convert the files to xml but I am unclear on where to go from there, and as it is now the xml files seem to have lost all formatting. Advice please!

--iWindoze (professional lurker)

Re: Tuck related programming [message #6066] Wed, 29 October 2008 20:34 Go to previous messageGo to next message
Brandonyoung  is currently offline Brandonyoung
Messages: 11
Registered: October 2008
Location: California
Junior Member
iWindoze wrote on Tue, 28 October 2008 20:29

I'm obviously confused...

I used your perl script to convert the files to xml but I am unclear on where to go from there, and as it is now the xml files seem to have lost all formatting. Advice please!

--iWindoze (professional lurker)




The Zip file includes a Tuck.xsl and a Tuck.css file. These should be placed in the same folder as the XML files. Then, when you open the XML files in your web browser, the pages should show up, with the formatting and navigation links.


--Brandon Young
Re: Tuck related programming [message #6067] Thu, 30 October 2008 23:17 Go to previous messageGo to next message
iWindoze  is currently offline iWindoze
Messages: 172
Registered: September 2002
Location: USA
Senior Member
Ahh...I see! Thanks for the reply...

Given your expertise here, is there any way you can modify the converter to allow the xml files created to be unwrapped without destroying the line breaks? I ask because I usually read my fiction on my old Palm Zire 72s and it doesn't like the linebreaks in the text when I convert the files in iSilo format.

(Disclaimer: Conversion to iSilo pdb format is for personal use only, no need to expose my name and personal information to the wolves)

--iWindoze

PS: Thanks again for the work already done here, I don't want to be unappreciative I just thought it couldn't hurt to ask.
Re: Tuck related programming [message #6069] Fri, 31 October 2008 22:38 Go to previous messageGo to next message
Brandonyoung  is currently offline Brandonyoung
Messages: 11
Registered: October 2008
Location: California
Junior Member
iWindoze wrote on Thu, 30 October 2008 19:17


Given your expertise here, is there any way you can modify the converter to allow the xml files created to be unwrapped without destroying the line breaks? I ask because I usually read my fiction on my old Palm Zire 72s and it doesn't like the linebreaks in the text when I convert the files in iSilo format.



Unfortunately, the wrapping is done with the line breaks, so unwrapping the text would mean getting rid of them. Also, the paragraphs are separated using the line breaks. So without them, everything would end up in a single block of text for each page.


--Brandon Young
Re: Tuck related programming [message #6070] Sat, 01 November 2008 18:53 Go to previous messageGo to next message
Erin Halfelven  is currently offline Erin Halfelven
Messages: 712
Registered: September 2002
Location: Surf City, USA
Senior Member
Administrator
Change newline-newline to newline-ppqpp-newline. Change newline to null. Change ppqpp to newline-newline.

I used to do this frequently for stories moved from old versions of software.

Hugs,
Erin
Re: Tuck related programming [message #6071] Sat, 01 November 2008 20:20 Go to previous messageGo to next message
Sir Lee  is currently offline Sir Lee
Messages: 440
Registered: October 2003
Location: São Paulo, Brazil
Senior Member
I use a similar technique in my macros. The only problem is that it WILL break the PGP signature. I gather that one of brandonyoung's goals was not to do that.


Don't call me Shirley. You will surely make me surly.
Re: Tuck related programming [message #6072] Sat, 01 November 2008 23:40 Go to previous message
Erin Halfelven  is currently offline Erin Halfelven
Messages: 712
Registered: September 2002
Location: Surf City, USA
Senior Member
Administrator
Well, yeah, but then there is no way to do it without breaking PGP sig -- sort of by definition.

If you're just preparing a copy for your own use and it goes nowhere, I don't think Ellen has a problem with that. I've massaged Tuck chapters into print-ready files and sent them to her to show her how it would look and she did not object to that. I've never shared those files with anyone else, though.

- Erin
Previous Topic:[non-computer] waterslide hack
Next Topic:Forum Weirdness
Goto Forum:
  


Current Time: Fri Jun 22 21:38:48 EDT 2018

Total time taken to generate the page: 0.02315 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 2.7.7.
Copyright ©2001-2007 FUD Forum Bulletin Board Software