Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Pref - character for quoted text
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  25 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Stuart Ballard  
View profile  
 More options Dec 11 2000, 4:54 pm
Newsgroups: netscape.public.mozilla.mail-news, netscape.public.mozilla.layout, netscape.public.mozilla.style
From: Stuart Ballard <sball...@netreach.net>
Date: Mon, 11 Dec 2000 16:52:39 -0500
Local: Mon, Dec 11 2000 4:52 pm
Subject: Re: Pref - character for quoted text

Ben Bucksch wrote:

> Stuart Ballard wrote:

> > Just another vote for having a display mode that uses > for
> > format=flowed. (it should still wrap correctly, just put a > on the
> > beginning of each line).

> Gecko can't do that. *shrug*

CSS needs a :every-line property similar to :first-line

Then we can do

p.quote:every-line:before { content: '> ' }

Adding n.p.m.layout and n.p.m.style - anyone here know how hard it would
be to implement such a property (or whether there is anything like it
planned in CSS3)?

Stuart.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Bucksch  
View profile  
 More options Dec 11 2000, 5:47 pm
Newsgroups: netscape.public.mozilla.mail-news, netscape.public.mozilla.layout, netscape.public.mozilla.style
From: mozilla.n...@bucksch.org (Ben Bucksch)
Date: 11 Dec 2000 22:51:04 GMT
Local: Mon, Dec 11 2000 5:51 pm
Subject: Re: Pref - character for quoted text

Stuart Ballard wrote:
> Ben Bucksch wrote:

>> Gecko can't do that. *shrug*

> CSS needs a :every-line property similar to :first-line

> Then we can do

> p.quote:every-line:before { content: '> ' }

FYI: You are completely right. This is exactly what I would have done,
if I had the option. That's why I said "can't do that".

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
J.B. Moreno  
View profile  
 More options Dec 11 2000, 11:19 pm
Newsgroups: netscape.public.mozilla.mail-news, netscape.public.mozilla.layout, netscape.public.mozilla.style
From: "J.B. Moreno" <pl...@newsreaders.com>
Date: Mon, 11 Dec 2000 23:22:36 -0500
Local: Mon, Dec 11 2000 11:22 pm
Subject: Re: Pref - character for quoted text
In article <3A355A58.6010...@bucksch.org>,
   Ben Bucksch <mozilla.n...@bucksch.org> wrote:

> Stuart Ballard wrote:
-snip-
> > CSS needs a :every-line property similar to :first-line

> > Then we can do

> > p.quote:every-line:before { content: '> ' }

> FYI: You are completely right. This is exactly what I would have done,
> if I had the option. That's why I said "can't do that".

I think his real point is that he wants to bring this to the attention
of whoever COULD add such an option to CSS or otherwise implement such
a feature.

I would like to second his plea.

--
J.B. Moreno


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Bucksch  
View profile  
 More options Dec 11 2000, 11:37 pm
Newsgroups: netscape.public.mozilla.mail-news, netscape.public.mozilla.layout, netscape.public.mozilla.style
From: mozilla.n...@bucksch.org (Ben Bucksch)
Date: 12 Dec 2000 04:40:26 GMT
Local: Mon, Dec 11 2000 11:40 pm
Subject: Re: Pref - character for quoted text

J.B. Moreno wrote:
> I think his real point is that he wants to bring this to the attention
> of whoever COULD add such an option to CSS or otherwise implement such
> a feature.

I know :).

> I would like to second his plea.

Add mine :).

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniel Glazman  
View profile  
 More options Dec 12 2000, 5:05 am
Newsgroups: netscape.public.mozilla.mail-news, netscape.public.mozilla.layout, netscape.public.mozilla.style
From: Daniel Glazman <glaz...@netscape.com>
Date: Tue, 12 Dec 2000 11:00:21 +0100
Local: Tues, Dec 12 2000 5:00 am
Subject: Re: Pref - character for quoted text

Stuart Ballard wrote:
> CSS needs a :every-line property similar to :first-line

> Then we can do

> p.quote:every-line:before { content: '> ' }

> Adding n.p.m.layout and n.p.m.style - anyone here know how hard it would
> be to implement such a property (or whether there is anything like it
> planned in CSS3)?

This is not so easy to do, in fact. When you insert generated content
before or after the contents of the element, you only have to recompute
once the block-level box and inlines boxes for the element. Even in case
of reflow due to viewport resizing.

If every line can have generated content, it can be a long
loop because each content generation changes all the inline boxes after
it.

I don't say it is impossible, just not totally trivial.

</Daniel>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stuart Ballard  
View profile  
 More options Dec 12 2000, 1:37 pm
Newsgroups: netscape.public.mozilla.mail-news, netscape.public.mozilla.layout, netscape.public.mozilla.style
From: Stuart Ballard <sball...@netreach.net>
Date: Tue, 12 Dec 2000 13:37:05 -0500
Local: Tues, Dec 12 2000 1:37 pm
Subject: Re: Pref - character for quoted text

