The Rouble symbol ₽ is available in all of Mac OS’s Russian keyboard layouts:
- “Russian”: opt+р, where р is on QWERTY’s h key;
- “Russian QWERTY”: opt+р, where р is QWERTY’s r;
- “Russian (PC)”: opt+8, same as QWERTY’s 8.
If you’re not mostly typing in Russian, then you presumably don’t want one of these as your primary keyboardlayout. But you can add one as a secondary layout, and then quickly switch to/from it when necessary using ctrl+space or ctrl+opt+space. To set this up, follow the steps in David Andersson’s answer, but at the stage of adding the input source, select the language “Russian” and then the layout desired.
Answer from PLL on Stack ExchangeThe Rouble symbol ₽ is available in all of Mac OS’s Russian keyboard layouts:
- “Russian”: opt+р, where р is on QWERTY’s h key;
- “Russian QWERTY”: opt+р, where р is QWERTY’s r;
- “Russian (PC)”: opt+8, same as QWERTY’s 8.
If you’re not mostly typing in Russian, then you presumably don’t want one of these as your primary keyboardlayout. But you can add one as a secondary layout, and then quickly switch to/from it when necessary using ctrl+space or ctrl+opt+space. To set this up, follow the steps in David Andersson’s answer, but at the stage of adding the input source, select the language “Russian” and then the layout desired.
Answer from PLL on Stack ExchangeThe Rouble symbol ₽ is available in all of Mac OS’s Russian keyboard layouts:
- “Russian”: opt+р, where р is on QWERTY’s h key;
- “Russian QWERTY”: opt+р, where р is QWERTY’s r;
- “Russian (PC)”: opt+8, same as QWERTY’s 8.
If you’re not mostly typing in Russian, then you presumably don’t want one of these as your primary keyboardlayout. But you can add one as a secondary layout, and then quickly switch to/from it when necessary using ctrl+space or ctrl+opt+space. To set this up, follow the steps in David Andersson’s answer, but at the stage of adding the input source, select the language “Russian” and then the layout desired.
The ₽ character is a unicode 0x20BD. You can enter this hexadecimal value from the keyboard when your keyboard input source is set to Unicode Hex Input. If necessary, see the section below titled “Adding Unicode Hex Input Method”.
If you only have two keyboard input sources, the you can enter the following to get the ₽ character. Here, I assume the keyboard input source is not already Unicode Hex Input.
control+alt+space
alt+20BD
control+alt+space
Here, control+alt+space means to hold down the control and alt keys while pressing the space key. Also, alt+20BD means to hold down the alt key while pressing the 2, 0, B and D keys.
Adding Unicode Hex Input Method
Goto the Keyboard pane of the System Preferences application and select the
Input Sourcestab.Select on the
+button to add a new keyboard input method.Scroll down to the bottom and click on
Others.Highlight
Unicode Hex Input, as shown below.Select the
Addbutton, then make sure the “Show input menu in menu bar” box is checked off, as shown above.Select the
Shortcutstab, then highlightInput Sources. Make sure the “Select the previous input source” and “Select next source in Input menu” boxes are checked off, as shown below.
References
- How can I type unicode characters without using the mouse?
- How to Use Unicode Hex Input Method in Mac?
- How do I type a Unicode special space characters without installing the Unicode Hex Input Keyboard?
- "How can I set up a keyboard shortcut for switching input source?"
Since 16 June 2014 there is a letter in unicode: \u20bd representing RUB currency sign:
₽
So, the answer to the question: HTML entity which should be used for RUB sign is ₽
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.
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.
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.
http://en.wikipedia.org/wiki/Russian_ruble#Currency_symbol
tl;dr
- In HTML:
₽or₽ - Alternatively display standardized 3-letter code in text:
RUB - In Java code:
"₽"orCharacter.toString( 8_381 )
Details
Russia changed the Ruble symbol around 2013-12.
See the Wikipedia pages on Russian ruble and on Ruble sign for details.
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).
Do not confuse this new character with either the Armenian letter ք or the Latin letter Ꝑ.
By the way, Unicode 7 also gained the manat used in Azerbaijan, U+20BC MANAT SIGN, ₼. More importantly, Unicode also got the Spock hand sign, 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.
Use an abbreviation: RUB
As an alternative to a symbol, you can always use the 3-letter abbreviation RUB. Standardized internationally in 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.
Wikipedia image
That Wikipedia page provides an image drawn in SVG format under a Creative Commons license.
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.
http://icdn.lenta.ru/images/2013/12/11/12/20131211120143352/pic_a717232efc27b9b9fb68fea1c9cd3d72.jpg
Here is the official specification diagram of the symbol:
You can use fontawesome and \faRub:
\documentclass[12pt,a4paper]{article}
\usepackage{fontawesome}
\begin{document}
\faRub
\end{document}
If you can use either XeLaTeX or LuaLaTeX and can make use of a font that provides the required symbol, you could proceed as in the following example.
\documentclass{article}
\usepackage{fontspec}
\setmainfont{PT Sans} % per Unicode, the 'ruble' symbol is in slot U+20BD
\newcommand\ruble{\char"20BD }
\begin{document}
\textyen\ruble\textdollar
\end{document}