layout2image.py- generate KLE style SVG image from keyboard layoutlayout2url.py- generate KLE urllayout2openscad.py- generate plate for openscad (:warning: experimental)
The kbplacer project uses pyprojet.toml with hatch project manager.
It defines tools environment with required dependencies and scripts.
To execute, run:
$ hatch run tools:layout2image {args...}
$ hatch run tools:layout2url {args...}
$ hatch run tools:layout2openscad {args...}Alternatively, install required dependencies and run as regular python script:
python tools/layout2image.py {args...}
python tools/layout2url.py {args...}
python tools/layout2openscad.py {args...}To generate layout image based on layout file:
hatch run tools:layout2image --in tests/data/ergogen-layouts/absolem-simple-points.yaml \
--out absolem.svgTo generate KLE url for run:
hatch run tools:layout2url --in tests/data/ergogen-layouts/absolem-simple-points.yamlThis will produce following link.
To convert ergogen layouts to KLE see layout and format conversion script
Warning
Tools are not yet part of kbplacer package and are tested mostly by-hand.
To execute limited tests we have run hatch run tools:test.