remglk icon indicating copy to clipboard operation
remglk copied to clipboard

Parse the Resource Description Chunk

Open curiousdannii opened this issue 1 year ago • 3 comments

I only just noticed, but it looks like gi_blorb.c doesn't use the RDes chunk.

curiousdannii avatar Feb 10 '24 02:02 curiousdannii

Hm... (Reviewing what the heck was going on here...)

One way to wire all this together is for GlkOte to have a resource map already set up, with URLs and alt texts ready to go. Then RemGlk just sends over image numbers and GlkOte handles the rest.

Of course RemGlk can send URLs (that's the point of the -resourceurl argument). In that case, it ought to send alt texts as well. And it might not be GlkOte on the other end -- that's where you came in, I imagine.

I see there's a field defined in giblorb_auxpict_t (gi_blorb.c) to hold the alttext, and an incomplete bit of code in data_specialspan_print() which could send it out.

erkyrath avatar Jul 11 '24 23:07 erkyrath

I'd just been going off the GlkOte docs, where the alttext is part of the protocol. https://eblong.com/zarf/glk/glkote/docs.html#imagedata

TBH I don't really mind what you do here now as I've basically switched to my RemGlk port.

curiousdannii avatar Jul 11 '24 23:07 curiousdannii

Ok. I suspect the protocol doc should be clearer about what fields are optional and when.

erkyrath avatar Jul 12 '24 00:07 erkyrath