ehmkah / asciidoctor-letter-DIN5008

DIN5008 related generation of letters via asciidoctor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

asciidoctor-letter-DIN5008

DIN5008 related generation of letters via asciidoctor.

HOWTO run

Requirements

  • ruby version higher than 2.7.2

  • asciidoctor-pdf installed

    • Install asciidoctor-pdf with gem - gem install asciidoctor-pdf

Running

  • Go do data directory - cd data

  • Run generate script with letter - ./generate-letter.sh ../content/2023-02-25-example.adoc

  • View the result - open ../content/2023-02-25-example.pdf

Running with docker

  • install docker on your machine

  • build docker image - docker build . -t asciidoctor-letter

  • run script generate-letter.sh <pathToYouradocFile> - e.g. ./generate-letter.sh content/b.adoc

Description

The generator is splited in two parts: 1. asciidoc data-file that sets the letter-layout 2. asciidoc content-file that defines the letter text and the attributes like addresses, date, etc.

To generate letter, compile the data-file via asciidoctor.

To handle the files in there directories you can use the script-file

The file falz.svg contains an image which gives you hints where to falz your letter so you can put it into an envelop.

About

DIN5008 related generation of letters via asciidoctor

License:Creative Commons Zero v1.0 Universal


Languages

Language:Shell 78.9%Language:Dockerfile 21.1%