Skip to content

Instantly share code, notes, and snippets.

View RIS-citekey.js
{
"translatorID": "32d59d2d-b65a-4da4-b0a3-bdd3cfb979e7-citekey",
"label": "RIS with citation key",
"creator": "Simon Kornblith and Aurimas Vinckevicius and Emiliano Heyns",
"target": "ris",
"minVersion": "3.0.4",
"maxVersion": "",
"priority": 100,
"configOptions": {
"async": true,
View aliases.md
  • # Volume => numberOfVolumes
  • # a bajennoù => numPages
  • # a levrennoù => numberOfVolumes
  • # av sider => numPages
  • # av volum => numberOfVolumes
  • # av volumer => numberOfVolumes
  • # de páginas => numPages
  • # de volumes => numberOfVolumes
  • # delen => numberOfVolumes
  • # di Pagine => numPages
View aliases.md
  • # Volume => numberOfVolumes
  • # Volume => numberOfVolumes
  • # a bajennoù => numPages
  • # a bajennoù => numPages
  • # a levrennoù => numberOfVolumes
  • # a levrennoù => numberOfVolumes
  • # av sider => numPages
  • # av sider => numPages
  • # av volum => numberOfVolumes
  • # av volum => numberOfVolumes
View aliases.md
  • # Volume => numberOfVolumes
  • # Volume => numberOfVolumes
  • # a bajennoù => numPages
  • # a bajennoù => numPages
  • # a levrennoù => numberOfVolumes
  • # a levrennoù => numberOfVolumes
  • # av sider => numPages
  • # av sider => numPages
  • # av volum => numberOfVolumes
  • # av volum => numberOfVolumes
View aliases
* `# Volume => numberOfVolumes`
* `# Volume => numberOfVolumes`
* `# a bajennoù => numPages`
* `# a bajennoù => numPages`
* `# a levrennoù => numberOfVolumes`
* `# a levrennoù => numberOfVolumes`
* `# av sider => numPages`
* `# av sider => numPages`
* `# av volum => numberOfVolumes`
* `# av volum => numberOfVolumes`
View tt
/* content/auto-export
TypeError: Cannot read property 'value' of undefined
at isSkip (file:///Users/emile/github/better-bibtex/node_modules/.pnpm/estrace@1.6.0/node_modules/estrace/lib/trace/plugin-trace/index.js:167:20)
at Function (file:///Users/emile/github/better-bibtex/node_modules/.pnpm/estrace@1.6.0/node_modules/estrace/lib/trace/plugin-trace/index.js:36:17)
at NodePath._call (/Users/emile/github/better-bibtex/node_modules/.pnpm/@babel+traverse@7.14.7/node_modules/@babel/traverse/lib/path/context.js:53:20)
at NodePath.call (/Users/emile/github/better-bibtex/node_modules/.pnpm/@babel+traverse@7.14.7/node_modules/@babel/traverse/lib/path/context.js:40:17)
at NodePath.visit (/Users/emile/github/better-bibtex/node_modules/.pnpm/@babel+traverse@7.14.7/node_modules/@babel/traverse/lib/path/context.js:90:31)
at TraversalContext.visitQueue (/Users/emile/github/better-bibtex/node_modules/.pnpm/@babel+traverse@7.14.7/node_modules/@babel/traverse/lib/context.js:99:16)
at TraversalCont
View formatter.js
/*
content/cayw/formatter.ts
Error: @babel/template placeholder "NAME": Expected string substitution
at applyReplacement (/Users/emile/github/better-bibtex/node_modules/.pnpm/@babel+template@7.14.5/node_modules/@babel/template/lib/populate.js:62:13)
at /Users/emile/github/better-bibtex/node_modules/.pnpm/@babel+template@7.14.5/node_modules/@babel/template/lib/populate.js:32:7
at Array.forEach (<anonymous>)
at populatePlaceholders (/Users/emile/github/better-bibtex/node_modules/.pnpm/@babel+template@7.14.5/node_modules/@babel/template/lib/populate.js:30:43)
at /Users/emile/github/better-bibtex/node_modules/.pnpm/@babel+template@7.14.5/node_modules/@babel/template/lib/string.js:20:51
at /Users/emile/github/better-bibtex/node_modules/.pnpm/@babel+template@7.14.5/node_modules/@babel/template/lib/builder.js:75:14
at addEnter (file:///Users/emile/github/better-bibtex/node_modules/.pnpm/estrace@1.5.1/node_modules/estrace/lib/trace/plugin-trace/index.js:100:19)
View formatter.js
//content/cayw/formatter.ts
Components.utils.import("resource://gre/modules/AddonManager.jsm");
import { Translators } from "../translators";
import { getItemsAsync } from "../get-items-async";
import { Preference } from "../../gen/preferences";
import { log } from "../logger";
import { fromEntries } from "../object";
import * as unicode_table from "unicode2latex/tables/unicode.json";
const unicode2latex = fromEntries(Object.entries(unicode_table).map(([unicode, latex]) => [unicode, { text: latex.text || latex.math, math: !latex.text }]));
function tolatex(s) {
View file.ts
/* eslint-disable @typescript-eslint/member-ordering */
Components.utils.import('resource://gre/modules/osfile.jsm')
import { log } from '../../logger'
// Components.utils.import('resource://gre/modules/Sqlite.jsm')
// declare const Sqlite: any
export class File {
View pre.js
Components.utils.import("resource://gre/modules/AddonManager.jsm");
import { Translators } from "../translators";
import { getItemsAsync } from "../get-items-async";
import { Preference } from "../../gen/preferences";
import { log } from "../logger";
import { fromEntries } from "../object";
import * as unicode_table from "unicode2latex/tables/unicode.json";
const unicode2latex = fromEntries(Object.entries(unicode_table).map(([unicode, latex]) => [unicode, { text: latex.text || latex.math, math: !latex.text }]));
function tolatex(s) {
if (!s)