HighDots Forums  

How to wrap text in <p> tag if the text has no spaces and is verylong

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss How to wrap text in <p> tag if the text has no spaces and is verylong in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #21  
Old   
Ben C
 
Posts: n/a

Default Re: How to wrap text in <p> tag if the text has no spaces and is very long - 04-09-2008 , 05:33 AM






On 2008-04-03, Jukka K. Korpela <jkorpela (AT) cs (DOT) tut.fi> wrote:
Quote:
Scripsit Ben C:
[...]
In fact Unicode specifications do define a lot of stuff about line
breaking

Quite a lot indeed, with many oddities.

and most browsers either implement that or a simplification
of it although as we know they aren't required to.

I don't think any browser even tries to get close to implementing
Unicode line breaking rules or even a simplification of them.
If you're writing a browser that has to display text in a variety of
different scripts used for languages you aren't familiar with yourself,
it's much easier to load in the Unicode breaking class tables and use
the Unicode specification than it is to learn all those scripts and
their different conventions.


Reply With Quote
  #22  
Old   
dorayme
 
Posts: n/a

Default Re: How to wrap text in <p> tag if the text has no spaces and is very long - 04-09-2008 , 09:16 AM






In article <JR%Kj.323458$Yv7.230155 (AT) reader1 (DOT) news.saunalahti.fi>,
"Jukka K. Korpela" <jkorpela (AT) cs (DOT) tut.fi> wrote:

Quote:
Scripsit removeps-groups (AT) yahoo (DOT) com:

On Apr 6, 11:48 am, dorayme <doraymeRidT... (AT) optusnet (DOT) com.au> wrote:
"Jukka K. Korpela" <jkorp... (AT) cs (DOT) tut.fi> wrote:

No, of course not, you want unconditional surrender, and to
humiliate at every opportunity. You really are quite a bastard!

Do you really want to comment on a person who insults others in public,
hiding behind a fake name like a coward? Do you really want to quote his
or her rude personal attacks and false accusations? Was it necessary for
your purposes?
removeps-groups quoted this miserable lowly stinking excuse for a live
being - me - quite unnecessarily. I wish he had not.

Here we are then, in full agreement. Quite a pretty situation really, a
lowly flaky fake and a proud upstanding named individual who is never
rude, never makes personal attacks and never accuses anyone falsely.

Got to go, there are a couple of fairies at the bottom of my garden that
want to have a chat.

--
dorayme


Reply With Quote
  #23  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: How to wrap text in <p> tag if the text has no spaces and is very long - 04-09-2008 , 02:11 PM



Scripsit Ben C:

Quote:
I don't think any browser even tries to get close to implementing
Unicode line breaking rules or even a simplification of them.

If you're writing a browser that has to display text in a variety of
different scripts used for languages you aren't familiar with
yourself, it's much easier to load in the Unicode breaking class
tables and use the Unicode specification than it is to learn all
those scripts and their different conventions.
Quite right, so it's somewhat surprising that browsers don't do that.

One reason to this might be that Unicode line breaking rules haven't
been stable. Moreover, they are fairly complex. (And applying them
indiscriminately leads to poor results, like breaking after "-" even in
a context like "the temperature is -8 degrees".)

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/



Reply With Quote
  #24  
Old   
Andreas Prilop
 
Posts: n/a

Default Re: How to wrap text in <p> tag if the text has no spaces and isvery long - 04-11-2008 , 08:57 AM



On Wed, 9 Apr 2008, Jukka K. Korpela wrote:

Quote:
(And applying them indiscriminately leads to poor results,
like breaking after "-" even in a context like
"the temperature is -8 degrees".)
If you did not use a minus sign U+2212 here, you deserve it
to be punished.

--
In memoriam Alan J. Flavell
http://groups.google.com/groups/sear...Alan.J.Flavell


Reply With Quote
  #25  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: How to wrap text in <p> tag if the text has no spaces and is very long - 04-11-2008 , 09:23 AM



Scripsit Andreas Prilop:

Quote:
On Wed, 9 Apr 2008, Jukka K. Korpela wrote:

(And applying them indiscriminately leads to poor results,
like breaking after "-" even in a context like
"the temperature is -8 degrees".)

If you did not use a minus sign U+2212 here, you deserve it
to be punished.
Much more than half of the world uses hyphen-minus in the function of
minus sign, so the browser behavior is wrong for this reason, too.
Moreover, the breaking problem also applies to things like "The constant
EOF is defined as (-1)", where it would be quite inappropriate to use a
minus sign, even though the expression refers to a negative number.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.