word wrapping

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • yawnmoth

    word wrapping

    word wrapping normally treats some spaces as line feeds, if there
    hasn't been a line feed for quite a while. so while a string with
    eighty consecutive a's might not word wrap, a space placed squarely in
    the middle of that string will sorta word wrap. so why doesn't it
    seem to work with !'s? here's a page that demonstrates how !'s don't
    seem to word wrap:

    Latest news coverage, email, free stock quotes, live scores and video are just the beginning. Discover more every day at Yahoo!


    here's a page that shows how a's word wrap:

    Latest news coverage, email, free stock quotes, live scores and video are just the beginning. Discover more every day at Yahoo!


    any help would be appreciated - thanks :)
  • Harlan Messinger

    #2
    Re: word wrapping


    "yawnmoth" <terra1024@yaho o.com> wrote in message
    news:a0d63404.0 404191249.36f0f e0c@posting.goo gle.com...[color=blue]
    > word wrapping normally treats some spaces as line feeds, if there
    > hasn't been a line feed for quite a while. so while a string with
    > eighty consecutive a's might not word wrap, a space placed squarely in
    > the middle of that string will sorta word wrap. so why doesn't it
    > seem to work with !'s? here's a page that demonstrates how !'s don't
    > seem to word wrap:
    >
    > http://www.geocities.com/terra1024/wordwrap.htm
    >
    > here's a page that shows how a's word wrap:
    >
    > http://www.geocities.com/terra1024/wordwrap2.htm
    >
    > any help would be appreciated - thanks :)[/color]

    Once I fought my way past GeoCities' attempt to run applications in my
    browser and advertise to me, found that IE6 has a problem with your
    exclamation points. Wrapping is correct in all other browsers I tried. So
    it's an IE bug.

    Comment

    • Neal

      #3
      Re: word wrapping

      On Mon, 19 Apr 2004 17:40:23 -0400, Harlan Messinger
      <h.messinger@co mcast.net> wrote:
      [color=blue]
      >
      > "yawnmoth" <terra1024@yaho o.com> wrote in message
      > news:a0d63404.0 404191249.36f0f e0c@posting.goo gle.com...[color=green]
      >> word wrapping normally treats some spaces as line feeds, if there
      >> hasn't been a line feed for quite a while. so while a string with
      >> eighty consecutive a's might not word wrap, a space placed squarely in
      >> the middle of that string will sorta word wrap. so why doesn't it
      >> seem to work with !'s? here's a page that demonstrates how !'s don't
      >> seem to word wrap:
      >>
      >> http://www.geocities.com/terra1024/wordwrap.htm
      >>
      >> here's a page that shows how a's word wrap:
      >>
      >> http://www.geocities.com/terra1024/wordwrap2.htm
      >>
      >> any help would be appreciated - thanks :)[/color]
      >
      > Once I fought my way past GeoCities' attempt to run applications in my
      > browser and advertise to me, found that IE6 has a problem with your
      > exclamation points. Wrapping is correct in all other browsers I tried. So
      > it's an IE bug.
      >[/color]

      Wrapping is also incorrect in Opera 7.23.

      Comment

      • yawnmoth

        #4
        Re: word wrapping

        On Mon, 19 Apr 2004 21:59:55 -0400, Neal <neal413@spamrc n.com> wrote:
        [color=blue]
        >On Mon, 19 Apr 2004 17:40:23 -0400, Harlan Messinger
        ><h.messinger@c omcast.net> wrote:
        >[color=green]
        >>
        >> "yawnmoth" <terra1024@yaho o.com> wrote in message
        >> news:a0d63404.0 404191249.36f0f e0c@posting.goo gle.com...[color=darkred]
        >>> word wrapping normally treats some spaces as line feeds, if there
        >>> hasn't been a line feed for quite a while. so while a string with
        >>> eighty consecutive a's might not word wrap, a space placed squarely in
        >>> the middle of that string will sorta word wrap. so why doesn't it
        >>> seem to work with !'s? here's a page that demonstrates how !'s don't
        >>> seem to word wrap:
        >>>
        >>> http://www.geocities.com/terra1024/wordwrap.htm
        >>>
        >>> here's a page that shows how a's word wrap:
        >>>
        >>> http://www.geocities.com/terra1024/wordwrap2.htm
        >>>
        >>> any help would be appreciated - thanks :)[/color]
        >>
        >> Once I fought my way past GeoCities' attempt to run applications in my
        >> browser and advertise to me, found that IE6 has a problem with your
        >> exclamation points. Wrapping is correct in all other browsers I tried. So
        >> it's an IE bug.
        >>[/color]
        >
        >Wrapping is also incorrect in Opera 7.23.[/color]

        i have the same problem in that same version of Opera (haven't
        downloaded a newer version, yet). as such, i'm somewhat trepidatious
        to place the blame soley on IE.

        irregardless of the source of the problem, what can be done to fix it?
        adding a <br> between every 80 or so !'s would fix it, but that would
        also force word wrapping on browsers that don't need it (ie. ones
        running at high resolutions).

        apparently replacing even one of the !'s with an 'a' brings about word
        wrapping, but adding two spaces instead of one seems to do nothing.
        however, that said, the former isn't a very attractive solution. any
        other ideas as to a solution to this problem?

        Comment

        • Neal

          #5
          Re: word wrapping

          On Tue, 20 Apr 2004 03:39:44 GMT, yawnmoth <terra1024@yaho o.com> wrote:
          [color=blue]
          > apparently replacing even one of the !'s with an 'a' brings about word
          > wrapping, but adding two spaces instead of one seems to do nothing.
          > however, that said, the former isn't a very attractive solution. any
          > other ideas as to a solution to this problem?
          >[/color]


          Try replacing one with &#33; and see what happens.

          Comment

          • Steve Pugh

            #6
            Re: word wrapping

            terra1024@yahoo .com (yawnmoth) wrote:
            [color=blue]
            >word wrapping normally treats some spaces as line feeds, if there
            >hasn't been a line feed for quite a while. so while a string with
            >eighty consecutive a's might not word wrap, a space placed squarely in
            >the middle of that string will sorta word wrap. so why doesn't it
            >seem to work with !'s? here's a page that demonstrates how !'s don't
            >seem to word wrap:
            >
            >http://www.geocities.com/terra1024/wordwrap.htm[/color]

            Several browsers (IE and Opera included, but not Mozila) these days
            base their line breaking on the Unicode specification. Whether this is
            a smart thing to do is debatable.



            ! belongs to the EX class of characters (Exclamation/Interrogation)
            which "prohibit line break before".
            Spaces "generally provide a line break opportunity after the
            character, enable indirect breaks"

            The "prohibit line break before" trumps the "generally provide a line
            break opportunity after" so no line breaks are allowed.

            Steve

            --
            "My theories appal you, my heresies outrage you,
            I never answer letters and you don't like my tie." - The Doctor

            Steve Pugh <steve@pugh.net > <http://steve.pugh.net/>

            Comment

            • Jukka K. Korpela

              #7
              Re: word wrapping

              Steve Pugh <steve@pugh.net > wrote:
              [color=blue]
              > Several browsers (IE and Opera included, but not Mozila) these days
              > base their line breaking on the Unicode specification.[/color]

              Well, in part. They usually implement the foolish parts and add some
              additional wrong line breaks.
              [color=blue]
              > Whether this is
              > a smart thing to do is debatable.[/color]

              Yes, it is debatable to the extent that some people are willing to find
              excuses for the absurd rules.

              For details see also http://www.cs.tut.fi/~jkorpela/html/nobr.html

              If you wish to _prevent_ a line break in an expression like !foo, then
              the only reasonably safe way is to write <nobr>!foo</nobr>. (The only
              real risk is that in distant future, browsers might drop support to this
              element.)

              --
              Yucca, http://www.cs.tut.fi/~jkorpela/
              Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

              Comment

              • Goodwater

                #8
                Re: word wrapping

                How can i correct this Bug (WRAP) in <TABLE> TAG ??

                asdfsafsdfasdfa sdfsafsdfasdfas dfsafsdfasdfasd fsafsdfasdfasdf safsdfasdfasdfs afsdfasdfasdfsa fsdfasdfasdfsaf sdfasdfasdfsafs dfasdfasdfsafsd fasdfasdfsafsdf asdfasdfsafsdfa sdfasdfsafsdfas dfasdfsafsdfasd fasdfsafsdfasdf asdfsafsdfasdfa sdfsafsdfasdfas dfsafsdfasdfasd fsafsdfasdfasdf safsd

                Comment

                • Stanimir Stamenkov

                  #9
                  Re: word wrapping

                  /Jukka K. Korpela/:[color=blue]
                  > Steve Pugh <steve@pugh.net > wrote:
                  >[color=green]
                  >> Several browsers (IE and Opera included, but not Mozila) these days
                  >> base their line breaking on the Unicode specification.[/color]
                  >
                  > Well, in part. They usually implement the foolish parts and add some
                  > additional wrong line breaks.
                  >[color=green]
                  >> Whether this is
                  >> a smart thing to do is debatable.[/color]
                  >
                  > Yes, it is debatable to the extent that some people are willing to find
                  > excuses for the absurd rules.[/color]

                  Well, I've been thinking there's real need of a more precise
                  line/word break hinting capabilities which could be either specified
                  through a style properties or with Unicode control characters. And
                  here goes my question: Does Unicode provide means to specify such
                  line/word break intention:

                  <div class="line-or-lines">
                  <span class="break-here-first">couple of words</span>
                  <span class="break-here-first">more words</span>
                  <span class="break-here-first">yet another sentence</span>
                  </div>

                  so as normal line breaks would occur between words but to break on a
                  whole SPAN sentence first, if it doesn't fit on the current line?

                  --
                  Stanimir

                  Comment

                  • Jukka K. Korpela

                    #10
                    Re: word wrapping

                    Stanimir Stamenkov <s7an10@netscap e.net> wrote:
                    [color=blue]
                    > Does Unicode provide means to specify such
                    > line/word break intention:
                    >
                    > <div class="line-or-lines">
                    > <span class="break-here-first">couple of words</span>
                    > <span class="break-here-first">more words</span>
                    > <span class="break-here-first">yet another sentence</span>
                    > </div>
                    >
                    > so as normal line breaks would occur between words but to break on a
                    > whole SPAN sentence first, if it doesn't fit on the current line?[/color]

                    Unicode knows nothing about HTML tags. And it does not let you specify
                    any levels in line break preferences. You can just prohibit, permit, or
                    require a line break

                    --
                    Yucca, http://www.cs.tut.fi/~jkorpela/
                    Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

                    Comment

                    • Daniel R. Tobias

                      #11
                      Re: word wrapping

                      Goodwater wrote:
                      [color=blue]
                      > How can i correct this Bug (WRAP) in <TABLE> TAG ??[/color]

                      There isn't really a "bug" in the TABLE tag... rather, there's a
                      "misfeature " in line wrapping in certain browsers (whether in or out of
                      a TABLE element), encouraged by some (possibly misguided) parts of the
                      Unicode standard.

                      --
                      == Dan ==
                      Dan's Mail Format Site: http://mailformat.dan.info/
                      Dan's Web Tips: http://webtips.dan.info/
                      Dan's Domain Site: http://domains.dan.info/

                      Comment

                      • Stanimir Stamenkov

                        #12
                        Re: word wrapping

                        /Jukka K. Korpela/:[color=blue]
                        > Stanimir Stamenkov <s7an10@netscap e.net> wrote:
                        >[color=green]
                        >> <div class="line-or-lines">
                        >> <span class="break-here-first">couple of words</span>
                        >> <span class="break-here-first">more words</span>
                        >> <span class="break-here-first">yet another sentence</span>
                        >> </div>
                        >>
                        >>so as normal line breaks would occur between words but to break on a
                        >>whole SPAN sentence first, if it doesn't fit on the current line?[/color]
                        >
                        > Unicode knows nothing about HTML tags. And it does not let you specify
                        > any levels in line break preferences. You can just prohibit, permit, or
                        > require a line break[/color]

                        O.k. I didn't meant for Unicode to understand HTML tags but if it
                        had some tagging characters to specify such levels in the line
                        breaking - thank you, for your answer.

                        --
                        Stanimir

                        Comment

                        Working...