Re: [Lynx-dev] mis-handling of combining characters

2023-08-30 Thread shalasz

2023/08/11 18:18 ... Thomas Dickey:

Lynx doesn't do anything with combining characters.


How about adding them up or not adding them up, with a view towards 
line-breaking?




Re: [Lynx-dev] mis-handling of combining characters

2023-08-11 Thread Thomas Dickey
On Fri, Aug 11, 2023 at 02:32:36AM +, Thorsten Glaser wrote:
> Hi,
> 
> in the attached excerpt, stripped down to almost the minimum to
> experience it, the combining characters in the “Zalgo” part seem
> to be considered as adding to the line width, therefore breaking
> too early:
> 
>“Ȩ̶̛ņ̶̛Ơ̶̙U̶̡
>g̵̢H̷̳” Shikamaru entoned with fury. His were
>black pools that seemed to be dripping, melting.
> 
> 
>“ I am exacting my
>V̵̡e̷̢ņ̷̤G̴̨
>̺̠ȩ̴̣Ą̶̱N̶̛
>̀̓C̴̢E̴̡” Shikamaru, no, the
>shadows spoke.
> 
> (this time in an 80c-wide xterm at Ian’s special request)
> 
> I would expect (first line possibly justified with extra spaces):

agreed - (reviewing a patch for this would be interesting).

Lynx doesn't do anything with combining characters.
That's done only in ncurses (or slang)

-- 
Thomas E. Dickey 
https://invisible-island.net


signature.asc
Description: PGP signature


[Lynx-dev] mis-handling of combining characters

2023-08-10 Thread Thorsten Glaser
Hi,

in the attached excerpt, stripped down to almost the minimum to
experience it, the combining characters in the “Zalgo” part seem
to be considered as adding to the line width, therefore breaking
too early:

   “Ȩ̶̛ņ̶̛Ơ̶̙U̶̡
   g̵̢H̷̳” Shikamaru entoned with fury. His were
   black pools that seemed to be dripping, melting.


   “ I am exacting my
   V̵̡e̷̢ņ̷̤G̴̨
   ̺̠ȩ̴̣Ą̶̱N̶̛
   ̀̓C̴̢E̴̡” Shikamaru, no, the
   shadows spoke.

(this time in an 80c-wide xterm at Ian’s special request)

I would expect (first line possibly justified with extra spaces):

   “Ȩ̶̛ņ̶̛Ơ̶̙U̶̡g̵̢H̷̳” Shikamaru entoned with fury. His were black pools that
   seemed to be dripping, melting.

   “ I am exacting my V̵̡e̷̢ņ̷̤G̴̨ȩ̴̣Ą̶̱N̶̛C̴̢E̴̡” Shikamaru, no, the shadows 
spoke.

I stripped all the charset identifiers when I dropped /html/head
so make sure it assumes UTF-8 when testing with the attached file.

bye,
//mirabilos
-- 
Solange man keine schmutzigen Tricks macht, und ich meine *wirklich*
schmutzige Tricks, wie bei einer doppelt verketteten Liste beide
Pointer XORen und in nur einem Word speichern, funktioniert Boehm ganz
hervorragend.   -- Andreas Bogk über boehm-gc in d.a.s.r
  

[…]

 

  
“Ȩ̶̛͇͉̤̯͎̻̠̭̹̳̟̜̰̉͑́́͋͜͝ņ̶̛͓̤͓̼̺̣̻́̔́̌̊̑͗̈̄̋̎̍̏Ơ̶̙̏̋͌̅̈͐̕U̶̡̨̻͖̦͔̝͚͇͒ͅͅg̵̢͖̤̝̼͇̦̥̦̏̂́͊̏̉̓͑͋̊͒̕H̷̳͖̔͌̐ͅ”
 Shikamaru entoned with fury. His were black pools that seemed to be dripping, 
melting. 

 

  “ I am exacting my 
V̵̡̡̗̣̻̑̍͐̍͋̈́̍̕͝e̷̢̡̢̨̺͚͔̰͈͎̰̮̮͆̃͌͜͠ͅņ̷̤͚̰̲̘̯̬̭̔̉̽̾͒͌̓̾̌̆͆͊̌́̕G̴̨̡̨̘̤̠̺̠̰̰̭̊̽̌̊͆͛̈́̓̔̈̏̊̉̈́͆ȩ̴̣͌̀̓̈́̚͜͠Ą̶̱̮̝̜̱̱͖̮̺̝̌̾̔͌͋̑̀͛͒̀̾͂͂̚N̶̛̙̮̺̹̮̈̊̃̅̀̓͒́C̴̢̰̗̟̠̳͚̮̐͐́̃̏̕͜E̴̡̢̨̗̫͓͚̣̯͎͔̗̊̊̀̽̽͊͐͗̓͠”
 Shikamaru, no, the shadows spoke. 

 

[…]