473,412 Members | 2,012 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

adding commas to quote elements

<style type="text/css">
q:after{content:',"'}
</style>

<q>This will be the shame of CSS</q> claimed Marek Mänd and added that
<q>consumers expect to create generated content via CSS where there
would be no comma right after HERE</q>
Jul 21 '05 #1
9 3739
On Sat, 30 Oct 2004 23:15:05 +0300, Marek Mänd <ca********@mail.ee>
wrote:
<style type="text/css">
q:after{content:',"'}
</style>

<q>This will be the shame of CSS</q> claimed Marek Mänd and added that
<q>consumers expect to create generated content via CSS where there
would be no comma right after HERE</q>


It's too late in the evening for riddles; what are you getting at?

--
Rex
Jul 21 '05 #2
Jan Roland Eriksson wrote:
On Sat, 30 Oct 2004 23:15:05 +0300, Marek Mänd <ca********@mail.ee>
wrote:
<style type="text/css">
q:after{content:',"'}
</style>
<q>This will be the shame of CSS</q> claimed Marek Mänd and added that
<q>consumers expect to create generated content via CSS where there
would be no comma right after HERE</q>

It's too late in the evening for riddles; what are you getting at?

I want comma added before "claimed" but not comma added after HERE.
I dont want to use classnames.
If after quote end tag there is no opening tag, but a textnode
I want to add comma so it becomes

"This will be the shame of CSS," claimed

If after quote end tag there is no texnode following,
or there is a closing tag of the outer element or
there is new opening tag
I want to add fullstop. And fullstop after the "-quotes
but comma inside the "-quotes.

And do that with css generated content. That the browser itsself will
have the intelligence to add commas for me.

I think this is far beyound the capabilities of css but I need
confirmation for that.
Jul 21 '05 #3
Marek Mänd <ca********@mail.ee> wrote:
Jan Roland Eriksson wrote:
On Sat, 30 Oct 2004 23:15:05 +0300, Marek Mänd <ca********@mail.ee>
wrote:
<style type="text/css">
q:after{content:',"'}
</style>
<q>This will be the shame of CSS</q> claimed Marek Mänd and added that
<q>consumers expect to create generated content via CSS where there
would be no comma right after HERE</q> It's too late in the evening for riddles; what are you getting at?

I want comma added before "claimed" but not comma added after HERE.


So put in a comma.
I dont want to use classnames.
If after quote end tag there is no opening tag, but a textnode
I want to add comma so it becomes

"This will be the shame of CSS," claimed

If after quote end tag there is no texnode following,
or there is a closing tag of the outer element or
there is new opening tag
I want to add fullstop. And fullstop after the "-quotes
but comma inside the "-quotes.

And do that with css generated content. That the browser itsself will
have the intelligence to add commas for me.
Commas in quotations aren't any more a function of CSS than commas
anywhere else, or any other punctuation marks. I suspect that you're
getting the idea that it *would* be from what you've read about using
CSS for the quotation marks, but *that* was really just a bunch of
silliness in the first place. If markup and CSS were appropriate for
punctuation, then HTML ought to have contained the full compliment of
structural elements that involve punctuation: <sentence>,
<relative-clause>, <exclamation>, etc. To have just one construct
that's supposed to automate the punctuation for you, while leaving the
rest of it to be handled directly in the text, was absurd.

I think this is far beyound the capabilities of css but I need
confirmation for that.


It is.

--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ôter le premier point de mon adresse de courriel.
Jul 21 '05 #4
On Sun, 31 Oct 2004 02:40:29 +0300, Marek Mänd <ca********@mail.ee>
wrote:
Jan Roland Eriksson wrote:
On Sat, 30 Oct 2004 23:15:05 +0300, Marek Mänd <ca********@mail.ee>
wrote:
<style type="text/css">
q:after{content:',"'}
</style>
<q>This will be the shame of CSS</q> claimed Marek Mänd and added that
<q>consumers expect to create generated content via CSS where there
would be no comma right after HERE</q>
It's too late in the evening for riddles; what are you getting at?

I want comma added before "claimed" but not comma added after HERE.


So, use appropriate markup that will parse itself into a usable
structure for your stylesheet to work on.

This, what you are asking about (now), is as simple as pi.

--
Rex
Jul 21 '05 #5
"Marek Mänd" <ca********@mail.ee> wrote in
comp.infosystems.www.authoring.stylesheets:
I want comma added before "claimed" but not comma added after HERE.
I dont want to use classnames.


And you shouldn't. The comma is content, not presentation. If it
belongs in your text, it belongs in your text _not_ slipped in by
CSS.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Jul 21 '05 #6
Marek Mänd <ca********@mail.ee> wrote:
q:after{content:',"'}


