aboutsummaryrefslogtreecommitdiff
path: root/gfsm/gfsm/src/programs/gfsmdraw.gog
blob: 63fbb4f03e2df43423ac1a4d976f2595f8b2f4cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# -*- Mode: Shell-Script -*-
#
# Getopt::Gen specification
#-----------------------------------------------------------------------------
program "gfsmdraw"
#program_version "0.01"

purpose	"Generate graph specifications from binary gfsm files"
author  "Bryan Jurish <moocow@ling.uni-potsdam.de>"
on_reparse "warn"

#-----------------------------------------------------------------------------
# Details
#-----------------------------------------------------------------------------
details "
gfsmdraw reads a binary GFSM file file and produces a graph specification
in either dot(1) or vcg(1) format.
"

#-----------------------------------------------------------------------------
# Files
#-----------------------------------------------------------------------------
#rcfile "/etc/gfsmrc"
#rcfile "~/.gfsmrc"

#-----------------------------------------------------------------------------
# Arguments
#-----------------------------------------------------------------------------
argument "BINFILE" "Stored binary gfsm file" \
    details="
If unspecified, standard input will be read
"

#-----------------------------------------------------------------------------
# Common Options
#-----------------------------------------------------------------------------
group "Common Options"

string "ilabels" i "Specify input (lower) labels file." \
   arg="LABELS"

string "olabels" o "Specify output (upper) labels file." \
   arg="LABELS"

string "slabels" s "Specify state labels file." \
   arg="LABELS"

string "title" t "Specify output title." \
   arg="TITLE" \
   details="Default is input filename."

flag "vertical" v "Draw vertically." \
   details="Default mode is top-to-bottom"

string "output"  F "Output graph specification." \
   arg="DOTFILE" \
   details="
Default behavior is to write to stdout.
"

#-----------------------------------------------------------------------------
# dot Options
#-----------------------------------------------------------------------------
group "dot Options"

flag "dot" d "Request dot output (default)"

float "width" W "Specify output width (default=bbox)." \
   arg="WIDTH" \
   default="8.5"
float "height" H "Specify output height (default=bbox)." \
   arg="HEIGHT" \
   default="11"

int "fontsize" f "Set output font size." \
   arg="POINTS" \
   default="14"
string "font" - "Set output font name." \
   arg="FONT"

float "nodesep" n "Set min node separation." \
   default="0.25"
float "ranksep" r "Set min rank separation." \
   default="0.40"

flag "portrait" p "Generate in portrait mode." \
   details="Default mode is landscape."

#-----------------------------------------------------------------------------
# VCG Options
#-----------------------------------------------------------------------------
group "VCG Options"

flag "vcg" g "Request VCG output."

int "xspace" x "Set xspace graph parameter." \
  default="40"
int "yspace" y "Set yspace graph parameter." \
  default="20"

string "state-shape" - "Set shape for state nodes." \
  arg="SHAPE" \
  default="box"

string "state-color" - "Set default state color." \
  arg="COLOR" \
  default="white"

string "final-color" - "Set color for final states." \
  arg="COLOR" \
  default="lightgrey"


#-----------------------------------------------------------------------------
# Addenda
#-----------------------------------------------------------------------------
#addenda ""

#-----------------------------------------------------------------------------
# Bugs
#-----------------------------------------------------------------------------
bugs "

None known.

"

#-----------------------------------------------------------------------------
# Footer
#-----------------------------------------------------------------------------
#acknowledge `cat acknowledge.pod`

seealso "
L<gfsmutils>,
dot(1),
vcg(1),
xvcg(1)
"