commit 6f89a071584fcadd6ce122b3dcae2d176a079cf1 Author: Jörn-Michael Miehe Date: Mon May 5 21:46:16 2025 +0000 Initial commit diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..b025bb8 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,4 @@ +FROM docker.io/ldericher/autodoc:diagram + +# source: https://stackoverflow.com/a/39420880 +COPY pdfa /opt/pdfa diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..411d405 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,42 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/debian +{ + "name": "lev-templates", + + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + // "image": "docker.io/ldericher/autodoc:diagram", + "build": { "dockerfile": "Dockerfile" }, + + // Features to add to the dev container. More info: https://containers.dev/features. + "features": { + "ghcr.io/devcontainers/features/common-utils:2": { + "configureZshAsDefaultShell": "true" + }, + "ghcr.io/devcontainers/features/git:1": {}, + "ghcr.io/devcontainers-contrib/features/git-lfs:1": {}, + "ghcr.io/devcontainers-extra/features/apt-get-packages:1": { + "packages": "pdftk,poppler-utils" + } + }, + + // Ensure git is installed before git-lfs + "overrideFeatureInstallOrder": [ + "ghcr.io/devcontainers/features/common-utils", + "ghcr.io/devcontainers/features/git" + ], + + // Configure tool-specific properties. + "customizations": { + "vscode": { + "extensions": [ + "mhutchie.git-graph" + ] + } + }, + + // Set `remoteUser` to `root` to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. + "remoteUser": "vscode" + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], +} diff --git a/.devcontainer/pdfa/PDFA_def.ps b/.devcontainer/pdfa/PDFA_def.ps new file mode 100644 index 0000000..158cf3f --- /dev/null +++ b/.devcontainer/pdfa/PDFA_def.ps @@ -0,0 +1,39 @@ +%! +% This prefix file for creating a PDF/A document is derived from +% the sample included with Ghostscript 9.07, released under the +% GNU Affero General Public License. +% Modified 4/15/2013 by MCB Systems. + +% Feel free to modify entries marked with "Customize". + +% This assumes an ICC profile to reside in the file (AdobeRGB1998.icc), +% unless the user modifies the corresponding line below. + +% The color space described by the ICC profile must correspond to the +% ProcessColorModel specified when using this prefix file (GRAY with +% DeviceGray, RGB with DeviceRGB, and CMYK with DeviceCMYK). + +% Define entries in the document Info dictionary : + +/ICCProfile (/opt/pdfa/bin/AdobeRGB1998.icc) % Customize. +def + +[ /Title (Title) % Customize. + /DOCINFO pdfmark + +% Define an ICC profile : + +[/_objdef {icc_PDFA} /type /stream /OBJ pdfmark +[{icc_PDFA} <> /PUT pdfmark +[{icc_PDFA} ICCProfile (r) file /PUT pdfmark + +% Define the output intent dictionary : + +[/_objdef {OutputIntent_PDFA} /type /dict /OBJ pdfmark +[{OutputIntent_PDFA} << + /Type /OutputIntent % Must be so (the standard requires). + /S /GTS_PDFA1 % Must be so (the standard requires). + /DestOutputProfile {icc_PDFA} % Must be so (see above). + /OutputConditionIdentifier (default_rgb) % Customize +>> /PUT pdfmark +[{Catalog} <> /PUT pdfmark \ No newline at end of file diff --git a/.devcontainer/pdfa/bin/AdobeRGB1998.icc b/.devcontainer/pdfa/bin/AdobeRGB1998.icc new file mode 100644 index 0000000..647df8a --- /dev/null +++ b/.devcontainer/pdfa/bin/AdobeRGB1998.icc @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:304f569a83c1e5eddaddac54e99ed03339333db013738bb499ab64f049887e28 +size 560 diff --git a/.devcontainer/pdfa/bin/gs-919-linux_x86_64 b/.devcontainer/pdfa/bin/gs-919-linux_x86_64 new file mode 100755 index 0000000..d713181 --- /dev/null +++ b/.devcontainer/pdfa/bin/gs-919-linux_x86_64 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5de34d3ad386a3998d29d0d4e59ef6620f8fac637587f3840601455dc596a6aa +size 17983531 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..a6d29bd --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +.devcontainer/pdfa/bin/* filter=lfs diff=lfs merge=lfs -text diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..7d3c485 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,8 @@ +{ + "recommendations": [ + "tomoki1207.pdf" + ], + "unwantedRecommendations": [ + "ms-vscode.makefile-tools" + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..8274d2c --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "git.closeDiffOnOperation": true +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..2c82efc --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,17 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "Autodoc: Build & Watch", + "type": "shell", + "command": "autodoc -bw", + "problemMatcher": [], + "group": { + "kind": "build", + "isDefault": true + } + } + ] +} \ No newline at end of file