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. |
||
---|---|---|
.. | ||
_not_working | ||
aufkleber | ||
aufsteller | ||
bilder-einzeln | ||
bilder-uebersicht | ||
handbuch-cover | ||
heatmap | ||
logos | ||
maskottchen | ||
trailer | ||
common.mk | ||
COPYING | ||
Makefile | ||
Readme.md | ||
shell.nix |
Readme
Die meisten der Neo-Grafiken gibt es in vier Formaten:
- svg
- svg mit Text in Pfade umgewandelt
- png
In diesem Reposity befinden sich aber nur svgs und Skripte, mit denen man noch mehr svgs (aus Treibern oder Referenzen) und daraus dann die anderen Formate erstellt. Die fertigen Grafiken befinden sich aber auf https://dl.neo-layout.org/grafik .
Um alle Bilder erzeugen können, benötigt man eine Vielzahl an Abhängigkeiten:
- make
- inkscape
- optipng
- imagemagick
- libicns
- libreoffice
- sed
- ed
- libxkbcommon (xkbcli)
- python mit jinja2, numpy, pandas, matplotlib, seaborn und lxml
- Linux Libertine
- Gentium Plus Compact
- DejaVu Sans Mono
- vermutlich noch weitere Schriften
Sind alle Abhängigkeiten erfüllt, sollte man alle Bilder mit make
erstellen
können. Man kann make
auch in jedem Unterverzeichnis ausführen, um jeweils
weniger Bilder zu generieren. Außerdem können gewünschte Formate oder gar
Dateinamen direkt als Target übergeben werden•
`