[Seaside] Seaside and other language than english
Julian Fitzell
julian at beta4.com
Thu Dec 11 22:45:03 CET 2003
This is the problem with changing #text: to do encoding by default.
I've argued for quite some time that #text: needs to do encoding and
that we need #rawText: or #html: or #markup: that you can use in the
rare cases where you don't want the encoding. #encodeText: is just far
too long and obscure sounding for the default interface. The problem,
as you've discovered is backwards compatibility - all kinds of code
already outputs entities and html tags using the #text: method.
Incidentally, non breaking spaces are also useful in titles and are
essential when displaying empty table cells, otherwise most browsers
won't display the borders and backgrounds you've given the table (yay
browsers!!).
Julian
raymondasselin at sympatico.ca wrote:
> Hi Avi,
>
> thank for the reply.
>
> What I did: as #encodeText: use #text: , I renamed #text: to keep it. After I
> merged #encodeText: and the content of #text: in a new method named:
> WAHtmlBuilder>>text:
>
> This work but I found in some places ' ' see the .gif and look what this means
> (below)
>
> ' What is ? Is it needed?
>
>
> is the entity used to represent a non-breaking space. It is essentially a standard
> space, the primary difference being that a browser should not break (or wrap) a line of text at
> the point that this occupies.
>
> Many WYSIWYG HTML editors insert these entities in an effort to control the layout of
> the HTML document. For example, such an editor may use a series of non-breaking spaces to
> indent a paragraph like this:
> <P>
> This first line of text is supposed to be indented. However, many
> browsers will not render it as intended.
> </P>
> '
>
> Also I selected MacRoman as encoding in my WebBrowser
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/listinfo/seaside
More information about the Seaside
mailing list