Accessibiliy Features » Historie » Version 5
Patrick Schulz, 16.09.2024 12:34
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 | 1 | Patrick Schulz | h2. XMP Meta Data |
12 | |||
13 | 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. |
14 | 1 | Patrick Schulz | |
15 | ***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!*** |
||
16 | |||
17 | Also be cautious where to use @rdf:Bag@, @rdf:Alt@ and @rdf:Seq@! |
||
18 | |||
19 | Use the following XML tags for meta data: |
||
20 | |||
21 | |||
22 | 4 | Patrick Schulz | h4. Author |
23 | 1 | Patrick Schulz | |
24 | is a list of the document's main authors or edtiors, one per line: |
||
25 | <pre><code class="xml"> |
||
26 | <dc:creator> |
||
27 | <rdf:Seq> |
||
28 | <rdf:li>Firstname Lastname</rdf:li> |
||
29 | <rdf:li>Firstname Lastname</rdf:li> |
||
30 | ... |
||
31 | </rdf:Seq> |
||
32 | </dc:creator> |
||
33 | </code></pre> |
||
34 | |||
35 | 4 | Patrick Schulz | h4. Document Title |
36 | 1 | Patrick Schulz | |
37 | 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 |
||
38 | |||
39 | <pre><code class="xml"> |
||
40 | <dc:title> |
||
41 | <rdf:Alt> |
||
42 | <rdf:li xml:lang="x-default">Default title</rdf:li> |
||
43 | </rdf:Alt> |
||
44 | </dc:title> |
||
45 | </code></pre> |
||
46 | |||
47 | 4 | Patrick Schulz | h4. Publisher |
48 | 1 | Patrick Schulz | |
49 | <pre><code class="xml"> |
||
50 | <dc:publisher> |
||
51 | <rdf:Bag> |
||
52 | <rdf:li>Publisher Name</rdf:li> |
||
53 | </rdf:Bag> |
||
54 | </dc:publisher> |
||
55 | </code></pre> |
||
56 | |||
57 | 4 | Patrick Schulz | h4. Chapter authors/Contributors |
58 | 1 | Patrick Schulz | |
59 | <pre><code class="xml"> |
||
60 | <dc:contributor> |
||
61 | <rdf:Bag> |
||
62 | <rdf:li>Firstname Lastname</rdf:li> |
||
63 | <rdf:li>Firstname Midname Lastname</rdf:li> |
||
64 | ... |
||
65 | </rdf:Bag> |
||
66 | </dc:contributor> |
||
67 | </code></pre> |
||
68 | |||
69 | 4 | Patrick Schulz | h4. Abstract |
70 | 1 | Patrick Schulz | |
71 | Like @dc:title@, @dc:description@ allows multiple entries for different languages. |
||
72 | |||
73 | <pre><code class="xml"> |
||
74 | <dc:description> |
||
75 | <rdf:Alt> |
||
76 | <rdf:li xml:lang="x-default">...</rdf:li> |
||
77 | </rdf:Alt> |
||
78 | </dc:description> |
||
79 | </code></pre> |
||
80 | |||
81 | 4 | Patrick Schulz | h4. Keywords |
82 | 1 | Patrick Schulz | |
83 | <pre><code class="xml"> |
||
84 | <dc:subject> |
||
85 | <rdf:Bag> |
||
86 | <rdf:li>keyword 1</rdf:li> |
||
87 | <rdf:li>keyword 2</rdf:li> |
||
88 | .... |
||
89 | </rdf:Bag> |
||
90 | </dc:subject> |
||
91 | </code></pre> |
||
92 | |||
93 | |||
94 | 4 | Patrick Schulz | h4. Copyright |
95 | 1 | Patrick Schulz | |
96 | <pre><code class="xml"> |
||
97 | <dc:rights> |
||
98 | <rdf:Alt> |
||
99 | <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> |
||
100 | </rdf:Alt> |
||
101 | </dc:rights> |
||
102 | </code></pre> |
||
103 | 4 | Patrick Schulz | |
104 | h4. Other |
||
105 | |||
106 | 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. |
||
107 | |||
108 | 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. |