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

Creating draft of recipe for discussion #239

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions _includes/links.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
[0024]: {{site.baseurl}}/recipe/0024-book-4-toc/ "Book with Table of contents (ranges)"

[0068]: {{site.baseurl}}/recipe/0068-newspaper/ "A newspaper"
[0079]: {{site.baseurl}}/recipe/0079-webvtt-to-annotations/ "Using Annotations for Transcripts"
[0117]: {{site.baseurl}}/recipe/0117-add-image-thumbnail/ "Manifest Thumbnail"
[0118]: {{site.baseurl}}/recipe/0118_multivalue/ "Displaying Multiple Values with Language Maps"
[0219]: {{site.baseurl}}/recipe/0219-using-caption-file/ "Using Captions and Subtitles with Video Content"
Expand Down
1 change: 1 addition & 0 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ _The corresponding 2.1 test fixture(s) is given like this, where appropriate: ..

* Transcription of image-based content - various examples gathered (43,44,45,46,47,48)
* Transcription of audio and video
* [Using Annotations for Transcripts][0079]
* [Using Caption and Subtitles with Video Content][0219]
* Transcription of content into XML, with XPaths to select a segment
* [Providing Alternative Representations][0046]
Expand Down
18 changes: 6 additions & 12 deletions recipe/0079-webvtt-to-annotations/index.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,31 @@
---
title: Transformation - WebVTT or OHMS XML to Annotations
title: Using Annotations for Timed Text
id: 79
layout: recipe
tags: [tbc]
summary: "tbc"
summary: 'tbc'
---


## Use Case

Why is this pattern is important?
When timed-text (trancscript, caption, OHMS XML files) is available for A/V content, synchronizing the display of the text and the media playback can be accomplished by transforming the timed information into annotations.

## Implementation notes

How does one implement the pattern?

## Restrictions

When is this pattern is usable / not usable? Is it deprecated? If it uses multiple specifications, which versions are needed, etc.? (Not present if not needed.)

## Example

Describe in prose and provide examples, e.g.:
Describe in prose and provide examples, e.g.:

{: .line-numbers data-src="manifest.json" }
```json
```
{% include manifest_links.html viewers="Mirador" manifest="manifest.json" %}
{% include jsonviewer.html src="manifest.json" %}

# Related recipes

Provide a bulleted list of related recipes and why they are relevant.


{% include acronyms.md %}
{% include links.md %}

58 changes: 58 additions & 0 deletions recipe/0079-webvtt-to-annotations/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"@context": "http://iiif.io/api/presentation/3/context.json",
"id": "{{ id.url }}",
"type": "Manifest",
"label": { "en": ["Lunchroom Manners"] },
"items": [
{
"id": "{{ id.path }}/canvas/1",
"type": "Canvas",
"height": 360,
"width": 480,
"duration": 572.034,
"items": [
{
"id": "{{ id.path }}/canvas/1/page",
"type": "AnnotationPage",
"items": [
{
"id": "{{ id.path }}/canvas/1/page/annotation",
"type": "Annotation",
"motivation": "painting",
"body": [
{
"id": "https://fixtures.iiif.io/video/indiana/lunchroom_manners/high/lunchroom_manners_1024kb.mp4",
"type": "Video",
"height": 360,
"width": 480,
"duration": 572.034,
"format": "video/mp4"
}
],
"target": "{{ id.path }}/canvas/1"
}
]
}
],
"annotations": [
{
"id": "{{ id.path }}/canvas/1/page/annotation",
"type": "AnnotationPage",
"items": [
{
"id": "{{ id.path }}/canvas/1/page/annotation/1",
"type": "Annotation",
"motivation": "supplementing",
"body": {
"type": "TextualBody",
"value": "Just before lunch one day, a puppet show was put on at school.",
"format": "text/plain"
},
"target": "{{ id.path }}/canvas/1#t=22.2,26.6"
}
]
}
]
}
]
}