OS_GBPB9 in practice
Chris Mahoney (1684) 2165 posts |
I semi-regularly see people using a verbose description as a filename. photo-of-john-smith-standing-next-to-the-avon-river-on-23-april-2006-holding-a-microphone-while-giving-a-presentation-to-lincoln-high-school-students-on-the-importance-of-cleaning-and-drying-the-bottoms-of-boats-to-prevent-the-spread-of-didymo-in-our-waterways-7b.jpg |
Rick Murray (539) 13850 posts |
Is that by intention, or did somebody get their if clause logic back to front by accident? That being said, it’s an easy trap to call into – Netsurf is quite happy to wrap around to a new line on the apostrophe between the “can” and the “t”… |
John WILLIAMS (8368) 495 posts |
A problem addressed by my Pic_Index program ( link ) where a description can be attached to an image in a form easily searchable by keyword! Just sayin’. |
Steve Pampling (1551) 8172 posts |
Logic? This MS we’re talking about.
|
Ronald (387) 195 posts |
The problem is that it is often required to set a buffer size, it is only less of a problem as there is plenty of memory available nowadays, tough luck for older machines that would otherwise benefit. |
nemo (145) 2556 posts |
This is not unreasonable, though in lots of places the limits work the other way – Module names for example are a maximum of 39 bytes long, which as I’ve often remarked is only just enough for this one ‘character’: One of the things I was very pleased with in the Twemoji project was a way of turning these huge Unicode sequences into valid sprite names… and back again. So the Unicode sequence here, and therefore its full textual name, is encoded in the twelve bytes of the sprite name: Anyway yes, UTF-8 means Make No Assumptions. Though having said that, MetaSprite means one can easily embed any amount of data inside a sprite, so that was a brief victory. |
nemo (145) 2556 posts |
Just looked at the Unicode 15 emoji list, and its characters to bytes ratio is 3.1428. So perhaps PI is a good multiplier! |
nemo (145) 2556 posts |
Sigh. I note with sadness that all versions of FontManager get GBPB,10 wrong – erroneously believing that R4<0 means ‘finished’. |
Rick Murray (539) 13850 posts |
Sadness? Really? You were expecting Acorn to follow their own rules? ;) |
Rick Murray (539) 13850 posts |
A quick hack for you to try if you’re so inclined. |
nemo (145) 2556 posts |
Based on 35 years’ evidence, I’m not expecting them to have even heard of them.
My HeebyGeeby module does this randomly.
Aaaaaand now I realise that FontManager thinks “Z123456789” is a metrics file. Peer review? Pier revue more like. |