A small wrapper around Zotero translation server that adds support for fetching attachments and can be run from the command-line.
First install nodejs. Then clone the repo and its submodules with
git clone --recurse-submodules https://github.com/mpedramfar/zotra-server.gitThen you can install Zotra server with
cd zotra-server
npm install .
cd module/translation-server/
npm install .Run the server with node /path/to/zotra-server/bin/index.js server or npm start in the repository root.
Run node /path/to/zotra-server/bin/index.js --help to see the command-line options.
See Zotero translation server for more details.
The configuration file is located at config/default.json5
The only configuration option that is specific to this library is tryServerFirst.
When this is true and Zotra server is being called from the command-line, it will try to connect to a running instance of Zotra server (or Zotero translation server) first and if it fails, then tries without the server.
The ability to handle attachments is based on a patch suggested by @noctux