Go Back   Velocity Reviews > Newsgroups > HTML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

HTML - Double space between sentences?

 
Thread Tools Search this Thread
Old 07-21-2003, 12:51 AM   #1
Default Double space between sentences?


I prefer the visual appearance of a double space between sentences. In
HTML, I get this effect by placing each sentence on its own line and
eding it with  , thus:
The quick brown fox jumps over the lazy dog. 
The new line character following the   provides the second space
before the next sentence starts.

This is, however, a STYLE thing, not CONTENT. In today's world it seems
that I should just be typing the sentences with a single separating
space and then applying an appropriate CSS sytle parameter like
sentence-space: double. I don't see any way to do this in CSS2, nor do
I see it over the horizon in CSS3.

Have I missed something?

Chris Beall





Chris Beall
  Reply With Quote
Old 07-21-2003, 02:09 AM   #2
mike c
 
Posts: n/a
Default Re: Double space between sentences?


"Chris Beall" <> wrote in message news:BOGSa.2166
>
> This is, however, a STYLE thing, not CONTENT. In today's world it seems
> that I should just be typing the sentences with a single separating
> space and then applying an appropriate CSS sytle parameter like
> sentence-space: double. I don't see any way to do this in CSS2, nor do
> I see it over the horizon in CSS3.


I'm not sure if its in CSS3 but it should be! I've always wanted to do the
same thing without resorting to presentational hacks in the HTML like adding
&nbsp;

Here's something you could try:

p span {margin-right:1em;}
<p><span>First sentence.</span><span>Second sentence.</span></p>

I can't remember off the top of my head if margins can be applied inline
elements or not??

Anyways, its still an ugly solution, and probably no better than just adding
&nbsp...

MikeyC
http://www.zeit.ca/


  Reply With Quote
Old 07-21-2003, 02:29 AM   #3
Adrienne
 
Posts: n/a
Default Re: Double space between sentences?

Gazing into my crystal ball I observed "mike c" <> writing
in news:gXHSa.11622$ e.rogers.com:

>
> "Chris Beall" <> wrote in message
> news:BOGSa.2166
>>
>> This is, however, a STYLE thing, not CONTENT. In today's world it
>> seems that I should just be typing the sentences with a single
>> separating space and then applying an appropriate CSS sytle parameter
>> like sentence-space: double. I don't see any way to do this in CSS2,
>> nor do I see it over the horizon in CSS3.

>
> I'm not sure if its in CSS3 but it should be! I've always wanted to do
> the same thing without resorting to presentational hacks in the HTML
> like adding &nbsp;
>
> Here's something you could try:
>
> p span {margin-right:1em;}
><p><span>First sentence.</span><span>Second sentence.</span></p>
>
> I can't remember off the top of my head if margins can be applied
> inline elements or not??
>
> Anyways, its still an ugly solution, and probably no better than just
> adding &nbsp...
>
> MikeyC
> http://www.zeit.ca/
>
>


Are you talking about this:
the quick brown fox jumped over the lazy dog's back.
the quick brown fox jumped over the lazy dog's back.
the quick brown fox jumped over the lazy dog's back.

As opposed to this?
the quick brown fox jumped over the lazy dog's back.

the quick brown fox jumped over the lazy dog's back.

the quick brown fox jumped over the lazy dog's back.

If so, line-height is the way to go:

p {line-height:1.5em} - play with the value


--
Adrienne Boswell
Please respond to the group so others can share
http://www.arbpen.com
  Reply With Quote
Old 07-21-2003, 02:36 AM   #4
Disco
 
Posts: n/a
Default Re: Double space between sentences?

Chris Beall wrote:
> I prefer the visual appearance of a double space between sentences.
> In HTML, I get this effect by placing each sentence on its own line
> and eding it with &nbsp;, thus:
> The quick brown fox jumps over the lazy dog.&nbsp;
> The new line character following the &nbsp; provides the second space
> before the next sentence starts.
>
> This is, however, a STYLE thing, not CONTENT. In today's world it
> seems that I should just be typing the sentences with a single
> separating space and then applying an appropriate CSS sytle parameter
> like sentence-space: double. I don't see any way to do this in CSS2,
> nor do I see it over the horizon in CSS3.
>
> Have I missed something?
>
> Chris Beall

Well, I think it would be nice to have a selector that will be something
like the ":before" or ":after" psuedo elements.

So, something like this...... this would replace the "." with something like
". "...


p {char-replacement:"." ". "}
or
p {char-replacement:"." ".&nbsp;.&nbsp;";}

or something that would be reprsentitive of whatever you want... such
as.....
p {char-replacement:"." uri(../images/blah.gif);}

if it could also be made to assign other classes to the character
found...this would also be useful for things such as highlighting 'searched
for' words such as...
p {char-find-replace-with:"elephant" class(highlightcontext)}
..... this would find the word "elephant", and apply the style from the class
"highlightecontext" to it.

maybe? or not?





  Reply With Quote
Old 07-21-2003, 03:38 AM   #5
Geoff Ball
 
Posts: n/a
Default Re: Double space between sentences?

Adrienne <Xns93BEC648F4FDDarbpenyahoocom@207.115.63.162> wrote in alt.html:

> Gazing into my crystal ball I observed "mike c" <> writing
> in news:gXHSa.11622$ e.rogers.com:


