Kirill Klenov
Artur Chafonov
The rouble sign in HTML 8 August 2007 |
|
Task: | Introduce the rouble symbol. |
||
August 1, 2007 Art. Lebedev Studio proposed to all professional designers the new rouble sign. For the first time it was used offline on Art. Lebedev Store price tags. Here you can find several suggestions on how it can be introduced online.
The symbol is not available for PC and Mac users until it is included in ISO and Unicode tables, so we have to find alternative ways of displaying it. The sign must be resizable. We also have to think about the way it will be read off screen and copied into clipboard. Possible solutions include Flash, PNG, GIF and HTML.
Using flash has obvious drawbacksit would require certain software which a user might not have, a click on the object would disable text selection, and it would not be easy to change the color of the sign.
If we chose to work with images, we would have to deal with limited size, fixed color range, zero search efficiency and a graphic anchor.
An approached based on images is shown below (there is a hidden RUR expansion that gets copied into clipboard):
Bunnies 100 RUR each
Bunnies 100 RUR each
Bunnies 100 RUR each
Bunnies 100 RUR each
|
|
SVG format offers a better solution. It is a small size vector image, and we can easily alter the color of the symbol by means of CSS. But we have to incorporate the sign into the text and thats where we face trouble. What you see below is how this approach fails in MSIE. |
Batik SVG Toolkit Opera SVG Mozilla SVG Webkit(Safari) SVG |
Bunnies 100 RUR each
Bunnies 100 RUR each
Bunnies 100 RUR each
Bunnies 100 RUR each
|
|
If we reject images, the first thing that comes to mind is strikethrough text. Unfortunately, the way it appears in MSIE is highly discouraging. At present CSS doesnt allow shifting the strikethrough line up and down. |
Font specification |
Bunnies 100 p each
Bunnies 100 p each
Bunnies 100 p each
Bunnies 100 p each
|
|
If the computer generated line cant be adjusted, then we can draw one. Lets use border. Line thickness in the sample suits well when browsed with Firefox, but appears insufficient for Opera. The result is too unpredictable.
Bunnies 100 p. each
Bunnies 100 p. each
Bunnies 100 p. each
Bunnies 100 p. each
|
|
Lets refer to tables of symbols. Lets combine letter P and an en dash. If we include – into stylesheet, we can control its appearance in different input modes. It looks a little better, but the line leaps as we change type size. Its the worst in MSIE. |
Content property |
Bunnies 100 p each
Bunnies 100 p each
Bunnies 100 p each
Bunnies 100 p each
|
|
There is a symbol in Armenian alphabet that is rather similar to the sign. Well, its another way perhaps. Mac OS X users shall see it somewhat different from the original (provided that they have Additional Fonts installed). But it is yet too obvious that the letter is lowercase. |
Armenian alphabet |
Bunnies 100 քRUR each
Bunnies 100 քRUR each
Bunnies 100 քRUR each
Bunnies 100 քRUR each
|
|
If there is no such symbol on a users computer, may be we should furnish it? To our regret, the font-face property (CSS 2.0) is not included in CSS 2.1. However, there is a browser that enables embedding fonts, its Internet Explorer. Only IE is capable of displaying the symbol below. Other browsers will show RUR. Creating a font that consists of a single rouble sign bound to letter P is the best solution for MSIE users. |
About font embedding in MSIE Microsoft Web Embedding Fonts Tool |
Internet Explorer is required to view this example.
Bunnies 100 p each
Bunnies 100 p each
Bunnies 100 p each
Bunnies 100 p each
|
|
Users of other browsers will have to stick with en dash or images. This last sample combines the advantages of the methods described above.
Bunnies 100 p each
Bunnies 100 p each
Bunnies 100 p each
Bunnies 100 p each
|
|