Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
f5ebb8c
temp script to build ctan distrib
davidcarlisle Jul 11, 2025
6b5da00
normalize line endings when generating rng
davidcarlisle Jul 11, 2025
6906a55
replace colons in element names
davidcarlisle Jul 14, 2025
c717da2
Do not duplicate lines in default output format
zauguin Aug 12, 2025
bb1a705
Fix internal error when ToUnicode mappings are misssing
zauguin Oct 17, 2025
c85fda7
Step version and regenerate documentation
zauguin Oct 17, 2025
d803bd1
rebase to trunk
davidcarlisle Oct 17, 2025
92bfe20
missing showtags-attributes in latex NS elements
davidcarlisle Oct 19, 2025
5edc8b3
allow Caption in text-unit
davidcarlisle Oct 19, 2025
7b872dd
Allow Formula in section-number
davidcarlisle Oct 20, 2025
a8e0365
part section heading mapping to Title
davidcarlisle Oct 20, 2025
d40f60d
update latex footnote schema
davidcarlisle Oct 25, 2025
3f66814
stricter validation of Formula
davidcarlisle Oct 30, 2025
470a006
allow Lbl before math
davidcarlisle Oct 30, 2025
c22020e
schema for tagging test suite
davidcarlisle Nov 10, 2025
c5a4068
schema for tagging test suite
davidcarlisle Nov 10, 2025
d2ada2c
make latex quotation more like BlockQuote
davidcarlisle Nov 12, 2025
bc54a29
initial draft conversion to plantuml
davidcarlisle Nov 13, 2025
32cf0e8
property names, elision
davidcarlisle Nov 13, 2025
913ef1b
truncate long attributes, elide empty attributes
davidcarlisle Nov 13, 2025
0734866
more property names
davidcarlisle Nov 13, 2025
186a9bf
quote strings, [] for arrays
davidcarlisle Nov 13, 2025
5d8282e
remove commas from arrays
davidcarlisle Nov 13, 2025
6e7e7a6
maxdepth
davidcarlisle Nov 13, 2025
94fc862
ensure maxdepth an integer
davidcarlisle Nov 13, 2025
ae176f8
correct sibling depth
davidcarlisle Nov 14, 2025
2426866
consistently use 3 columns
davidcarlisle Nov 14, 2025
87984d8
put role mapping in comment column
davidcarlisle Nov 14, 2025
f659105
plantxml sometimes needs extra newline at end to render
davidcarlisle Nov 14, 2025
2671a6b
attribute values as names not strings
davidcarlisle Nov 14, 2025
d7f7d5a
AF is af not title
davidcarlisle Nov 14, 2025
206f284
parameter to list omitted attributes
davidcarlisle Nov 15, 2025
c2e685b
ensure you still add a . if omit all attributes
davidcarlisle Nov 15, 2025
71a9de9
add . if all attributes are empty
davidcarlisle Nov 15, 2025
e43c77b
showemptyatts param
davidcarlisle Nov 15, 2025
bac1f47
title comment
davidcarlisle Nov 17, 2025
7dbb125
extend schema for luatexko
davidcarlisle Nov 18, 2025
4866f7e
UA-1 version
davidcarlisle Nov 18, 2025
42de344
asmejour
davidcarlisle Dec 4, 2025
144a669
mkrng
davidcarlisle Dec 4, 2025
e6ccf78
ltx-talk ns and math in titles
davidcarlisle Dec 6, 2025
2cf3536
mkrng
davidcarlisle Dec 6, 2025
90d5be4
Some remarks and a patch with editorial changes for show-pdf-tags.1.
hpreusse Dec 31, 2025
419a7c6
Merge pull request #12 from hpreusse/develop
davidcarlisle Dec 31, 2025
1f6f8a8
xmp option to add XMP data to xml output (no schema support yet)
davidcarlisle Jan 9, 2026
3ca94df
base schema, make all XMP valid
davidcarlisle Jan 9, 2026
a0b2412
validate pdfuaid:part is 1 or 2 respectively
davidcarlisle Jan 10, 2026
d1a1425
more custom elements in test suite
davidcarlisle Feb 3, 2026
7b49a54
Merge branch 'develop' into colon-name
davidcarlisle Feb 3, 2026
92c479e
Merge pull request #9 from latex3/colon-name
davidcarlisle Feb 3, 2026
37f6856
Merge branch 'develop' into xmp
davidcarlisle Feb 3, 2026
2196fd0
Merge pull request #13 from latex3/xmp
davidcarlisle Feb 3, 2026
a0946f0
rebuild rng
davidcarlisle Feb 3, 2026
54c2ec3
Merge branch 'trunk' into develop
davidcarlisle Feb 3, 2026
8162251
v 1.4
davidcarlisle Feb 3, 2026
5880997
add xmp option to README
davidcarlisle Feb 4, 2026
f175300
adjust local function url
davidcarlisle Feb 4, 2026
dfd1f16
drop mktan script from git
davidcarlisle Feb 4, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 58 additions & 3 deletions RelaxNG/document-pdf-ua1.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ namespace Table = "http://iso.org/pdf/ssn/Table"
namespace List = "http://iso.org/pdf/ssn/List"
namespace Artifact = "http://iso.org/pdf/ssn/Artifact"

