💾 Archived View for rawtext.club › ~sloum › geminilist › 001307.gmi captured on 2020-11-07 at 02:07:50. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2020-09-24)

-=-=-=-=-=-=-

<-- back to the mailing list

content-disposition vs data URI

Petite Abeille petite.abeille at gmail.com

Wed Jun 3 19:25:37 BST 2020

- - - - - - - - - - - - - - - - - - - 

content-disposition defines either inline or attachment, when it comes to how to display content.

text/gemini link is firmly in the external camp, assuming explicit user action to interact with linked content: a link is an external resource to the document, an attachment, to be activated by the user.

Additionally, perhaps text/gemini could embraces data url as small inline adornment.

For example, given a small data encoded vCard, 917 bytes long:

data:text/vcard;charset=utf-8;base64,QkVHSU46VkNBUkQNClZFUlNJT046NC4wDQpOOkd1bXA7Rm9ycmVzdDs7TXIuOw0KRk46Rm9ycmVzdCBHdW1wDQpPUkc6QnViYmEgR3VtcCBTaHJpbXAgQ28uDQpUSVRMRTpTaHJpbXAgTWFuDQpQSE9UTztNRURJQVRZUEU9aW1hZ2UvZ2lmOmh0dHA6Ly93d3cuZXhhbXBsZS5jb20vZGlyX3Bob3Rvcy9teV9waG90by5naWYNClRFTDtUWVBFPXdvcmssdm9pY2U7VkFMVUU9dXJpOnRlbDorMS0xMTEtNTU1LTEyMTINClRFTDtUWVBFPWhvbWUsdm9pY2U7VkFMVUU9dXJpOnRlbDorMS00MDQtNTU1LTEyMTINCkFEUjtUWVBFPVdPUks7UFJFRj0xO0xBQkVMPSIxMDAgV2F0ZXJzIEVkZ2VuQmF5dG93biwgTEEgMzAzMTRuVW5pdGVkIFN0YXRlcyBvZiBBbWVyaWNhIjo7OzEwMCBXYXRlcnMgRWRnZTtCYXl0b3duO0xBOzMwMzE0O1VuaXRlZCBTdGF0ZXMgb2YgQW1lcmljYQ0KQURSO1RZUEU9SE9NRTtMQUJFTD0iNDIgUGxhbnRhdGlvbiBTdC5uQmF5dG93biwgTEEgMzAzMTRuVW5pdGVkIFN0YXRlcyBvZiBBbWVyaWNhIjo7OzQyIFBsYW50YXRpb24gU3QuO0JheXRvd247TEE7MzAzMTQ7VW5pdGVkIFN0YXRlcyBvZiBBbWVyaWNhDQpFTUFJTDpmb3JyZXN0Z3VtcEBleGFtcGxlLmNvbQ0KUkVWOjIwMDgwNDI0VDE5NTI0M1oNCngtcXE6MjE1ODg4OTENCkVORDpWQ0FSRA==

A client MAY render it inline, for the user to interact with, in any appropriate ways:

BEGIN:VCARDVERSION:4.0N:Gump;Forrest;;Mr.;FN:Forrest GumpORG:Bubba Gump Shrimp Co.TITLE:Shrimp ManPHOTO;MEDIATYPE=image/gif:http://www.example.com/dir_photos/my_photo.gifTEL;TYPE=work,voice;VALUE=uri:tel:+1-111-555-1212TEL;TYPE=home,voice;VALUE=uri:tel:+1-404-555-1212ADR;TYPE=WORK;PREF=1;LABEL="100 Waters Edge\nBaytown\, LA 30314\nUnited States of America":;;100 Waters Edge;Baytown;LA;30314;United States of AmericaADR;TYPE=HOME;LABEL="42 Plantation St.\nBaytown\, LA 30314\nUnited States of America":;;42 Plantation St.;Baytown;LA;30314;United States of AmericaEMAIL:forrestgump at example.comREV:20080424T195243Zx-qq:21588891END:VCARD

Forrest GumpBubba Gump Shrimp Co.Shrimp Man

100 Waters Edge Baytown LA 30314United States of America

+1-111-555-1212forrestgump at example.com

There is a bunch of micro format such as text/vcard, text/calendar, text/directory, text/csv, application/x-x509-ca-cert , etc, etc, worthwhile displaying as small inline attachment.

[1] https://en.wikipedia.org/wiki/VCard

-------------- next part --------------An HTML attachment was scrubbed...URL: <https://lists.orbitalfox.eu/archives/gemini/attachments/20200603/f0664873/attachment.htm>