From 802e2c200c4db8f8ab9987259bb5dd7c6d1a275d Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Fri, 12 Dec 2025 21:50:57 +0100 Subject: track hyphenation --- .gitignore | 1 + before-title.tex | 2 ++ hyph_ok_american.txt | 9 ++++++++ hyph_ok_any.txt | 4 ++++ hyph_ok_danish.txt | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++ report.qmd | 14 ++++++++++++ 6 files changed, 90 insertions(+) create mode 100644 before-title.tex create mode 100644 hyph_ok_american.txt create mode 100644 hyph_ok_any.txt create mode 100644 hyph_ok_danish.txt diff --git a/.gitignore b/.gitignore index 759fb99..a8579b5 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ **/*.quarto_ipynb _site/ _LIB +*.uhy diff --git a/before-title.tex b/before-title.tex new file mode 100644 index 0000000..a12bb98 --- /dev/null +++ b/before-title.tex @@ -0,0 +1,2 @@ +% refine hyphenation +\babelhyphenmins{3}{3} diff --git a/hyph_ok_american.txt b/hyph_ok_american.txt new file mode 100644 index 0000000..6b297e7 --- /dev/null +++ b/hyph_ok_american.txt @@ -0,0 +1,9 @@ +con-stants +contractarian-ism +contractu-alism +copy-right +founda-tion +innova-tion +jurispru-dence +obli-gations +philosophi-cal diff --git a/hyph_ok_any.txt b/hyph_ok_any.txt new file mode 100644 index 0000000..952e2dd --- /dev/null +++ b/hyph_ok_any.txt @@ -0,0 +1,4 @@ +cappe-len +chop-ra +httpssourceabcdefghijklmnopqr-stuvxyzæøådkcopyleft +stan-ford diff --git a/hyph_ok_danish.txt b/hyph_ok_danish.txt new file mode 100644 index 0000000..ce68ea3 --- /dev/null +++ b/hyph_ok_danish.txt @@ -0,0 +1,60 @@ +aktø-rers +balka-nisering +begrænsnin-ger +bern-erkonventionen +beva-rel-sen +bevidsthe-dens +bre-deste +bru-gere +copy-right +der-med +egen-interesser +ende-lige +fanger-nes +forbed-ringer +frem-syn +fæl-leder +gen-fortælling +gen-nem +glide-baneargument +impli-kationer +implikatio-nerne +indehol-dende +innova-tion +klas-siske +kombi-nation +kom-mer +konse-kventialisme +konsekven-tialister +kontraktarianis-men +licen-ser +license-ring +luk-kede +moral-filosofiske +obstru-ering +oriente-ret +ovenstå-ende +pragma-tiske +prin-cip +pro-blematiseres +program-koden +ratio-nale +reciproci-tet +repræsente-rer +rettighe-derne +samfun-det +sam-menhænge +software-programmer +source-software +stem-mer +sub-stans +til-stand +ubegrun-dede +udbre-delse +udtøm-mes +udvæl-gelsen +util-fredsstillende +utili-taristisk +vurderin-gen +vurde-ringer +ønskeba-seret diff --git a/report.qmd b/report.qmd index 7637fe2..673e066 100644 --- a/report.qmd +++ b/report.qmd @@ -12,6 +12,8 @@ format: pdfversion: "2.0" pdfstandard: [A-4f, UA-2] tagging: on + template-partials: + - before-title.tex metadata-files: - _actors.yml @@ -29,6 +31,18 @@ filters: - nobreaks include-in-header: +# refine hyphenation +- text: | + \usepackage{lua-check-hyphen} + \LuaCheckHyphen{compact,whitelist={% + hyph_ok_any.txt,% + hyph_ok_american.txt,% + hyph_ok_danish.txt,% + }} + \babelhyphenation[danish]{ + ind-ram-mer % in-drammer + videns-etab-ler-ing % viden-setablering + } # add alt text to embedded image, to aid non-visual rendering - text: | \renewcommand{\doclicenseImage}[1][]{% -- cgit v1.2.3