From 8813b6a11246b238bb0fea85ae656a3afa6e499e Mon Sep 17 00:00:00 2001 From: Trip Kirkpatrick Date: Thu, 2 Jan 2025 15:47:43 -0500 Subject: [PATCH 1/2] =?UTF-8?q?First=20draft=20of=20new=20recipe=20for=20v?= =?UTF-8?q?isible=20text=20annotation=20=F0=9F=93=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- recipe/0561-text-on-image/index.md | 46 +++++++++++++++++++++ recipe/0561-text-on-image/manifest.json | 54 +++++++++++++++++++++++++ 2 files changed, 100 insertions(+) create mode 100644 recipe/0561-text-on-image/index.md create mode 100644 recipe/0561-text-on-image/manifest.json diff --git a/recipe/0561-text-on-image/index.md b/recipe/0561-text-on-image/index.md new file mode 100644 index 000000000..a6cf0d178 --- /dev/null +++ b/recipe/0561-text-on-image/index.md @@ -0,0 +1,46 @@ +--- +title: Name of Recipe +id: -1 +layout: recipe +tags: [tbc] +summary: "tbc" +viewers: +topic: + - basic +--- + +## Use Case + +Describe the use case that the pattern is intended to solve. +Why is this pattern important? + +## Implementation Notes + +What do you need to know to use this pattern? +How do you 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.? + +Delete this section if it is not needed. +If you don't know what the restrictions might be initially, just leave the following line: +**Unknown - Help Needed** + +## Example + +Describe the solution in prose and provide an example. +The example json document must be an external document, and imported with the following: + +{% include manifest_links.html viewers="UV, Mirador, Annona, Clover, Ramp, Aviary, Glycerine, Theseus" manifest="manifest.json" %} + +{% include jsonviewer.html src="manifest.json" %} + +The direct link to the fixture is a useful convenience. + +## Related Recipes + +Provide a bulleted list of related recipes and why they are relevant. + +{% include acronyms.md %} +{% include links.md %} diff --git a/recipe/0561-text-on-image/manifest.json b/recipe/0561-text-on-image/manifest.json new file mode 100644 index 000000000..443604c87 --- /dev/null +++ b/recipe/0561-text-on-image/manifest.json @@ -0,0 +1,54 @@ +{ + "@context": "http://iiif.io/api/presentation/3/context.json", + "id": "{{ id.url }}", + "type": "Manifest", + "label": { "en": [ "Multimedia Canvas" ] }, + "items": [ + { + "id": "{{ id.path }}/canvas", + "type": "Canvas", + "height": 31722, + "width": 70399, + "items": [ + { + "id": "{{ id.path }}/page/p1/1", + "type": "AnnotationPage", + "items": [ + { + "id": "{{ id.path }}/annotation/p0001-image", + "type": "Annotation", + "motivation": "painting", + "body": { + "id": "https://iiif.io/api/image/3.0/example/reference/36ca0a3370db128ec984b33d71a1543d-100320001004/full/max/0/default.jpg", + "type": "Image", + "format": "image/jpeg", + "height": 31722, + "width": 70399, + "service": [ + { + "id": "https://iiif.io/api/image/3.0/example/reference/36ca0a3370db128ec984b33d71a1543d-100320001004", + "profile": "level1", + "type": "ImageService3" + } + ] + }, + "target": "{{ id.path }}/canvas" + }, + { + "id": "{{ id.path }}/annotation/p0006-text", + "type": "Annotation", + "motivation": "painting", + "body": { + "type": "TextualBody", + "format": "text/html", + "value": "

Close your browser

", + "language": "en" + }, + "target": "{{ id.path }}/canvas#xywh=27000,10200,25000,5000" + } + ] + } + ] + } + ] + } From 216d8c482a39f20f46b1da4c60f3b3ec967f61a6 Mon Sep 17 00:00:00 2001 From: Trip Kirkpatrick Date: Thu, 2 Jan 2025 15:48:14 -0500 Subject: [PATCH 2/2] =?UTF-8?q?Added=20new=20recipe=20for=20visible=20text?= =?UTF-8?q?=20annotation=20=E2=9E=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _includes/links.md | 2 ++ index.md | 1 + 2 files changed, 3 insertions(+) diff --git a/_includes/links.md b/_includes/links.md index 0f7620a31..f0d9383dd 100644 --- a/_includes/links.md +++ b/_includes/links.md @@ -79,6 +79,8 @@ [0434]: {{ site.cookbook_url | absolute_url }}/recipe/0434-choice-av/ "Multiple Choice of Audio Formats in a Single View (Canvas)" [0489]: {{ site.cookbook_url | absolute_url }}/recipe/0489-multimedia-canvas/ "Rendering Multiple Media Types on a Time-Based Canvas" +[0561]: {{ site.cookbook_url | absolute_url }}/recipe/0561-text-on-image/ "Visible Text Annotation" + [cookbook-process]: {{site.cookbook_url | absolute_url }}/recipe [trc]: {{ site.root_url | absolute_url }}/community/trc/ diff --git a/index.md b/index.md index c868e6fb7..2c7c260eb 100644 --- a/index.md +++ b/index.md @@ -94,6 +94,7 @@ _(leading on to segmentation examples later)_ * [Linking external Annotations targeting a Canvas to a Manifest][0306] * [Image in annotations][0377] * [Annotating in Multiple Languages][0346] +* [Visible Text Annotation][0561] ## Internal structure