Universal highlighter and persistent notes extension for ETAF
  • Emacs Lisp 93.5%
  • Makefile 6.5%
Find a file
Kinneyzhang 2cbdda8bd7 chore(monorepo): harden publish script, Makefiles and manual versions
Default scripts/publish-packages.py to project from main without
--allow-backwards and add unit tests covering revision and safety flags.
Add standalone-clone guards to acceptance and api-check targets across
all package Makefiles, and align etaf-manual book version tables with
current package headers (etaf 0.3.18, etaf-manual 0.1.26).

Validation: make structure-check; python3 -m unittest tests/tools/test_publish_packages.py tests/tools/test_repository_policy.py; make -C packages/etaf-manual book-check; make -C packages/ecss check; make -C packages/etaf-install check
2026-11-28 09:01:14 +08:00
docs docs(ext): lead extension docs with commands and configurable keys 2026-11-26 08:26:09 +08:00
tests feat(ext): onboard etaf-ext ecosystem and PDF/SVG export to archive 2026-11-26 00:44:43 +08:00
.gitignore feat(ext): onboard etaf-ext ecosystem and PDF/SVG export to archive 2026-11-26 00:44:43 +08:00
CHANGELOG.md docs(ext): lead extension docs with commands and configurable keys 2026-11-26 08:26:09 +08:00
etaf-highlight.el chore(archive): unify media/, ship docs/ and native typeset for org 2026-11-27 01:27:14 +08:00
LICENSE feat(ext): onboard etaf-ext ecosystem and PDF/SVG export to archive 2026-11-26 00:44:43 +08:00
Makefile chore(monorepo): harden publish script, Makefiles and manual versions 2026-11-28 09:01:14 +08:00
README.md docs(ext): lead extension docs with commands and configurable keys 2026-11-26 08:26:09 +08:00
README.zh-CN.md docs(ext): lead extension docs with commands and configurable keys 2026-11-26 08:26:09 +08:00

etaf-highlight

中文说明

etaf-highlight is a standalone universal highlighter and persistent companion notes extension for any mounted ETAF application, built strictly on the public etaf-ext extension engine API.

Capabilities

  • Non-destructive character-span highlighting (yellow, green, blue, pink) via etaf-ext-decorate, automatically adapting contrast for light and dark Emacs themes.
  • Optional companion note cards (etaf-ext-companion) rendered below highlighted paragraphs with inline [删除] actions.
  • Automatic SQLite persistence keyed by page :uri (or buffer name) with text-anchor re-attachment across remounts and page navigation.
  • Floating highlights overview popup (etaf-highlight-list) with one-click jump (etaf-ext-scroll-to) and delete.
  • Seamless multi-owner coexistence on the exact same paragraph with etaf-translate, etaf-hints, and etaf-devtools.

Quick Start

(require 'etaf-ext)
(require 'etaf-highlight)
(etaf-ext-mode 1)

Inside any mounted ETAF page, invoke the public commands directly:

  • M-x etaf-highlight-add: highlight the active region or current paragraph (with optional color and companion note).
  • M-x etaf-highlight-remove: clear highlights on the current paragraph.
  • M-x etaf-highlight-list: open the floating highlights overview popup for the current page.

With etaf-ext-mode enabled, all highlight actions (highlight, note, remove, list) are also reachable inside ETAF buffers via M-x etaf-ext-command-palette or the configurable two-step dispatcher M-x etaf-ext-dispatch (default etaf-ext-key-prefix is C-c C-e, with default extension hint h and subkeys h, n, d, l); customize or disable the prefix and bind personal direct shortcuts in M-x etaf-ext-manage or via etaf-ext-set-key.

Documentation

Checks

make check