Daniel Glazman wrote:

> This is not so easy to do, in fact. When you insert generated content
> before or after the contents of the element, you only have to recompute
> once the block-level box and inlines boxes for the element. Even in case
> of reflow due to viewport resizing.

> If every line can have generated content, it can be a long
> loop because each content generation changes all the inline boxes after
> it.

> I don't say it is impossible, just not totally trivial.

From an outsider's perspective, though, it seems like it should at least
be highly optimizable (almost to the point that the entire code would be
a special case) - the width of the generated content would be constant,
so the linewrapping could all just be done at the appropriately reduced
width.

You would have to either assume that the generated content only
inherited the style of the block-level element (so that for example

> some <b>bold
> text</b> here

would not bolden the second ">"), but given that rule, it should be easy
to implement without complexifying the rules too much. The only real
difficulty that I can imagine would be if the combined :before and
:after content were wider than the width of the box - but I'm sure that
Gecko eats special cases like that for breakfast! :)

Stuart.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dylan Schiemann  
View profile  
 More options Dec 12 2000, 2:00 pm
Newsgroups: netscape.public.mozilla.mail-news, netscape.public.mozilla.layout, netscape.public.mozilla.style
From: Dylan Schiemann <dyl...@yahoo.com>
Date: Tue, 12 Dec 2000 10:55:57 -0800
Local: Tues, Dec 12 2000 1:55 pm
Subject: Re: Pref - character for quoted text
Hi all,

I was just thinking about Daniel's comments and Stuart's reply, and it gave me
a few really rough ideas.  I could see a possibility of this working by
emulating the behavior for marker elements, with replaced content in either
the margin or padding. By default, you could have a repeat-x value for the
marker equal to the line height of the content contained inside.

Another possibility would be to extend background to include text characters,
which could base their repeat-x value on the line-height of their container.
So the style for an element would be something like:

p{padding-left:1.5em;background: char(">") repeat-x;}

or, if margins could have their own background, it could be:

p{margin-left: 1.5em char(">") repeat-x;}

While this doesn't explicity "add" the content to the document, it could give
the desired view.

-Dylan Schiemann
http://www.dylanschiemann.com/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
J.B. Moreno  
View profile  
 More options Dec 12 2000, 2:16 pm
Newsgroups: netscape.public.mozilla.mail-news, netscape.public.mozilla.layout, netscape.public.mozilla.style
From: "J.B. Moreno" <pl...@newsreaders.com>
Date: Tue, 12 Dec 2000 14:18:47 -0500
Local: Tues, Dec 12 2000 2:18 pm
Subject: Re: Pref - character for quoted text
In article <3A35F735.5050...@netscape.com>,
   Daniel Glazman <glaz...@netscape.com> wrote:

-snip inserting something on every line-

> This is not so easy to do, in fact. When you insert generated content
> before or after the contents of the element, you only have to recompute
> once the block-level box and inlines boxes for the element. Even in case
> of reflow due to viewport resizing.

> If every line can have generated content, it can be a long loop
> because each content generation changes all the inline boxes after
> it.

> I don't say it is impossible, just not totally trivial.

I realize it isn't totally trivial -- but it is perhaps the #1
request/complaint about format=flowed that I've seen.  People love the
idea, but not everyone likes the bars.

And it'd have uses outside of quoting.

--
J.B. Moreno


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robert O'Callahan  
View profile  
 More options Dec 12 2000, 10:11 pm
Newsgroups: netscape.public.mozilla.mail-news, netscape.public.mozilla.layout, netscape.public.mozilla.style
From: Robert O'Callahan <r...@cs.cmu.edu>
Date: Tue, 12 Dec 2000 22:08:55 -0500
Local: Tues, Dec 12 2000 10:08 pm
Subject: Re: Pref - character for quoted text

Stuart Ballard wrote:
> From an outsider's perspective, though, it seems like it should at least
> be highly optimizable (almost to the point that the entire code would be
> a special case) - the width of the generated content would be constant,
> so the linewrapping could all just be done at the appropriately reduced
> width.

> You would have to either assume that the generated content only
> inherited the style of the block-level element (so that for example

> > some <b>bold
> > text</b> here

> would not bolden the second ">"), but given that rule, it should be easy
> to implement without complexifying the rules too much.

That rule would be REALLY hard to implement.

> The only real
> difficulty that I can imagine would be if the combined :before and
> :after content were wider than the width of the box - but I'm sure that
> Gecko eats special cases like that for breakfast! :)

You need a more vivid imagination. Think about how this would work with
floats, tables, :first-letter, :first-line, and RTL text. Then think about
how it would work with all these things together :-). Oh, don't forget
about nested quoting.

