ethica

Spinozas ethics and various translations, edited for easy post processing.
git clone https://git.repetitions.de/ethica
commit 98b72818cca336365e8961a4a7a5af91f79d3401
parent 3f9c023b0e113033abd7cd817335f73884bf09df
Author: lou woell <lou@repetitions.de>
Date:   Mon, 19 Oct 2026 19:49:15 +0200

break some overlong lines

Diffstat:
Mlisp/ethics.lisp | 21+++++++++++++--------
1 file changed, 13 insertions(+), 8 deletions(-)

diff --git a/lisp/ethics.lisp b/lisp/ethics.lisp @@ -31,9 +31,10 @@ (defun import-versions (config tbl) (loop :for path :in (loop :with data-dir := (getf config :data-dir) :for v :in (getf config :versions) - :collect (make-pathname :directory - (append (pathname-directory data-dir) - (list v)))) + :collect (make-pathname + :directory + (append (pathname-directory data-dir) + (list v)))) :as fname := (car (last (pathname-directory path))) :as data := (read-version fname path tbl) :collect @@ -44,7 +45,9 @@ :language (gethash "language" data) :types (gethash "types" data) :meta data - :file (make-pathname :name fname :type "html")))) + :file (make-pathname + :name fname + :type "html")))) (format t "Version: ~S~&" v) v) :into versions :finally (return (cons tbl versions)))) @@ -71,7 +74,8 @@ :finally (return (gethash "ethica" tbl)))) (defun import-ethics (config) - (let ((tbl (jzon:parse (merge-pathnames #p"meta.json" (getf config :data-dir))))) + (let ((tbl (jzon:parse (merge-pathnames + #p"meta.json" (getf config :data-dir))))) (build-tree tbl) (import-versions config tbl))) @@ -100,9 +104,10 @@ (defun write-ethics (config) (destructuring-bind (ethica &rest versions) (import-ethics config) - (process-to-file (merge-pathnames #p"index.chtml" (getf config :template-dir)) - (merge-pathnames #p"index.html" (getf config :build-dir)) - :versions versions) + (process-to-file + (merge-pathnames #p"index.chtml" (getf config :template-dir)) + (merge-pathnames #p"index.html" (getf config :build-dir)) + :versions versions) (dolist (version versions) (let ((key (getf version :key))) (format t "Writing: ~a~&" key)