473,785 Members | 2,391 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

which quotation marks to use

Hi. For many years I have been using " for double quotation marks in
the HTML code, but the opening and closing quotation marks render the same
in my browser.

I'm considering going through and using “ and ” (in pairs as
needed) instead. Are there any *disadvantages* to doing so, besides the time
it will take to make the change?

Thanks.
May 18 '07 #1
31 4893
Scripsit The Bicycling Guitarist:
For many years I have been using " for double quotation
marks in the HTML code,
In vain, I'm afraid, since they give no benefit over using just the "
character (except inside attribute values).
but the opening and closing quotation marks
render the same in my browser.
As defined, since " unambiguously means the ASCII quotation mark.
I'm considering going through and using “ and ” (in pairs
as needed) instead.
For English (in American style), that's OK.
Are there any *disadvantages* to doing so,
besides the time it will take to make the change?
Not really these days. Years ago, they were somewhat risky due to lack of
support in browsers, and people (including me) advised against using them,
since there was so little (namely typographic details) to be won and so much
(namely integrity of content) to be lost. But by now, the odds of losing are
so minuscule that they can be ignored.

I haven't taken the trouble of converting existing pages except when I make
some major revision anyway. Note that if you use the curly quotes, you
should - for stylistic uniformity - also use curly single quotes and
apostrophes (instead of ASCII apostrophe, '), en or em dashes or minus sign
when appropriate instead of ASCII hyphen, and maybe even the horizontal
ellipsis character instead of "...".
(See http://www.cs.tut.fi/~jkorpela/www/windows-chars.html )

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

May 18 '07 #2
On Fri, 18 May 2007 11:57:26 -0700, The Bicycling Guitarist wrote:
Hi. For many years I have been using " for double quotation marks in
the HTML code, but the opening and closing quotation marks render the same
in my browser.

I'm considering going through and using “ and ” (in pairs as
needed) instead. Are there any *disadvantages* to doing so, besides the time
it will take to make the change?

Thanks.
No need to use an entity at all, usually:

<q>Use to highlight short quotations from
outside resources.</q>

....will let the visitor's browser decide how and if to render the
quotation marks. Support for the element is not universal, but now common.
An optional cite attribute can point to a URI of the source.

Suppose you decide to use an entity anyway. If you are also kind enough
to let the visitors decide about their own fonts, support is
probably more likely for &quot than the others. If you choose the
visitors' fonts, they may or may not have the fonts you specify, so their
browser or CSS again chooses the font anyway.

So, any way you cut it, some visitors are not going to get exactly what
you want them to get.

If you use &ldquo; and &rdquo;, be sure to specify a very, very common
font that supports them, and which is supported in most browsers.
I usually just go with <q>...</q>. In CSS the :lang pseudoclass
lets you specify the kinds of quotes for a language in CSS with markup
like:

q:lang(en) {"'" "'"};
q:lang(fr) {"«" "»" };

--
mbstevens
http://www.mbstevens.com/


May 18 '07 #3
Scripsit mbstevens:
<q>Use to highlight short quotations from
outside resources.</q>
Bzzzt. Are you intentionally distributing disinformation or just ignorant?
Support for the element is not universal, but now common.
False. Let me guess - you didn't bother testing, or you are just trolling?
If you use &ldquo; and &rdquo;, be sure to specify a very, very common
font that supports them, and which is supported in most browsers.
Nonsense. Virtually any font contains them.

I usually just go with <q>...</q>. In CSS the :lang pseudoclass
lets you specify the kinds of quotes for a language in CSS with markup
like:

q:lang(en) {"'" "'"};
q:lang(fr) {"«" "»" };
And, as usual, both rules are wrong (in addition to not being supported e.g.
by IE).

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

May 18 '07 #4
On Fri, 18 May 2007 21:34:23 +0000, mbstevens wrote:
q:lang(en) {"'" "'"};
q:lang(fr) {"«" "»" };
Pardon, got sloppy there. Should be:
q:lang(en) {quotes: "'" "'"};
q:lang(fr) {quotes: "«" "»" };


May 18 '07 #5
Scripsit mbstevens:
Pardon, got sloppy there. Should be:
>q:lang(en) {quotes: "'" "'"};
q:lang(fr) {quotes: "«" "»" };
Still both wrong, by the rules of English and French punctuation.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

May 18 '07 #6
In comp.infosystem s.www.authoring.html message
<_G************ @newsfe12.lga>, Fri, 18 May 2007 11:57:26, The Bicycling
Guitarist <Ch***@TheBicyc lingGuitarist.n etposted:
>Hi. For many years I have been using &quot; for double quotation marks in
the HTML code, but the opening and closing quotation marks render the same
in my browser.

I'm considering going through and using &ldquo; and &rdquo; (in pairs as
needed) instead. Are there any *disadvantages* to doing so, besides the time
it will take to make the change?
Provided that &quot; occurs in the source only in properly-matched pairs
(not necessarily the case in a page discussing characters or containing
javascript, for example), it should be fairly quick to make the change
with an adequate RegExp-capable programmable editor.

