Skip to content

Repository files navigation

DocLang Viewer

Browser-based viewer for DocLang markup and archives: a reading view, formatted markup, and—when opening an archive with page images—original pages with linked selection and bounding-box overlays.

Standalone .dclg or .xml files show markup and the reading view only. .dclx archives may also include page images and assets; layout and page-alignment rules are in the DocLang specification (archive format section).

DocLang Viewer showing original page, markup, and reading view

Quick start

Serve this directory over HTTP so the demo can fetch example files:

python3 -m http.server 8080

Open http://localhost:8080/ and click Load demo.

Opening files

ActionDescription
Load demoFetches assets/2501.17887.dclx (requires HTTP).
Open fileSelect a .dclx archive, or a standalone .dclg / .xml markup file.
Drag and dropDrop any supported file onto the page.

Supported types: .dclx, .dclg, .xml. The demo URL is configured in demo-data.js.

Files

  • demo-data.js — demo archive URL
  • index.html — shell UI
  • viewer.js — parsing, page alignment, bbox overlay
  • viewer.css — layout and theme

About

DocLang viewer

Resources

Stars

4 stars

Watchers

0 watching

Forks

Contributors

Languages