Rob
--
[Robert O'Callahan http://www.cs.cmu.edu/~roc 7th year CMU CS PhD student
"Now when Joshua was near Jericho, he looked up and saw a man standing in
front of him with a drawn sword in his hand. Joshua went up to him and
asked, 'Are you for us or for our enemies?' 'Neither,' he replied, 'but
as commander of the army of the LORD I have now come.'" - Joshua 5:13-14]


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Bucksch  
View profile  
 More options Dec 12 2000, 11:37 pm
Newsgroups: netscape.public.mozilla.mail-news, netscape.public.mozilla.layout, netscape.public.mozilla.style
From: mozilla.n...@bucksch.org (Ben Bucksch)
Date: 13 Dec 2000 04:35:55 GMT
Local: Tues, Dec 12 2000 11:35 pm
Subject: Re: Pref - character for quoted text

Stuart Ballard wrote:
> the width of the generated content would be constant,
> so the linewrapping could all just be done at the appropriately reduced
> width.

You mean, it should be possible to limit the width of the paragraph? You
can do that today already.

So, if you don't like that format=flowed wraps only at he windows width,
because your window is too wide to allow a comfortable reading, you can
do some CSS to achiove what you want. Should work with current builds.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stuart Ballard  
View profile  
 More options Dec 13 2000, 9:47 am
Newsgroups: netscape.public.mozilla.mail-news, netscape.public.mozilla.layout, netscape.public.mozilla.style
From: Stuart Ballard <sball...@netreach.net>
Date: Wed, 13 Dec 2000 09:46:26 -0500
Local: Wed, Dec 13 2000 9:46 am
Subject: Re: Pref - character for quoted text

Robert O'Callahan wrote:

> Stuart Ballard wrote:
> > You would have to either assume that the generated content only
> > inherited the style of the block-level element (so that for example

> > > some <b>bold
> > > text</b> here

> > would not bolden the second ">"), but given that rule, it should be easy
> > to implement without complexifying the rules too much.

> That rule would be REALLY hard to implement.

I was thinking it would be *easier* to implement, because it would make
the width of the generated content constant. If you don't assume that,
you have to determine the style of the generated content based on any
*inline* elements that happen to be active that the relevant point in
the block-level element. Which means that, for example, the word
wrapping on line 1 could change the width of the generated content on
line 2, which could change the word-wrapping of line 2. So it makes your
loop much more complex, and it means you aren't word-wrapping to a fixed
width.

See below for a full specification of behavior, which explains exactly
why I think my rule would be easier to implement.

> > The only real
> > difficulty that I can imagine would be if the combined :before and
> > :after content were wider than the width of the box - but I'm sure that
> > Gecko eats special cases like that for breakfast! :)

> You need a more vivid imagination. Think about how this would work with
> floats, tables, :first-letter, :first-line, and RTL text. Then think about
> how it would work with all these things together :-). Oh, don't forget
> about nested quoting.

Okay... but first I'll clarify my specific proposal. I'm only looking
for something that will work in a limited set of cases, provided that
(1) the cases where it will work can be defined in a clear and
reasonable way based on the CSS model, and (2) it will work for
plain-text, format=flowed email. Being able to use it for HTML mail
would be a bonus, but I'm not considering it a requirement.

Thus, I am proposing that :every-line be implemented for block-level,
non-replaced elements only, and should support only the :before and
:after sub-pseudo-elements. The style for :before and :after should be
based on the style for the block-level element that :every-line is
attached to, and ignore styles on inline elements within the block.

The result of putting a :before or :after on an :every-line
pseudo-element would be:
- Calculate the style of the generated content based on regular CSS
rules, treating the :before and :after as hanging directly off the
appropriate block-level element.
- Calculate the width of the :before and :after generated content
rendered in the calculated style
- Increase the effective margins of the block-level element by the
appropriate amounts (remembering that :before is on the right for RTL
text).
- For each line that is rendered within the block-level element, also
render the generated :before and :after content in the (newly expanded)
margin.

So, having made a concrete proposal, let's see how it handles each of
your points...

> You need a more vivid imagination. Think about how this would work with
> floats, tables, :first-letter, :first-line, and RTL text. Then think about
> how it would work with all these things together :-). Oh, don't forget
> about nested quoting.

floats: Since my proposal modifies the margin, it should work just fine
with floats, right?
tables: Not a block-level non-replaced element; proposal doesn't apply.
Of course you can have block-level elements *inside* a table, in which
case the proposal still works.
:first-letter and :first-line: These would work as they usually do, but
rendering *inside* the newly-shrunk margins. I would suggest that we
shouldn't support styling the first line *of* the generated content, as
it breaks the assumption that the generated content will always be the
same width (That is, p.quote:every-line:before:first-line would be
illegal).
RTL text: nothing special, except that :before is on the right and
:after is on the left. I already mentioned that, though.
Nested quoting: margins nest, don't they? I believe this would just fall
out of the current proposal.

I'm not suggesting that this is easy to implement, but I don't think
that questions along the lines of "how would it work with XXXXX" are
terribly hard to answer :)

