blob: e5b14e13c4c099bd3f60117ca8248728258e753e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
% !Mode:: "TeX:DE:UTF-8:Main"
% !! needs lualatex
% this sets the hyphen used by automatic hyphenation to 00AD
% this improves copy&pasting
% the example gives
% aaaaaaa-aaaaaa aaaaaaa-aaaaaa
% Ministerpräsident
% when copied from adobe
% sumatra doesn't understand this and copies Ministerpräsident
\RequirePackage{pdfmanagement-testphase}
\DeclareDocumentMetadata{pdfversion=1.7,uncompress}
\documentclass{book}
\usepackage[ngerman]{babel} %to get some hyphenation
\usepackage{tagpdf}
\tagpdfsetup{tabsorder=structure,
activate, %deactivate to see the difference
interwordspace,
paratagging
}
\usepackage{fontspec}
% we must remove the invisible feature
\setmainfont{TeX Gyre Pagella}[RawFeature={-invisible}]
\prehyphenchar"AD
\pagestyle{empty}
\textwidth=1cm
\begin{document}
aaaaaaa-aaaaaa aaaaaaa-aaaaaa
Ministerpräsident
\end{document}
aaaaaaa-
aaaaaa
aaaaaaa-
aaaaaa
Mi
nisterprä
sident
aaaaaaa-aaaaaa aaaaaaa-aaaaaa
Ministerpräsident
aaaaaaa-aaaaaa aaaaaaa-aaaaaa
Ministerpräsident
|