Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spaces in Poetry
#7
(07-03-2025, 04:01 PM)jim_chapman Wrote:
(07-03-2025, 07:41 AM)adaml Wrote: Wouldn't it be more HTML standards compliant to ignore multiple white spaces, but to not ignore explicite spaces? Then the behavior would be the same as you would expect in a web browser. I don't know what the behavior of other readers is as far as wrapping, and if I'd get better results on small screens using something such as an n-space instead of an nb-space.
I do see your point, but in practice, it wouldn't be easy to change Freda's treatment of no-break space symbols.  Full HTML/CSS standard compliance isn't a realistic goal for a project that's just a spare time activity for a single developer (me), and Freda's code for parsing HTML is already quite messy and fiddly (also I wrote most of it over ten years ago!) so I'm reticent about making changes to it.  Looking at the code, I actually see various places where I wrote comments like "nbsp doesn't work here, but it's hard to fix".  So it will go on my backlog of things to look at one day, but it's unlikely to be changed in the near future.

OK, thanks.
Reply


Messages In This Thread
Spaces in Poetry - by adaml - 07-01-2025, 04:51 PM
RE: Spaces in Poetry - by jim_chapman - 07-01-2025, 09:38 PM
RE: Spaces in Poetry - by adaml - 07-01-2025, 10:29 PM
RE: Spaces in Poetry - by jim_chapman - 07-02-2025, 07:49 AM
RE: Spaces in Poetry - by adaml - 07-03-2025, 07:41 AM
RE: Spaces in Poetry - by jim_chapman - 07-03-2025, 04:01 PM
RE: Spaces in Poetry - by adaml - 07-03-2025, 04:45 PM
RE: Spaces in Poetry - by jim_chapman - 07-17-2025, 08:16 AM
RE: Spaces in Poetry - by adaml - 07-17-2025, 04:58 PM
RE: Spaces in Poetry - by jim_chapman - 07-18-2025, 07:34 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)