俄罗斯卢布符号 HTML 代码?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/20665622/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Russian ruble symbol HTML code?
提问by user3116402
Since Russian central bank already approved the new symbol for Russian ruble, is there any HTML code for it? Or I need to use png images?
由于俄罗斯央行已经批准了俄罗斯卢布的新符号,是否有任何 HTML 代码?或者我需要使用 png 图像?
回答by Клаус Шварц
Since 16 June 2014 there is a letter in unicode: \u20bd
representing RUB currency sign:
自 2014 年 6 月 16 日起,Unicode 中有一个字母:\u20bd
代表 RUB 货币符号:
?
So, the answer to the question:HTML entity which should be used for RUB sign is ₽
所以,这个问题的答案:应该用于 RUB 标志的 HTML 实体是₽
Though, I suppose currently not all fonts are capable of showing it. Ability to see the sign in browser generally depends on your system fonts. As of today my Mac OS web fonts are showing it correctly, but I didn't check it on Windows and Linux.
不过,我想目前并非所有字体都能够显示它。在浏览器中查看登录的能力通常取决于您的系统字体。截至今天,我的 Mac OS 网络字体正确显示,但我没有在 Windows 和 Linux 上检查它。
Therefore it is not recommended to use this new sign when it is critical for reader to see it relying only on system fonts, that might be stale. If you want to be confident that the sign will be displayed you will need to provide your own font at least for paragraphs that may contain RUB sign.
因此,当读者看到它仅依赖于系统字体时,不建议使用这个新标志,这可能是陈旧的。如果您想确信该标志将被显示,您至少需要为可能包含 RUB 标志的段落提供您自己的字体。
From Wikipedia:
来自维基百科:
On 4 February 2014, the Unicode Technical Committee during its 138th meeting in San Jose accepted U+20BD ? ruble sign symbol for the Unicode version 7.0, the symbol was then included into Unicode 7.0 released on 16 June 2014.
2014 年 2 月 4 日,Unicode 技术委员会在圣何塞举行的第 138 次会议上接受了 U+20BD ? Unicode 版本 7.0 的卢布符号符号,该符号随后被包含在 2014 年 6 月 16 日发布的 Unicode 7.0 中。
回答by Basil Bourque
Russiachanged the Ruble symbol around 2013-12.
俄罗斯在 2013-12 年左右更改了卢布符号。
See the Wikipedia pages on Russian rubleand on Ruble signfor details.
有关详细信息,请参阅有关俄罗斯卢布和卢布符号的维基百科页面。
Unicode 7: U+20BD
Unicode 7: U+20BD
The Unicode consortium officially designated a code point, U+20BD RUBLE SIGN
, numbered 8,381 (decimal) and U+20BD (Unicode hex), for the new symbol in Unicode 7.0, released 2014-06-16. See the last entry in this Unicode chart of Currency Symbols(PDF).
Unicode 联盟正式指定了一个代码点, U+20BD RUBLE SIGN
,编号为 8,381(十进制)和 U+20BD(Unicode 十六进制),用于Unicode 7.0 中的新符号,于 2014 年 6 月 16 日发布。请参阅此货币符号 Unicode 图表( PDF) 中的最后一个条目。
Do not confuse this new character with either the Armenian letter ?
or the Latin letter ?
.
不要将此新字符与亚美尼亚字母?
或拉丁字母混淆?
。
By the way, Unicode 7 also gained the manatused in Azerbaijan, U+20BC MANAT SIGN, ₼. More importantly, Unicode also got the Spock hand sign, Vulcan Salute, U+1F596, .
顺便说一句,Unicode的7还获得了马纳特阿塞拜疆使用的,U + 20Bc的马纳特SIGN,₼。更重要的是,Unicode 还得到了Spock 手记,Vulcan Salute,U+1F596,.
Fonts
字体
Older fonts will, of course, lack a glyph. You will need to obtain new or updated fonts.
Character Entity
角色实体
I don't understand what a "HTML code" is in your question. If you meant a character entity reference, I do not know of any named reference. You can use ₽
in your HTML to reference by the decimal number of the Unicode code point.
我不明白你的问题中的“HTML 代码”是什么。如果您的意思是字符实体引用,我不知道有任何命名引用。您可以₽
在 HTML 中使用 Unicode 代码点的十进制数进行引用。
Use an abbreviation: RUB
使用缩写: RUB
As an alternative to a symbol, you can always use the 3-letter abbreviation RUB
. Standardized internationally in ISO 4217.
作为符号的替代,您始终可以使用 3 个字母的缩写RUB
。在ISO 4217 中进行了国际标准化。
Use An Image
使用图像
Yes, you could use an image.
是的,您可以使用图像。
If you must support older computers or older browsers not yet updated with support and glyphs for Unicode 7, then using an image or the RUB
abbreviation are the only sure solutions.
如果您必须支持较旧的计算机或尚未更新支持 Unicode 7 和字形的较旧浏览器,那么使用图像或RUB
缩写是唯一确定的解决方案。
Wikipedia image
维基百科图片
That Wikipedia page provides an imagedrawn in SVG formatunder a Creative Commonslicense.
该维基百科页面提供了在知识共享许可下以SVG 格式绘制的图像。
lenta.ru
lenta.ru
Perhaps this large sans-serif rendering from lenta.ru might be legally available; I don't know as I don't read Russian.
也许这个来自 lenta.ru 的大型无衬线渲染可能是合法的;我不知道,因为我不读俄语。
http://icdn.lenta.ru/images/2013/12/11/12/20131211120143352/pic_a717232efc27b9b9fb68fea1c9cd3d72.jpg
http://icdn.lenta.ru/images/2013/12/11/12/20131211120143352/pic_a717232efc27b9b9fb68fea1c9cd3d72.jpg
Here is the official specification diagram of the symbol:
这是符号的官方规格图:
回答by userlond
Use ₽
html mnemonic
使用₽
html 助记符
₽ 100
回答by Rahul Tripathi
I think as of now you have to use the images onlyfor using the rouble symbol since it was decided only on December 11, 2013so W3C will take some time to implement it.
我认为到目前为止,您必须仅将图像用于卢布符号,因为它是在 2013 年 12 月 11 日才决定的,因此 W3C 将需要一些时间来实施它。
The best I found in here like The rouble sign in HTML.
我在这里找到的最好的像The ruble sign in HTML。
<style type="text/css">
img.ruble-img { height: 1.5ex; }
span.dot { position:absolute; text-indent: -1000em; }
</style>
<p style="font-size:1em">Bunnies 100 <img src="ruble.gif" class="ruble-img" /><span class="dot">RUR</span> each</p>
<p style="font-size:1.2em">Bunnies 100 <img src="ruble.gif" class="ruble-img" /><span class="dot">RUR</span> each</p>
<p style="font-size:1.5em">Bunnies 100 <img src="ruble.gif" class="ruble-img" /><span class="dot">RUR</span> each</p>
<p style="font-size:2em">Bunnies 100 <img src="ruble.gif" class="ruble-img" /><span class="dot">RUR</span> each</p>
EDIT:-
编辑:-
As per the latest update on 16 Dec 2013:
The next discussion of course will be where in Unicode this will appear. Some have proposed that it will be U+0554, but that is the Armenian letter keh (?). Although the appearance is similar, there is a discussion online already of whether this is the best idea to transmit Armenian /k/ as a currency symbol.
Based on previous patterns, I predict that a new code will be assigned, perhaps in the Currency block (U+20BB?) or possibly the Cyrillic block. If it's in the Cyrillic block, it would a new addition to the recent Indian Rupee Symbol (U+20B9/?) and Turkish Lira sign (U+20BA/?).
当然,接下来的讨论将是这将在 Unicode 中出现的位置。有人提出它将是 U+0554,但那是亚美尼亚字母 keh (?)。尽管外观相似,但网上已经讨论过将亚美尼亚语 /k/ 作为货币符号传输是否是最佳主意。
根据之前的模式,我预测将分配一个新代码,可能在货币块 (U+20BB?) 或西里尔文块中。如果它在西里尔字母块中,它将是最近的印度卢比符号 (U+20B9/?) 和土耳其里拉符号 (U+20BA/?) 的新增内容。
回答by Michael Kruglos
Here's what Wikipedia tells us (http://en.wikipedia.org/wiki/Russian_ruble#Currency_symbol):
以下是维基百科告诉我们的内容(http://en.wikipedia.org/wiki/Russian_ruble#Currency_symbol):
On December 11, 2013, the Central Bank of Russia approved the winner of the competition for the new ruble sign. The winning symbol, RUB, is now the official ruble sign.[17] As of 2013, it does not yet have a Unicode code point assigned, but work is proceeding to put it through the standardization process for code point assignment.
2013 年 12 月 11 日,俄罗斯中央银行批准了新卢布符号竞赛的获胜者。获胜符号 RUB 现在是官方卢布符号。 [17] 截至 2013 年,它还没有分配 Unicode 代码点,但正在进行工作以使其通过代码点分配的标准化过程。
So the answer to your question is yes, currently you should use PNG.
所以你的问题的答案是肯定的,目前你应该使用PNG。
回答by PaulProgrammer
You can also use a hosted web fontthat has the symbol in place. This is relatively well supported, though I don't know if there are any fonts that have the symbol yet. According to wikipedia PT Sansis a potential candidate.
您还可以使用带有符号的托管 Web 字体。这是相对较好的支持,虽然我不知道是否有任何带有符号的字体。根据维基百科,PT Sans是一个潜在的候选人。
回答by techturtle
You can fake it by using a strikethrough text decoration.
您可以使用删除线文本装饰来伪造它。
HTML 4.00 and earlier
HTML 4.00 及更早版本
Bunnies 100 <strike>P</strike>
Produces this: Bunnies 100 P
生产这个:Bunnies 100 P
HTML 4.01 and later
HTML 4.01 及更高版本
Bunnies 100 <del>P</del>
Produces this: Bunnies 100 P
生产这个:Bunnies 100 磷
CSS text-decoration
CSS 文字装饰
Bunnies 100 <span style="text-decoration:line-through">P</span>
doesn't work in the SO renderer
在 SO 渲染器中不起作用
回答by miyconst
You also may use Armenian letter ?, ? (Ke).
您也可以使用亚美尼亚字母 ?, ? (克)。
回答by Miguel Farah
I'll add something to all the other answers: be careful to NOT mix up the new ruble sign with the similar looking but quite different "Philippine peso" sign, '?', encoded at U+20B1.
我将在所有其他答案中添加一些内容:小心不要将新卢布符号与外观相似但完全不同的“菲律宾比索”符号“?”混淆,编码为 U+20B1。
Doing a <strike>P</strike> will, depending on the font, look more like the Philippine peso sign than the russian ruble sign.
根据字体的不同,使用 <strike>P</strike> 看起来更像菲律宾比索符号而不是俄罗斯卢布符号。
回答by Miguel Farah
You can read an extensive explanation here http://www.artlebedev.ru/tools/technogrette/html/rouble/
您可以在这里阅读详尽的解释http://www.artlebedev.ru/tools/technogrette/html/rouble/
And you can use http://www.artlebedev.ru/kovodstvo/sections/159/rouble.otf
你可以使用http://www.artlebedev.ru/kovodstvo/sections/159/rouble.otf