473,662 Members | 2,724 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3753
On Sat, 30 Oct 2004 23:15:05 +0300, Marek Mänd <ca********@mai l.ee>
wrote:
<style type="text/css">
q:after{conten t:',"'}
</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********@mai l.ee>
wrote:
<style type="text/css">
q:after{conte nt:',"'}
</style>
<q>This will be the shame of CSS</q> claimed Marek Mänd and added that
<q>consumer s 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********@mai l.ee> wrote:
Jan Roland Eriksson wrote:
On Sat, 30 Oct 2004 23:15:05 +0300, Marek Mänd <ca********@mai l.ee>
wrote:
<style type="text/css">
q:after{cont ent:',"'}
</style>
<q>This will be the shame of CSS</q> claimed Marek Mänd and added that
<q>consume rs 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********@mai l.ee>
wrote:
Jan Roland Eriksson wrote:
On Sat, 30 Oct 2004 23:15:05 +0300, Marek Mänd <ca********@mai l.ee>
wrote:
<style type="text/css">
q:after{cont ent:',"'}
</style>
<q>This will be the shame of CSS</q> claimed Marek Mänd and added that
<q>consume rs 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********@mai l.ee> wrote in
comp.infosystem s.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********@mai l.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.tu t.fi> wrote in
comp.infosystem s.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.infosystem s.www.authoring.stylesheets, =?ISO-8859-
1?Q?Marek_M=E4n d?= 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
4164
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 "push_back" a copy of this into a vector V. This is repeated many times in an iterative process. Ok whenever I "push_back" a copy of Class A, I also want to assign a pointer contained in an exisiting instance of a Class B to this
14
2288
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 would like to alert them of the error. To do this, I figure that counting commas would be the easiest method (i.e., IF commas > 3 THEN alert user). NOTE: I have an existing "validateForm" function for this form and I'd like to add this IF-THEN...
14
18713
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 is that as more and more are added, population of the list box takes longer and longer. ie the first 10th of the item set are added much much quicker than the last 10th. THis occurs with about 40,000 listbox items. My worry is the listbox may...
2
2195
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);"); title.Attributes.Add("onClick", "highlight(event);"); title.Attributes.Add("onKeyUp", "highlight(event);"); description.Attributes.Add("onKeyUp", "highlight(event);"); description.Attributes.Add("onClick", "highlight(event);");
4
25206
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 cell-index put quotation marks around the comma'd result. Example csv line: 43.56,345.2,"1,285,100",45.6
14
7071
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" action="<%=request.servervariables("Script_name") %>" <% for i - 0 to 4%> Header: <input type="text" name="header" id="header<%=i%>"
2
2107
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 separate the numbers. By cutting and pasting the JavaScript below into a web editor and you can clearly see what is happening. Please, help. Thank You, freemld10 <html> <head> <script type="text/javascript"> function startTime() { var seconds = 0;
11
10469
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 end ones, could be anywhere up to 5 unwanted commas. Any ideas? Cheers, Steve
6
6553
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
8435
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
8547
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8633
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7368
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6186
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5655
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4181
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1999
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1754
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.