# XMP
namespace x = "adobe:ns:meta/"
namespace rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
namespace dc = "http://purl.org/dc/elements/1.1/"
namespace pdfuaid = "http://www.aiim.org/pdfua/ns/id/"

# XHTML Namespace, not currently used
namespace h = "http://www.w3.org/1999/xhtml"

Expand Down Expand Up @@ -40,15 +46,47 @@ pdf1rolemap-Note = attribute rolemaps-to {"Note"}
# UA-1 does not force a single document element.
start = PDF

PDF = element NoNS:PDF {StructTreeRoot}
PDF = element NoNS:PDF {StructTreeRoot,XMP?}

StructTreeRoot = element NoNS:StructTreeRoot {( Document|DocumentFragment|Part|Art|Div|Sect|TOC|Aside|BlockQuote|NonStruct|Private|P|Note|Code|Hn|H|Title|Link|Annot|Form|FENote|Index|L|Table|Figure|Formula|Artifact)*}

AssociatedFile = element NoNS:AssociatedFile {
attribute name {text},
(text|math)
}

AssociatedFilemath = element NoNS:AssociatedFile {
attribute name {text},
(math)
}
AssociatedFiletext = element NoNS:AssociatedFile {
attribute name {text},
(text)
}

formula-requirements = (
attribute actualtext {text}|
attribute alt {text}
)

## PDF/UA-1
pdfuaid_part = element pdfuaid:part {"1"}

## share with pdf1.7 version from here to end

# XMP data
anyelem = element * {(attribute * {text}* | text | anyelem) *}

XMP = element NoNS:XMP {x_xmpmeta & anyelem*}

x_xmpmeta = element x:xmpmeta {attribute * {text}*,(rdf_RDF & anyelem*)}

rdf_RDF= element rdf:RDF {attribute * {text}*, (rdf_Description & anyelem*)}

rdf_Description= element rdf:Description {attribute * {text}*, (pdfuaid_part & anyelem*)}

# end of XMP

textorHTML &= (Link|Reference|Strong|Code|Em|Lbl|Span|mathse|Quote|RB|Annot|Figure|Form)*

MathMLPGlobalAttributes &= showtags-attributes
Expand Down Expand Up @@ -493,13 +531,29 @@ Figure = element pdf2:Figure {
}

### Formula

# expanded pdf2-attributes to avoid so much backtracking
Formula = element pdf2:Formula {
pdf2-attributes,
AssociatedFiletext*,
formula-requirements ,
AssociatedFiletext*,
(
attribute lang {text}?, # Lang
attribute expansion {text}?, # E
attribute title {text}?, # T
attribute id {text}?, # ID
attribute phoneme {text}?, # Phoneme
attribute phonetic-alphabet {text}?, # PhoneticAlphabet
attribute revision {text}?, # R
layout-attributes,
otherns-attributes,
attribute af {text}?,
attribute rolemapped-from {text}?,
attribute referenced-as {text}?,
attribute Layout:Width {text}?,
attribute Layout:Height {text}?,
(H? & Caption? & (text|Part|Div|Aside|BlockQuote|NonStruct|Private|P|Note|Code|Hn|Sub|Lbl|Em|Strong|Span|Quote|Link|Reference|Annot|Form|Ruby|Warichu|FENote|Index|L|BibEntry|Table|Figure|Formula|Artifact|
mathse)*)
)
}

### Artifact
Expand Down Expand Up @@ -571,3 +625,4 @@ pdf2-attributes,
(text|NonStruct|Private|Note|Code|Sub|Lbl|Em|Strong|Span|Quote|Link|Reference|Annot|Form|Ruby|Warichu|FENote|BibEntry|Figure|Formula|Artifact)*
}


Loading