--
(c) John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v6.05 IE 6.
Web <URL:http://www.merlyn.demo n.co.uk/- FAQish topics, acronyms, & links.
I find MiniTrue useful for viewing/searching/altering files, at a DOS prompt;
free, DOS/Win/UNIX, <URL:http://www.idiotsdelig ht.net/minitrue/unsupported.
May 19 '07 #7
Scripsit Dr J R Stockton:
Provided that &quot; occurs in the source only in properly-matched
pairs (not necessarily the case in a page discussing characters or
containing javascript, for example), it should be fairly quick to
make the change with an adequate RegExp-capable programmable editor.
Yes, but what would happen to quotation marks written as " or to apostrophes
or to hyphens that should be dashes or minus signs? My point is that
converting from ASCII punctuation to proper orthography is more than just
making quotation marks "smart", and the process as a whole is rather
difficult to automate.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

May 19 '07 #8
Gazing into my crystal ball I observed "Jukka K. Korpela"
<jk******@cs.tu t.fiwriting in news:OMo3i.1657 93$Uh7.130437
@reader1.news.s aunalahti.fi:
>Are there any *disadvantages* to doing so,
besides the time it will take to make the change?

Not really these days
I have to disagree with that... but then I have a special reason for
wanting to disagree. Clients sometimes send me stuff to copy and paste
into their web sites, and I have to go back and make sure that the page
doesn't show something strange. Usually, I just replace them with simple
".

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

May 20 '07 #9
In comp.infosystem s.www.authoring.html message <MoG3i.166254$w Q5.160313@
reader1.news.sa unalahti.fi>, Sat, 19 May 2007 20:24:18, Jukka K. Korpela
<jk******@cs.tu t.fiposted:
>Scripsit Dr J R Stockton:
>Provided that &quot; occurs in the source only in properly-matched
pairs (not necessarily the case in a page discussing characters or
containing javascript, for example), it should be fairly quick to
make the change with an adequate RegExp-capable programmable editor.

Yes, but what would happen to quotation marks written as " or to
apostrophes or to hyphens that should be dashes or minus signs? My
point is that converting from ASCII punctuation to proper orthography
is more than just making quotation marks "smart", and the process as a
whole is rather difficult to automate.

Doing part of the task automatically or semi-automatically will reduce
the amount of task left to do by hand.

Unless I was certain that all &quot; were in properly-matched pairs, I'd
do it that substitution semi-automatically, with each change queried.
It's easier to assess whether each suggested change is certainly right,
and type Y (else N), than it is to type the change entirely manually.

Likewise, in ordinary text, every occurrence of <letter>'s<whit espace>
is a probable candidate for converting to use a formal apostrophe; and
probably every <letter>'<lette r>. Things may be harder if the
underlying text is Kikuyu, Xhosa, Klingon, or includes APL.

Another use of such a tool is to check for common typos. It's tiresome
to use a general spell-checker on my Web source files, because of the
topics and content. But every page, before upload, is checked both with
TIDY and with a scan for these lower-case "words" - fot onr shouls toy
thr foind anf ar hoe 8061 wnen ot os is - which I often type wrongly. I
don't write about playthings or gardening; and in embedded javascript I
just avoid those identifiers. But each proposed substitution is
queried.

