Eleminiere Abhängigkeit von perl und php. #604

Merged
hrnz merged 2 commits from htgoebel/neo-layout:master into master 2022-02-11 01:33:11 +01:00
Contributor

Siehe commit-messages für Details.

Siehe commit-messages für Details.
htgoebel added 2 commits 2022-02-06 17:48:55 +01:00
4db350cb29 Eliminate the need for perl.
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.
0982d8234a Eliminate the need for php.
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.
htgoebel changed title from Eleminiere Abhängigkeit von perl unf php. to Eleminiere Abhängigkeit von perl und php. 2022-02-06 17:49:18 +01:00
Owner

Ich denke, es spricht nicht wirklich was dagegen. Die Unmengen an Abhängigkeiten, die zum Erstellen aller Grafiken notwendig waren, waren schon sehr unschön und der neue Code ist auch sauberer als der alte. Die Ausgabe scheint identisch zu sein.

Prinzipiell würde ich es bevorzugen, wenn alle Bilder aus dem gleichen Skript (mit unterschiedlichen Templates) erzeugt werden könnten. Irgendwann mal, falls jemand sehr viel Langeweile hat, der Nutzen ist ja eher gering.

Ich denke, es spricht nicht wirklich was dagegen. Die Unmengen an Abhängigkeiten, die zum Erstellen aller Grafiken notwendig waren, waren schon sehr unschön und der neue Code ist auch sauberer als der alte. Die Ausgabe scheint identisch zu sein. Prinzipiell würde ich es bevorzugen, wenn alle Bilder aus dem gleichen Skript (mit unterschiedlichen Templates) erzeugt werden könnten. Irgendwann mal, falls jemand sehr viel Langeweile hat, der Nutzen ist ja eher gering.
hrnz merged commit 2f8c93f1e4 into master 2022-02-11 01:33:11 +01:00
Sign in to join this conversation.
No description provided.