Ruled: column groups = Annotation Pages, ordered @list lines, next/previous chain; layers = Collections
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 8/100
調査の方向性
This is a data-model ruling, not an edit: read classes/Column/Column.js (createNewColumn and updatePrevAndNextColumns) and the ordering calls in page/index.js, then compare them with sortAnnotations() in components/annotorious-annotator/line-parser.js and the concatenation in utilities/columnOrdering.js. The open work is assessing conformance of the datastore and TPEN-services to the maintainer's ruling (Annotation Pages as column groups, ordered @list lines, next/previous chain, purpose Collections). Done means the ruling is recorded and the two competing order sources are reconciled in writing.
索引モデルが issue の本文から書いたものです。
説明
This was generated by AI during triage.
Superseded on 2026-11-23. The three options enumerated below — IIIF Ranges, partOf, or a documented ordering convention — were replaced by the maintainer's ruling, quoted here exactly as given:
column groups are all Annotation Pages, lines are in ordered @list arrays within. Pages have next and previous properties for internal ordering and each purpose is a layer of transcription as an Annotation Collection that has a count, first, and last Page reference.
Conformance of the datastore (and of TPEN-services, where these shapes actually live today) is assessed in the latest comment on this issue. The original text below is preserved verbatim and unedited.
This was generated by AI during triage.
The question
How does TPEN 3.0 express grouping and reading order for transcription lines — and which system owns it? One ruling is requested. It is a data-model decision, not code, and it currently blocks three interface issues plus a server parse API.
Filed by the TPEN 3.0 restart triage. The maintainer's Section 5 ruling (2026-11-23) on TPEN-interfaces #579 was "group and amend": #579, #583 and #573 are to be decided together as one RERUM data-model ruling — "IIIF Ranges vs partOf vs a documented ordering convention". This ticket is that ruling.
The requirement, from the consumer issues
TPEN-interfaces #579 "Organize Grouping Structures within a Canvas" (2015, transferred from TPEN3#4):
"Group and order lines within a column (currently just xMin,yMin to xMax,yMax) and order columns on the page. It may be possible or pleasant to allow infinite recursion with this so the group is just a
sc:Range-like structure to organize an ordered list of annotations or other lists. Each of these should also have their own label."
Its triage scope note (2026) narrows this to the data model: flat column management is already built; what remains is "nested/grouping structures WITHIN a canvas (sub-groups of lines, joined groups)". One sub-question was already settled on that issue and should not be re-opened — only given a home for the data: cubap proposed default group labels from a user-chosen character incremented per group ("a char that becomes char+1 so that the default is "A" then "B" then "C"", with an optional prefix such as "Column " / "Stanza "), and AmAntiquarian agreed ("Yes, I like the idea suggested in Comment 2.").
TPEN-interfaces #583 "Support Zones for Image Parsing" (2015, transferred from TPEN3#12):
"Use the natural reading angle and
sc:Zonesupport the designation of transcription areas within a canvas. These regions can be rotated and analyzed for lines and columns specifically."
Use cases named on the issue: scrolls, large-format documents with several areas of interest, pages with large margins and gutters, loosely cropped canvases, complex rotations or foldouts, and complex documents with several hands. Restated on the issue itself to Presentation 3.x terms: "restate the requirement as canvas Ranges + FragmentSelectors (svg:xywh coordinate regions) for zone-based image parsing. The underlying need — parsing labeled sub-regions (columns, margins, interlinear bands) of an image — is unchanged."
TPEN-interfaces #573 (marginalia / interlinear / layered, grant promise 2) needs the same answer: interlinear and marginal lines must be ordered relative to a base text and anchored to canvas regions.
What exists today (verified 2026-11-23, read-only, TPEN-interfaces @ 8742e4a83; TPEN-services main via API)
1. TPEN already has a persisted grouping/order container — flat, one level deep, and it lives in TPEN-services, not in the annotation store.
classes/Column/Column.js:10— a first-classColumnobject in its own collection (process.env.TPENCOLUMNS, load/save/update/delete at :43/:64/:81/:95).Column.createNewColumn(pageId, projectId, label, annotations = []):112 produces{ label, next: null, prev: null, lines: annotations }:134-139; an absent label defaults toColumn ${_id}:117.- Order is an explicit linked list:
updatePrevAndNextColumns()rewritescolumnData.prev/columnData.nextfrom the page's array position (page/index.js:242-250, :249/:250). Line replacement and pruning maintain the containers (page/index.js:157-204), and an emptied column is deleted and dropped from the page (:181-183). - The page mirrors
{ id, label, lines }on the project document, and the UI drives it throughPUT ${TPEN.servicesURL}/project/{projectID}/page/{annotationPageID}/columnwith{ newLabel, columnLabelsToMerge }— i.e. merging two labelled groups is already a server operation (interfaces/manage-columns/index.js:723-732; local mirror at :493-512).
2. But the interface keeps a second, competing source of order. Line regions are Web Annotation targets xywh=pixel:x,y,w,h (parsed at components/annotorious-annotator/line-parser.js:1065-1066), and the annotator sorts those by geometry on every load: sortAnnotations() :1055-1073, whose own doc comment says "The order of these Annotations is not guaranteed… Generally, this mocks a column design" (:1056-1057), repeated at :1540-1542 where a temporary reorder "does not persist or change the order in Annotorious". Only one call site consults the container: utilities/columnOrdering.js:12-34 concatenates columns[].lines (used by components/transcription-canvas-panel/index.js:8), and any line not in a column is appended as a synthetic { id: "unordered-lines", label: "Unordered Lines" } bucket (:18-24).
Consequence: for the same page, order can be computed two different ways — geometry in the annotation store, or ID lists in the services store — and nothing declares which is authoritative. Recursive grouping cannot be built on that, and neither can #583's zones: the Column document carries no region/geometry field at all (Column.js:134-139), while detect-lines.js parses the whole image with no region parameter (detectColumns(…) :34, detectLinesInColumn(…) :105, detectTextLinesCombined(url, expandY = true) :170).
3. Orientation is not modelled either. No rotation/flip exists in the current viewer (every rotate() in the repo is a CSS chevron or spinner; detect-lines.js and line-image/index.js contain no rotation code), so #583's "rotated and analyzed" and "complex rotations or foldouts" clauses ask for a capability that has neither UI nor data representation.
The three candidate models (choose one, or reject all three with a stated alternative)
- IIIF Presentation 3.x
Rangetree in the project manifest; lines/columns/groups become Ranges whose items point at canvas segments.
Consequence for existing data: containers must be projected intostructuresper project; annotations keep theirxywh=pixel:targets so nothing is destroyed; but every consumer (TinyPen line lookup, static export, third-party viewers) must readstructuresto get order, and Ranges must be maintained on create/delete/reorder/merge. Most interoperable; most new machinery; the existingColumncollection becomes an internal cache at best. partOfchains among Web Annotation containers in the annotation store (each line'spartOfpoints at a group annotation; groups may themselves bepartOfother groups).
Consequence: order and nesting travel with the annotations in RERUM/TinyNode, one store instead of two, and containers can be minted in place from data the client already has — but it requires RERUM/TinyNode to accept and servepartOffaithfully on write and read, and the services-sideColumnobjects must be migrated or retired.- Generalize and document the existing container (the services
Columnobject: add nesting, add an optional region, keeplabel, and publish array position /prev–nextas the normative order).
Consequence: zero migration — the structure, the labels, the merge endpoint and the UI already exist — and it is the cheapest path to #579's recursion and #583's labelled regions. The cost is that it is TPEN-private vocabulary: it is not IIIF and not Web Annotation, so workstream 1 (IIIF-native, versioned linked open data) and workstream 3 (external workflows, aggregation) keep depending on a TPEN-specific API rather than on standards a third party can read. It also only works if the geometry sort insortAnnotations()is explicitly demoted.
What the ruling must state
- Which model is normative, and which store owns it (RERUM/TinyNode annotations, or the TPEN-services project document, or the manifest).
- Which order source wins, and what happens to the losing one (
sortAnnotations()vscolumns[].lines). - How a line is inserted between two others, and how a group is nested inside a group (#579).
- Whether a container may carry a canvas region, in what syntax (#583), and whether groups must be labelable (today a label is auto-supplied when omitted and an empty or non-string label is rejected,
Column.js:116-126). - How a canvas segment is addressed publicly, and who may read it (this decides the parse-API companion being filed in
TPEN-servicesfrom the same ruling). - The migration rule for data already in the
TPENCOLUMNScollection and in project page documents. - Whether the project manifest must carry a
structuresblock for static export (TPEN-static) and for collection-level aggregation.
Not this ticket's job
The rendering, editing and import/export behaviour that consumes the ruling (rotated zones, a column-creation dialog, RTL presentation, marginalia placement, TEI round-trips). Those live in the consumer issues listed below. This ticket exists so they all inherit one answer instead of inventing three.
Consumers blocked on this ruling
- CenterForDigitalHumanities/TPEN-interfaces#573 — marginalia / interlinear / layered (grant promise 2)
- CenterForDigitalHumanities/TPEN-interfaces#579 — grouping structures within a canvas
- CenterForDigitalHumanities/TPEN-interfaces#583 — zones as canvas-segment targets
- The
TPEN-servicesparse-API companion filed from the same ruling (server-side detection over a canvas segment) - CenterForDigitalHumanities/TPEN-interfaces — TEI/XML import/export, split from #587 by the same ruling: nested
<lg>/<div>andfacsimile/zonewant exactly this structure
Workstream 1 (Better Data / modern core — RERUM + Web Annotation + IIIF-native, versioned linked open data) feeding workstream 2 (marginalia/interlinear/layered interfaces) and workstream 3 (interoperability / external workflows).
- 主要言語
- JavaScript
- スター
- 3
- フォーク
- 7
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
CenterForDigitalHumanities/rerum_server_nodejs のほかの issue
-
bug ready-for-agent
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
CenterForDigitalHumanities/rerum_server_nodejs#325 · コメント 1 件 ·
-
enhancement ready-for-agent
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
-
bug documentation ready-for-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
CenterForDigitalHumanities/rerum_server_nodejs#311 · コメント 1 件 ·
-
backend dependencies easy enhancement ready-for-human
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
CenterForDigitalHumanities/rerum_server_nodejs#294 · コメント 2 件 ·
-
Switch obj.hasOwnProperty() to Object.hasOwn() where the receiver is untrusted対応中かも @thehabes が 6 日前に担当しました。 オープンbug ready-for-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
CenterForDigitalHumanities/rerum_server_nodejs#290 · コメント 3 件 · 担当者 1 名 ·
CenterForDigitalHumanities/rerum_server_nodejs の issue をすべて見る
似ている issue
-
flex-flow: wrap-reverse gets a vertical, reversed 2009 box fallback対応中かも @goranai が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
postcss/autoprefixer#1577 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
PranshulGG/WeatherMaster#1266 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
FEATURE REQUEST
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
linuxmint/cinnamon-spices-applets#9356 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
opnsense/plugins#5976 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信