- src/kindle_zotero_importer/import_plan.py: add DEFAULT_COLOUR_MAP with grey->[r] per request (y/o/r/grey/gray/red/g/b/p/m etc.), _extract_colour() strips leading [code] and maps to hex, _annotation_stub() uses it, build_import_plan() accepts colour_map - src/kindle_zotero_importer/cli.py: _load_colour_map() from workdir/colour-map.json or plugin-config.json colourMap, passed to build_import_plan (incremental + full) - plugin/bootstrap.js: saveSettingsFromManager() persists colourMap to plugin-config.json + colour-map.json, getRuntimeSettings() loads it, loadColourMap() helper, label Kanzi - plugin/manager.html: Settings → Highlight colours editor (table bracket→hex with colour picker, preview, +Add, Reset, grey=[r] note, example [o] orange), saveSettings() collects colourMap, init uses F tokens - plugin/manifest.json: name Kanzi, 0.6.6→0.6.7, description Kindle annotations to Zotero - README.md: Kanzi title, Tools → Kanzi…, colours tip with British spelling - updates.json: add 0.6.7 on top |
||
|---|---|---|
| .. | ||
| bootstrap.js | ||
| manager.html | ||
| manifest.json | ||
| prefs.js | ||
| README.md | ||
Kindle Zotero Importer Zotero Plugin
This is a hybrid Zotero plugin wrapper around the current Python importer. Zotero owns the user interface and writes native annotations through Zotero APIs; the Python project still performs parsing, matching, planning, EPUB positioning, and PDF positioning.
Use
- Install
kindle-zotero-importer.xpiin Zotero throughTools > Plugins. - Open
Tools > Kindle Zotero Importer.... - Select the updated Kindle
My Clippings.txtin the manager. - Follow the current stage, percentage, and elapsed time in the manager.
- Review created, existing, updated, failed, and unresolved counts when it completes.
The plugin uses match-overrides.json from the project directory as the persistent source of title mappings and ignored titles. Generated JSON artifacts are still written to the project directory for audit and debugging.
Build XPI
From the repository root:
python scripts/build_plugin.py
The output is dist/kindle-zotero-importer.xpi.
The plugin manifest targets Zotero 6.999 through 10.0.*.