This webtrees custom module manages transcriptions of sources and source media.
This Readme contains the following main sections
- Purpose
- Scope
- Main ideas
- Data model
- Database schema
- Design principles
- Workflow
- Current status
- Screenshots
- Literature and links
- Requirements
- Installation
- Upgrade
- Translation
- Credits
- Privacy, telemetry, and tracking
- Contact Support
- License
Genealogical sources often contain handwritten or otherwise difficult-to-read texts.
This module adds a structured workflow for creating, importing, managing, and revising transcriptions in webtrees.
External or internal text recognition tools can support the transcription; the module is intentionally provider-agnostic.
Version 1 starts with the manual transcription provider. The architecture is designed to support additional providers, like Transkribus, Discourse, and AI tools.
The module links transcriptions to
- a source (
SOUR) - usually a specific media object (
OBJE) attached to a source
The media object contains a media file with one or more pages of images (jpg, pdf, tiff, ...), a single audio or video file (mp3, ...), or a supporting text file (txt, md, ged, rtf). If no media object exists or none is selected, the transcription can be attached directly to the source.
The detail page includes a local media viewer. It supports image zoom/pan for common browser image formats via a bundled OpenSeadragon build, native PDF preview, native audio/video playback with a stop button, and clear download links for unsupported or blocked external media. The detail page can switch between a side-by-side workspace and a top-and-bottom workspace, so wide or high-resolution media can use the full page width while the transcription editor moves below the preview. The selected layout is remembered in the browser. QuickTime/MOV files use the download fallback because browser support is unreliable. Local TXT, Markdown, and GEDCOM files are displayed as scrollable plain text. Local RTF files are converted to a simple plain-text preview; complex RTF formatting may still leave visible control text. Manual media viewer test cases are documented in docs/media-viewer-test-matrix.md.
The control panel consistency check also reviews media files used by transcriptions. It reports suspicious metadata combinations such as missing filename extensions, missing GEDCOM FORM values, generic MIME types, or mismatches between filename extension, FORM, and MIME type. This is especially relevant before sending files to providers such as Transkribus.
A transcription is not just a note.
It is treated as a structured object with
- metadata
- a provider
- a status
- a revision history
- a current working shared NOTE in webtrees, linked to
OBJEif a media object is selected, otherwise toSOUR
The overarching goal is to link a Digital Humanities edition system with a genealogical data model. The long-term goal is therefore the development of a structured data collection with TEI parsing and integrated GEDCOM generation. Based on claims webtrees objects such as people, places, and events should be created or linked. That could be a first introduction to turn the result-oriented webtrees into a process- and evidence-based program.
The module itself does not assume a single transcription workflow.
Instead, it defines a provider interface.
Providers can support different workflows, such as
- manual transcription
- crowdsourcing (e.g. discourse.genealogy.net)
- Transkribus import/synchronisation
- file import (TXT, TEI, PAGE XML)
- future OCR/HTR tools
- local AI-based recognition
Providers are grouped by their interaction model
- Manual/direct: The user creates or edits the transcription directly in webtrees.
- Automated asynchronous: An external or local tool processes an image or document and returns a transcription result. Examples: Transkribus, eScriptorium, OCR/HTR tools, local AI models.
- Crowd-based asynchronous: The module submits a transcription request to a community platform. Human contributors reply, and selected answers can be imported as revisions. Examples: Discourse, specialist reading-help communities.
- Internal collaborative: Other users of the same webtrees installation can submit reading suggestions or revisions.
The actual transcription history is stored in module database tables.
Each revision contains
- origin/provider
- text content
- format
- hash
- timestamp
- optional origin reference (e.g. user, tool version, used transcription model, ...)
This means that revisions remain stable even if the associated webtrees note is edited later.
The module can generate or update a shared NOTE linked to the selected transcription target. This NOTE is the current working version shown and edited in webtrees. Only that NOTE is exported via GEDCOM.
Important
- the NOTE is not the authoritative revision history
- the revision history is stored separately in database tables
- the NOTE may be edited manually by users
- edited notes can optionally be saved as new manual revisions
- NOTE records are created and updated through webtrees record APIs, so CHAN data, pending changes, and reverse links are handled by webtrees
- generated NOTE metadata is also stored in the module revision table
The generated NOTE uses a compact Markdown structure with translated labels. It includes the transcription title, source, provider, language/script/form metadata, the selected media object, and a section for each media file when multiple files exist. Revision numbers are not written into the NOTE body.
If the custom modul linkenhancer is installed, the advanced editor TinyMDE is used.
Records with at least one transcription can be marked by an additional shared NOTE, such as:
TAG: Transcription
The tag NOTE is linked to the selected media object when available. If no media object is selected, it is linked to the source.
This supports genealogical workflow management and filtering.
The module can append colored T badges to source and source-media titles. This is configured in the module settings.
For source records:
- green
T: the source already has at least one active transcription - red
T: the source has linked media suitable for transcription, but no active transcription yet - yellow
T: the source has no suitable linked media, but can still be transcribed manually
For media records:
- media objects that are not linked from a source through
SOUR:OBJEare ignored - green
T: the media object is linked from a source and already has at least one active transcription - red
T: the media object is linked from a source and has a suitable file, but no active transcription yet - yellow
T: the media object is linked from a source, but its files are not suitable for transcription
The badges are shown in source and media detail pages, list pages, and linked-record contexts where webtrees renders source or media titles through supported standard views.
Badge links lead to the transcription dashboard. Green badges filter the dashboard by the matching source or media object. Red and yellow badges lead to the unfiltered dashboard because no matching transcription exists yet.
If the separate webtrees-media-badge module is installed, both modules can display their badges together. The integration is optional and defensive, so either module can still run without the other.
Module backup/restore preserves the transcription revision history stored outside GEDCOM. It requires the target tree to contain the same GEDCOM records and XREF identifiers.
A transcription is the main domain object.
Typical properties
- source or optional media object related to a source
- provider (manual, Transkribus, ...)
- title
- type (handwritten Suetterlin, ...)
- language (German, Latin, ...)
- status (in progress, finished, ...)
- current note (text enriched by Markdown)
A revision is a specific text state of a transcription. The revision table also stores the generated NOTE XREF and the user/time information from the most recent NOTE generation or update.
The module tracks which NOTE was generated from which revision and whether that NOTE is currently active.
Detailed documentation: docs/provider/manual.md
The manual provider supports
- creating a new transcription in webtrees
- creating an initial empty revision
- generating a working NOTE
- saving the current NOTE as a new manual revision
Detailed documentation: docs/provider/internal.md
The internal collaboration provider opens an existing transcription for collaborative work by several webtrees users. It does not create a new transcription and does not ask again for source or media selection.
The initiator starts collaboration from an existing transcription, optionally saving the current working NOTE as a revision first. The initiator selects team members from users who can access the tree and the transcription target. Team members can edit the working NOTE and create new revisions.
In the intended workflow
- the initiator opens collaboration and invites collaborators
- all active collaborators are informed when collaboration starts
- all active collaborators are informed about new revisions and status changes
- every active collaborator can set the transcription status to ready for review
- only the initiator can set the transcription status to final
- the initiator or an administrator can reopen a finalized collaboration
The team relation is stored separately from the transcription revision history. This keeps existing source/media links, the working NOTE, and previous revisions intact.
Detailed documentation: docs/provider/discourse.md
The Discourse provider uses the Discourse User API Key authorization flow. Users authorize the module from the dashboard; no manual Discourse API key entry is required.
Prepared Discourse attachments are jpg, jpeg, png, gif, webp, txt, and pdf. No Discourse file-size limit is currently known in the module.
tbd
Detailed documentation: docs/provider/transkribus.md
The Transkribus provider supports
- creating a transcription associated with a source media object file
- importing transcription text from Transkribus
- creating a new revision from imported text
- updating or generating a current working NOTE
The module uses an explicit schema version to allow future migrations. The current schema is documented in docs/database/schema-3.sql.txt.
- keep the module provider-agnostic
- keep revision history separate from editable webtrees notes
- avoid destructive overwrites of manually changed notes
- support both simple and advanced workflows
- make future providers easy to add
- Open a source
- Create a transcription
- Select provider: Manual
- Generate a working note
- Edit the note in webtrees
- Save the note as a new revision when needed
- Or select an already existing NOTE containing transcribed text as a new revision
- Open an existing transcription
- Open the transcription for internal collaboration
- Optionally save the current NOTE as a starting revision
- Select collaborators from eligible webtrees users
- Notify the selected collaborators
- Collaborators edit the working NOTE and save new revisions
- Notify all active collaborators about each new revision
- Any active collaborator can mark the transcription as ready for review
- The initiator can mark the transcription as final
- Open a source with a media object
- Create a transcription
- Select provider: Discourse
- Formulate a reading-help post (what you know; what is your problem?)
- Upload the media together with meta information in the reading-help forum category at https://discourse.genealogy.net/c/lesehilfe/10
- Present a link to Discourse for the user
- Import responses into webtrees after some days
- Select and edit the responses in webtrees and store them as a revision
- Update the current working note
- Open a source with a media object
- Create a transcription
- Select provider: Transkribus
- Link or upload the media externally
- Present a link to Transkribus for the user
- Import a text state into webtrees
- Store it as a revision
- Generate or update the current working note
This project is currently in the design and initial development phase. It is an early beta version and not ready for production use.
Permission checks are currently handled in the UI and request handlers. They should be reviewed before production use.
Older development data may still contain NOTE links at the source that are moved to the selected media object only after the affected transcription or tag NOTE is saved again.
External media URLs are embedded directly in the browser only for http and https. Remote servers can still block previewing through CORS, frame, range-request, or hotlinking policies; in that case the module shows an open-link fallback.
- Manual and internal collaboration
- must be stable first
- Discourse
- strategically very interesting for CompGen
- uses existing crowd
- fits with the existing reading-help workflow
- makes webtrees connectable to community knowledge
- Transkribus
- strong automated specialist
- File import
- import of PAGE XML, and ALTO XML
- eScriptorium
- very interesting for self-hosting/open source, but probably more installation and operational effort
- LLM-/Vision-API (e.g. Kraken HTR, Tesseract)
- Very flexible, but privacy, costs, prompting, and reproducibility must be properly resolved
The detailed roadmap is maintained in GitHub milestones and issues:
An overview is at docs/github-roadmap.md
Open discussion points are maintained as GitHub issues with the discussion label:
It is possible to use the GitHub Discussion board:
- Zedlitz, Jesper: "Gedbas4all - new data model for genealogy", German original title, COMPUTERGENEALOGIE 4/2009, pp. 15-18, 2009 (checked 23.04.2026).
- GENTECH Genealogical Data Model, 29.05.2000 (checked 23.04.2026).
- ResearchSpace (checked 4.05.2026).
- CRMinf (CIDOC CRM) (checked 4.05.2026).
- Transkribus (checked 4.05.2026).
- Transkribus API (checked 5.05.2026).
- eScriptorium (checked 4.05.2026).
- Wikisource (checked 4.05.2026).
- Discourse (checked 4.05.2026).
- TEI P5 (checked 4.05.2026).
- Documentation of the PAGE XML Format for Page Content (checked 4.05.2026).
- ALTO: Technical Metadata for Layout and Text Objects (checked 4.05.2026).
- Gramps: Create a Transkribus addon (checked 5.05.2026).
- Gramps: Text recognition (checked 5.05.2026).
This module requires webtrees version 2.2 or later. The version of PHP must be at least 8.3. This module has the same requirements as webtrees#system-requirements.
This module was tested with webtrees 2.2.6 version and all available themes and all other custom modules.
Install and use Custom Module Manager for an easy and convenient installation of webtrees custom modules.
- Open the Custom Module Manager view in webtrees, scroll to "Source Transcription", and click on the "Install Module" button.
Manual installation:
- Make a database backup.
- Download the latest release.
- Unzip the package into your
webtrees/modules_v4directory of your web server. - Rename the folder to
hh_source_transcription. - Login to webtrees as administrator, go to Control Panel/Modules/Genealogy/Menus, and find the module. It will be called "Source Transcription". Check if it has a tick for "Enabled".
- Change the order of the menu items to your liking.
- Finally, click SAVE, to complete the installation.
To update, replace the hh_source_transcription files with the new ones from the latest release.
You can help to translate this module.
The language information is stored in the folder resources/lang/.
You can edit those files and return them to me.
You can do this via a pull request (if you know how) or by e-mail.
Updated translations will be included in the next release of this module.
There are the following translations available
- Catalan by @bernatbanyuls
- Dutch by @TheDutchJewel
- English by @Hartenthaler
- German by @Hartenthaler
- Spanish by @bernatbanyuls
Developed by Hermann Hartenthaler with support from OpenAI Codex and JetBrains PhpStorm.
This module does not collect analytics data, does not track users, and does not send transcription content, family tree data, media files, or personal data to the module author.
When the webtrees control panel is opened, the module checks whether a newer version is available. This version check requests only the module's public latest-version URL on github.com.
Provider-specific workflows may involve external services, such as Discourse or Transkribus. In those cases, data is only sent when a user explicitly starts the corresponding workflow.
- Issues: You can report errors by raising an issue in this GitHub repository.
- Forum: General webtrees support can be found at the webtrees forum.
This module uses GPL-3.0-or-later as a license.
- Copyright (C) 2026 Hermann Hartenthaler
- Derived from webtrees - Copyright 2026 webtrees development team.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.



