Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
190 commits
Select commit Hold shift + click to select a range
f1f736c
Mark the footprint as virtual in the pretty format
matthijskooijman Jun 22, 2017
75d59f2
Update svg2mod.py to work with python3 methods
zirafa May 9, 2018
a028e41
Updates svg.py to work with python3
zirafa May 9, 2018
57e62df
Update README.md
zirafa May 9, 2018
231ecdd
Update README.md
zirafa May 9, 2018
32977b8
Update README.md
zirafa May 9, 2018
ac6714b
Update README.md
zirafa May 16, 2018
ecfcabe
Update .gitignore to block more files and initial changes to svg2mod
NaH012 Aug 13, 2018
576f3b7
Update legacy to support layers and update readme
NaH012 Aug 13, 2018
fad7bc3
Added centering as an option and remove front only option
NaH012 Aug 13, 2018
8b912e1
Fix README.md
NaH012 Aug 14, 2018
c879207
Remove null flags
NaH012 Aug 14, 2018
7337745
Add more options for pretty format
NaH012 Aug 14, 2018
8115775
Update README.md
NaH012 Aug 23, 2018
fae2216
Changed the model attribute to virtual
NaH012 Aug 23, 2018
5a6b18b
Fix closepath per https://github.com/cjlano/svg/pull/12
markrages Feb 15, 2019
7305ca5
Merge branch 'export-as-virtual' of https://github.com/matthijskooijm…
terje Feb 28, 2020
d9f0211
Merge branch 'matthijskooijman-export-as-virtual'
terje Feb 28, 2020
5de0727
Update .gitignore to block more files and initial changes to svg2mod
NaH012 Aug 13, 2018
389af93
Update legacy to support layers and update readme
NaH012 Aug 13, 2018
da01c78
Added centering as an option and remove front only option
NaH012 Aug 13, 2018
5fc8d98
Fix README.md
NaH012 Aug 14, 2018
78a2857
Remove null flags
NaH012 Aug 14, 2018
93b978c
Add more options for pretty format
NaH012 Aug 14, 2018
0f40b47
Update README.md
NaH012 Aug 23, 2018
bd72004
Merge branch 'master' of https://github.com/zirafa/svg2mod into ziraf…
terje Feb 28, 2020
ebfd086
Merge branch 'zirafa-master'
terje Feb 28, 2020
0c4627a
Do not close non-filled polygons
marcan Dec 1, 2018
c162c8e
Fix stroke-width calculation for non-px units
marcan Dec 3, 2018
3b41684
Remove empty style values
terje Feb 28, 2020
36853c9
Merge terje/svg2mod into master
Sodium-Hydrogen Mar 10, 2020
f5aedbf
Merge branch 'master' of https://github.com/terje/svg2mod into terje-…
Sodium-Hydrogen Mar 10, 2020
25b9611
Merge branch 'terje-master'
Sodium-Hydrogen Mar 10, 2020
29f3d63
Update pip instructions
Sodium-Hydrogen Mar 10, 2020
a98b694
travis ci testing
Sodium-Hydrogen Mar 10, 2020
cd2616d
Add a sample test
Sodium-Hydrogen Mar 10, 2020
b9d5690
Better test
Sodium-Hydrogen Mar 10, 2020
4b4ea89
Update Readme.md
Sodium-Hydrogen Mar 10, 2020
2ef7007
Merge branch 'render-o-properly' of https://github.com/markrages/svg2…
Sodium-Hydrogen Mar 10, 2020
c1d9bdd
Merge branch 'markrages-render-o-properly'
Sodium-Hydrogen Mar 10, 2020
151cd9f
Fix problem when merging
Sodium-Hydrogen Mar 10, 2020
c9004b7
Merge pull request #1 from Sodium-Hydrogen/master
Sodium-Hydrogen Mar 12, 2020
06ce17e
Update README.md
Sodium-Hydrogen Mar 12, 2020
5b091f8
Update README.md
Sodium-Hydrogen Mar 12, 2020
ef32ae5
Update README.md
Sodium-Hydrogen Mar 12, 2020
ab1eb8d
upgrade shebang to python3, add __main__ check when ran
javl May 6, 2020
d2ee528
Merge pull request #3 from javl/PR-1
Sodium-Hydrogen May 8, 2020
747fea8
Add option to skip hidden layers
giuliomoro Oct 8, 2020
1666adc
Better svg example to work with
Sodium-Hydrogen Oct 9, 2020
415fcf6
Update version and fix .travis
Sodium-Hydrogen Oct 9, 2020
8e7790f
Merge pull request #7 from giuliomoro/feat/ignore-hidden-layers-2
Sodium-Hydrogen Oct 9, 2020
6e648c4
Fix readme instructions
Sodium-Hydrogen Oct 9, 2020
0acdbb7
Merge pull request #9 from Sodium-Hydrogen/master
Sodium-Hydrogen Oct 9, 2020
eb527e6
Update documentation because package is on pypi
Sodium-Hydrogen Oct 10, 2020
5c2a61b
Merge pull request #10 from Sodium-Hydrogen/master
Sodium-Hydrogen Oct 10, 2020
05a476a
Updated travis to build/publish, Added pad creation
Sodium-Hydrogen Oct 13, 2020
1bb542c
Fix error with .travis.yml
Sodium-Hydrogen Oct 13, 2020
348074d
More deploy tweaks
Sodium-Hydrogen Oct 13, 2020
205c1f8
test publishing
Sodium-Hydrogen Oct 13, 2020
b60662a
Finalize travis for official deploy
Sodium-Hydrogen Oct 13, 2020
01cd226
Merge pull request #11 from Sodium-Hydrogen/master
Sodium-Hydrogen Oct 13, 2020
3505b97
Update .travis.yml
Sodium-Hydrogen Oct 13, 2020
3739b5a
Update Doc and remove support for python 2.7
Sodium-Hydrogen Oct 13, 2020
dfbabc6
Update .travis.yml
Sodium-Hydrogen Oct 13, 2020
5bfa71d
Fixed hole inlining and added verbose flag
Sodium-Hydrogen Oct 14, 2020
86e54b5
Add legacy testing
Sodium-Hydrogen Oct 15, 2020
fc8676c
Update documentation
Sodium-Hydrogen Oct 15, 2020
7b9871e
Merge pull request #12 from Sodium-Hydrogen/master
Sodium-Hydrogen Oct 15, 2020
e164f7d
Allow travis to upload bdist_wheel
Sodium-Hydrogen Oct 15, 2020
4be236f
Small changes to make documentation clearer
Sodium-Hydrogen Oct 15, 2020
664ee86
Fix verbose flag and stroke width calulation
Sodium-Hydrogen Oct 23, 2020
277c531
Added support for Rect and Cricle elements
Sodium-Hydrogen Oct 23, 2020
edc86e9
Merge pull request #14 from Sodium-Hydrogen/master
Sodium-Hydrogen Oct 23, 2020
7be2f63
Fixed crash and added support for rect rotation
Sodium-Hydrogen Oct 24, 2020
2114502
Fix documentation
Sodium-Hydrogen Oct 24, 2020
a9915dd
Update README.md
Sodium-Hydrogen Oct 24, 2020
678b53d
bug fix for #17
Sodium-Hydrogen Oct 26, 2020
a0a3986
Bug fix for #19
Sodium-Hydrogen Nov 20, 2020
7219610
Migrated output to be used via python logging
Sodium-Hydrogen Jan 14, 2021
9804379
Rework the logger so it can use stderr and stdout
Sodium-Hydrogen Jan 28, 2021
35509cd
Fix conversion of files without viewBox
matthijskooijman Feb 11, 2021
07e4ad9
Merge pull request #22 from matthijskooijman/fix-no-viewbox
Sodium-Hydrogen Feb 11, 2021
3650969
Merge branch 'master' of github.com:svg2mod/svg2mod
Sodium-Hydrogen Feb 12, 2021
ba810ec
Add import math, needed for transform: rotate
matthijskooijman Feb 12, 2021
7faafb0
Remove scale/translate/rotate methods
matthijskooijman Feb 12, 2021
9f3479d
Fix nested transformations for Ellipse, Rect and Line
matthijskooijman Feb 12, 2021
6123b69
Apply commandline scaling factor to stroke widths
matthijskooijman Feb 13, 2021
14fb3f6
Remove unused variable
matthijskooijman Feb 13, 2021
94f4f99
Write the full svg2mod commandline to the output file
matthijskooijman Feb 13, 2021
5f07359
Clarify meaning of --precision option
matthijskooijman Feb 13, 2021
5bd81c5
Added arc support for the svg parser
Sodium-Hydrogen Feb 15, 2021
76711b9
Merge branch 'master' of github.com:svg2mod/svg2mod
Sodium-Hydrogen Feb 15, 2021
6a12529
Merge pull request #29 from matthijskooijman/small-improvements
Sodium-Hydrogen Feb 17, 2021
8619c75
Create FUNDING.yml
Sodium-Hydrogen Feb 18, 2021
54a8ee8
Merge branch 'master' of github.com:svg2mod/svg2mod
Sodium-Hydrogen Feb 18, 2021
399593a
Added support for inkscape arc object
Sodium-Hydrogen Feb 22, 2021
63247e1
Clean up import statements
Sodium-Hydrogen Feb 23, 2021
01256c3
Update svg2mod/svg/README.md
Sodium-Hydrogen Feb 23, 2021
a340616
Update README.md
Sodium-Hydrogen Feb 23, 2021
d2987c2
Merge pull request #32 from Sodium-Hydrogen/master
Sodium-Hydrogen Feb 23, 2021
3dfc09d
Merge branch 'master' into scaling-fixes
Sodium-Hydrogen Feb 24, 2021
5bcd6a5
Merge pull request #28 from matthijskooijman/scaling-fixes
Sodium-Hydrogen Feb 24, 2021
399ba79
Update .travis.yml
Sodium-Hydrogen Mar 9, 2021
103590e
Added text support and better path inlining
Sodium-Hydrogen Mar 13, 2021
9f24174
Clean up comments and fix readme links
Sodium-Hydrogen Mar 13, 2021
fdb6556
Merge branch 'main' of github.com:svg2mod/svg2mod into main
Sodium-Hydrogen Mar 13, 2021
71e35e5
Add default value to write() function
Sodium-Hydrogen Mar 13, 2021
2bce065
Fix setup.py to have fonttools as dep
Sodium-Hydrogen Mar 13, 2021
3acbce2
add linter
Mar 15, 2021
7930c1c
update spellings
Mar 15, 2021
c681b16
Make linting more verbose
Sodium-Hydrogen Mar 15, 2021
97731bd
fix some linting
Sodium-Hydrogen Mar 15, 2021
34397ca
Document code and work on adding linting
Sodium-Hydrogen Mar 20, 2021
df8ce0a
Update license to comply with GPL license
Sodium-Hydrogen Mar 26, 2021
75ebcb8
Update setup.py to reflect new license
Sodium-Hydrogen Mar 26, 2021
25085c7
Update .travis.yml
Sodium-Hydrogen Mar 27, 2021
795c41a
Update .travis.yml
Sodium-Hydrogen Mar 27, 2021
9a193bf
Update svg2mod/svg/svg.py
Sodium-Hydrogen Mar 27, 2021
0133458
Update .travis.yml
Sodium-Hydrogen Mar 27, 2021
26d9c5f
Clean up spelling
Sodium-Hydrogen Mar 27, 2021
314ec6e
Merge pull request #33 from Sodium-Hydrogen/main
Sodium-Hydrogen Mar 27, 2021
deed8ea
Fix license name
Sodium-Hydrogen Mar 27, 2021
9aff2dd
Fix command line arguments and documentation
Sodium-Hydrogen Apr 5, 2021
e618143
Fix missing ticks
Sodium-Hydrogen Apr 5, 2021
09cc0ea
Merge pull request #34 from Sodium-Hydrogen/main
Sodium-Hydrogen Apr 5, 2021
5b10513
Fix a bug with text parsing and hole inlining
Sodium-Hydrogen Apr 7, 2021
d4741c7
Fix exit code when using -l
Sodium-Hydrogen Apr 7, 2021
94b3696
Merge pull request #35 from Sodium-Hydrogen/main
Sodium-Hydrogen Apr 8, 2021
eb67056
Update README.md
Sodium-Hydrogen Apr 10, 2021
dab7905
Bug fixes and better font parsing
Sodium-Hydrogen Dec 18, 2021
a565354
Merge pull request #41 from Sodium-Hydrogen/main
Sodium-Hydrogen Dec 18, 2021
bd6195d
Move from travis-ci to github actions
Sodium-Hydrogen Dec 20, 2021
51f5258
Merge branch 'main' of github.com:/svg2mod/svg2mod into main
Sodium-Hydrogen Dec 20, 2021
b95b548
Delete pylint.yml
Sodium-Hydrogen Dec 20, 2021
b752909
Remove pypi testing url
Sodium-Hydrogen Dec 20, 2021
f728eac
Update python-package.yml
Sodium-Hydrogen Dec 20, 2021
675e710
Update python-package.yml
Sodium-Hydrogen Dec 20, 2021
b8c96e9
Update badges for github actions
Sodium-Hydrogen Dec 20, 2021
2150d9b
Merge pull request #42 from Sodium-Hydrogen/main
Sodium-Hydrogen Dec 20, 2021
403719c
Fix typo in readme
Sodium-Hydrogen Jan 3, 2022
a29aacf
Introduce issue templates
Sodium-Hydrogen Jan 3, 2022
112ba79
Add config.yml to issues templates
Sodium-Hydrogen Jan 3, 2022
80dbafd
Update README.md
Sodium-Hydrogen Jan 3, 2022
f509c29
Update badges to look better and add more
Sodium-Hydrogen Jan 15, 2022
d7446ff
Add rotated arcs and a faster inlining algorithm.
Sodium-Hydrogen Jan 22, 2022
3806f83
Fix some issues with distinct detection
Sodium-Hydrogen Jan 22, 2022
576747e
Added keepout, drill, and layer options
Sodium-Hydrogen Jan 28, 2022
9427754
Add readme clarification
Sodium-Hydrogen Jan 28, 2022
97468c7
Fix some small bugs and update the example
Sodium-Hydrogen Jan 28, 2022
8e05386
Fix a bug with box sizing not updating
Sodium-Hydrogen Jan 29, 2022
c869338
Fix for improper distinct detection
Sodium-Hydrogen Jan 31, 2022
c204392
Update downloads badge
Sodium-Hydrogen Jan 31, 2022
dee1068
Added style inheritance, better stroke detection..
Sodium-Hydrogen Jan 31, 2022
76e0d30
update downloads badge
Sodium-Hydrogen Feb 1, 2022
f5b3c05
Force layer option
Sodium-Hydrogen Feb 2, 2022
c8ab8fd
Merge branch 'main' of github.com:/Sodium-Hydrogen/svg2mod into main
Sodium-Hydrogen Feb 2, 2022
3dda55d
Remove commented code
Sodium-Hydrogen Feb 2, 2022
9fd6afd
Update Readme.md
Sodium-Hydrogen Feb 2, 2022
9df7126
Re-add support for pretty pre kicad v6
Sodium-Hydrogen Feb 2, 2022
153b89b
Switch to stop using the 'root' logger
Sodium-Hydrogen Feb 2, 2022
faad6d9
Fix empty writing detection
Sodium-Hydrogen Feb 2, 2022
d7df1cc
Improve output for paths with < 3 points
Sodium-Hydrogen Feb 3, 2022
b620af0
Revert downloads badge to pypistats.org
Sodium-Hydrogen Feb 4, 2022
9355f87
Merge pull request #43 from Sodium-Hydrogen/main
Sodium-Hydrogen Feb 4, 2022
e20379c
Add variable hatching for keepout zones
Sodium-Hydrogen Feb 4, 2022
adab009
Add markdown linting
Sodium-Hydrogen Apr 1, 2022
39ac4b0
README: Information regarding web application added
InputBlackBoxOutput Jul 10, 2022
39aae2b
Improve UX with better error msg and cli
Sodium-Hydrogen Jul 11, 2022
ea16fc3
Merge pull request #47 from Sodium-Hydrogen/main
Sodium-Hydrogen Jul 11, 2022
87f890d
Add new hatch arguments to readme
Sodium-Hydrogen Jul 11, 2022
def906e
README: Web applications list
InputBlackBoxOutput Jul 11, 2022
5cbf86f
README: Fix linting errors
InputBlackBoxOutput Jul 15, 2022
6df70c8
Merge pull request #46 from InputBlackBoxOutput/main
Sodium-Hydrogen Jul 19, 2022
3e12a89
Fix failed checks for readme linting
Sodium-Hydrogen Jul 19, 2022
e912765
Fix bugs and work on non-inkscape support.
Sodium-Hydrogen Nov 1, 2022
452c9ab
Cleanup code and fix basic polygon parsing
Sodium-Hydrogen Nov 1, 2022
901c540
Fix ellipse and arc bounding box calculations.
Sodium-Hydrogen Nov 1, 2022
54db146
Fix bug with circle/ellipse bounding box calc
Sodium-Hydrogen Nov 1, 2022
8c1ba4e
Clean up spelling in code
Sodium-Hydrogen Nov 1, 2022
5a65c66
Fix bug with arc bounding box
Sodium-Hydrogen Nov 1, 2022
817be91
Finish polygon support and better style supports.
Sodium-Hydrogen Nov 8, 2022
7e0a88e
Merge pull request #53 from Sodium-Hydrogen/main
Sodium-Hydrogen Nov 8, 2022
d912ff2
svg.text: Pass through glyphSet not method
gregdavill Nov 20, 2022
75a21d0
Merge pull request #55 from gregdavill/bugfix/fonttools_glyph_error
Sodium-Hydrogen Nov 22, 2022
d9b5dd0
Fix auto build badge
Sodium-Hydrogen Feb 1, 2023
19579d7
fix(regex units and matrix scaling)
ivan-the-terrible Feb 24, 2025
ab2f581
fix(updated logic on default case for scaling functions and fixed typ…
ivan-the-terrible Feb 25, 2025
db0ecfe
Merge pull request #64 from ivan-the-terrible/bugs/scaling-transforma…
Sodium-Hydrogen Feb 25, 2025
8bc51ed
fix(update scaling technique to use absolute values)
ivan-the-terrible Mar 3, 2025
07d7f72
Merge pull request #65 from ivan-the-terrible/bugs/scaling-strokeWidt…
Sodium-Hydrogen Mar 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# These are supported funding model platforms

github: [Sodium-Hydrogen]
61 changes: 61 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Report an issue with svg2mod
description: Report an issue with svg2mod.
labels: [bug, unconfirmed]
body:
- type: markdown
attributes:
value: |
This issue form is for reporting bugs only!

If you have a feature or enhancement request, please use the [ideas category][fr] in the github discussions.

[fr]: https://github.com/svg2mod/svg2mod/discussions/categories/ideas

- type: textarea
validations:
required: true
attributes:
label: The problem
description: |
Describe the issue you are experiencing here, to communicate to the
maintainers. Tell us what you were trying to do and what happened.

Provide a clear and concise description of what the problem is.

- type: input
validations:
required: true
attributes:
label: Version
description: |
The version of svg2mod you are using.

If installed via pip you can use `pip show svg2mod` to get the version.

Otherwise `git describe --tag` if you installed locally.

- type: input
validations:
required: true
id: command_line
attributes:
label: Command line
description: >
The command that when run will reproduce the error.

- type: textarea
validations:
required: true
attributes:
label: Debug output
description: The output of the command. Please use the `--debug` flag.
render: txt

- type: textarea
validations:
required: true
attributes:
label: Sample file and additional information
description: |
__Please attach a sample file__ that will trigger the issue and
if you have any additional information for us, use the field below.
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Feature Request
url: https://github.com/svg2mod/svg2mod/discussions/categories/ideas
about: Please use our GitHub Discussions board for making feature requests.
- name: Questions
url: https://github.com/svg2mod/svg2mod/discussions/categories/q-a
about: The issue tracker is only for issues. Please keep all other questions and discussions to GitHub Disscussions.
27 changes: 27 additions & 0 deletions .github/workflows/markdown-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Documentation Linting

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Installing dependencies
run: |
npm install -g markdownlint-cli2
npm install -g cspell
- name: Lint
run: markdownlint-cli2-config ".linter/.markdownlint.yaml" "*.md"
- name: Spellcheck
run: cspell -c .linter/cspell.json "*.md" --show-suggestions

46 changes: 46 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Python lint and test

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10"]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install wheel pytest pylint pyenchant ./
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with pylint
run: |
pylint --rcfile .linter/cleanup.rc svg2mod setup.py
- name: Test with pytest
run: |
python setup.py test
- name: Run svg tests
run: |
svg2mod -i examples/svg2mod.svg -o output.mod -x -c -P --name TEST --value VALUE -f 2 -p 1 --format legacy --units mm -d 300 --debug
svg2mod -i examples/svg2mod.svg --format legacy --force F.Cu
svg2mod -i examples/svg2mod.svg --format legacy -o output.mod
svg2mod -i examples/svg2mod.svg --format pretty --debug --force F.Cu -x
svg2mod -i examples/svg2mod.svg --debug
svg2mod -i examples/svg2mod.svg
svg2mod -l
37 changes: 37 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Upload Python Package

on:
release:
types: [published]

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wheel setuptools
- name: Build package
run: python setup.py bdist_wheel sdist
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
*~
.*.sw?
*.pyc
build
dist
svg2mod.egg-info
.eggs
*.kicad_mod
*.mod
*.svg
__pycache__
.pytest_cache
Pipfile
Pipfile.lock
.vscode
*.zip
*.cmd
*.sh
4 changes: 4 additions & 0 deletions .linter/.markdownlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
default: true

MD013:
line_length: 100
Loading