←back to thread

100 points mbo | 3 comments | | HN request time: 0.857s | source
Show context
zczc ◴[] No.42478906[source]
Interesting, but the simpler way is to use plain html with microformats [1], so this:

  @book{kn:gnus,
  AUTHOR = "Donald E. Knudson",
  TITLE = "1966 World Gnus Almanac",
  PUBLISHER = {Permafrost Press},
  ADDRESS = {Novosibirsk} }
becomes this:

  <div class="book" id="kn:gnus">
   <div class="author">Donald E. Knudson</div>
   <div class="title">1966 World Gnus Almanac</div>
   <div class="publisher">Permafrost Press</div>
   <div class="address">Novosibirsk</div>
  </div>
[1] http://microformats.org/wiki/citation-formats#BibTeX
replies(1): >>42479360 #
spankalee ◴[] No.42479360[source]
That doesn't do the same thing at all. It doesn't create numbered citations, backlinks, or a bibliography.
replies(1): >>42479851 #
arcbyte ◴[] No.42479851[source]
OP is pointing out the stupidity of the custom citation syntax that the javascript library uses to create all those features, and highlighting how idiomatic HTML supports the same data markup requirements of the citation with far superior standards and styling support.
replies(2): >>42480772 #>>42483432 #
1. magnio ◴[] No.42480772[source]
The library seems to use BibLatex, which is pretty standard. No reference managers I know understands the above HTML.
replies(1): >>42481437 #
2. JadeNB ◴[] No.42481437[source]
> The library seems to use BibLatex, which is pretty standard. No reference managers I know understands the above HTML.

It should be easy to write some once-and-for-all XSLT (or other processor, that's just what I'm used to for XML, but I don't know what's easy to call from JS) to transform well-formed HTML as above to a format that BibLaTeX understands. Since it'd be a one-size-fits-all transformer, anyone who wants to write the HTML can do so.

replies(1): >>42483417 #
3. ◴[] No.42483417[source]