1) if the citation is not a one-shot thing, I would recommend creating an external list of sources and making a reference into that list (rather than hard-coding it into the tag)
2) either way, rather than using a #:source attribute within `epigraph`, you could make a `source` subtag within, and then `epigraph` into tag function that decodes it (= maybe prints it; maybe discards it) This is consistent with XML practice: it's typically a judgment call whether to use an attribute or subtag to represent a key/value pair. in this case, we can easily imagine that `source` would want to be a structured tag of its own. > On Sep 10, 2016, at 6:34 PM, Chris Forster <[email protected]> wrote: > > > I am interested in creating a tag function that could accept as one of its > attributes, a complete txexpr; this txexpr could contain a citation for the > tagged material, or could offer a translation into another language. For > instance, providing source and language information for an epigraph: > > ◊epigraph[#:lang "gr" #:source (span "Aristotle, " ◊em{De Anima}" Book 1, > Chapter 4, 408b.18."]{ὁ δὲ νοῦς ἴσως θειότερόν τι καὶ ἀπαθές ἐστιν} > > One could also imagine a "foreign" tag, that would allow one to include a > translation. This sort of complex information (textual citation, > translations, etc) is often not a string, but may require a full txexpr. (The > syntax in the above example, using a "span" is pretty ugly.) > > With this structure, you could then convert this information into a footnote > for PDF or HTML, or discard it, etc. > > Is using attributes on a tag not a good way to capture this sort of > information (I am coming to think it isn't). is there a better alternative I > should be exploring? > -- > You received this message because you are subscribed to the Google Groups > "Pollen" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Pollen" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
