aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sisudoc/outputs/share
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2026-09-20 23:43:35 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2026-09-22 12:50:31 -0400
commitcd93d2d8b5062493650673ecdd13139d6f0e5171 (patch)
tree23ab13665da3bc5aca4913ca8f8dc33eb5219bff /src/sisudoc/outputs/share
parentpod digests: multilingual document digests sorted (diff)
xml: markup language attributes take a bcp 47 tag
Spine names a language as the directory under media/text/ is named, which for a region is the posix form with an underscore, pt_BR. A lang, xml:lang or dc:language value is a BCP 47 (RFC 3066) tag and wants a hyphen, pt-BR. Spine put its own code there unchanged, so a document in a region language produced an invalid attribute in every one of its xhtml files: 138 epubcheck errors for a document of ten segments and a navigation file. src.language_tag is the same language as a tag. The attributes and the dc metadata now read it. Output paths keep src.language, since a path is named after the directory, not after the tag. (assisted by Claude-Code)
Diffstat (limited to 'src/sisudoc/outputs/share')
0 files changed, 0 insertions, 0 deletions