Sujet : Re: [OT] Fancy graphics (was Re: this girl calls c ugly)
De : ram (at) *nospam* zedat.fu-berlin.de (Stefan Ram)
Groupes : comp.lang.cDate : 02. Jun 2026, 18:08:57
Autres entêtes
Organisation : Stefan Ram
Message-ID : <ASCII-20260602180622@ram.dialup.fu-berlin.de>
References : 1 2 3 4 5
cross@spitfire.i.gajendra.net (Dan Cross) wrote or quoted:
I used, "monodraw" on the Mac. I can't do that by hand; I am
not artistically gifted. :-)
I have been searching for an ASCII-to-ASCII program for a long
time and never found anything impressive. I want to write
a /description/ of my diagram in ASCII and then want to get
my diagram as ASCII. Dot, ditaa, nothing worked.
The least bad solution I found so far is called /PlantUML/.
example.puml
@startuml
skinparam componentStyle rectangle
interface "SAX interface" as SAX_interface
interface "internal structure" as internal_structure
interface "internal HTML" as internal_HTML
interface "external HTML" as external_HTML
interface "external LaTeX" as external_LaTeX
Text --> [Parser]
[Parser] --> SAX_interface
SAX_interface --> [struct creator]
[struct creator] --> internal_structure
internal_structure --> [internal HTML transformer]
[internal HTML transformer] --> internal_HTML
internal_HTML --> [external HTML transformer]
[external HTML transformer] --> external_HTML
internal_structure --> [external LaTeX transformer]
[external LaTeX transformer] --> external_LaTeX
@enduml
example.cmd
set "GRAPHVIZ_DOT=C:\example\dot.exe"
"C:\example\java.exe" -jar "C:\example\plantuml.jar" -txt "example.puml"
output (not edited)
,----.
|Text|
|----|
`----'
|
|
,------.
|Parser|
|------|
`------'
|
,-------------.
|SAX interface|
|-------------|
`-------------'
|
,--------------.
|struct creator|
|--------------|
`--------------'
|
,------------------.
|internal structure|
|------------------|
`------------------'
,-------------------------. ,--------------------------.
|internal HTML transformer| |external LaTeX transformer|
|-------------------------| |--------------------------|
`-------------------------' `--------------------------'
| |
| |
,-------------. ,--------------.
|internal HTML| |external LaTeX|
|-------------| |--------------|
`-------------' `--------------'
|
,-------------------------.
|external HTML transformer|
|-------------------------|
`-------------------------'
|
,-------------.
|external HTML|
|-------------|
`-------------'
This is nothing impressive, but I am not aware of any other
program that can do this! You can then tweak it manually
if you've got the time:
.------.
(Markdown)
'------'
|
V
.------.
|Parser|
'------'
|
V
.-----------.
(SAX interface)
'-----------'
|
V
.--------------.
|struct creator|
'--------------'
|
V
.----------------.
(internal structure)
'----------------'
.--------------'--------------.
V V
.-------------------------. .--------------------------.
|internal HTML transformer| |external LaTeX transformer|
'-------------------------' '--------------------------'
| |
V V
.-----------. .------------.
(internal HTML) (external LaTeX)
'-----------' '------------'
|
V
.-------------------------.
|external HTML transformer|
'-------------------------'
|
V
.-----------.
(external HTML)
'-----------'
But at least PlantUML did some kind of minimal routing for you.
Haut de la page
Les messages affichés proviennent d'usenet.
NewsPortal