Eli Barzilay wrote at 09/09/2010 10:21 PM:
  * Compute some "unique" checksum of this content (eg, its sha1) to
    be used as the file name,

If the math source format is in TeX syntax (which most people would say it should be), I'd think that you could avoid computing the secure hash, and just use an escaped variation of the TeX syntax string as the filename.

Escaped strings longer than the max filename length for the underlying filesystem (255 chars for ext2) can be split into subdirectories, so long as you don't exceed the effective max pathname limit for your OS and tools (which might be 1KB or 4KB or so, unless you have the misfortune of running on Windows).

A side benefit is that your filenames are almost TeX syntax.

--
http://www.neilvandyke.org/
_________________________________________________
 For list-related administrative tasks:
 http://lists.racket-lang.org/listinfo/users

Reply via email to