Reading files off the web

For some time now, ConTeXt can read files directly off the web. So, you can say


\starttext
\component {https://docs.google.com/MiscCommands?command=saveasdoc&docID=0AbXLuM4SVI8PZGc2Y2QzamhfOWNzM3Z3aGM5&exportFormat=txt}
\stoptext

process it with context. ConTeXt will figure out the file name is a url, use curl to download it and read the downloaded file. On subsequent run, ConTeXt just checks if a file with the same name exists, and just uses that.

I am thinking of using this for collaborative editing. Need to figure out how to force ConTeXt to redownload the file.

Advertisements

3 thoughts on “Reading files off the web

  1. Pingback: Some recent trends in online TeXing : Granthinām

  2. Pingback: Using filters outside the box « Random Determinism

  3. Pingback: Reading remote files « Random Determinism

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s