WebRupee is a web API for the Indian currency symbol. It provides a simple, cross browser method for using the Rrupee symbol on your webpage, blog or anywhere on the web.
Here is a method for printing the Indian currency symbol:
It will take more than an year (or two) for the universal acceptance.
Unicode consortium approves the char-code.
Fonts are updated to include this symbol
Browsers/OS are updated to include new fonts and then only it is visible on every browser on earth.
Creating custom fonts by using arbitrary code-base and (forcefully) embedding them in every web-pages is discouraged for Website. (for desktop applications it may be acceptable). Although your solution may be acceptable; I would not advice just for the sake of one symbol! Loading a font file makes web-pages slower.
By the time it is advised to use icon-sets for rupee symbol. Prepare a set of icons with sizes 12x8, 16x12, 32x32 that you can incorporate in-line using <img> tag.
E.g 5000/- (i just resized the image; it should have been re-sampled for given size for better results)
A simple jQuery plug-in for convert Rs. to standard Indian rupee symbol through out the web page. Simple to use and simple instillation
The Indian Rupee sign is the currency sign: ₹ for the Indian Rupee, the official currency of India. Designed by D. Udaya Kumar, it was presented to the public by the Government of India on 15 July 2010,[1] following its selection through an “open” competition among Indian residents. Before its adoption, the most commonly used symbols for the rupee were Rs, Re or, if the text was in an Indian language, an appropriate abbreviation in that language. The new sign relates solely to the Indian rupee; other countries that use a rupee, such as Sri Lanka, Pakistan and Nepal, still use the generic U+20A8 ₨ rupee sign character.
The design resembles both the Devanagari letter "र" (ra) and the Latin capital letter "R", with a double horizontal line at the top.
Instillation:
Download the “jQueryINR_v1.2.zip” and extract.
copy images (“rupee.svg, rupee.gif”) to your images folder.
cope scripts folder to your project path or else copy the .js files to your script folder.
Download the “jQueryINR_v1.2.zip” and extract.
copy images (“rupee.svg, rupee.gif”) to your images folder.
cope scripts folder to your project path or else copy the .js files to your script folder.
Include jQuery min and jQuery Ui to your page first
NB: use jQuery stable version only
include the “indianRupee_v1.2.js” and “indianRupee_ctrl.js” after the jQuery library
eg:
Use Span tag to wrap Rs through out the web it will replace with the symbol
eg: Rs 1280000/-
Source:
Pay Him Rs 1280000/-
Pay Him Rs 528500/-
Pay Him Rs 1250/-
Pay Him Rs 1280000/-
Result:
http://romy.theqtl.com/rupeePlugin/
Plug-in Options:
$("body").indianRupee({
targets:"span",// use as default we can also use [p, div, h1 , li etc...]
vector:"on"//[on/off] of [true/false] NB: {vector not support in Internet Explore }
});
Example 1 : <span class="ex">₹1200/-</span><br>
Example 2 : <span class="ex">₹3545/-</span><br>
Example 3 : <span class="ex">र134/-</span> *Is not the exact Rupee symbol