Stuart.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Basic (LW)  
View profile  
 More options Dec 13 2000, 3:23 pm
Newsgroups: netscape.public.mozilla.mail-news, netscape.public.mozilla.layout, netscape.public.mozilla.style
From: "Basic (LW)" <_ba...@yahoo.com>
Date: Wed, 13 Dec 2000 12:19:09 -0800
Local: Wed, Dec 13 2000 3:19 pm
Subject: Re: Pref - character for quoted text

Ooops! Attached the wrong zip file. Here is the right one. To use it
unzip it into your Users50/username/blahblahblah/chrome directory. Add a
@import url(quoteHack.css); to the top of your userContent.css file in
the same directory. If you don't have a userContent.css create one.

Basic LW

  quoteHack.zip
< 1K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
J. Moreno  
View profile  
 More options Dec 13 2000, 5:30 pm
Newsgroups: netscape.public.mozilla.mail-news, netscape.public.mozilla.layout, netscape.public.mozilla.style
From: "J. Moreno" <pl...@newsreaders.com>
Date: Wed, 13 Dec 2000 17:26:58 -0500
Local: Wed, Dec 13 2000 5:26 pm
Subject: Re: Pref - character for quoted text
In article <3A37D07E.60...@yahoo.com>,
   "Basic (LW)" <_ba...@yahoo.com> wrote:

> Hi,
> I've a CSS hack that does something like what you suggest. Attached is a
> screenshot and a zip file containing a css file and a png file. To use
> it, I put the files in the zip in the same directory as the
> userContent.css and added a @import url(quoteHack.css); to it. I've only
> tested this on win32, might not work as well on other systems because of
> font differences.

Ben, any comments upon this?  Do you think it's feasible to use as the
default, or as a standard pref at least?

From looking at the screen shot it looks fine, but a single screen shot
doesn't say a lot in this instance.

--
J.B Moreno


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Bucksch  
View profile  
 More options Dec 13 2000, 5:46 pm
Newsgroups: netscape.public.mozilla.mail-news, netscape.public.mozilla.layout, netscape.public.mozilla.style
From: mozilla.n...@bucksch.org (Ben Bucksch)
Date: 13 Dec 2000 22:49:54 GMT
Local: Wed, Dec 13 2000 5:49 pm
Subject: Re: Pref - character for quoted text

J. Moreno wrote:
> In article <3A37D07E.60...@yahoo.com>,
>    "Basic (LW)" <_ba...@yahoo.com> wrote:

>> I've a CSS hack that does something like what you suggest.

[uses background image]

> Ben, any comments upon this?

Yes, well done, especially considering my outdated docs :-/.

Somebody suggested using char(something) instead of url(animage). Is
that possible?

Observing the font size of the quoted text would be good.

Also, as akk already mentioned, using background shows problems during
copy. In the clipboard, there won't be any indication that the text was
quoted.

I istill believe that creating a :line-start pseudo-class or similar in
Gecko would be the best solution, in part because I think, it would be
generally useful, i.e. should be part of CSS3.

> Do you think it's feasible to use as the
> default

No. I believe that in general, vertical bars are better than ">"s,
especially if you know for sure that it is a quote.

> or as a standard pref at least?

Why a pref, if you can do it with a few CSS lines in your user stylesheet?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robert O'Callahan  
View profile  
 More options Dec 13 2000, 6:14 pm
Newsgroups: netscape.public.mozilla.mail-news, netscape.public.mozilla.layout, netscape.public.mozilla.style
From: Robert O'Callahan <r...@cs.cmu.edu>
Date: Wed, 13 Dec 2000 18:13:08 -0500
Local: Wed, Dec 13 2000 6:13 pm
Subject: Re: Pref - character for quoted text

"Increasing the effective margins of the block element" would require
changes to lots of code and be ugly, since we'd need to track the "real"
margin and "effective" margin separately.

> I'm not suggesting that this is easy to implement, but I don't think
> that questions along the lines of "how would it work with XXXXX" are
> terribly hard to answer :)

Your proposal is good in that respect. I was thinking you wanted the
:before and :after content to be in the normal flow, but you effectively
take it out of the normal flow, which simplifies things considerably.
However, it does have some unfortunate implications. For example, when you
select the quoted text, the quotes will not be selected. This is quite
contrary to current behavior and user expectations.

I still think that hacking layout with a custom CSS feature of limited
usefulness is not the right approach to this problem. I like Basic LW's
idea a lot more. BTW, his CSS file just contains this:

.moz-text-flowed blockquote {
        background: url(quoteHack.png) repeat-y left top !important;
        border:none !important;
        padding-left : 15px !important;

}

To make it suck less when the text size changes, the background image
could just be a tiled, connected zig-zag line --- suggestive of ">"s, but
different enough that users don't expect it to have the same size as the
block's text.

