remglk
remglk copied to clipboard
Parse the Resource Description Chunk
I only just noticed, but it looks like gi_blorb.c doesn't use the RDes chunk.
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.
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.
Ok. I suspect the protocol doc should be clearer about what fields are optional and when.