Projekt

Allgemein

Profil

Accessibiliy Features » Historie » Version 6

Patrick Schulz, 16.09.2024 12:40

1 1 Patrick Schulz
h1. Accessibiliy Features
2
3 5 Patrick Schulz
h2. Activate Accessibility Features
4
5
Add @a11y@ to the documentclass options:
6
<pre><code>
7
\documentclass[…,a11y]{cocotex}
8
</code></pre>
9
10
11 6 Patrick Schulz
h2. Paragraph tagging
12
13
Until further notice, text paragraphs need to be tagged by the converter by adding @\ccaStructStart{Para}@ at the beginning of each paragraph (no whitespaces between the macro and subsequent text or other macros!) and @\ccaStructEnd{Para}@ at the end of each paragraph (no whitespaces before @\ccaStructEnd@!):
14
<pre>
15
\ccaStructStart{Para}Ipsum Lorem … finis.\ccaStructEnd{Para}
16
</pre>
17
18
This must also be done in broader contexts that may(!) contain multiple paragraphs of plain text, like footnotes, captions, list items, quotations, or abstracts. Which ones exactly varies from publisher style to publisher style, so if in doubt, ask your friendly neighborhood TeX developer.
19
20
21 1 Patrick Schulz
h2. XMP Meta Data
22
23 3 Patrick Schulz
PDF/UA requires meta data to be embedded into the PDF file. CoCoTeX provides two ways to do that: If the TeX run does not find a xmp file that has the same basename as the .tex document, it generates one from the data in the tpMeta environment. If there is a .xmp file (either because it was there from the beginning, or it was generated during a previous tex run), it includes that one. If the xmp file is to be generated by the converter, make sure to use the "attached template.xmp":https://redmine.le-tex.de/attachments/27865 (see below) and include the document specific meta data in line 24 instead of the comment.
24 1 Patrick Schulz
25
***Important: Don't remove anything in that template, especially not the PIs at the beginning and end, and the blank spaces at the bottom if the template!***
26
27
Also be cautious where to use @rdf:Bag@, @rdf:Alt@ and @rdf:Seq@!
28
29
Use the following XML tags for meta data:
30
31
32 4 Patrick Schulz
h4. Author
33 1 Patrick Schulz
34
is a list of the document's main authors or edtiors, one per line:
35
<pre><code class="xml">
36
<dc:creator>
37
  <rdf:Seq>
38
    <rdf:li>Firstname Lastname</rdf:li>
39
    <rdf:li>Firstname Lastname</rdf:li>
40
    ...
41
  </rdf:Seq>
42
</dc:creator>
43
</code></pre>
44
45 4 Patrick Schulz
h4. Document Title
46 1 Patrick Schulz
47
There can be more than one document title for various languages. The displayed title (e.g. in the pdf viewer window's top line) depends on the selected system language
48
49
<pre><code class="xml">
50
<dc:title>
51
  <rdf:Alt>
52
    <rdf:li xml:lang="x-default">Default title</rdf:li>
53
  </rdf:Alt>
54
</dc:title>
55
</code></pre>
56
57 4 Patrick Schulz
h4. Publisher
58 1 Patrick Schulz
59
<pre><code class="xml">
60
<dc:publisher>
61
  <rdf:Bag>
62
    <rdf:li>Publisher Name</rdf:li>
63
  </rdf:Bag>
64
</dc:publisher>
65
</code></pre>
66
67 4 Patrick Schulz
h4. Chapter authors/Contributors
68 1 Patrick Schulz
69
<pre><code class="xml">
70
<dc:contributor>
71
  <rdf:Bag>
72
    <rdf:li>Firstname Lastname</rdf:li>
73
    <rdf:li>Firstname Midname Lastname</rdf:li>
74
    ...
75
  </rdf:Bag>
76
</dc:contributor>
77
</code></pre>
78
79 4 Patrick Schulz
h4. Abstract
80 1 Patrick Schulz
81
Like @dc:title@, @dc:description@ allows multiple entries for different languages.
82
83
<pre><code class="xml">
84
<dc:description>
85
  <rdf:Alt>
86
    <rdf:li xml:lang="x-default">...</rdf:li>
87
  </rdf:Alt>
88
</dc:description>
89
</code></pre>
90
91 4 Patrick Schulz
h4. Keywords
92 1 Patrick Schulz
93
<pre><code class="xml">
94
<dc:subject>
95
  <rdf:Bag>
96
    <rdf:li>keyword 1</rdf:li>
97
    <rdf:li>keyword 2</rdf:li>
98
    ....
99
  </rdf:Bag>
100
</dc:subject>
101
</code></pre>
102
103
104 4 Patrick Schulz
h4. Copyright
105 1 Patrick Schulz
106
<pre><code class="xml">
107
<dc:rights>
108
  <rdf:Alt>
109
    <rdf:li xml:lang="x-default">Unless otherwise indicated, this work is licensed under a Creative Commons License Attribution 4.0 International. This does not apply to quoted content and works based on other permissions.</rdf:li>
110
  </rdf:Alt>
111
</dc:rights>
112
</code></pre>
113 4 Patrick Schulz
114
h4. Other
115
116
If you must, you can _alter_ the values of @<pdf:Producer>@ and @<xmp:CreatorTool>@, where @pdf:Producer@ is the tool that generated the PDF, and @xmp:CreatorTool@ is the Tool with which the original manuscript was created prior to any conversions or transformations.
117
118
The values of @xmp:ModifyDate@ and @xmp:CreateDate@ are generated and overwritten during the tex run by the ltpdfa package, so you can leave those fields as they are.