From e317480657b5d6786e5594d43d3efdb749974239 Mon Sep 17 00:00:00 2001
From: Max Bo
Date: Sun, 22 Dec 2024 14:11:32 +1100
Subject: [PATCH] Add Hayagriva
---
bibhtml/deno.json | 2 +-
bibhtml/index.html | 32 ++++++++++++++++++++++++++++++
bibhtml/mod.ts | 1 +
deno.lock | 49 ++++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 83 insertions(+), 1 deletion(-)
diff --git a/bibhtml/deno.json b/bibhtml/deno.json
index e4b15c0..103851b 100644
--- a/bibhtml/deno.json
+++ b/bibhtml/deno.json
@@ -1,6 +1,6 @@
{
"name": "@celine/bibhtml",
- "version": "3.0.3",
+ "version": "3.1.3",
"license": "MIT",
"exports": "./mod.ts"
}
diff --git a/bibhtml/index.html b/bibhtml/index.html
index 40ccdac..5e75ebc 100644
--- a/bibhtml/index.html
+++ b/bibhtml/index.html
@@ -398,6 +398,23 @@ Wikidata
This expands to reference [?], and is backed by @citation-js/plugin-wikidata.
+
+ Hayagriva (Typst)
+
+
+ https://github.com/typst/hayagriva/blob/main/docs/file-format.md is a new bibliography file format designed for use with Typst.
+
+
+
+
+
+ This expands to reference [?], and is backed by @citation-js/plugin-hayagriva.
+
<bh-bibliography>
@@ -507,6 +524,21 @@
References
note = {Blog post discussing the advantages of using Light DOM over Shadow DOM in web components}
}
+
+
+dependence:
+ type: Article
+ title: The program dependence graph and its use in optimization
+ author: ["Ferrante, Jeanne", "Ottenstein, Karl J.", "Warren, Joe D."]
+ date: 1987-07
+ serial-number:
+ doi: "10.1145/24039.24041"
+ parent:
+ type: Periodical
+ title: ACM Transactions on Programming Languages and Systems
+ volume: 9
+ issue: 3
+
Jacobs, J., Mervosh, S., & Stevens, M. (2018, November 7). When the House and the Senate are controlled by different parties, who wins? The New York Times. Retrieved from https://www.nytimes.com/2018/11/07/us/politics/house-senate-difference-control.html
diff --git a/bibhtml/mod.ts b/bibhtml/mod.ts
index 7f1ebd3..1b162b0 100644
--- a/bibhtml/mod.ts
+++ b/bibhtml/mod.ts
@@ -3,6 +3,7 @@ import 'npm:@citation-js/plugin-bibtex@0.7.16'
import 'npm:@citation-js/plugin-doi@0.7.16'
import 'npm:@citation-js/plugin-csl@0.7.14'
import 'npm:@citation-js/plugin-wikidata@0.7.15'
+import 'npm:@citation-js/plugin-hayagriva@0.1.1'
function alphabetize(n: number): string {
const alphabet = "abcdefghijklmnopqrstuvwxyz".split("");
diff --git a/deno.lock b/deno.lock
index cbfd93b..d966420 100644
--- a/deno.lock
+++ b/deno.lock
@@ -3,13 +3,28 @@
"packages": {
"specifiers": {
"npm:@citation-js/core": "npm:@citation-js/core@0.7.14",
+ "npm:@citation-js/core@0.7.14": "npm:@citation-js/core@0.7.14",
"npm:@citation-js/plugin-bibtex": "npm:@citation-js/plugin-bibtex@0.7.16_@citation-js+core@0.7.14",
+ "npm:@citation-js/plugin-bibtex@0.7.16": "npm:@citation-js/plugin-bibtex@0.7.16_@citation-js+core@0.7.14",
"npm:@citation-js/plugin-csl": "npm:@citation-js/plugin-csl@0.7.14_@citation-js+core@0.7.14",
+ "npm:@citation-js/plugin-csl@0.7.14": "npm:@citation-js/plugin-csl@0.7.14_@citation-js+core@0.7.14",
"npm:@citation-js/plugin-doi": "npm:@citation-js/plugin-doi@0.7.16_@citation-js+core@0.7.14",
+ "npm:@citation-js/plugin-doi@0.7.16": "npm:@citation-js/plugin-doi@0.7.16_@citation-js+core@0.7.14",
+ "npm:@citation-js/plugin-hayagriva@0.1": "npm:@citation-js/plugin-hayagriva@0.1.1_@citation-js+core@0.6.9",
"npm:@citation-js/plugin-wikidata": "npm:@citation-js/plugin-wikidata@0.7.15_@citation-js+core@0.7.14",
+ "npm:@citation-js/plugin-wikidata@0.7.15": "npm:@citation-js/plugin-wikidata@0.7.15_@citation-js+core@0.7.14",
"npm:@types/node": "npm:@types/node@18.16.19"
},
"npm": {
+ "@citation-js/core@0.6.9": {
+ "integrity": "sha512-ElG4cvedkaRm/a40yhWXOUPUzAImwqI7ZmIyL55GIR4EmfQ5PkaSEcFhA3dekMa66l52ddn4lQaNVO+/yECq9A==",
+ "dependencies": {
+ "@citation-js/date": "@citation-js/date@0.5.1",
+ "@citation-js/name": "@citation-js/name@0.4.2",
+ "fetch-ponyfill": "fetch-ponyfill@7.1.0",
+ "sync-fetch": "sync-fetch@0.4.5"
+ }
+ },
"@citation-js/core@0.7.14": {
"integrity": "sha512-dgeGqYDSQmn2MtnWZkwPGpJQPh43yr1lAAr9jl1NJ9pIY1RXUQxtlAUZVur0V9PHdbfQC+kkvB1KC3VpgVV3MA==",
"dependencies": {
@@ -27,6 +42,15 @@
"integrity": "sha512-brSPsjs2fOVzSnARLKu0qncn6suWjHVQtrqSUrnqyaRH95r/Ad4wPF5EsoWr+Dx8HzkCGb/ogmoAzfCsqlTwTQ==",
"dependencies": {}
},
+ "@citation-js/plugin-bibtex@0.6.9_@citation-js+core@0.6.9": {
+ "integrity": "sha512-35xHut8rbDAN2ffYt+BPn+DChxXhbVnN86fu2DHDQNWlCqCrUJhQTMRMlD0L1uuyHTDrkTvgLPtcs14WC+xKzA==",
+ "dependencies": {
+ "@citation-js/core": "@citation-js/core@0.6.9",
+ "@citation-js/date": "@citation-js/date@0.5.1",
+ "@citation-js/name": "@citation-js/name@0.4.2",
+ "moo": "moo@0.5.2"
+ }
+ },
"@citation-js/plugin-bibtex@0.7.16_@citation-js+core@0.7.14": {
"integrity": "sha512-Udeli19VAoFjOw0H1bB1KgmekRoW6XP5cdR3OQF5c2Mt1tZatXWcSQVdq+FeLKzodRocZXG5NFRvjyUZjVbV6A==",
"dependencies": {
@@ -51,6 +75,15 @@
"@citation-js/date": "@citation-js/date@0.5.1"
}
},
+ "@citation-js/plugin-hayagriva@0.1.1_@citation-js+core@0.6.9": {
+ "integrity": "sha512-yIVxrkZXw7CQ7GH7YaxtPGV06FiAmMBfr98BIFoTQ/RMFcWEBoylm/EouQm9k/7JTp5sNCW3u403NmAiAn9SpA==",
+ "dependencies": {
+ "@citation-js/core": "@citation-js/core@0.6.9",
+ "@citation-js/date": "@citation-js/date@0.5.1",
+ "@citation-js/plugin-bibtex": "@citation-js/plugin-bibtex@0.6.9_@citation-js+core@0.6.9",
+ "@citation-js/plugin-yaml": "@citation-js/plugin-yaml@0.6.1"
+ }
+ },
"@citation-js/plugin-wikidata@0.7.15_@citation-js+core@0.7.14": {
"integrity": "sha512-QGYA9Mu/28B0LcQEpeAqtILE8+JmiVQux4lzysu/TWMl45b4AVW2ajfQIAwMNf455GERwUwD+P6oafDrqpLQFA==",
"dependencies": {
@@ -60,10 +93,20 @@
"wikibase-sdk": "wikibase-sdk@8.1.1"
}
},
+ "@citation-js/plugin-yaml@0.6.1": {
+ "integrity": "sha512-XEVVks1cJTqRbjy+nmthfw/puR6NwRB3fyJWi1tX13UYXlkhP/h45nsv4zjgLLGekdcMHQvhad9MAYunOftGKA==",
+ "dependencies": {
+ "js-yaml": "js-yaml@4.1.0"
+ }
+ },
"@types/node@18.16.19": {
"integrity": "sha512-IXl7o+R9iti9eBW4Wg2hx1xQDig183jj7YLn8F7udNceyfkbn1ZxmzZXuak20gR40D7pIkIY1kYGx5VIGbaHKA==",
"dependencies": {}
},
+ "argparse@2.0.1": {
+ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
+ "dependencies": {}
+ },
"base64-js@1.5.1": {
"integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",
"dependencies": {}
@@ -89,6 +132,12 @@
"integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",
"dependencies": {}
},
+ "js-yaml@4.1.0": {
+ "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
+ "dependencies": {
+ "argparse": "argparse@2.0.1"
+ }
+ },
"moo@0.5.2": {
"integrity": "sha512-iSAJLHYKnX41mKcJKjqvnAN9sf0LMDTXDEvFv+ffuRR9a1MIuXLjMNL6EsnDHSkKLTWNqQQ5uo61P4EbU4NU+Q==",
"dependencies": {}