项目作者: hydrargyrum

项目描述 :
Convert SVG files for adding to Dia library
高级语言: Python
项目地址: git://github.com/hydrargyrum/svg-to-dia.git
创建时间: 2020-10-07T20:59:30Z
项目社区:https://github.com/hydrargyrum/svg-to-dia

开源协议:The Unlicense

下载


svg-to-dia

Dia is an open-source diagram editor.
It supports SVG pictograms.
svg-to-dia converts ordinary SVG in the format supported by Dia.

How to use

  • Prepare files:

    1. svg-to-dia --name my-shapes my-file1.svg my-file2.svg my-file3.svg

    the above command will create a sheets/ and a shapes/ folders.

  • Move the generated files to dia’s folder

    1. mv sheets/* ~/.dia/sheets
    2. mv shapes/* ~/.dia/shapes
  • Don’t forget to restart dia

  • If you intend to publish, make sure to edit the .sheet files to add human-readable descriptions (multiple languages if you can)
  • … and to edit the .shape files to add better coordinates of attachment points

Requirements

  • Python
  • ImageMagick

License

svg-to-dia is released in the public domain, see UNLICENSE file.