Dear Matthew,
I like where you are going here. Through the years, we have consciously tried
not to get bogged down with all the intracacies of quality metadata (along with
not getting bogged down with new syntax for mathematics). Oscar has done a nice
job of reforming document-level stuff with #bibinfo. And maybe it is time to
think more carefully about the ideas you propose.
Alex J suggests that WeBWorK problemes as bare PG code will just be brought
on-board by authors from somewhere else. David F suggests we record that
origin. There are other places where we might record the provenance of some
material, such as a TikZ diagram "borrowed" from "somewhere else."
Could we agree on a #provenace metadata-ish container, for #exercise and other
elements (e.g. STACK exercises)? Maybe populated with a subset of Dublin Core
(DC) items so we don't have to think about designing it (and we get a namespace
for free)?
exercise
title
provenance
dc:date
dc:creator
...
I know this does not cover your entire use case. But it is more broadly
applicable for us than just a collection of exercises. Maybe a second container
just for exercises, describing their topic coverage, difficulty, etc.
Since you do not plan (yet!) to do anything with these, we can just explicitly
kill them in "pretext-common.xsl" so they never bleed through to output. This
is already standard practice for #title since it gets used lots of places in
different ways and different forms (ToC, file names, etc). I could see a nice
exercise in making a friendly catalog of your exercises by mining and presenting
the metadata (reducing the strain of doing visual scans).
Mitch is right about attributes and DC is right about elements. My rule of
thumb for PreTeXt is that what a reader sees goes in elements and what is a
property or behavior-modifier or enumerated token belongs in an attribute. We
routinely stuff several items in an attribute (space- or comma- delimited). I
just saw a DC example stuff a bunch of keywords (or topics) into one element,
separated by spaces. (Not sure I would *ever* do that.) Not sure DC buys us a
whole lot, but maybe it can't hurt, and the namespace will avoid some confusion
(e.g. #theorem already has a #creator child).
Once you capture stuff as XML it is pretty easy to write transforms that morph
it into other forms of XML, so you could have some freedom to experiment, so
long as use does not spread too far.
Short answer: two new metadata containers, #provenance and #????, to be killed
on-sight, and ill-defined as to children?
Maybe discussion could/should move to "pretext-dev"? @Matthew - you could
request a membership to that group?
Rob
--
You received this message because you are subscribed to a topic in the Google Groups "PreTeXt support" group.
To unsubscribe from this topic, visit
https://urldefense.proofpoint.com/v2/url?u=https-3A__groups.google.com_d_topic_pretext-2Dsupport_AHrQgb2T6iE_unsubscribe&d=DwIBaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=NOgvoAx2UrJOshYXP763XA&m=csJYy158UDsplGJeNAL2KYENqYfHI6MacNyCBJqslCP5C8wm_I1qocC5AqIL1q0N&s=s0VNVwng9T4lOUKpbJ5S3FdA_2Xp-ABGTqBK2fEwi5s&e= .
To unsubscribe from this group and all its topics, send an email to
pretext-suppo...@googlegroups.com.
To view this discussion visit
https://urldefense.proofpoint.com/v2/url?u=https-3A__groups.google.com_d_msgid_pretext-2Dsupport_MTAwMDAwNS5iZWV6ZXI.1755187773-2540pnsh&d=DwIBaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=NOgvoAx2UrJOshYXP763XA&m=csJYy158UDsplGJeNAL2KYENqYfHI6MacNyCBJqslCP5C8wm_I1qocC5AqIL1q0N&s=4X_o_fNVowLAnrY1to7sat7NZoFWI55FqHNHI4Ubldo&e= .