Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate panels #1

Open
dirkroorda opened this issue Apr 25, 2023 · 4 comments
Open

Separate panels #1

dirkroorda opened this issue Apr 25, 2023 · 4 comments

Comments

@dirkroorda
Copy link
Member

Translations, notes, and choice/add/del elements should be taken out of the main flow of the text.

On the interface we need several panels, one for the main flow, and several for the other flows.

There are links between the data in the various flows, for example the paragraph ids in main and translation flows define the correspondence.

We need:

  • definition of the flows (the data)
  • definition of the panels (the interface)
  • definition of the data links
  • definition of how flows map onto panels

There are other concerns: what should be indexed in what index?
How many separate indexes do we need?

@pboot
Copy link
Collaborator

pboot commented Apr 25, 2023

Translations, notes, and choice/add/del elements should be taken out of the main flow of the text.

Choice/add/del can remain in main flow

For now we propose these panels

  • original text
  • translated text
  • notes
  • title
  • metadata
  • address

There are other concerns: what should be indexed in what index? How many separate indexes do we need?

The indexes maybe deserve their own issue.

@dirkroorda
Copy link
Member Author

What about the divs with type postalData ?

@pboot
Copy link
Collaborator

pboot commented May 30, 2023

Sources of panels (in XML terms)
original text: from /TEI/text/body/div[@type='original']
translated text: from /TEI/text/body/div[@type='translation']
notes: from TEI/standOff/listAnnotation[xml:lang='en']
title panel: from /TEI/teiHeader/fileDesc/titleStmt/title
metadata: from /TEI/teiHeader
postalData: from /TEI/text/body/div[@type='postalData']

Most important indications for rendering:

To be treated as div:
listAnnotation, postscript

To be treated as paragraph:
opener, closer, p, address, note

To be treated as alternatives (e.g. first option in text, second as alt text):
choice with underlying elements (orig and reg, abbr and expan, multiple unclears)

Other remarks

  • Special markup from rend-attribute on hi element (e.g. underline, superscript, etc, in space-separated list; ignore values 'right' and 'left'; we will deliver a full list in another issue)
  • ptr in text points to note. To be rendered e.g. as note number (see n attribute on corresponding note)
  • space element indicates extra whitelines: unless rend='norend'
  • add newline after dateline element
  • rs element to be rendered as hyperlink, but leave href empty for now

Content of metadata panel for now:
All TEI elements below /TEI/teiHeader/fileDesc/sourceDesc and /TEI/teiHeader/fileDesc/profileDesc:
if the element has non-whitespace text content, to be displayed as
element name colon text content
e.g.
name: Gerrit Willem Knap

@pboot
Copy link
Collaborator

pboot commented May 31, 2023

W.r.t. the alternatives: more detail in issue 19: #19 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants