Garth's test of PyDS 17.4.2003

2003-04-17

Shortcuts and Substitutions

It occurs to me that shortcuts in reST postings should be handled via reST substitutions. The one position where that breaks down is shortcuts designed to expose HTML, like my RSS or em shortcuts (RSS, —), which should really be using .. raw:: html...
posted at 17:26:56    #    comment []    trackback []
 

Anonymous hyperlink test

Even with the official 0.2 version of docutils, trying this:
`bleegle`__

__ http://www.deadlybloodyserious.com/

gives you this:

FileLineFunctionSource
D:\Python22\Lib\site-packages\PyDS\WeblogTool.py599editOldEntryrendered = self._getDummyRequest().renderText(text, structured=structured)
D:\Python22\Lib\site-packages\PyDS\Tool.py503renderTexttmpl = PyDS.StructuredText.renderText(tmpl)
D:\Python22\Lib\site-packages\PyDS\StructuredText.py460renderTextdocument.walk(targetvisitor)
D:\Python22\Lib\site-packages\docutils\nodes.py120walkchild.walk(visitor)
D:\Python22\Lib\site-packages\docutils\nodes.py120walkchild.walk(visitor)
D:\Python22\Lib\site-packages\docutils\nodes.py112walkmethod(self)
D:\Python22\Lib\site-packages\PyDS\StructuredText.py69visit_targetself.targetids[node['name']] = node['id']
D:\Python22\Lib\site-packages\docutils\nodes.py332__getitem__return self.attributes[key]

It works fine in docutils/tools/quicktest.py.

posted at 17:00:16    #    comment []    trackback []
 

Rendering Tricks

Thanks to a quick shortcut, this inline now works:

RSS

posted at 16:45:20    #    comment []    trackback []
 

This is my primary blog for the time being...

... due to my box at home being quite, quite sick with a video card problem.
posted at 15:47:44    #    comment []    trackback []
 

Where have all the soldiers gone, long time passing?

Where have all the soldiers gone?
posted at 15:10:24    #    comment []    trackback []
 

Notes on OPML browsing

I don't have access to my live Radio box, so I'll temporarily make the posting here:

Depending on the tail-end of a URI matching '.opml' for it to be treated as an inclusion is somewhat shabby. An extra attribute (perhaps via a separate XML namespace) should be used. Otherwise, people creating CGI-based dynamic directories are going to go to a lot of bother tweaking their query text.

With regard to the linkrot problem: we could have a lot of fun, here, giving each node some persistent tag (think etag, but for nodes). That'd help us point to a particular node rather than particular trees. Some dot-to-dot connecting, and we'll be able to reconnect trees even if there's some breakage. Again, adding this behaviour as a namespace sounds like the right idea to me, but I've got to think it out a whole lot more.

posted at 13:00:16    #    comment []    trackback []
 

Testing escaping

posted at 09:46:08    #    comment []    trackback []
 

emdash

This is a test post to see how well I can handle em dashes -- those long dashes you use to indicate when you're interrupting yourself (as opposed to being parenthetical) -- in PyDS. Hopefully, reST will do it all for me. Pasting in all the time is a drag.

Ooooooh. Nasty. Either reST or PyDS just took my HTML literal and translated it into the character itself, despite it being in double-backticks. When I go back to edit, I'm not getting back what I originally entered. This might also be a problem with PyDS' escaping of the posting text when sending it back for editing.

Let's see if it works the same in a literal block:

Bugger. Yep.

Let's also try the shortcut I just created, which should translate any occurrence of — how do I escape it? — quote-em-quote into an em dash. Yeah, that works nicely.

posted at 06:55:28    #    comment []    trackback []
April 2003
MoTuWeThFrSaSu
  1 2 3 4 5 6
7 8 910111213
14151617181920
21222324252627
282930    
Mar
2003
 May
2004

Garth is testing PyDS rather more extensively than at first he thought he would.

XML-Image Letterimage

© 2003-2004, Garth T Kidd