Twitter informed that a demo of Xanadu had launched, so I went to have a look. The demo only works in Firefox and it seems to be a cut down version of demos that I've seen Ted Nelson give in the past. But still: running code in the wild.
(When I say I met Ted Nelson, I meant that I shyly sat next to him at lunch while he expounded on various topics and fiddled with the tape recorder he was using to record all his conversations. So maybe, "met" isn't the right word (he won't remember me). Maybe "experienced" is better. Aaaanyway...)
Turns out its really easy.
A Xanadoc file is a text file containing a list of URLs, which each have an encoding declaration, a character offset and length to read. It describes a compound document that is composed from these specific sections of other documents. The order of the sources in the Xanadoc file defines the flow of the document.
You can add a URL parameter to the demo but Cross Origin constraints will limit Firefox from loading your content. But if you serve it from a CORS enabled location it should work fine.
But that might be awkward for some people. So an alternative quick hack is to do this:
- Create your own copy of MoeJusteOrigins.html to bootstrap Xanadu. You can call it whatever you like, but change all the URLs to the Xanadu JS and CSS to be absolute links based at http://xanadu.com/xanademos/
- Create your own copy of handleSource.js. Tweak the default URL to your refer to your xanadoc file.
- Ensure that your Xanadoc file refers to your preferred content.
To avoid Cross Origin issues, put all the files on the same server. Ted should point people at the CORS documentation as that will avoid the need to route everything through his server.
Anyway. Curiosity satiated.