>> "Chris Beall" <> wrote in message
>> news:BOGSa.2166


>>> This is, however, a STYLE thing, not CONTENT. In today's world it
>>> seems that I should just be typing the sentences with a single
>>> separating space and then applying an appropriate CSS sytle parameter
>>> like sentence-space: double. I don't see any way to do this in CSS2,
>>> nor do I see it over the horizon in CSS3.


>> I'm not sure if its in CSS3 but it should be! I've always wanted to do
>> the same thing without resorting to presentational hacks in the HTML
>> like adding &nbsp;


> Are you talking about this:
> the quick brown fox jumped over the lazy dog's back.
> the quick brown fox jumped over the lazy dog's back.
> the quick brown fox jumped over the lazy dog's back.
>
> As opposed to this?
> the quick brown fox jumped over the lazy dog's back.
>
> the quick brown fox jumped over the lazy dog's back.
>
> the quick brown fox jumped over the lazy dog's back.
>
> If so, line-height is the way to go:


No. They mean putting two spaces after a period, like your elementary
teachers probably taught you as you were learning how to print.

ie.

I like cake. It tastes good. Cheesecake is my favourite.
vs.
I like cake. It tastes good. Cheesecake is my favourite.

Regards,
Geoff

--
http://www.doctype.ca/
http://www.allmyfaqs.com/faq.pl?Geoff_Ball
  Reply With Quote
Old 07-21-2003, 03:49 AM   #6
mike c
 
Posts: n/a
Default Re: Double space between sentences?

>
> No. They mean putting two spaces after a period, like your elementary
> teachers probably taught you as you were learning how to print.


While I was taught that in elementary school as well, does anyone have a
definitive answer on whether or not its required syntax for proper grammer?


  Reply With Quote
Old 07-21-2003, 07:56 AM   #7
PeterMcC
 
Posts: n/a
Default Re: Double space between sentences?

Chris Beall wrote:
> I prefer the visual appearance of a double space between sentences.
> In HTML, I get this effect by placing each sentence on its own line
> and eding it with &nbsp;, thus:
> The quick brown fox jumps over the lazy dog.&nbsp;
> The new line character following the &nbsp; provides the second space
> before the next sentence starts.
>
> This is, however, a STYLE thing, not CONTENT. In today's world it
> seems that I should just be typing the sentences with a single
> separating space and then applying an appropriate CSS sytle parameter
> like sentence-space: double. I don't see any way to do this in CSS2,
> nor do I see it over the horizon in CSS3.
>
> Have I missed something?
>


The threads that have dealt with this previously

Have a look on Google groups - this crops up regularly and has resulted in
some lengthy discussions of the more heat than light variety. 36 posts when
it came up in Feb, 64 in July last year, etc... I'm not saying that you
shouldn't raise this again - I'm just mentioning that you'll be lucky to get
away with a simple answer.

You, of course, can set out your documents however you want but, apart from
the convention developed for using fixed space fonts on typewriters
prevalent during the last century, there's a single space after a full stop.

--
PeterMcC
If you feel that any of the above is incorrect,
inappropriate or offensive in any way,
please ignore it and accept my apologies.

  Reply With Quote
Old 07-21-2003, 01:44 PM   #8
C A Upsdell
 
Posts: n/a
Default Re: Double space between sentences?

"Chris Beall" <> wrote in message
news:BOGSa.2166$ m...
> I prefer the visual appearance of a double space between sentences. In
> HTML, I get this effect by placing each sentence on its own line and
> eding it with &nbsp;, thus:
> The quick brown fox jumps over the lazy dog.&nbsp;
> The new line character following the &nbsp; provides the second space
> before the next sentence starts.
>
> This is, however, a STYLE thing, not CONTENT. In today's world it seems
> that I should just be typing the sentences with a single separating
> space and then applying an appropriate CSS sytle parameter like
> sentence-space: double. I don't see any way to do this in CSS2, nor do
> I see it over the horizon in CSS3.
>
> Have I missed something?


A single space separating sentences is the standard for proportional fonts.
What you want would be appropriate in some regions for monospace fonts.

I view this as being a browser issue rather than an HTML or CSS issue: the
browser should render text with a sentence gap appropriate to the font and
the user's personal preferences.



  Reply With Quote
Old 07-21-2003, 03:16 PM   #9
Don McCahill
 
Posts: n/a
Default Re: Double space between sentences?



mike c wrote:
>
> While I was taught that in elementary school as well, does anyone have a
> definitive answer on whether or not its required syntax for proper grammer?


I do. It is not proper grammar. It is a typewriter thing. Double spaces
after periods has never been acceptable in fine typography.



---

Don McCahill
www.whilo.com
  Reply With Quote
Old 07-21-2003, 03:47 PM   #10
PeterMcC
 
Posts: n/a
Default Re: Double space between sentences?

mike c wrote:
>> No. They mean putting two spaces after a period, like your elementary
>> teachers probably taught you as you were learning how to print.

>
> While I was taught that in elementary school as well, does anyone
> have a definitive answer on whether or not its required syntax for
> proper grammer?


It's neither syntax nor grammar - it was a stylistic convention used for
fixed space fonts on typewriters in the last century.

--
PeterMcC
If you feel that any of the above is incorrect,
inappropriate or offensive in any way,
please ignore it and accept my apologies.

  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Forum Jump