使用哪个引号 [英] which quotation marks to use

查看:84
本文介绍了使用哪个引号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好。多年来我一直在使用& quot;对于HTML代码中的双引号

,但是我的浏览器中的开始和结束引号呈现相同的




我正在考虑通过和使用& ldquo;和& rdquo; (成对,因为需要

)。这样做有什么*缺点*,除了时间

需要做出改变吗?


谢谢。

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.

推荐答案

Scripsit骑自行车的吉他手:
Scripsit The Bicycling Guitarist:

多年来我一直在使用& quot;对于双引号

在HTML代码中标记,
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.



根据定义,因为& quot;毫不含糊地表示ASCII引号。

As defined, since " unambiguously means the ASCII quotation mark.


我正在考虑通过和使用& ldquo;和& rdquo; (取而代之的是成对的

)。
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?



这些天不是真的。多年以前,由于浏览器缺乏支持b $ b,它们有些风险,人们(包括我)建议不要使用它们,

因为这么少(即排版)细节)要赢得这么多

(即内容的完整性)要丢失。但到目前为止,失败的可能性很小,可以忽略不计。


我没有遇到转换现有页面的麻烦,除了无论如何,当我做一些重大修改时,无论如何都要进行一些重大修改。请注意,如果你使用卷曲引号,那么你应该使用卷曲的单引号和

撇号(而不是ASCII撇号,''),

或者是破折号或减号

适当时代替ASCII连字符,甚至可能是水平的

省略号字符而不是...。

(参见 http:// www .cs.tut.fi / ~jkorpela / www / windows-chars.html


-

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

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/


星期五,2007年5月18日11:57:26 -0700,骑自行车的吉他手写道:
On Fri, 18 May 2007 11:57:26 -0700, The Bicycling Guitarist wrote:

嗨。多年来我一直在使用& quot;对于HTML代码中的双引号

,但是我的浏览器中的开始和结束引号呈现相同的




我正在考虑通过和使用& ldquo;和& rdquo; (成对,因为需要

)。这样做有什么*缺点*,除了时间

需要做出改变吗?


谢谢。
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.



根本不需要使用实体,通常:


< q>用于突出显示

外部资源。< / q>


....将让访问者的浏览器决定如何以及是否呈现

引号。对元素的支持不是通用的,但现在很常见。

可选的cite属性可以指向源的URI。


假设您决定使用无论如何,一个实体。如果你也很友好

让访问者决定他们自己的字体,那么支持就可能比其他人更有可能。&bbsp。如果您选择

访问者字体,他们可能会或可能没有您指定的字体,因此无论如何他们的

浏览器或CSS会再次选择字体。


所以,无论你如何削减它,一些游客都不会得到你希望他们得到的确切的




如果您使用& ldquo;和& rdquo;,请务必指定支持它们的非常非常常见的
字体,并且大多数浏览器都支持这种字体。

我通常只使用< ; q> ...< / q取代。在CSS中:lang伪类

允许你用CSS标记CSS中语言的引号种类

如:


q :lang(en){"''" "'''"};

q:lang(fr){"?" "?" } b / b

mbstevens
http://www.mbstevens.com/

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/



Scripsit mbstevens:
Scripsit mbstevens:

< q>用于突出显示

外部资源的简短引用。< / q>
<q>Use to highlight short quotations from
outside resources.</q>



Bzzzt。您是故意分发虚假信息还是只是无知?

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?


如果你使用& ldquo;和& rdquo;,请务必指定支持它们的非常非常常见的
字体,并且在大多数浏览器中都支持这种字体。
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.


我通常只使用< q> ...< / q>。在CSS中:lang伪类

允许你用CSS标记CSS中语言的引号种类

如:


q :lang(en){"''" "'''"};

q:lang(fr){"?" "?" };
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) {"?" "?" };



和往常一样,这两条规则都是错误的(除了IE不支持,例如

)。


-

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

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/


这篇关于使用哪个引号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