TEIC / TEI

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

<category> should allow for multiple <catDesc> #810

Closed TEITechnicalCouncil closed 8 years ago

TEITechnicalCouncil commented 15 years ago

Content model for <category> should be changed from:

element category { att.global.attributes, ( ( catDesc | model.glossLike ), category ) }

to:

element category { att.global.attributes, ( ( catDesc+ | model.glossLike ), category ) }

in order to allow for category descriptions in multiple languages, as in the following example from the National Corpus of Polish:

<classDecl> <taxonomy xml:id="taxonomy-NKJP-type">
<category xml:id="typ_lit"> <catDesc xml:lang="pl">literatura piękna</catDesc> <catDesc xml:lang="en">fiction</catDesc> <category xml:id="typ_lit_proza"> <catDesc xml:lang="pl">proza</catDesc> <catDesc xml:lang="en">prose</catDesc> </category> <category xml:id="typ_lit_poezja"> <catDesc xml:lang="pl">poezja</catDesc> <catDesc xml:lang="en">poetry</catDesc> </category> <category xml:id="typ_lit_dramat"> <catDesc xml:lang="pl">dramat</catDesc> <catDesc xml:lang="en">drama</catDesc> </category> </category> <category xml:id="typ_fakt"> <catDesc xml:lang="pl">literatura faktu</catDesc> <catDesc xml:lang="en">non-fiction literature</catDesc> </category> <category xml:id="typ_publ"> <catDesc xml:lang="pl">publicystyka i wiadomości prasowe</catDesc> <catDesc xml:lang="en">journalism</catDesc> </category> <category xml:id="typ_nd"> <catDesc xml:lang="pl">naukowo-dydaktyczny</catDesc> <catDesc xml:lang="en">academic writing and textbooks</catDesc> </category> <category xml:id="typ_inf-por"> <catDesc xml:lang="pl">informacyjno-poradnikowy</catDesc> <catDesc xml:lang="en">instructive writing and guidebooks</catDesc> </category> <category xml:id="typ_nklas"> <catDesc xml:lang="pl">książka niebeletrystyczna niesklasyfikowana</catDesc> <catDesc xml:lang="en">unclassified non-fiction book</catDesc> </category> <category xml:id="typ_inne_pisane"> <catDesc xml:lang="pl">inne teksty pisane</catDesc> <catDesc xml:lang="en">miscellaneous (written)</catDesc> <category xml:id="typ_urzed"> <catDesc xml:lang="pl">urzędowo-kancelaryjny</catDesc> <catDesc xml:lang="en">legal and official</catDesc> </category> <category xml:id="typ_persw"> <catDesc xml:lang="pl">teksty perswazyjne (ogłoszenia, reklamy, propaganda polityczna)</catDesc> <catDesc xml:lang="en">advertisements, announcements, political marketing</catDesc> </category> <category xml:id="typ_instr"> <catDesc xml:lang="pl">krótkie teksty instruktażowe</catDesc> <catDesc xml:lang="en">user manuals</catDesc> </category> <category xml:id="typ_listy"> <catDesc xml:lang="pl">listy</catDesc> <catDesc xml:lang="en">letters</catDesc> </category> </category> <category xml:id="typ_internet"> <catDesc xml:lang="pl">Internet</catDesc> <catDesc xml:lang="en">Internet</catDesc> <category xml:id="typ_net_interakt"> <catDesc xml:lang="pl">interaktywne (fora, czaty, krótkie wiadomości tekstowe, listy dyskusyjne itp.)</catDesc> <catDesc xml:lang="en">interactive (forums, chat rooms, instant messaging, mailing lists)</catDesc> </category> <category xml:id="typ_net_nieinterakt"> <catDesc xml:lang="pl">statyczne strony WWW</catDesc> <catDesc xml:lang="en">static WWW pages</catDesc> </category> </category>
<category xml:id="typ_konwers"> <catDesc xml:lang="pl">konwersacyjne</catDesc> <catDesc xml:lang="en">conversational</catDesc> </category> <category xml:id="typ_media"> <catDesc xml:lang="pl">mówione medialne</catDesc> <catDesc xml:lang="en">spoken from the media</catDesc> </category> <category xml:id="typ_qmow"> <catDesc xml:lang="pl">quasi-mówione</catDesc> <catDesc xml:lang="en">quasi-spoken</catDesc> </category> </taxonomy> </classDecl>

It should also be allowed for reasons of uniformity / coherence: since multiple <desc>, <gloss>, etc., are allowed, why not multiple <catDesc>?

Original comment by: sf_user_przepiorkowski

TEITechnicalCouncil commented 15 years ago

Apologies for commenting on my own bug report, but I just noticed that that report is very much in line with an earlier feature request:

https://sourceforge.net/tracker/index.php?func=detail&aid=1550795&group\_id=106328&atid=644065

Original comment by: sf_user_przepiorkowski

TEITechnicalCouncil commented 14 years ago

Another option would be to add catDesc to model.glossLike. But your suggestion seems more appropriate, so I have adopted it, and also given an example in the header chapter, as of rev 6791

Original comment by: @lb42

TEITechnicalCouncil commented 14 years ago

Original comment by: @lb42