TEIC / TEI

The Text Encoding Initiative Guidelines
https://www.tei-c.org
Other
276 stars 88 forks source link

Allowing `<address>` inside `<div>` #2460

Open StefanDumont opened 1 year ago

StefanDumont commented 1 year ago

A discussion at a workshop on encoding correspondence resulted in the article Addresses by Marjam Trautmann, in which several problems with <address> are being discussed.

One of the problems that Trautmann states:

The <address> element is not part of the content model of <div>. This means that it cannot appear directly inside a <div> and this also means that it is not allowed before model.divTopPart or after model.divBottomPart elements, e.g. <opener> or after <closer>. So, if the encoder wants to model the addresses of recipient(s) and sender(s) as a separate structural block within the <text> element and wants to put the addresses before the <opener> or after <closer> of a letter, he or she needs to construct an elaborate data model with the addresses and the <opener>/<closer> encoded in several <div> elements.

(see the article for details)

To avoid such an unnecessary elaborate encoding, it would be convenient to be able to use <address> directly inside a <div>. Could a possible solution be to assign the element <address> to a suitable additional class, like model.divTopPart and model.divBottomPart?

StefanDumont commented 1 year ago

In an open annotation on Trautmann's article, Jakub Šimek suggests that <address> could be set even more flexibly:

I strongly support this proposal and would like to push it even further, allowing for the use of <address> not only directly inside of <div> but also directly in <body>, <front> or <back>, making it a "chunk level" element of its own. While grouping several addresses inside a <div> could be useful, using <div> should not be required for one single address.

hcayless commented 1 year ago

My question about this is whether there's anything unsatisfactory about wrapping the <address> in an <ab>? My instinct is that an address doesn't intrinsically have any rendering / structural semantics, which I think we'd be assuming by making it a direct child of <div>.

sabineseifert commented 11 months ago

Putting the address in <ab> does not solve the problem of a following <opener> and/or a preceding <closer>. To be valid, everything needs to be put in a <div> each which is considered as rather elaborate encoding.

lb42 commented 11 months ago

You could of course put the address inside an opener or closer. Which could even be typed !

sabineseifert commented 10 months ago

Yes, that was in fact the proposal in the article (issue 3).

We then would need to adapt the definitions of both <opener> and <closer> a litte bit. (<opener>: "combines date line, author, salutation and similar phrases that are used at the beginning of a section, especially in a letter". <closer>: contains "greeting formulas, date lines and similar phrases that appear at the end of a section, especially in a letter".)

In an open annotation on the article, Jakub Šimek argues: "In my opinion this would stretch the semantics of <opener> and <closer> too much. The distinction should be clear between what is part of the letter text and what isn't. The addresses, typically very clearly separated from the letter body as intended for the mail logistics, are not really part of the letter text. Some encoders (like me) could even rather put the transcribed addresses inside of <front> than of <body>, arguing that correspondence addresses are not part of the textual body."

nquenouille commented 3 months ago

Dear Stefan, I am totally with you. We have documents (for example, copies of letters in a bundle of documents) that contain <closer>, <postscript> and an <address> on the same page, and it would be much trouble to encode the address separately here as Marjam Trautmann has to do it. So, indeed, I would be very happy to see the <address>-Tag put into a <div>-Tag.

ebeshero commented 3 months ago

When figuring out how to encode addresses for correspondence in my own projects (eg Digital Mitford) we did find, with Jakub Šimek here, that these blocks of directional instructions for mailing simply did not fit with the semantics of <closer> or <opener>. They are not really to do with the reading content directed to the recipient, so setting addresses inside this se elements seemed awkward to us too. In my 19c correspondence projects the address sits on a separate leaf and really does make a block on the page. Since we document postal marks / ink stamps about delivery in the TEI header in our project, I suppose it might make sense to include the mailing address there as well, though we didn't try that. Instead we went with some awkwardness of tucking them into the <closer> which felt a bit wrong.

At the very least, I think addresses do make a "block" of information in the source document for correspondence. They are designed to be read by delivery agents and should not just be considered part of the letter message itself. (In my early 19c project, letters were written out in sheets of paper, then folded several times, with a little panel exposed on the back of the last sheet for the address to be written out. That little panel with the address lines would be marked and stamped by the postal service people en route.)

I have only ever seen addresses be written out in block form with constituent lines and spacing (or folding or enveloping) to set them apart from other parts of a document. So it makes very good sense to me to set an <address> in a <div>.