|
|
| (не показаны 2 промежуточные версии этого же участника) |
| Строка 1: |
Строка 1: |
| | If: | | If: |
| | * we use «record» shape for nodes; | | * we use «record» shape for nodes; |
| − | * Russian (on other non-ascii Unicode labels). | + | * Unicode (non-ascii Unicode labels). |
| | * Surround record separator «|» with spaces | | * Surround record separator «|» with spaces |
| − | When Graphviz eats all spaces in record shape cell. | + | When Graphviz eats all spaces in label (in record-node). |
| | | | |
| | digraph G { | | digraph G { |
| Строка 9: |
Строка 9: |
| | node[shape=record style=rounded]; | | node[shape=record style=rounded]; |
| | reclat[label="Ok with spaces (en):|{ AAA AAA AAA | BBB BBB BBB | CCC CCC CCC }"]; | | reclat[label="Ok with spaces (en):|{ AAA AAA AAA | BBB BBB BBB | CCC CCC CCC }"]; |
| − | recrus[label="Eats spaces (rus):|{ ААА ААА ААА | ВВВ ВВВ ВВВ | ССС ССС ССС }"]; | + | recrus[label="Eats spaces (utf):|{ ААА ААА ААА | ВВВ ВВВ ВВВ | ССС ССС ССС }"]; |
| − | rusok [label="Ok with spaces (rus):|{ААА ААА ААА|ВВВ ВВВ ВВВ|ССС ССС ССС}"]; | + | rusok [label="Ok with spaces (utf):|{ААА ААА ААА|ВВВ ВВВ ВВВ|ССС ССС ССС}"]; |
| | } | | } |
| | | | |
| | <graph> | | <graph> |
| − | digraph G { | + | digraph G { |
| | rankdir=LR; | | rankdir=LR; |
| | node[shape=record style=rounded]; | | node[shape=record style=rounded]; |
| − | rusok [label="Ok with spaces (rus):|{ААА ААА ААА|ВВВ ВВВ ВВВ|ССС ССС ССС}"];
| |
| − | recrus[label="Eats spaces (rus):|{ ААА ААА ААА | ВВВ ВВВ ВВВ | ССС ССС ССС }"];
| |
| | reclat[label="Ok with spaces (en):|{ AAA AAA AAA | BBB BBB BBB | CCC CCC CCC }"]; | | reclat[label="Ok with spaces (en):|{ AAA AAA AAA | BBB BBB BBB | CCC CCC CCC }"]; |
| | + | recrus[label="Eats spaces (utf):|{ ААА ААА ААА | ВВВ ВВВ ВВВ | ССС ССС ССС }"]; |
| | + | rusok [label="Ok with spaces (utf):|{ААА ААА ААА|ВВВ ВВВ ВВВ|ССС ССС ССС}"]; |
| | } | | } |
| | </graph> | | </graph> |
| | + | |
| | + | http://www.graphviz.org/bugs/b957.html |
Текущая версия на 14:20, 9 июня 2006
If:
- we use «record» shape for nodes;
- Unicode (non-ascii Unicode labels).
- Surround record separator «|» with spaces
When Graphviz eats all spaces in label (in record-node).
digraph G {
rankdir=LR;
node[shape=record style=rounded];
reclat[label="Ok with spaces (en):|{ AAA AAA AAA | BBB BBB BBB | CCC CCC CCC }"];
recrus[label="Eats spaces (utf):|{ ААА ААА ААА | ВВВ ВВВ ВВВ | ССС ССС ССС }"];
rusok [label="Ok with spaces (utf):|{ААА ААА ААА|ВВВ ВВВ ВВВ|ССС ССС ССС}"];
}
http://www.graphviz.org/bugs/b957.html