←back to thread

101 points mbo | 1 comments | | HN request time: 0.209s | 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 #
mbo ◴[] No.42483432[source]
Look, not to be defensive but no academic work provides its citations in the Bibtex HTML microformat (they should, but they don't) or even heavyweight structured format like https://schema.org/Text. They provide BibTex syntax at best and DOIs and ISBNs at worst. I'm just meeting the academic standard where it is, and running the {citation format}->HTML conversion on the fly in an ergonomic manner.
replies(1): >>42483728 #
yencabulator ◴[] No.42483728[source]
For what it's worth, the Typst people are advocating a YAML-based competitor to BibTeX (that can convert to/from BibTeX). That, in JSON instead of YAML, would fit well in a web environment, and still be a "well-known format".

https://github.com/typst/hayagriva

replies(1): >>42484251 #
1. mbo ◴[] No.42484251[source]
Ah yeah I tried to add support for this a while back! Unfortunately Citation.js doesn't handle it properly - encouraged me to actually file an Issue: https://github.com/citation-js/citation-js/issues/240