--
(c) John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v6.05 IE 6.
Web <URL:http://www.merlyn.demo n.co.uk/- FAQish topics, acronyms, & links.
I find MiniTrue useful for viewing/searching/altering files, at a DOS prompt;
free, DOS/Win/UNIX, <URL:http://www.idiotsdelig ht.net/minitrue/unsupported.
May 20 '07 #10

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

Similar topics

1
3418
by: NikkoW | last post by:
I need to assign a string to a variable but the text string includes quotation marks: Example: MyString = "He turned and said "Hello" before leaving." When the compiler hits the quotation marks in front of Hello, it assumes the string is over and generates and error on the remainder. I must use the double quotes " in my string and not the single ' so that isn't an option. How can I avoid this? Thanks in advance from a noob thrasher!
8
3040
by: Stephen Poley | last post by:
One disadvantage of using a simple text editor to produce HTML is that it is relatively time-consuming to put in the proper typographical quotation marks and dashes. A round tuit having arrived on my desk, I've produced a couple of sed scripts to automatically convert the 'typewriter' equivalents: http://www.xs4all.nl/~sbpoley/webmatters/proper_quotes.html I've tested them fairly thoroughly, but I'd be grateful if a few other
63
5912
by: Tristan Miller | last post by:
Greetings. Do any popular browsers correctly support <q>, at least for Western languages? I've noticed that Mozilla uses the standard English double-quote character, ", regardless of the lang attribute of the HTML document. Will any browsers render German-style quotes or French-style guillemots for lang="de" and lang="fr", respectively? Regards, Tristan
7
11595
by: Paradigm | last post by:
I am trying to create a recordset where some text fields are matching. The problem is that some of the text fields contain quotation marks. I have tried to create the sql string using replace eg. "SELECT * FROM MYTABLE WHERE REPLACE(MYFIELD,"""",".") = """ & REPLACE(MYTEXT,"""",".") & """" but this does not work. Trying to replace the quotation marks with some other character in this case the stop How can I embed the quotation marks in...
0
1304
by: Aaron Deskins | last post by:
Hello all, I'm trying to set up a database to track articles and documents. I've created a Table to hold the information I need. I've set up one of the fields to hold the actual text of the document/article. It's DataType is Memo. I've also created a corresponding Form, mostly for aesthetics and ease of entering data. One problem I have is that when I cut and paste some text into the Memo field of the Form, all the quotation marks...
2
4295
by: Dixie | last post by:
Hi, I am tyring to write some generic code that will send the source SQL for a mailmerge to a Word template. I am trying to use DLookup to insert the query name that is the record source for the mailmerge with Word. The code I am working with is as follows. This code works. wrdDoc.MailMerge.OpenDataSource Name:=CurrentProject.Path & "\" & DLookup("", "tblSetUp", "ID=88"), LinkToSource:=True, Connection:="QUERY MyQuery",...
3
3535
by: Ufit | last post by:
Simple,dumm question - how to include quotation marks in the string? F.ex. "Data Source=.\SQLEXPRESS;AttachDbFilename="C:\client data.mdf";Integrated Security=True;User Instance=True" I get syntax error. Thanks for help Ufi
3
2229
by: Junior | last post by:
I want to open a text file for reading and delineate it by comma. I also want any data surrounded by quotation marks that has a comma in it, not to count the commas inside the quotation marks if the file testfile.txt contains the following; 5,Tuesday,"May is a spring month",Father's Day 1,Saturday,"June,July and August",Independance Day
12
3582
by: Adam Right | last post by:
Hi ! In my sql statement, i have to use field names and table name with quotation marks. like that : ----------------------------------------------------------------------- string sqlStr = "Select \"Person Name Field\", \"Age Field" from \"Old Table\" "; cmd.CommandText = sqlStr; -----------------------------------------------------------------------
0
9645
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...
0
9480
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10325
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10091
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,...
1
7499
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
6740
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();...
1
4053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3646
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2879
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.