In addition to the issue of adding commas or full stops or whatever
(which you could handle by using classes, thereby creating extra
complication into the markup), it is remarkable how people manage to add
_wrong_ quotation marks when they try to use <q> and generated content.

The Ascii quotation mark " is not a correct quotation mark in English, or
in any other human language. It has been used for some decades due to the
restrictions imposed by typewriters and early computers, but why would
you use elaborated modern techniques to generate the dull and wrong
Ascii quotation marks? You can use them much simpler, and much more
reliably simply by typing them into document content, as you type commas,
full stops, semicolons, quotation marks, and other punctuation - no need
to rely on CSS _and_ on support to the <q> element (which is being phased
out in XHTML 2.0, by the way).

It's not just a matter of casual mistakes, or a matter of simplistic
examples. Even the CSS 2.0 specification, and even the CSS 2.1 draft (or
"proposed recommendation", if you wish to make it sound more official),
the examples (using the quotes property, but this is a technicality)
manages to get _both_ examples (English and Norwegian) wrong
( http://www.w3.org/TR/CSS21/generate.html#quotes-specify ).
So if _they_ get this all wrong, authors can hardly be expected to do
much better.

Summary: Don't do quotes in CSS. If you don't know orthography and
typography, use Ascii quotation marks " (and Ascii apostrophes ' as
single quotation marks) throughout. If you do, write the correct
quotation marks into HTML documents in a suitable manner, such as
directly utf-8 encoded data, or character references, or (in some cases)
as entity references. But make sure you know the correct punctuation;
check it from reliable references. And don't do quotes in CSS.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Jul 21 '05 #7
"Jukka K. Korpela" <jk******@cs.tut.fi> wrote in
comp.infosystems.www.authoring.stylesheets:
The Ascii quotation mark " is not a correct quotation mark in English, or
in any other human language.
I disagree.
Summary: Don't do quotes in CSS.


I agree.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Jul 21 '05 #8
Marek Mänd wrote:
<style type="text/css">
q:after{content:',"'}
</style>

<q>This will be the shame of CSS</q> claimed Marek Mänd


Sadly for Marek Mänd, noone else really cared that s/he didn't like CSS.
Some even wondered if s/he was just trolling a little more, desperate to
start a "css sucks"/"no it doesn't" fight.

--
Brian (remove "invalid" to email me)
Jul 21 '05 #9
in comp.infosystems.www.authoring.stylesheets, =?ISO-8859-
1?Q?Marek_M=E4nd?= wrote:
<style type="text/css">
q:after{content:',"'}
</style>

<q>This will be the shame of CSS</q> claimed Marek Mänd and added that
<q>consumers expect to create generated content via CSS where there
would be no comma right after HERE</q>


Your example is just plain stupid.

Make another example, using some form of XML intended for marking up
sentences and and subsentences, which are in HTML covered by , . etc.

Anyway, as said long ago, just becase CSS can't do everything, it is not
a failure. Just like you, you can't do everything, but you are not
failure.
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Jul 21 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

34
by: Adam Hartshorne | last post by:
Hi All, I have the following problem, and I would be extremely grateful if somebody would be kind enough to suggest an efficient solution to it. I create an instance of a Class A, and...
14
by: Mike N. | last post by:
Hello: I have a form that contains a multiple-select field that has 12 options in it. I would like the user to be able to select UP TO FOUR of those options. If they select more than four, I...
14
by: Paul_Madden via DotNetMonster.com | last post by:
Basically I have a listbox to which I add simple STRING items- I have a progress bar which I increment whenever I populate another portion of the complete set of items I wish to add. What I observe...
2
by: Ken Fine | last post by:
In code, I'm adding javascript attributes to form elements on an ASP.NET page: body.Attributes.Add("onClick", "highlight(event);"); body.Attributes.Add("onKeyUp", "highlight(event);");...
4
by: sherifffruitfly | last post by:
Hi all, I've got a csv file for numeric data, some of which are greater than 10^3. Some bright fellow trying to br helpful put US-standard commas in these numbers, and to maintain the correct...
14
by: Adrienne Boswell | last post by:
Although this is a client side issue, I am also posting to asp.general in case there is someway to do this only server side (which I would prefer). Here's my form: <form method="post"...
2
by: freemld10 | last post by:
Hi guys, Can someone please help me to Format Numbers with commas. The script below have very large number without commas. To read numbers in trillions and billions are hard, without commas to...
11
by: Dooza | last post by:
Using ASP/VB I need to remove unwanted commas from the end of a field that will be use in an array. There are items in the field that are comma separated, so I don't want to remove them, just the...
6
by: santiago | last post by:
I guess one cannot do this: arraytot = arraytot + arraydet; So, what's the trick to adding arrays like this? Thanks.
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.