scaife-viewer / beyond-translation-site

Site used to iterate on translation alignments within the Scaife Viewer ecosystem
3 stars 4 forks source link

Create and visualize textual notes annotations #162

Open jacobwegner opened 1 year ago

jacobwegner commented 1 year ago

e.g. https://beyond-translation.perseus.org/reader/urn:cts:engLit:mds822-32.tpsthl-1599.pdl-eng:1-6?mode=commentaries

image

Assumes:

* We can use these instructions to generate a CSV similar to https://gist.github.com/jacobwegner/3a96e1763b7bc22d827680db1351a377)

jacobwegner commented 1 year ago

@jchill-git I've left some breadcrumbs above; there are a few more things I'd like to surface as documentation on other features supported by the widget or to simplify things (one example being that we could have a "default" witness if we don't have multiple "sources").

These annotations would be loaded via the scaife_viewer.atlas.importers.text_annotations.import_text_annotations pipeline in settings.SV_ATLAS_INGESTION_PIPELINE or via:

# assumes python manage.py shell_plus

from scaife_viewer.atlas.importers.text_annotations.import_text_annotations
import_text_annotations(reset=True)
jacobwegner commented 1 year ago

(I think longer term we may have a commentary / textual notes-specific pipeline and annotation format, but what we have should work ok)

I'd mentioned that the "fragment" might be required for matching; I think it is best to have it be the same thing as the "value" of any of the tokens in ve_ref, but it is not required here. It is required for an variant of the CommentaryWidget used in Scaife Viewer 1, but not for Beyond Translation.