OneDeadKey / kalamine

Keyboard Layout Maker
MIT License
105 stars 29 forks source link

SVG output #54

Closed fabi1cazenave closed 7 months ago

fabi1cazenave commented 8 months ago

<x-keyboard> does a good job on most web pages, but an SVG output would be nice to have in order to embed keyboard layout drawings in other documents — PDFs, markdown, etc.

@Ced-C has provided a nice proof of concept here: https://gist.github.com/Ced-C/6fbc2f1bc47a23dd572b0c65b98b1e53

And I started #46 to work on a kalamine implementation. I think it would be a good way to start hacking on kalamine, so I’m leaving this PR alone for a moment to let time to contributors to pick it up.

I think we only need one output SVG. It should display a good default view (base and shift layers, with AltGr and/or 1dk dimmed), and that SVG document should be fairly easy to tweak thanks to the root classes.

fabi1cazenave commented 7 months ago

Fixed by #69.