ivanceras / svgbob

Convert your ascii diagram scribbles into happy little SVG
http://ivanceras.github.io/svgbob-editor/
Apache License 2.0
3.83k stars 108 forks source link

Should unconnected lines be seperate paths? #14

Closed galadran closed 6 years ago

galadran commented 7 years ago

I really like svgbob and I've started using it to mock up diagrams and automatically include them into my LaTex. However, when I come to do final copies, I'll probably want to tweak the diagrams by hand in Inkscape. [1]

I've noticed that some lines seem to be drawn as part of one huge path, for example:

2017-07-10-11 32 17_selection_001_

Although this can be broken apart, each connected component is then composed of multiple tiny paths which are painful to manipulate.

2017-07-10-11 36 31_selection_001_

Is this intended or desirable behavior for some other purpose? If not, it would be great to have them as separate path objects in the svg.

[1] inkscape -D -z --file=bob_file.svg --export-pdf=bob_out.pdf --export-latex and then including the generated Tex file.

ivanceras commented 7 years ago

Hi, Unfortunately, svgbob is not ready for an organized svg output yet. The optimization algorithm is not very good yet. It may take a while before it would be ready for that purpose.