为什么纯文本技术文章经常在反引号和单引号中包含术语? [英] Why do plain-text technical articles often enclose terms within backticks and single quotes?
问题描述
我喜欢从网络上保存有用的大量文本页面的本地副本,因此我可以通过修改标记以包括CSS来练习改善其外观.
I like to save local copies of useful text-heavy pages from the web so I can practice improving their appearance by modifying the markup to include CSS.
我注意到页面上的某些文本通常以`和'分隔.
I've noticed that some text on the pages is often delimited by ` and '.
这是否有充分的理由?如果我认为这些引号有充分的理由,我想使用脚本自动进行修改.例如,它是特定创作工具的副产品吗?
Is there a good reason for this? I'd like to do my modifications automatically with a script if I thought these quotes were there for a good reason. Is it, for example, a byproduct of a particular authoring tool?
我尝试搜索此内容,但是搜索引擎将其视为空字符串或不完整字符串,并且未给出有意义的结果.
I have tried to search for this, but search engines treat it like empty or incomplete strings and don't give meaningful results.
A single quote example (` ') can be found in Eric Raymond's Cathedral and the Bazaar:
问题是这样的:假设洛克上一个叫乔"的人给我发了邮件.如果我将邮件取回snark,然后尝试回复,则我的邮寄者会乐意尝试将其发送到snark上不存在的"joe".手动编辑回复地址以添加到@ ccil.org很快就变得很痛苦.
The problem was this: suppose someone named `joe' on locke sent me mail. If I fetched the mail to snark and then tried to reply to it, my mailer would cheerfully try to ship it to a nonexistent `joe' on snark. Hand-editing reply addresses to tack on `@ccil.org' quickly got to be a serious pain.
推荐答案
埃里克·雷蒙德(Eric Raymond)的论文示例是Unicode以前时代人们试图通过不再使用约定来改进"其文字排版的典型示例抓住.典型的引用样式为`'
.它也用于LaTeX(自动将其转换为正确的印刷单引号‘’
).
The example of Eric Raymond’s essay is a typical example of people from pre-Unicode eras trying to "improve" the typograph of their text by using conventions that no longer hold. The quoting style `'
is typical of that. It’s also used in LaTeX (which automatically converts it to correct typographical single quotes ‘’
).
您也可以在Eric的文章中看到其他ASCII工件:例如,他使用"--
"而不是正确的"破折号"–
"(很多人都这样做,因为破折号没有在默认的Windows键盘上不存在.)
You can see other ASCII artifacts in Eric’s essay, too: for example, he uses "--
" instead of a "correct" dash "–
" (an awful lot of people do this, since the dash doesn’t exist on default Windows keyboards).
因此,这是从不广泛支持Unicode字体(或者通常是:缺乏这些印刷功能的字体)开始的时代.
As such, it’s an anachronism from a time where support for Unicode fonts (or generally: fonts lacking these typographical features) wasn’t widespread.
这篇关于为什么纯文本技术文章经常在反引号和单引号中包含术语?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!