Tcl/Tk, PDF, Markdown, and Cairo development — and Tcl/Tk documentation in English and German.
Pure-Tcl applications and libraries with a shared intermediate
representation. The apps interoperate — right-click in mdhelp or
man-viewer to look up a word in tcltk-glossary; settings and tool
paths are shared via ~/.tcldocs.rc.
Pre-1.0 — refinements in progress, breaking changes possible.
Apps
- mdhelp — Markdown viewer / editor with PDF export and full-text search
- man-viewer — nroff viewer,
CLI converters (n2html / n2md / n2pdf / n2svg / n2txt), and
nroffide(nroff IDE with debugger) - tcltk-glossary — SQLite-backed Tcl/Tk glossary with FTS5 search, GUI and TUI
- cheatsheets — cheatsheet renderer (CSD format → PDF / HTML / Markdown via docir)
Libraries
- docir — document intermediate representation and renderer family (HTML, PDF, Markdown, nroff, SVG, canvas, tile)
- mdstack — Markdown parser, viewer, and renderers (adapter on docir)
- tcldocs-config —
cross-app shared settings (
~/.tcldocs.rc) - tcldocs-launcher — cross-app tool launcher (Tools menu, app autodetect)
- tcldocs-search — cross-app search component for the documentation suite
Tools
- tcltk-manindex — Tcl/Tk manpage indexer with FTS5 search and auto-generated cheatsheets
- tcltk-manuals — manual pages for Tcl/Tk 9.0 and 8.6, Tcllib, Tklib and extensions (TDBC, Thread, [incr Tcl], tDOM, expect, …) as Markdown and PDF, English original and German translation, plus books on Tcl libraries (tclutils, pdf4tcl, pdf4tcllib). Unofficial collection; built with docir / mdstack / pdf4tcl
Native OpenDocument tooling for Tcl — read / write ODF and evaluate spreadsheet formulas without LibreOffice, validated against real LibreOffice output.
- odf — native OpenDocument library (read / write ODT / ODS / ODG / ODC / ODB), pass-through-first
- ofcalc — OpenFormula calculation
engine (parser, evaluator, dependency recalc, optional
odfadapter) - refcorpus — shared LibreOffice
reference corpus and comparison tools for
odf/ofcalc - tcl-peg-notes — PEG / tcllib parser docs plus PEG-in-Tcl/Tk and UNO / LibreOffice handbooks (docs)
Writing, reading, and modifying PDFs from pure Tcl — plus a PDFium binding where native speed or page rendering is needed. The reader and writer keep to one rule: they never touch an existing content stream, they overlay.
- pdf4tcl — fork with extensions (encryption, PDF/A, Unicode / CID fonts, optional content layers, form fields with comb cells and date formats)
- pdf4tcllib — layout, AcroForms, page templates
- tclpdfreader — read-only inspection across three backends (pure Tcl, PDFium, qpdf): page geometry, text, layers, attachments, encryption. None of the backends is required; missing ones simply narrow the answer
- tclpdfwriter — modify existing PDFs without rewriting their content: stamp, watermark, page operations, metadata, flatten
- tclpdfium — PDFium binding: text and search with rectangles, clipped and print-mode rendering, page objects, form fields, flatten
- printlib — cross-platform PDF printing (Windows GDI / pdfium, Linux CUPS), with Brother QL label support
- tclmcairo — Cairo bindings for Tcl/Tk (PDF, SVG, PostScript, EPS, PNG)
- tcllunasvg — lunasvg binding
for Tcl (SVG → ARGB32 / PNG); pairs with tclmcairo via
image_from_argb32 - tkmcairo — Tk widgets built on tclmcairo (surface, plot, imageviewer, svgview, pageview, scene, viewport)
- ruledtext — notebook-paper style text widget with lines, margins, presets, and PDF export
- tkprintcompat — Tk 8.6 compatibility layer for the modern Tk printing API
- tcllitehtml — HTML / CSS widget for Tcl/Tk
Linux and Windows, Tcl/Tk 8.6 and 9.x.