diagram-viewer(1)
π diagram-viewer β the manual, but make it make sense π
okay bestie, so this is the diagram-viewer(1) page from the Documentation toolbox β like, that's the manual section it lives in. Sit down, grab a boba, we're doing this. π§β¨
β¨ NAME β¨
diagram-viewer β Lightweight Diagram Processor π
π¦ SYNOPSIS π¦
diagram-viewer show inputfile...
diagram-viewer convert -o output format inputfile...
π DESCRIPTION π
The application this document is describing β hi, that's diagram-viewer β is a lightweight processor for tklib diagram files. No cap, that's the whole vibe. π
diagram-viewer is based upon the package diagram. Like, go read that for the examples and the language reference, because this page is not the one doing the teaching on syntax. π
π«Ά USE CASES π«Ά
diagram-viewer was written with these two use cases in mind, and honestly? iconic of it:
- Processing and display of one or more diagram files.
- Batch conversion of one or more diagram files into raster image files.
π COMMAND LINE π
diagram-viewer show inputfile...β this is the form for use case [1]. The application opens a gui showing the list of input files on the left, and you get to choose which of them to render to the canvas on the right. main character energy: you pick, it renders. πβοΈdiagram-viewer convert -o output format inputfile...β this is the form for use case [2]. The application converts the input files into a raster image of the specified format.
Now the arguments, bestie, one by one:
- path output (in) β this argument says where to write the generated image. It can be the path to a file or a directory. ποΈ
- If the output does not exist, then
[file dirname $output]has to exist and must be a writable directory. Like, the parent has to be a real place you're allowed to write into. no parent, no image, sorry. - In case of multiple input files, the generated image will be written to a file in the directory, and the name of that file will be derived from the inputfile, and format. so it names itself, cute.
- In case of a single input file, the generated image will be written to the file.
- If the output does not exist, then
- (handle) format (in) β this argument specifies the image format to convert the diagrams into when processing the input. The application recognizes all formats supported by the
Imgpackage β i.e. the ones it can load a packageimg::formatfor (together withcanvas::snap) β and all formats for which it can load a packagecanvas::format. These are (currently)mvg, andpdf. π₯ - path inputfile (in) β this argument specifies the path to the diagram file to process. It has to exist, must be readable, and has to be written in
diagramformat. Periodt. π«
π BUGS, IDEAS, FEEDBACK π
This document, and the application it describes, will undoubtedly contain bugs and other problems. (we love honesty π) Please report such in the category diagram of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have for either application and/or documentation.
π BUGS, IDEAS, FEEDBACK π
(yeah bestie, it's listed twice in the original, so it's listed twice here β I don't make the rules, I just relay them faithfully π)
This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category diagram of the Tklib Trackers [http://core.tcl.tk/tklib/reportlist]. Please also report any ideas for enhancements you may have for either package and/or documentation.
πΈ KEYWORDS πΈ
canvas, conversion, diagram, vector
π CATEGORY π
Documentation tools
β COPYRIGHT β
Copyright (c) 2010 Andreas Kupries <andreas_kupries@users.sourceforge.net>
ok that's the whole page, nothing skipped, every flag and path and URL intact π
and for the cute sign-off: this one came from tklib, version 1.0, and it's the diagram-viewer(1) page β slay, go render something pretty π¦β¨π
π¦ where this page comes from
- debian trixie: tklib 0.9-1
- ubuntu questing: tklib 0.9-1
- ubuntu resolute: tklib 0.9-1build1
- ubuntu stonking: tklib 0.9-1build1
- Copyright (c) 2010 Andreas Kupries <andreas_kupries@users\&.sourceforge\&.net>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms