# Browser RIS / BibTeX citation tool: sources

The browser application uses local copies of citeproc-js and Citation Style
Language (CSL) definitions. The converter does not retrieve metadata, journal
abbreviations, styles or locales from a remote service while processing input.
These references describe the bundled application data, not network requests
made for a selected RIS or BibTeX file.

## Processor and style definitions

- Processor: [citeproc-js](https://github.com/Juris-M/citeproc-js), npm package
  [`citeproc` 2.4.63](https://registry.npmjs.org/citeproc/-/citeproc-2.4.63.tgz).
  Its internal processor version is 1.4.61. `vendor/citeproc.mjs` contains the
  complete upstream `citeproc_commonjs.js` source plus a small ES-module wrapper.
- CSL styles: repository revision
  [`8882d4481f611cf214a6113eb623b2800643063e`](https://github.com/citation-style-language/styles/tree/8882d4481f611cf214a6113eb623b2800643063e).
- CSL locales: repository revision
  [`e7f0c05a62d85819d669361e418ca6af617bf9db`](https://github.com/citation-style-language/locales/tree/e7f0c05a62d85819d669361e418ca6af617bf9db),
  files `locales-en-US.xml` and `locales-en-GB.xml`.
- The source files above were retrieved on 2026-12-03 for the original converter.
  The browser bundle preserves their content and versions.

| Converter key | Upstream CSL source |
| --- | --- |
| `acs` | [american-chemical-society.csl](https://github.com/citation-style-language/styles/blob/8882d4481f611cf214a6113eb623b2800643063e/american-chemical-society.csl) |
| `nature` | [nature.csl](https://github.com/citation-style-language/styles/blob/8882d4481f611cf214a6113eb623b2800643063e/nature.csl) |
| `rsc` | [royal-society-of-chemistry.csl](https://github.com/citation-style-language/styles/blob/8882d4481f611cf214a6113eb623b2800643063e/royal-society-of-chemistry.csl) |
| `rsc-titles` | [royal-society-of-chemistry-with-titles.csl](https://github.com/citation-style-language/styles/blob/8882d4481f611cf214a6113eb623b2800643063e/royal-society-of-chemistry-with-titles.csl) |
| `aip` | [american-institute-of-physics.csl](https://github.com/citation-style-language/styles/blob/8882d4481f611cf214a6113eb623b2800643063e/american-institute-of-physics.csl) |
| `science` | [science.csl](https://github.com/citation-style-language/styles/blob/8882d4481f611cf214a6113eb623b2800643063e/science.csl) |
| `elsevier-numeric` | [elsevier-with-titles.csl](https://github.com/citation-style-language/styles/blob/8882d4481f611cf214a6113eb623b2800643063e/elsevier-with-titles.csl) |
| `elsevier-harvard` | [elsevier-harvard.csl](https://github.com/citation-style-language/styles/blob/8882d4481f611cf214a6113eb623b2800643063e/elsevier-harvard.csl) |
| `elsevier-vancouver` | [elsevier-vancouver.csl](https://github.com/citation-style-language/styles/blob/8882d4481f611cf214a6113eb623b2800643063e/elsevier-vancouver.csl) |

`citation-data.mjs` embeds each complete XML document as a JavaScript string.
The decoded XML retains the original author/contributor names, identifiers,
documentation links, update dates and license notices. Runtime DOI/title
options do not edit these documents.

[`vendor/SOURCES.json`](vendor/SOURCES.json) records the source URL, original
filename, SHA-256 digest and size of each upstream file. Its `path` fields refer
to the original converter layout: `styles/*.csl` and `vendor/locales-*.xml` are
embedded in `citation-data.mjs` here, and `vendor/citeproc.cjs` becomes the source
inside `vendor/citeproc.mjs`. [`vendor/BROWSER-BUNDLE.json`](vendor/BROWSER-BUNDLE.json)
records the wrapper and data-module digests. License texts remain separate,
unmodified files in `vendor/`.

## BibTeX input components

The local [`vendor/bibtex-engine.mjs`](vendor/bibtex-engine.mjs) bundles selected
pure modules from [Citation.js](https://github.com/citation-js/citation-js),
including `@citation-js/plugin-bibtex` 0.9.0. It does not include remote input
plugins or metadata lookups. The fixed packages, licenses, source-input hashes,
archive integrity and bundle digest are listed in
[`vendor/bibtex-SOURCES.json`](vendor/bibtex-SOURCES.json).

## Reference character data

The named HTML character table in `citation-data.mjs` is generated from Python
3.12.16's `html.entities.html5`, keeping semicolon-terminated names. The parser's
case-fold additions and decimal-digit data were generated from Python's Unicode
behavior. `vendor/PYTHON-LICENSE.txt` preserves the Python distribution's license.
The conversion runtime is JavaScript and does not require Python.

## 実際の論文を使ったデモ

`citation-data.mjs`の`DEMO_RIS`は、出版社の書誌情報を確認して作成した3件の例です。ユーザーの実ファイルを取り込んだものではありません。誌名略記を入力に明示し、日付は出版年のみを使用しています。

1. Henkelman, G.; Uberuaga, B. P.; Jónsson, H. **A climbing image nudged elastic band method for finding saddle points and minimum energy paths.** *The Journal of Chemical Physics* 2000, 113 (22), 9901–9904. [DOI: 10.1063/1.1329672](https://doi.org/10.1063/1.1329672)。[出版社ページ](https://pubs.aip.org/aip/jcp/article-abstract/113/22/9901/185050/A-climbing-image-nudged-elastic-band-method-for)。ページ範囲とアクセント付き姓を確認できます。
2. Mardirossian, N.; Head-Gordon, M. **Mapping the genome of meta-generalized gradient approximation density functionals: The search for B97M-V.** *The Journal of Chemical Physics* 2015, 142 (7), 074111. [DOI: 10.1063/1.4907719](https://doi.org/10.1063/1.4907719)。[出版社PDF](https://pubs.aip.org/aip/jcp/article-pdf/doi/10.1063/1.4907719/13437161/074111_1_online.pdf)。`074111`は論文番号で、先頭の0を保持します。
3. Batzner, S.; Musaelian, A.; Sun, L.; Geiger, M.; Mailoa, J. P.; Kornbluth, M.; Molinari, N.; Smidt, T. E.; Kozinsky, B. **E(3)-equivariant graph neural networks for data-efficient and accurate interatomic potentials.** *Nature Communications* 2022, 13, 2453. [出版社ページ・DOI: 10.1038/s41467-022-29939-5](https://www.nature.com/articles/s41467-022-29939-5)。著者9名の省略規則を比較できます。号は入力していません。

`SP`は書き出し元によって論文番号にも使用されます。本デモでは識別子をそのまま保持し、末尾ページを補っていません。

`bibtex-samples.mjs`は同じ3件の書誌情報をBibTeXで記述しています。`J{\'o}nsson`でアクセント、`{B97M-V}`と`{E(3)}`で大文字表記の保護、`pages = {074111}`で論文番号の保持を確認できます。略誌名は`shortjournal`に明示しています。
