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: File | Line | Function | Source |
---|
D:\Python22\Lib\site-packages\PyDS\WeblogTool.py | 599 | editOldEntry | rendered = self._getDummyRequest().renderText(text, structured=structured) | D:\Python22\Lib\site-packages\PyDS\Tool.py | 503 | renderText | tmpl = PyDS.StructuredText.renderText(tmpl) | D:\Python22\Lib\site-packages\PyDS\StructuredText.py | 460 | renderText | document.walk(targetvisitor) | D:\Python22\Lib\site-packages\docutils\nodes.py | 120 | walk | child.walk(visitor) | D:\Python22\Lib\site-packages\docutils\nodes.py | 120 | walk | child.walk(visitor) | D:\Python22\Lib\site-packages\docutils\nodes.py | 112 | walk | method(self) | D:\Python22\Lib\site-packages\PyDS\StructuredText.py | 69 | visit_target | self.targetids[node['name']] = node['id'] | D:\Python22\Lib\site-packages\docutils\nodes.py | 332 | __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 []
|