在网站上显示印度货币符号


106

卢比(印度货币)的符号已于2010年7月15日获得联合内阁的批准。

印度货币符号

如何在网站上显示?


3
有趣。注意,U + 20B9是Unicode 5.2中未分配的代码点-有望在不久的将来被接受(如文字所示)。很酷的象征。(接受Unicode的列表:unicode.org/alloc/Pipeline.html
Thanatos,2010年

2
检查这个:综合答案
Ani Menon


Answers:



42

如果您使用的是字体真棒图标,则可以使用以下命令:

导入真棒字体:

<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">

用法:

Current Price: <i class="fa fa-inr"></i> 400.00

将显示为:

伊姆古尔


1
即使计算机没有字体也能做到最好
RN Kushwaha 2014年

只需使用<i class =“ fa fa-inr”> </ i> 400.00行就够了
Aditi K'1

1
感谢这个,货币unicode在我签入的5台电脑之一中崩溃了,但这可以节省生命。
mindmyweb

迄今为止最好的答案,也适用于任何引导主题。
ankit suthar

19

WebRupee是用于印度货币符号的Web API。它提供了一种简单的跨浏览器方法,可在您的网页,博客或网络上的任何地方使用Rrupee符号。

这是打印印度货币符号的方法:

<html>
<head>
    <link rel="stylesheet" type="text/css" href="http://cdn.webrupee.com/font">
    <script src=http://cdn.webrupee.com/js type=”text/javascript”></script>
</head>
<body>
    Rupee Symbol: <span class="WebRupee">Rs.</span> 200

这意味着,如果有人从您的网站复制文本并将其粘贴到其他地方,他将看到Rs,而看不到其他或空白字符。

现在,您还可以使用新的卢比Unicode符号-U + 20B9印度卢比符号。可以按以下方式使用:

<span class="WebRupee">&#x20B9;</span> 500

只要添加以下脚本,它就会更新所有的“ Rs” /“ Rs”。为了你:

<script src="http://cdn.webrupee.com/js" type="text/javascript"></script>

1
我们不是在谈论新的卢比符号吗?
ankitjaininfo

2
我发现这对我的FF 3.6 i.imgur.com/V8fnG.png无效
ankitjaininfo 2010年

@Ankit Yu粘贴图像?我尝到了..u一定在犯错
diEcho

这在Mozilla中不起作用,因为出于一些奇怪的“安全”原因,他们决定只显示来自同一域的字体。
PKHunter

1
webrupee.com不再存在。
Vicky Chijwani

16

使用此CSS:

@font-face {
    font-family: 'rupee';
    src: url('rupee_foradian-1-webfont.eot');
    src: local('☺'), url(data:font/truetype;charset=utf-8;base64,AAEAAAANAIAAAwBQRkZUTVen5G0AAADcAAAAHEdERUYAQAAEAAAA+AAAACBPUy8yRQixzQAAARgAAABgY21hcGmyCE0AAAF4AAABamdhc3D//wADAAAC5AAAAAhnbHlmmuFTtAAAAuwAABAoaGVhZPOmAG0AABMUAAAANmhoZWELSAQOAAATTAAAACRobXR4KSwAAAAAE3AAAABMbG9jYUCgSLQAABO8AAAAKG1heHAAFQP+AAAT5AAAACBuYW1lWObwcQAAFAQAAAIDcG9zdCuGzNQAABYIAAAAuAAAAAEAAAAAxtQumQAAAADIadrpAAAAAMhp2uoAAQAAAA4AAAAYAAAAAAACAAEAAQASAAEABAAAAAIAAAADAigBkAAFAAgFmgUzAAABGwWaBTMAAAPRAGYCEgAAAgAFAAAAAAAAAIAAAKdQAABKAAAAAAAAAABITCAgAEAAICBfBZr+ZgDNBrQBoiAAARFBAAAAAAAFnAAAACAAAQAAAAMAAAADAAAAHAABAAAAAABkAAMAAQAAABwABABIAAAADgAIAAIABgAgAFIAoCAKIC8gX///AAAAIABSAKAgACAvIF/////j/7L/ZeAG3+LfswABAAAAAAAAAAAAAAAAAAAAAAEGAAABAAAAAAAAAAECAAAAAgAAAAAAAAAAAAAAAAAAAAEAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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ACAAMQA1ACwAIAAyADAAMQAwACwAIABpAG4AaQB0AGkAYQBsACAAcgBlAGwAZQBhAHMAZQBSAHUAcABlAGUAUgB1AHAAZQBlAFQAaABpAHMAIABmAG8AbgB0ACAAdwBhAHMAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAHQAaABlACAARgBvAG4AdAAgAFMAcQB1AGkAcgByAGUAbAAgAEcAZQBuAGUAcgBhAHQAbwByAC4AAAIAAAAAAAD/JwCWAAAAAAAAAAAAAAAAAAAAAAAAAAAAEwAAAAEAAgADADUBAgEDAQQBBQEGAQcBCAEJAQoBCwEMAQ0BDgEPB3VuaTAwQTAHdW5pMjAwMAd1bmkyMDAxB3VuaTIwMDIHdW5pMjAwMwd1bmkyMDA0B3VuaTIwMDUHdW5pMjAwNgd1bmkyMDA3B3VuaTIwMDgHdW5pMjAwOQd1bmkyMDBBB3VuaTIwMkYHdW5pMjA1Rg==)
    format('truetype');
    font-weight: normal;
    font-style: normal;
}

像需要这样声明它:

<span style="font-family:rupee;font-size:20px">R</span>

16

请尝试以下解决方案:

<span style='font-family:Arial;'>&#8377;</span>

这将显示为:₹


11

普遍接受将需要一年(或两年)以上的时间。

  1. Unicode联盟批准字符代码。
  2. 字体已更新为包含此符号
  3. 浏览器/操作系统已更新为包括新字体,然后只有它在地球上的每个浏览器中都可见。

对于网站,不建议使用任意代码库创建自定义字体,并将其(强制)嵌入每个网页中。(对于桌面应用程序,可以接受)。尽管您的解决方案可以接受;我不会仅仅为了一个符号就建议!加载字体文件会使网页变慢。

建议在使用时将图标集用作卢比符号。准备一组尺寸为12x8、16x12、32x32的图标,您可以使用<img>标记将它们嵌入。

例如5000 /-(我只是调整了图像的大小;应该重新采样以获得给定的大小以获得更好的结果)

<img src="http://i.stack.imgur.com/nGbfO.png" width="8" height="10">

注意:这是Wikipedia所做的。它使用png / svg文件。在此处检查信息框


1
是的..我的朋友投票支持我,我得到了1,402分!您也可以在SO而不是FB上进行查找。我在这里描述的是最好的做法。如果您可以阅读我的回答,则有HTML方式。Creating custom fonts by using arbitrary code-base and (forcefully) embedding them in web-pages is highly discouraged for Website.但这不能保证您的页面将显示在所有网络浏览器上;即使您可以拥有IMG,这也是不必要的!仅将大字体文件用于一个符号是没有意义的。您需要可扩展的图形-选择SVG!
ankitjaininfo

5
从此问题的修订版看来,您似乎只是想推广您的WebRupee
ankitjaininfo,2010年

现在我看到他们甚至在几天前创建了Wiki页面(en.wikipedia.org/w/index.php?title=Webrupee&action=history)。病毒式营销。尽管您的解决方案是可以接受的。但我不会仅仅为了一个符号就建议!喜欢IMG。
ankitjaininfo 2010年

@Ankit:您真的认为使用图像是更好的选择吗?
Rakesh Juyal

@Rakesh您能列出使用字体符号获得的好处吗?对于机器和人类都一样!对于拥有图像和字体的人来说没有什么区别。对于具有图像的机器意味着更少的计算,更少的带宽,更快的网页渲染。(该参数有效,除非在每个操作系统上都可以使用带有Rs的FONTS!)
ankitjaininfo 2010年




3

您可以使用Intl.NumberFormat本机API来实现。

var number = 123456.78;

// India uses thousands/lakh/crore separators
console.log(new Intl.NumberFormat('en-IN', {
  style: 'currency',
  currency: 'INR'
}).format(number));


1

图像处理也不错。几乎不需要400Bytes。
从这里下载http://i.stack.imgur.com/vJZ9m.png

<span class="rupee"></span>

好吧,我发现它比webrupee更好。

对于颜色,请如下编辑图像

    .rupee{
    background-position:left;
    width: 10px; 
    height: 14px;
    background-image: url('rupee.png');
    display:block; 
    background-repeat: no-repeat;
}

0

可以寻求临时解决方案。Unicode U+20B9很快已被接受为印度卢比符号,所有系统都将自动更新


6
我认为“很快”有点乐观,因为它的字体必须更新。这需要一段时间。
Pekka 2010年

0

WebRupee API在这里可用:

<script src="http://cdn.jagansindia.in/webrupee" type="text/javascript"></script>

您也可以在此处阅读完整的详细信息


0

JQUERY INR v1.2

一个用于转换Rs的简单jQuery插件。整个网页转换为标准印度卢比符号。使用简单,滴注简单

印度卢比符号是货币符号:₹表示印度卢比,印度的官方货币。由D. Udaya Kumar设计,它是由印度政府于2010年7月15日向公众展示的,[1]是通过在印度居民中进行的“公开”竞争而选定的。在卢比被采用之前,卢比最常用的符号是Rs,Re,或者,如果文本是印度语言,则是该语言的适当缩写。新标志只与印度卢比有关;其他使用卢比的国家,例如斯里兰卡,巴基斯坦和尼泊尔,仍使用通用的U + 20A8₨卢比符号字符。该设计既类似于梵文字母“来”(ra),也类似于拉丁文大写字母“ R”,顶部带有双水平线。

滴注:

  1. 下载“ jQueryINR_v1.2.zip”并解压缩。
  2. 将图像(“ rupee.svg,rupee.gif”)复制到图像文件夹。
  3. 将scripts文件夹复制到您的项目路径,或者将.js文件复制到您的脚本文件夹。
  4. 下载“ jQueryINR_v1.2.zip”并解压缩。
  5. 将图像(“ rupee.svg,rupee.gif”)复制到图像文件夹。
  6. 将scripts文件夹复制到您的项目路径,或者将.js文件复制到您的脚本文件夹。
  7. 首先在页面中包含jQuery min和jQuery Ui

    例如:注意:仅使用jQuery稳定版

  8. 在jQuery库之后添加“ indianRupee_v1.2.js”和“ indianRupee_ctrl.js”,例如:

  9. 使用Span标签将Rs包裹在整个Web中,它将替换为符号,例如:Rs 1280000 /-

资源:

付给他1280000卢比/-

付给他528500卢比/-

付给他1250卢比/-

付给他1280000卢比/-

结果:

   http://romy.theqtl.com/rupeePlugin/

插件选项:

$(“ body”)。indianRupee({目标:“ span”,//默认使用,我们也可以使用[p,div,h1,li等...]向量:“ on” // [on / off] [true / false]注意:{{Internet Explorer中不支持矢量}});


0

简单的HTML实体代码是可能的。

.ex{
color:green;
font-size:20px;
}
Example 1 : <span class="ex">&#x20b9;1200/-</span><br>
Example 2 : <span class="ex">&#8377;3545/-</span><br>
Example 3 : <span class="ex">&#2352;134/-</span> *Is not the exact Rupee symbol


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.