Annotate Wikipedia articles with the same keys as nodes
An article's text is drawn from its sanitised HTML as selectable text (articleText.ts): paragraphs, list items and quotes with their inline elements; a formula is one unit; tables and preformatted blocks are shown but carry no offsets. The selection ladder, Tab, Enter, e d y x c :, D and the rest go through the same store paths as on a node; a note on article words is a note (Enter steps into it; c, f, u, the editor and history work on it as on any other) and shows wherever the article is opened, in the library's own note style. Detached annotations are listed at the top of their section with a link to the old revision. Keys that only make sense on a node say why in the status line. Tab on a link now selects its words, so Esc widens before h leaves, as in a node. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
This commit is contained in:
1 parent
f63fc10dc0
commit
2c1ee048a4
18 files changed
+1134
-126
No files matched your search
@@ -218,6 +218,13 @@ senses 14 d, suggest and search 1 d), `articles/` (7 d). Vectors: `<IE_DATA>/vec
|
||||
and `.f32`. An expired entry is still served, marked `stale`, when the network is down. The
|
||||
variables that configure all this are in the README.
|
||||
|
||||
Notes on articles (src/core/article.ts) rely on this cache and add nothing to it: an article is
|
||||
re-read through `article?full=1`, whose answer always carries `revisionId` (and `pageId`), as
|
||||
every `section` answer does (a `summary` may not). A note records the revision it was made
|
||||
against; when the cached copy expires (7 d) and Wikipedia has a newer revision, the note is found
|
||||
again in it, or shown as detached with a link to the old revision. The browser keeps articles in
|
||||
memory for the page's life only, never in IndexedDB.
|
||||
|
||||
## 8. Link discovery as built
|
||||
|
||||
`server/links/` (README "Links found for you" says what the writer sees). A scan of one node:
|
||||
|
||||
Reference in new issue
Block a user