dot: add option C(COLOR)
This fixes the output gliches visible in the previous patches, where highlighting a state would remove its fill color. * spot/twaalgos/dot.cc, spot/taalgos/dot.cc: Implement option C(COLOR). * bin/common_aoutput.cc, doc/org/oaut.org: Document it. * doc/org/.dir-locals.el.in, doc/org/init.el.in, python/spot/__init__.py: Use it. * tests/python/automata-io.ipynb, tests/python/automata.ipynb, tests/python/highlighting.ipynb: Test it. * tests/core/readsave.test: Adjust. * NEWS: Mention recent changes.
This commit is contained in:
parent
23c2cbf46a
commit
77b0b5b3fe
12 changed files with 163 additions and 107 deletions
|
|
@ -80,13 +80,16 @@ static const argp_option options[] =
|
|||
{
|
||||
/**************************************************/
|
||||
{ nullptr, 0, nullptr, 0, "Output format:", 3 },
|
||||
{ "dot", 'd', "1|a|b|B|c|e|f(FONT)|h|k|n|N|o|r|R|s|t|v|+INT|<INT",
|
||||
{ "dot", 'd',
|
||||
"1|a|b|B|c|C(COLOR)|e|f(FONT)|h|k|n|N|o|r|R|s|t|v|+INT|<INT|#",
|
||||
OPTION_ARG_OPTIONAL,
|
||||
"GraphViz's format. Add letters for "
|
||||
"(1) force numbered states, "
|
||||
"(a) acceptance display, (b) acceptance sets as bullets, "
|
||||
"(B) bullets except for Büchi/co-Büchi automata, "
|
||||
"(c) force circular nodes, (e) force elliptic nodes, "
|
||||
"(c) force circular nodes, "
|
||||
"(C) color nodes with COLOR, "
|
||||
"(e) force elliptic nodes, "
|
||||
"(f(FONT)) use FONT, (h) horizontal layout, "
|
||||
"(k) use state labels when possible, "
|
||||
"(n) with name, (N) without name, "
|
||||
|
|
@ -96,7 +99,8 @@ static const argp_option options[] =
|
|||
"(t) force transition-based acceptance, "
|
||||
"(v) vertical layout, "
|
||||
"(+INT) add INT to all set numbers, "
|
||||
"(<INT) display at most INT states", 0 },
|
||||
"(<INT) display at most INT states, "
|
||||
"(#) show internal edge numbers", 0 },
|
||||
{ "hoaf", 'H', "i|l|m|s|t|v", OPTION_ARG_OPTIONAL,
|
||||
"Output the automaton in HOA format (default). Add letters to select "
|
||||
"(i) use implicit labels for complete deterministic automata, "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue