Unter *BSD ist bash häufig unter /usr/local/bin installiert, und bei NixOS ist ausschließlich /bin/sh und /usr/bin/env zu finden.
Dieser Commit ändert absolute Pfadangaben auf solche um, die sich an $PATH halten (z.B. mit /usr/bin/env)
Replace the only php script in "grafik" by a python script.
Unfortunately this requires the Python package "lxml" (which is
commonly used, though), since the "xml" package from the Python
standard library is not quite capable.
Since the original php script created a quite ugly and redundant svg
file, I took the one from "grafik/bilder-einzeln/flat" as a basis.
The new image is a bit different from the original, as it takes some
ideas from "grafik/aufkleber/alle-grau-1234.py". Anyhow, almost all
design parameters can be adjusted in the the stylesheet.
Replace the only perl script in "grafik" by a python script.
Unfortunately this requires the Python package "lxml" (which is
commonly used, though), since the "xml" package from the Python
standard library is not quite capable.
I put special care in the Python script to generate the same svg as
the perl script - although both are not identical. Differences are
e.g. trailing zeros in fractional numbers and slightly different xml
formatting.
The 3d images have this and is quite usable for OSD keyboards.
Anyhow, the way the caps-lock mappings are create is a bit straight
forward: The Python script maps the letters to upper/lower case. A
better way would be to get this information from the keymap.
These are useful for to displaying in OSD programs if there is no
known state.
The images for neo, adwn, koy and bone are identical. Anyhow, vou and
mine are different and it is easier for programs to use if all images
exist.
Dio Option verhindert, dass perl beim laden von Modulen die
PERL5LIB-umgebungsvariable respektiert und hat keinen erkennbaren Nutzen außer
die Kompatibilität einzuschränken.
Nun sind die Aufkleber ziemlich genau 14mm hoch, was der Größe der
Tasten meiner Testtastatur entspricht. Damit man die Aufkleber immer
noch alle auf einmal drucken kann, wurde der Ziffernblock etwas weiter
nach links gerückt (Gesamtbreite liegt nun knapp unter 28cm, bei
Druckern, deren Druckfläche nicht so groß ist, muss man zwei mal
drucken). Fehler in der Grafik sind mir keine aufgefallen.
Closes#159
Die vorhandenen Ebenen wurden an die finale Version von Neo angepasst, vorher
waren ein paar Akzente und Navigationstasten der vierten Ebene noch anders und
viele Tasten nicht belegt.
Es werden folgenden Probleme behoben:
- auf der zweiten Ebene ist statt der Tilde eine zweite Cedille.
- Die Leertaste ist nicht beschriftet
Weiter wurden generierte Dateien entfernt, die verschiedenen Templates
zusammengefasst und das Erzeugungsshellskript durch ein Makefile
ersetzt.
Closesneo/dokumentation#18.
Die Grafiken, die erzeugt werden, ähneln sehr denen aus /grafik/flat,
da das svg-template quasi übernommen wurde. So können nun problemlos
Grafiken für alle Varianten erzeugt werden. Leider sind ein paar Sachen
hardgecoded, so dass es nicht für "jedes" xkb-Layout funktioniert.