Skip to content

Commit

Permalink
Fixed snapshot format
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenwf committed Apr 9, 2024
1 parent 3bd14fd commit a9d1a1e
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 34 deletions.
4 changes: 2 additions & 2 deletions __tests__/presentation-2-parser/upgrade.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ describe('Presentation 2 to 3', () => {
},
{
"chars": "<p>万</p>
<p><audio style=\\"display: none;\\" controls=\\"controls\\"></audio></p>",
<p><audio style="display: none;" controls="controls"></audio></p>",
"format": "text/html",
"id": "http://example.org/dctypes:Text/423",
"type": "Text",
Expand All @@ -444,7 +444,7 @@ describe('Presentation 2 to 3', () => {
},
{
"type": "SvgSelector",
"value": "<svg xmlns='http://www.w3.org/2000/svg'><path xmlns=\\"http://www.w3.org/2000/svg\\" d=\\"M3111.52264,1062.87895h259.04821v0h259.04821v327.86107v327.86107h-259.04821h-259.04821v-327.86107z\\" data-paper-data=\\"{&quot;strokeWidth&quot;:1,&quot;rotation&quot;:0,&quot;deleteIcon&quot;:null,&quot;rotationIcon&quot;:null,&quot;group&quot;:null,&quot;editable&quot;:true,&quot;annotation&quot;:null}\\" id=\\"rectangle_023df9bc-ab63-4d9b-9426-ddbf468fa0c6\\" fill-opacity=\\"0\\" fill=\\"#00bfff\\" fill-rule=\\"nonzero\\" stroke=\\"#00bfff\\" stroke-width=\\"1\\" stroke-linecap=\\"butt\\" stroke-linejoin=\\"miter\\" stroke-miterlimit=\\"10\\" stroke-dasharray=\\"\\" stroke-dashoffset=\\"0\\" font-family=\\"none\\" font-weight=\\"none\\" font-size=\\"none\\" text-anchor=\\"none\\" style=\\"mix-blend-mode: normal\\"/></svg>",
"value": "<svg xmlns='http://www.w3.org/2000/svg'><path xmlns="http://www.w3.org/2000/svg" d="M3111.52264,1062.87895h259.04821v0h259.04821v327.86107v327.86107h-259.04821h-259.04821v-327.86107z" data-paper-data="{&quot;strokeWidth&quot;:1,&quot;rotation&quot;:0,&quot;deleteIcon&quot;:null,&quot;rotationIcon&quot;:null,&quot;group&quot;:null,&quot;editable&quot;:true,&quot;annotation&quot;:null}" id="rectangle_023df9bc-ab63-4d9b-9426-ddbf468fa0c6" fill-opacity="0" fill="#00bfff" fill-rule="nonzero" stroke="#00bfff" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"/></svg>",
},
],
"source": "https://purl.stanford.edu/ch264fq0568/iiif/canvas/ch264fq0568_1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1656,7 +1656,7 @@ exports[`Cookbook > Testing normalize %p (%p) 0007-string-formats https://iiif.i
},
"value": {
"en": [
"<span>Glen Robson, IIIF Technical Coordinator. <a href=\\"https://creativecommons.org/licenses/by-sa/3.0\\">CC BY-SA 3.0</a> <img src=\\"https://licensebuttons.net/l/by-sa/3.0/88x31.png\\"/></span>",
"<span>Glen Robson, IIIF Technical Coordinator. <a href="https://creativecommons.org/licenses/by-sa/3.0">CC BY-SA 3.0</a> <img src="https://licensebuttons.net/l/by-sa/3.0/88x31.png"/></span>",
],
},
},
Expand All @@ -1668,7 +1668,7 @@ exports[`Cookbook > Testing normalize %p (%p) 0007-string-formats https://iiif.i
"structures": [],
"summary": {
"en": [
"<p>Picture taken by the <a href=\\"https://github.com/glenrobson\\">IIIF Technical Coordinator</a></p>",
"<p>Picture taken by the <a href="https://github.com/glenrobson">IIIF Technical Coordinator</a></p>",
],
},
"thumbnail": [],
Expand Down Expand Up @@ -1767,14 +1767,14 @@ exports[`Cookbook > Testing normalize %p (%p) 0007-string-formats https://iiif.i
},
"value": {
"en": [
"<span>Glen Robson, IIIF Technical Coordinator. <a href=\\"https://creativecommons.org/licenses/by-sa/3.0\\">CC BY-SA 3.0</a> <img src=\\"https://licensebuttons.net/l/by-sa/3.0/88x31.png\\"/></span>",
"<span>Glen Robson, IIIF Technical Coordinator. <a href="https://creativecommons.org/licenses/by-sa/3.0">CC BY-SA 3.0</a> <img src="https://licensebuttons.net/l/by-sa/3.0/88x31.png"/></span>",
],
},
},
"rights": "http://creativecommons.org/licenses/by-sa/3.0/",
"summary": {
"en": [
"<p>Picture taken by the <a href=\\"https://github.com/glenrobson\\">IIIF Technical Coordinator</a></p>",
"<p>Picture taken by the <a href="https://github.com/glenrobson">IIIF Technical Coordinator</a></p>",
],
},
"type": "Manifest",
Expand Down Expand Up @@ -1942,7 +1942,7 @@ exports[`Cookbook > Testing normalize %p (%p) 0008-rights https://iiif.io/api/co
},
"value": {
"en": [
"<span>Glen Robson, IIIF Technical Coordinator. <a href=\\"https://creativecommons.org/licenses/by-sa/3.0\\">CC BY-SA 3.0</a> <a href=\\"https://creativecommons.org/licenses/by-sa/3.0\\" title\\"CC BY-SA 3.0\\"><img src=\\"https://licensebuttons.net/l/by-sa/3.0/88x31.png\\"/></a></span>",
"<span>Glen Robson, IIIF Technical Coordinator. <a href="https://creativecommons.org/licenses/by-sa/3.0">CC BY-SA 3.0</a> <a href="https://creativecommons.org/licenses/by-sa/3.0" title"CC BY-SA 3.0"><img src="https://licensebuttons.net/l/by-sa/3.0/88x31.png"/></a></span>",
],
},
},
Expand All @@ -1954,7 +1954,7 @@ exports[`Cookbook > Testing normalize %p (%p) 0008-rights https://iiif.io/api/co
"structures": [],
"summary": {
"en": [
"<p>Picture taken by the <a href=\\"https://github.com/glenrobson\\">IIIF Technical Coordinator</a></p>",
"<p>Picture taken by the <a href="https://github.com/glenrobson">IIIF Technical Coordinator</a></p>",
],
},
"thumbnail": [],
Expand Down Expand Up @@ -2039,14 +2039,14 @@ exports[`Cookbook > Testing normalize %p (%p) 0008-rights https://iiif.io/api/co
},
"value": {
"en": [
"<span>Glen Robson, IIIF Technical Coordinator. <a href=\\"https://creativecommons.org/licenses/by-sa/3.0\\">CC BY-SA 3.0</a> <a href=\\"https://creativecommons.org/licenses/by-sa/3.0\\" title\\"CC BY-SA 3.0\\"><img src=\\"https://licensebuttons.net/l/by-sa/3.0/88x31.png\\"/></a></span>",
"<span>Glen Robson, IIIF Technical Coordinator. <a href="https://creativecommons.org/licenses/by-sa/3.0">CC BY-SA 3.0</a> <a href="https://creativecommons.org/licenses/by-sa/3.0" title"CC BY-SA 3.0"><img src="https://licensebuttons.net/l/by-sa/3.0/88x31.png"/></a></span>",
],
},
},
"rights": "http://creativecommons.org/licenses/by-sa/3.0/",
"summary": {
"en": [
"<p>Picture taken by the <a href=\\"https://github.com/glenrobson\\">IIIF Technical Coordinator</a></p>",
"<p>Picture taken by the <a href="https://github.com/glenrobson">IIIF Technical Coordinator</a></p>",
],
},
"type": "Manifest",
Expand Down Expand Up @@ -3584,7 +3584,7 @@ exports[`Cookbook > Testing normalize %p (%p) 0010-book-2-viewing-direction-mani
"structures": [],
"summary": {
"en": [
"Playbill for \\"Akiba gongen kaisen-banashi,\\" \\"Futatsu chōchō kuruwa nikki\\" and \\"Godairiki koi no fūjime\\" performed at the Chikugo Theater in Osaka from the fifth month of Kaei 2 (May, 1849); main actors: Gadō Kataoka II, Ebizō Ichikawa VI, Kitō Sawamura II, Daigorō Mimasu IV and Karoku Nakamura I; on front cover: producer Mominosuke Ichikawa's crest.",
"Playbill for "Akiba gongen kaisen-banashi," "Futatsu chōchō kuruwa nikki" and "Godairiki koi no fūjime" performed at the Chikugo Theater in Osaka from the fifth month of Kaei 2 (May, 1849); main actors: Gadō Kataoka II, Ebizō Ichikawa VI, Kitō Sawamura II, Daigorō Mimasu IV and Karoku Nakamura I; on front cover: producer Mominosuke Ichikawa's crest.",
],
},
"thumbnail": [],
Expand Down Expand Up @@ -3860,7 +3860,7 @@ exports[`Cookbook > Testing normalize %p (%p) 0010-book-2-viewing-direction-mani
},
"summary": {
"en": [
"Playbill for \\"Akiba gongen kaisen-banashi,\\" \\"Futatsu chōchō kuruwa nikki\\" and \\"Godairiki koi no fūjime\\" performed at the Chikugo Theater in Osaka from the fifth month of Kaei 2 (May, 1849); main actors: Gadō Kataoka II, Ebizō Ichikawa VI, Kitō Sawamura II, Daigorō Mimasu IV and Karoku Nakamura I; on front cover: producer Mominosuke Ichikawa's crest.",
"Playbill for "Akiba gongen kaisen-banashi," "Futatsu chōchō kuruwa nikki" and "Godairiki koi no fūjime" performed at the Chikugo Theater in Osaka from the fifth month of Kaei 2 (May, 1849); main actors: Gadō Kataoka II, Ebizō Ichikawa VI, Kitō Sawamura II, Daigorō Mimasu IV and Karoku Nakamura I; on front cover: producer Mominosuke Ichikawa's crest.",
],
},
"type": "Manifest",
Expand Down Expand Up @@ -17771,7 +17771,7 @@ exports[`Cookbook > Testing normalize %p (%p) 0046-rendering https://iiif.io/api
"structures": [],
"summary": {
"en": [
"Playbill for \\"Akiba gongen kaisen-banashi,\\" \\"Futatsu chōchō kuruwa nikki\\" and \\"Godairiki koi no fūjime\\" performed at the Chikugo Theater in Osaka from the fifth month of Kaei 2 (May, 1849); main actors: Gadō Kataoka II, Ebizō Ichikawa VI, Kitō Sawamura II, Daigorō Mimasu IV and Karoku Nakamura I; on front cover: producer Mominosuke Ichikawa's crest.",
"Playbill for "Akiba gongen kaisen-banashi," "Futatsu chōchō kuruwa nikki" and "Godairiki koi no fūjime" performed at the Chikugo Theater in Osaka from the fifth month of Kaei 2 (May, 1849); main actors: Gadō Kataoka II, Ebizō Ichikawa VI, Kitō Sawamura II, Daigorō Mimasu IV and Karoku Nakamura I; on front cover: producer Mominosuke Ichikawa's crest.",
],
},
"thumbnail": [],
Expand Down Expand Up @@ -18060,7 +18060,7 @@ exports[`Cookbook > Testing normalize %p (%p) 0046-rendering https://iiif.io/api
],
"summary": {
"en": [
"Playbill for \\"Akiba gongen kaisen-banashi,\\" \\"Futatsu chōchō kuruwa nikki\\" and \\"Godairiki koi no fūjime\\" performed at the Chikugo Theater in Osaka from the fifth month of Kaei 2 (May, 1849); main actors: Gadō Kataoka II, Ebizō Ichikawa VI, Kitō Sawamura II, Daigorō Mimasu IV and Karoku Nakamura I; on front cover: producer Mominosuke Ichikawa's crest.",
"Playbill for "Akiba gongen kaisen-banashi," "Futatsu chōchō kuruwa nikki" and "Godairiki koi no fūjime" performed at the Chikugo Theater in Osaka from the fifth month of Kaei 2 (May, 1849); main actors: Gadō Kataoka II, Ebizō Ichikawa VI, Kitō Sawamura II, Daigorō Mimasu IV and Karoku Nakamura I; on front cover: producer Mominosuke Ichikawa's crest.",
],
},
"type": "Manifest",
Expand Down Expand Up @@ -19008,7 +19008,7 @@ exports[`Cookbook > Testing normalize %p (%p) 0053-seeAlso https://iiif.io/api/c
"structures": [],
"summary": {
"en": [
"Playbill for \\"Akiba gongen kaisen-banashi,\\" \\"Futatsu chōchō kuruwa nikki\\" and \\"Godairiki koi no fūjime\\" performed at the Chikugo Theater in Osaka from the fifth month of Kaei 2 (May, 1849); main actors: Gadō Kataoka II, Ebizō Ichikawa VI, Kitō Sawamura II, Daigorō Mimasu IV and Karoku Nakamura I; on front cover: producer Mominosuke Ichikawa's crest.",
"Playbill for "Akiba gongen kaisen-banashi," "Futatsu chōchō kuruwa nikki" and "Godairiki koi no fūjime" performed at the Chikugo Theater in Osaka from the fifth month of Kaei 2 (May, 1849); main actors: Gadō Kataoka II, Ebizō Ichikawa VI, Kitō Sawamura II, Daigorō Mimasu IV and Karoku Nakamura I; on front cover: producer Mominosuke Ichikawa's crest.",
],
},
"thumbnail": [],
Expand Down Expand Up @@ -19298,7 +19298,7 @@ exports[`Cookbook > Testing normalize %p (%p) 0053-seeAlso https://iiif.io/api/c
],
"summary": {
"en": [
"Playbill for \\"Akiba gongen kaisen-banashi,\\" \\"Futatsu chōchō kuruwa nikki\\" and \\"Godairiki koi no fūjime\\" performed at the Chikugo Theater in Osaka from the fifth month of Kaei 2 (May, 1849); main actors: Gadō Kataoka II, Ebizō Ichikawa VI, Kitō Sawamura II, Daigorō Mimasu IV and Karoku Nakamura I; on front cover: producer Mominosuke Ichikawa's crest.",
"Playbill for "Akiba gongen kaisen-banashi," "Futatsu chōchō kuruwa nikki" and "Godairiki koi no fūjime" performed at the Chikugo Theater in Osaka from the fifth month of Kaei 2 (May, 1849); main actors: Gadō Kataoka II, Ebizō Ichikawa VI, Kitō Sawamura II, Daigorō Mimasu IV and Karoku Nakamura I; on front cover: producer Mominosuke Ichikawa's crest.",
],
},
"type": "Manifest",
Expand Down Expand Up @@ -21582,7 +21582,7 @@ exports[`Cookbook > Testing normalize %p (%p) 0117-add-image-thumbnail https://i
"structures": [],
"summary": {
"en": [
"Cover of playbill for \\"Akiba gongen kaisen-banashi,\\" \\"Futatsu chōchō kuruwa nikki\\" and \\"Godairiki koi no fūjime\\" performed at the Chikugo Theater in Osaka from the fifth month of Kaei 2 (May, 1849); main actors: Gadō Kataoka II, Ebizō Ichikawa VI, Kitō Sawamura II, Daigorō Mimasu IV and Karoku Nakamura I; on front cover: producer Mominosuke Ichikawa's crest.",
"Cover of playbill for "Akiba gongen kaisen-banashi," "Futatsu chōchō kuruwa nikki" and "Godairiki koi no fūjime" performed at the Chikugo Theater in Osaka from the fifth month of Kaei 2 (May, 1849); main actors: Gadō Kataoka II, Ebizō Ichikawa VI, Kitō Sawamura II, Daigorō Mimasu IV and Karoku Nakamura I; on front cover: producer Mominosuke Ichikawa's crest.",
],
},
"thumbnail": [
Expand Down Expand Up @@ -21672,7 +21672,7 @@ exports[`Cookbook > Testing normalize %p (%p) 0117-add-image-thumbnail https://i
},
"summary": {
"en": [
"Cover of playbill for \\"Akiba gongen kaisen-banashi,\\" \\"Futatsu chōchō kuruwa nikki\\" and \\"Godairiki koi no fūjime\\" performed at the Chikugo Theater in Osaka from the fifth month of Kaei 2 (May, 1849); main actors: Gadō Kataoka II, Ebizō Ichikawa VI, Kitō Sawamura II, Daigorō Mimasu IV and Karoku Nakamura I; on front cover: producer Mominosuke Ichikawa's crest.",
"Cover of playbill for "Akiba gongen kaisen-banashi," "Futatsu chōchō kuruwa nikki" and "Godairiki koi no fūjime" performed at the Chikugo Theater in Osaka from the fifth month of Kaei 2 (May, 1849); main actors: Gadō Kataoka II, Ebizō Ichikawa VI, Kitō Sawamura II, Daigorō Mimasu IV and Karoku Nakamura I; on front cover: producer Mominosuke Ichikawa's crest.",
],
},
"thumbnail": [
Expand Down Expand Up @@ -24978,7 +24978,7 @@ exports[`Cookbook > Testing normalize %p (%p) 0234-provider https://iiif.io/api/
"structures": [],
"summary": {
"en": [
"Cover of playbill for \\"Akiba gongen kaisen-banashi,\\" \\"Futatsu chōchō kuruwa nikki\\" and \\"Godairiki koi no fūjime\\" performed at the Chikugo Theater in Osaka from the fifth month of Kaei 2 (May, 1849); main actors: Gadō Kataoka II, Ebizō Ichikawa VI, Kitō Sawamura II, Daigorō Mimasu IV, and Karoku Nakamura I; on front cover: producer Mominosuke Ichikawa's crest.",
"Cover of playbill for "Akiba gongen kaisen-banashi," "Futatsu chōchō kuruwa nikki" and "Godairiki koi no fūjime" performed at the Chikugo Theater in Osaka from the fifth month of Kaei 2 (May, 1849); main actors: Gadō Kataoka II, Ebizō Ichikawa VI, Kitō Sawamura II, Daigorō Mimasu IV, and Karoku Nakamura I; on front cover: producer Mominosuke Ichikawa's crest.",
],
},
"thumbnail": [],
Expand Down Expand Up @@ -25134,7 +25134,7 @@ exports[`Cookbook > Testing normalize %p (%p) 0234-provider https://iiif.io/api/
],
"summary": {
"en": [
"Cover of playbill for \\"Akiba gongen kaisen-banashi,\\" \\"Futatsu chōchō kuruwa nikki\\" and \\"Godairiki koi no fūjime\\" performed at the Chikugo Theater in Osaka from the fifth month of Kaei 2 (May, 1849); main actors: Gadō Kataoka II, Ebizō Ichikawa VI, Kitō Sawamura II, Daigorō Mimasu IV, and Karoku Nakamura I; on front cover: producer Mominosuke Ichikawa's crest.",
"Cover of playbill for "Akiba gongen kaisen-banashi," "Futatsu chōchō kuruwa nikki" and "Godairiki koi no fūjime" performed at the Chikugo Theater in Osaka from the fifth month of Kaei 2 (May, 1849); main actors: Gadō Kataoka II, Ebizō Ichikawa VI, Kitō Sawamura II, Daigorō Mimasu IV, and Karoku Nakamura I; on front cover: producer Mominosuke Ichikawa's crest.",
],
},
"type": "Manifest",
Expand Down
Loading

0 comments on commit a9d1a1e

Please sign in to comment.