Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a11y: \ccaStructStart{MetaDatumBlock} not completely implemented in coco-title? #16

Open
roberthechtletex opened this issue Nov 11, 2024 · 3 comments
Assignees

Comments

@roberthechtletex
Copy link
Collaborator

Shouldn't

\ccSetProperty{copyright}{%
    \ccaStructStart{MetaDatumBlock}%
    \ccIfComp{Copyright}
      {\ccUseComp{Copyright}\par}
      {\textcopyright\space\ccUseComp{Year}\space\ccUseComp{Publisher},\space\ccUseComp{PubPlace}\par}%
    \ccaStructEnd{MetaDatumBlock}%
  }%

rather look like this:

\ccSetProperty{copyright}{%
    \ccaStructStart{MetaDatumBlock}%
    \ccaStructStart{MetaDatum}%+
    \ccaStructStart{MetaDatumValue}%+
    \ccIfComp{Copyright}
      {\ccUseComp{Copyright}\par}
      {\textcopyright\space\ccUseComp{Year}\space\ccUseComp{Publisher},\space\ccUseComp{PubPlace}\par}%
    \ccaStructEnd{MetaDatumValue}%+
    \ccaStructEnd{MetaDatum}%+
    \ccaStructEnd{MetaDatumBlock}%
  }%

?

And/Or should the MetaDatumBlock rather span the whole \ccSetProperty{publisher} or even \ccSetProperty{imprint}?

@roberthechtletex
Copy link
Collaborator Author

I updated the kernel myself, as described above.

Still, this question remains: “And/Or should the MetaDatumBlock rather span the whole \ccSetProperty{publisher} or even \ccSetProperty{imprint}?”

@LupinoTech
Copy link
Contributor

IIRC, the general idea was that MetaDatum and MetaDatumBlock are more-or-less exclusive, that is, one "Element" in the imprint is either a MetaDatum with a MetaDatumLabel and a MetaDatumValue, or a MetaDatumBlock. Both elements can however be inside a broader MetaDatumBlock, which in the standard definition is already the case for imprint as a whole, see ll.1180-1195 in coco-title.dtx. Think of MetaDatumBlock as an "recursively embeddable" container, while MetaDatum is a container for a key-value pair. It is however true that the cited declaration of the copyright Property should contain a P tag for the actual text. (MetaDatumValue and MetaDatumLabel don't need an extra P, as they are already mapped to P.)

@LupinoTech
Copy link
Contributor

There is no real convention yet on what to do with "label-less" meta data… We could also tag them as MetaDatum instead of MetaDatumBlock and a simple P inside… I'm open to suggestions.

LupinoTech added a commit that referenced this issue Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants