RISC OS Open
Safeguarding the past, present and future of RISC OS for everyone
ROOL
Home | News | Downloads | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account
Forums → Community Support →

OS_GBPB9 in practice

Subscribe to OS_GBPB9  in practice 57 posts, 11 voices

Posts per page:

Pages: 1 2 3

 
Jan 24, 2023 6:09pm
Avatar Chris Mahoney (1684) 1998 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

 
Jan 24, 2023 6:44pm
Avatar Rick Murray (539) 12210 posts

think it’s good to not break at a space, but good to break at a hyphen, comma, apostrophe, @ and many other things.

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”…

 
Jan 24, 2023 6:46pm
Avatar John WILLIAMS (8368) 420 posts

I semi-regularly see people using a verbose description as a filename.

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’.

 
Jan 24, 2023 8:30pm
Avatar Steve Pampling (1551) 7334 posts

Is that by intention, or did somebody get their if clause logic back to front by accident?

Logic? This MS we’re talking about.
Since it’s been like that in every version I can recall this century, there’s probably options:

  1. Deliberate, wilful stupidity.
  2. Lack of common sense or general working grey cells
 
Jan 24, 2023 8:47pm
Avatar Ronald (387) 192 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.
The prospect of UTF-8 in filenames means you would have to allow 4 times what you would think was a generous amount, so I’m ending up with 1Kb per name 16 entries at a time = 16Kb
I think you would get away with 1k for 16 entries until you looked at foreign machines multimedia files or www filenames.

 
Jan 24, 2023 9:19pm
Avatar nemo (145) 2201 posts

UTF-8 in filenames means you would have to allow 4 times what you would think was a generous amount

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.

 
Jan 24, 2023 9:34pm
Avatar nemo (145) 2201 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!

Pages: 1 2 3

Reply

To post replies, please first log in.

Forums → Community Support →

Search forums

Social

Follow us on and

ROOL Store

Buy RISC OS Open merchandise here, including SD cards for Raspberry Pi and more.

Donate! Why?

Help ROOL make things happen – please consider donating!

RISC OS IPR

RISC OS is an Open Source operating system owned by RISC OS Developments Ltd and licensed primarily under the Apache 2.0 license.

Description

Community-provided support for all users of RISC OS.

Voices

  • Chris Mahoney (1684)
  • Rick Murray (539)
  • John WILLIAMS (8368)
  • Steve Pampling (1551)
  • Ronald (387)
  • nemo (145)

Options

  • Forums
  • Login
Site design © RISC OS Open Limited 2018 except where indicated
The RISC OS Open Beast theme is based on Beast's default layout

Valid XHTML 1.0  |  Valid CSS

Powered by Beast © 2006 Josh Goebel and Rick Olson
This site runs on Rails

Hosted by Arachsys