Rob
--
[Robert O'Callahan http://www.cs.cmu.edu/~roc 7th year CMU CS PhD student
"Now when Joshua was near Jericho, he looked up and saw a man standing in
front of him with a drawn sword in his hand. Joshua went up to him and
asked, 'Are you for us or for our enemies?' 'Neither,' he replied, 'but
as commander of the army of the LORD I have now come.'" - Joshua 5:13-14]


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dylan Schiemann  
View profile  
 More options Dec 13 2000, 6:55 pm
Newsgroups: netscape.public.mozilla.mail-news, netscape.public.mozilla.layout, netscape.public.mozilla.style
From: Dylan Schiemann <dyl...@yahoo.com>
Date: Wed, 13 Dec 2000 15:51:37 -0800
Local: Wed, Dec 13 2000 6:51 pm
Subject: Re: Pref - character for quoted text

Ben Bucksch wrote:
> Somebody suggested using char(something) instead of url(animage). Is
> that possible?

That somebody was me.  I was suggesting it as a proposal, not as something
that presently exists.... a way that css could be extended in css3 that was
different than a pseudo-class and maybe more widely appropriate.

> Observing the font size of the quoted text would be good.

> Also, as akk already mentioned, using background shows problems during
> copy. In the clipboard, there won't be any indication that the text was
> quoted.

It would be nice to have copy/paste retain css information in mozilla... some
sort of "Paste Special".

> I istill believe that creating a :line-start pseudo-class or similar in
> Gecko would be the best solution, in part because I think, it would be
> generally useful, i.e. should be part of CSS3.

I really think that generated content is the wrong approach here.  The
content, whether is be > or vertical lines, is really only a style to indicate
that it is someone else's quote.  That is why I suggested a style that behaved
like a background to the margin or padding.  By adding content in such a way
that it would be added to the document, it becomes a more permanent part of
the content, which seems wrong to me.

-Dylan Schiemann
http://www.dylanschiemann.com/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jonas Sicking  
View profile  
 More options Dec 13 2000, 7:35 pm
Newsgroups: netscape.public.mozilla.mail-news, netscape.public.mozilla.layout, netscape.public.mozilla.style
From: "Jonas Sicking" <sick...@bigfoot.com>
Date: Thu, 14 Dec 2000 01:31:07 +0100
Local: Wed, Dec 13 2000 7:31 pm
Subject: Re: Pref - character for quoted text

That is IMO the best way to solve this. And that would require somethat like
a char(">") for the paste to actually paste ">" characters (unlike having an
image looking like a >).

However I don't really understand why having ">" to show quotes is that
important to people? I personally love the bars and all the other cool stuff
that the text->html does. But I still think this is an interesting
discussion.

What I'd ideally see was that there was some kind of "MailML" that when
displayed in MailNews shows bars (or whatever else could be done in css) for
quotes and when converted to text (to be pasted in some textonly place)
would use ">" to quote.

IMHO the char() thing could still be useful but not very important. However
I think that there should be some way to define the font used:

body { background: char("My Cool Site", Verdana, Serif); }
or
body { background: char("My Cool Site"); background-font: Verdana, Serif; }

> > I istill believe that creating a :line-start pseudo-class or similar in
> > Gecko would be the best solution, in part because I think, it would be
> > generally useful, i.e. should be part of CSS3.

> I really think that generated content is the wrong approach here.  The
> content, whether is be > or vertical lines, is really only a style to
indicate
> that it is someone else's quote.  That is why I suggested a style that
behaved
> like a background to the margin or padding.  By adding content in such a
way
> that it would be added to the document, it becomes a more permanent part
of
> the content, which seems wrong to me.

Good point.

/ Jonas Sicking


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
J.B. Moreno  
View profile  
 More options Dec 13 2000, 11:39 pm
Newsgroups: netscape.public.mozilla.mail-news, netscape.public.mozilla.layout, netscape.public.mozilla.style
From: "J.B. Moreno" <pl...@newsreaders.com>
Date: Wed, 13 Dec 2000 23:42:13 -0500
Local: Wed, Dec 13 2000 11:42 pm
Subject: Re: Pref - character for quoted text
In article <3A37FD12.9080...@bucksch.org>,
   Ben Bucksch <mozilla.n...@bucksch.org> wrote:

I don't think that's as important as the display being "correct".

-snip-

> > Do you think it's feasible to use as the default

> No. I believe that in general, vertical bars are better than ">"s,
> especially if you know for sure that it is a quote.

We'll just have to disagree on this -- I think that for this release
it'd be better to show ">" by default and have the option of showing
bars, bars could be the default in the next version (or since my wishes
aren't being taken as commands from on high, maybe not).

> > or as a standard pref at least?

> Why a pref, if you can do it with a few CSS lines in your user stylesheet?

Because I haven't a clue as to how or where to edit the user stylesheet
and I probably never will, and I don't think I am that unusual in this
respect.

It's cool that stuff like this is possible with CSS, it's not cool to
require that the user do it for everything (in particular, this is
probably going to be a popular choice, even with the problems with
copying, and should be a pref).

--
J.B. Moreno


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Bucksch  
View profile  
 More options Dec 14 2000, 12:30 am
Newsgroups: netscape.public.mozilla.mail-news, netscape.public.mozilla.layout, netscape.public.mozilla.style
From: mozilla.n...@bucksch.org (Ben Bucksch)
Date: 14 Dec 2000 05:30:49 GMT
Local: Thurs, Dec 14 2000 12:30 am
Subject: Re: Pref - character for quoted text

Jonas Sicking wrote:
> Dylan Schiemann wrote:

>> Ben Bucksch wrote:

>>> Somebody suggested using char(something) instead of url(animage).

>> That somebody was me.  I was suggesting it as a proposal, not as something
>> that presently exists....

IC. But I guess, content(">") would work.

>>> Also, as akk already mentioned, using background shows problems during
>>> copy. In the clipboard, there won't be any indication that the text was
>>> quoted.

I just remember: The information of being a quote *is* there: The quotes
are all in a <blockquote type=cite>. Its default style is just
overridden based on the prefs. During copy, the style is not copied,
i.e. we get the raw <blockquote type=cite again>.

> What I'd ideally see was that there was some kind of "MailML" that when
> displayed in MailNews shows bars (or whatever else could be done in css) for
> quotes and when converted to text (to be pasted in some textonly place)
> would use ">" to quote.

That's how it is. Just that we don't use MailML, but HTML.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ian Hickson  
View profile  
 More options Dec 14 2000, 12:50 am
Newsgroups: netscape.public.mozilla.style, netscape.public.mozilla.layout, netscape.public.mozilla.mail-news
From: i...@hixie.ch (Ian Hickson)
Date: 14 Dec 2000 05:51:15 GMT
Local: Thurs, Dec 14 2000 12:51 am
Subject: Re: Pref - character for quoted text

On Thu, 14 Dec 2000, Ben Bucksch wrote:

> I just remember: The information of being a quote *is* there: The quotes
> are all in a <blockquote type=cite>. [...]

> Just that we don't use MailML, but HTML.

We don't use HTML either if we have |type="cite"|...

--
Ian Hickson                                     )\     _. - ._.)       fL
Netscape, Standards Compliance QA              /. `- '  (  `--'
+1 650 937 6593                                `- , ) -  > ) \
irc.mozilla.org:Hixie _________________________  (.' \) (.' -' __________


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Bucksch  
View profile  
 More options Dec 14 2000, 1:15 am
Newsgroups: netscape.public.mozilla.mail-news, netscape.public.mozilla.layout, netscape.public.mozilla.style
Followup-To: netscape.public.mozilla.mail-news
From: mozilla.n...@bucksch.org (Ben Bucksch)
Date: 14 Dec 2000 06:14:33 GMT
Local: Thurs, Dec 14 2000 1:14 am
Subject: Re: Pref - character for quoted text

J.B. Moreno wrote:
> I don't think that's as important as the display being "correct".

huh? The display is correct. (We are talking about format=flowed.) Using
">"s would only *add* ambiguity. (That doesn't mean, we shouldn't offer
the option, since some users seems to want it.)

>> Why a pref, if you can do it with a few CSS lines in your user stylesheet?

> Because I haven't a clue as to how or where to edit the user stylesheet
> and I probably never will, and I don't think I am that unusual in this
> respect.

I don't think, there will ever be pref UI for it, unless we couple it
with disabling the bars for normal plaintext.
If there is no UI, editing prefs.js or userContent.css is not very
different.

Setting Followup-To .mail-news


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alistair Vining  
View profile  
 More options Dec 14 2000, 9:14 pm
Newsgroups: netscape.public.mozilla.mail-news, netscape.public.mozilla.layout, netscape.public.mozilla.style
From: Alistair Vining <alistair.vin...@ntlworld.com>
Date: Fri, 15 Dec 2000 00:48:15 +0000
Local: Thurs, Dec 14 2000 7:48 pm
Subject: Re: Pref - character for quoted text

Stuart Ballard wrote:

> Thus, I am proposing that :every-line be implemented for block-level,
> non-replaced elements only, and should support only the :before and
> :after sub-pseudo-elements. The style for :before and :after should be
> based on the style for the block-level element that :every-line is
> attached to, and ignore styles on inline elements within the block.

But this spoils one of the more interesting uses, which is to support
the style of French (and early printed) quotation which does something
similar, so that:

If you begin a « quotation which
« spans several lines, then a guillemet
« should be placed at the start of
« lines which follow. » like that.

In early printed books, the quotation marks were sometimes in the
margin.  The über-TeX "Omega" project does this with \localleftbox{},
\localrightbox{} commands.

Real-world uses?  Oops, must be in the wrong newsgroup.

Al.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniel Glazman  
View profile  
 More options Dec 15 2000, 4:37 am
Newsgroups: netscape.public.mozilla.mail-news, netscape.public.mozilla.layout, netscape.public.mozilla.style
From: Daniel Glazman <glaz...@netscape.com>
Date: Fri, 15 Dec 2000 10:34:49 +0100
Local: Fri, Dec 15 2000 4:34 am
Subject: Re: Pref - character for quoted text

Just my .02$ about this discussion : it is about an enhancement of
the css themselves, not mozilla's, and the css&fp working group would
be happy to read it in www-st...@w3.org... It is a good way to
push something to the group efficiently.

</Daniel>, member of the css&fp wg...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dylan Schiemann  
View profile  
 More options Dec 15 2000, 11:43 am
Newsgroups: netscape.public.mozilla.mail-news, netscape.public.mozilla.layout, netscape.public.mozilla.style
From: Dylan Schiemann <dyl...@yahoo.com>
Date: Fri, 15 Dec 2000 08:40:26 -0800
Local: Fri, Dec 15 2000 11:40 am
Subject: Re: Pref - character for quoted text
Daniel,

I agree.  I was waiting for the idea to mature a little bit, but it is
probably ready for discussion with the working group.  Is anyone
interested in summarizing the desired feature and proposed ideas so far?
If not, I'll volunteer to do so sometime this weekend.

-Dylan Schiemann
http://www.dylanschiemann.com/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dylan Schiemann  
View profile  
 More options Jan 21 2001, 9:20 pm
Newsgroups: netscape.public.mozilla.mail-news, netscape.public.mozilla.layout, netscape.public.mozilla.style
From: Dylan Schiemann <dyl...@yahoo.com>
Date: Sun, 21 Jan 2001 18:17:52 -0800
Local: Sun, Jan 21 2001 9:17 pm
Subject: Re: Pref - character for quoted text
I was delayed a bit by a hardware failure and the holidays, but I finally
created a summary of this discussion and sent it to www-st...@w3.org.
Here is a repost:

A recent discussion on the n.p.m.style newsgroup addressed the issue of
using css to styles items such as replies to email, where the original
message adds a character such as > or | to each line.  A variety of ideas
were suggested, with the discussion details outlined here:

Stuart Ballard suggested an :every-line pseudo-class:

CSS needs a :every-line property similar to :first-line

Then we can do

p.quote:every-line:before { content: '> ' }

Daniel Glazman replied that:

This is not so easy to do, in fact. When you insert generated content
before or after the contents of the element, you only have to recompute
once the block-level box and inlines boxes for the element. Even in case
of reflow due to viewport resizing.

If every line can have generated content, it can be a long
loop because each content generation changes all the inline boxes after
it.

I don't say it is impossible, just not totally trivial.

Stuart Ballard replied:

From an outsider's perspective, though, it seems like it should at least
be highly optimizable (almost to the point that the entire code would be
a special case) - the width of the generated content would be constant,
so the linewrapping could all just be done at the appropriately reduced
width.

You would have to either assume that the generated content only
inherited the style of the block-level element (so that for example

> some <b>bold
> text</b> here

would not bolden the second ">"), but given that rule, it should be easy
to implement without complexifying the rules too much. The only real
difficulty that I can imagine would be if the combined :before and
:after content were wider than the width of the box - but I'm sure that
Gecko eats special cases like that for breakfast! :)

Dylan Schiemann, then suggested the following:

I was just thinking about Daniel's comments and Stuart's reply, and it
gave me
a few really rough ideas.  I could see a possibility of this working by
emulating the behavior for marker elements, with replaced content in
either
the margin or padding. By default, you could have a repeat-x value for
the
marker equal to the line height of the content contained inside.

Another possibility would be to extend background to include text
characters,
which could base their repeat-x value on the line-height of their
container.
So the style for an element would be something like:

p{padding-left:1.5em;background: char(">") repeat-x;}

or, if margins could have their own background, it could be:

p{margin-left: 1.5em char(">") repeat-x;}

While this doesn't explicity "add" the content to the document, it could
give
the desired view.

Basic LW then posted a screenshot of a hack to to this:

I've a CSS hack that does something like what you suggest. Attached is a
screenshot and a zip file containing a css file and a png file. To use
it, I put the files in the zip in the same directory as the
userContent.css and added a @import url(quoteHack.css); to it. I've only
tested this on win32, might not work as well on other systems because of
font differences.

screenshot:
news://secnews.netscape.com/3A37D07E.60501%40yahoo.com?part=1.2
zip file: news://secnews.netscape.com/3A37D07E.60501%40yahoo.com?part=1.3

Ben Bucksch then wrote:

Somebody suggested using char(something) instead of url(animage). Is
that possible?

Observing the font size of the quoted text would be good.

Also, as akk already mentioned, using background shows problems during
copy. In the clipboard, there won't be any indication that the text was
quoted.

I still believe that creating a :line-start pseudo-class or similar in
Gecko would be the best solution, in part because I think, it would be
generally useful, i.e. should be part of CSS3.

Dylan Schiemann then replied:

> Somebody suggested using char(something) instead of url(animage). Is
> that possible?

That somebody was me.  I was suggesting it as a proposal, not as
something
that presently exists.... a way that css could be extended in css3 that
was
different than a pseudo-class and maybe more widely appropriate.

> Observing the font size of the quoted text would be good.

> Also, as akk already mentioned, using background shows problems during
> copy. In the clipboard, there won't be any indication that the text was
> quoted.

It would be nice to have copy/paste retain css information in mozilla...
some
sort of "Paste Special".

> I istill believe that creating a :line-start pseudo-class or similar in
> Gecko would be the best solution, in part because I think, it would be
> generally useful, i.e. should be part of CSS3.

I really think that generated content is the wrong approach here.  The
content, whether is be > or vertical lines, is really only a style to
indicate
that it is someone else's quote.  That is why I suggested a style that
behaved
like a background to the margin or padding.  By adding content in such a
way
that it would be added to the document, it becomes a more permanent part
of
the content, which seems wrong to me.

Jonas Sicking then wrote:

That is IMO the best way to solve this. And that would require somethat
like
a char(">") for the paste to actually paste ">" characters (unlike having
an
image looking like a >).

However I don't really understand why having ">" to show quotes is that
important to people? I personally love the bars and all the other cool
stuff
that the text->html does. But I still think this is an interesting
discussion.

What I'd ideally see was that there was some kind of "MailML" that when
displayed in MailNews shows bars (or whatever else could be done in css)
for
quotes and when converted to text (to be pasted in some textonly place)
would use ">" to quote.

IMHO the char() thing could still be useful but not very important.
However
I think that there should be some way to define the font used:

body { background: char("My Cool Site", Verdana, Serif); }
or
body { background: char("My Cool Site"); background-font: Verdana, Serif;

}

Stuart Ballard then clarified his ideas:

Okay... but first I'll clarify my specific proposal. I'm only looking
for something that will work in a limited set of cases, provided that
(1) the cases where it will work can be defined in a clear and
reasonable way based on the CSS model, and (2) it will work for
plain-text, format=flowed email. Being able to use it for HTML mail
would be a bonus, but I'm not considering it a requirement.

Thus, I am proposing that :every-line be implemented for block-level,
non-replaced elements only, and should support only the :before and
:after sub-pseudo-elements. The style for :before and :after should be
based on the style for the block-level element that :every-line is
attached to, and ignore styles on inline elements within the block.

The result of putting a :before or :after on an :every-line
pseudo-element would be:
- Calculate the style of the generated content based on regular CSS
rules, treating the :before and :after as hanging directly off the
appropriate block-level element.
- Calculate the width of the :before and :after generated content
rendered in the calculated style
- Increase the effective margins of the block-level element by the
appropriate amounts (remembering that :before is on the right for RTL
text).
- For each line that is rendered within the block-level element, also
render the generated :before and :after content in the (newly expanded)
margin.

So, having made a concrete proposal, let's see how it handles each of
your points...

> You need a more vivid imagination. Think about how this would work with
> floats, tables, :first-letter, :first-line, and RTL text. Then think
about
> how it would work with all these things together :-). Oh, don't forget
> about nested quoting.

floats: Since my proposal modifies the margin, it should work just fine
with floats, right?
tables: Not a block-level non-replaced element; proposal doesn't apply.
Of course you can have block-level elements *inside* a table, in which
case the proposal still works.
:first-letter and :first-line: These would work as they usually do, but
rendering *inside* the newly-shrunk margins. I would suggest that we
shouldn't support styling the first line *of* the generated content, as
it breaks the assumption that the generated content will always be the
same width (That is, p.quote:every-line:before:first-line would be
illegal).
RTL text: nothing special, except that :before is on the right and
:after is on the left. I already mentioned that, though.
Nested quoting: margins nest, don't they? I believe this would just fall
out of the current proposal.

I'm not suggesting that this is easy to implement, but I don't think
that questions along the lines of "how would it work with XXXXX" are
terribly hard to answer :)

Robert O'Callahan then replied:

"Increasing the effective margins of the block element" would require
changes to lots of code and be ugly, since we'd need to track the "real"
margin and "effective" margin separately.

> I'm not suggesting that this is easy to implement, but I don't think
> that questions along the lines of "how would it work with XXXXX" are
> terribly hard to answer :)

Your proposal is good in that respect. I was thinking you wanted the
:before and :after content to be in the normal flow, but you effectively
take it out of the normal flow, which simplifies things considerably.
However, it does have some unfortunate implications. For example, when
you
select the quoted text, the quotes will not be selected. This is quite
contrary to current behavior and user expectations.

I still think that hacking layout with a custom CSS feature of limited
usefulness is not the right approach to this problem. I like Basic LW's
idea a lot more. BTW, his CSS file just contains this:

.moz-text-flowed blockquote {
        background: url(quoteHack.png) repeat-y left top
...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »