BetaMasaheft / Documentation

Die Schriftkultur des christlichen Äthiopiens: Eine multimediale Forschungsumgebung
3 stars 3 forks source link

new calendar view #1171

Closed PietroLiuzzo closed 4 years ago

PietroLiuzzo commented 5 years ago

we want to produce data relevant for readings organized along the ethiopian calendar.

this will be called ethiopian.xml and will be stored in the app as a static list

thea-m commented 5 years ago

I added the value commemoration to the schema, but could not transform it.

PietroLiuzzo commented 5 years ago

since my changes to the TEI stylesheets where accepted, you should actually be able now, simply updating the TEI stylesheets. I will do this now.

PietroLiuzzo commented 5 years ago

received the file from @thea-m and stored in the application in a calendars collection

PietroLiuzzo commented 5 years ago

as it turns out from the TEI list, we have been using calendar in the wrong way. here what James Cummings wrote

I notice where you have calendar="ethiopian", I'd point out that the calendar attribute uses the teidata.pointer datatype, which means it should be a URI (or fragment). Thus this is technically saying there is a file in the same directory called 'ethiopian'. (Which indeed there might be for all I know.) But presumably it might also be '#ethiopian' pointing to a inside a in the header. I'm only pointing it out because I've seen a lot of other projects' files specify calendar just as a string and not realise it should be a pointer. ;-)

I will ahve to add calendar and calendarDesc to all files with XInclude #1069

PietroLiuzzo commented 5 years ago

I have started to set up things for calendarDesc to be used.

all files need to be updated for this.

PietroLiuzzo commented 5 years ago

this issue is much larger. it affects most of the attributes which we use with simple strings from the schema and are in teidata.pointer datatype. https://tei-c.org/release/doc/tei-p5-doc/en/html/ref-teidata.pointer.html This is valid to our local schema where the attributes are replaced with local definitions which only take a value from a fixed list. Some of these, like ref are fixed in the post.xsl so that the exported TEI is correcter (not in all cases, like this calendarDesc is not considered) so, it might remain an option to leave with it, but make the export correct.

the xi:include solution is very painful, see comment above, plus needs a full review of the code which deals with dates. examples with xi:include https://betamasaheft.eu/IHA0968 and https://betamasaheft.eu/RIE189

PietroLiuzzo commented 5 years ago

Also the values in @who need to be prefixed and point to the editors file using prefixDef. James Cummings suggested to

in the working version use prefixDef to define prefixes so you can have things like contrib:ES or cal:hijri and have those point to local shared files between all files. Then when generating the full TEI version you resolve all those pointers and include things like pointed to bibliographic items, contributor's respStmts, calendarDesc etc.

PietroLiuzzo commented 5 years ago

calendar and who are now fine in the postprocessed file, while they are documented in their use by our customization. The calendarDesc element is added only if there is any attribute calendar. the list of editors is populated with additional respStmt with xml:id for each author of a change which is not mentioned there as editor. every resp and who point to the id of editor or respStmt, which both contain the expanded form of the name from editors.xml and a link to the team page.

PietroLiuzzo commented 5 years ago

https://betamasaheft.eu/calendar

PietroLiuzzo commented 5 years ago

@thea-m when you have sometime you could try to enter some of these

<date ref="ethioCal:Maskaram1">
         1st Maskaram
  </date>

so that we see if the dates search behaves as expected and we can tailor it? thanks

thea-m commented 5 years ago

I marked up 2nd Maggabit in LIT4033Senkessar, EMML6952 and ESqdq004, but the search shows no results: https://betamasaheft.eu/calendar?day=Maggabit2 MAybe I encoded in the wrong name. And the guidelines have "You can align a commemoration to a day in the calendar, without that being a specific day in history using @calendar and a @ref like in the following example.", but the @calendar isn't used in the example?

PietroLiuzzo commented 5 years ago

guidelines were wrong

PietroLiuzzo commented 5 years ago

also the script is correct now, please have a look @thea-m, since this is the totality of instances, you should not even need to add parameters

thea-m commented 5 years ago

thank you, it works now!