Language sensitive
The acute accent (as in the french word “café”) is styled differently in Polish. By setting the language to Polish, DINish will render the acute accent as a kreska.
- libreOffice: Set the document language to Polish (Tools->Options->Language settings), or change the language for a portion of your text (Tools->Language).
- HTML: Set the page language in the html tag for the page
<html lang="pl">
or just for a span<span lang="pl">
:
<span lang="pl">Pójdźże, kiń tę chmurność w głąb flaszy!</span>
The Romanian language has comma accents. Historically, these were implemented as cedillas in the first version of Unicode. This was fixed later on, but that means that there is now an inconsistency for documents using the historic Unicode characters. With the language set correctly, DINish will render as expected even with legacy Unicode characters:
<span lang="en">Muzicologă în bej vând whisky şi tequila, preţ fix.</span> (Don't do this!)
<span lang="ro">Muzicologă în bej vând whisky şi tequila, preţ fix.</span>
If your language happens to not have such exceptions, DINish will behave gently even if the wrong language is specified, such as this pangram in Turkish, set in the English language:
<span lang="en">Pijamalı hasta yağız şoföre çabucak güvendi.</span> (The language is set to English instead)
The Dutch language has an ij digraph. If you prefer, you can enable the ss01 stylistic alternate to automatically substitute ij with ij.
<span lang="nl">Pa's wijze lynx bezag vroom het fikse aquaduct te IJburg</span>
<span lang="nl" style="font-feature-settings: 'ss01';">Pa's wijze lynx bezag vroom het fikse aquaduct te IJburg</span>
Fractions
The opentype “frac” feature automatically formats strings that look like a fraction. For example, 1/1000 becomes 1/1000.
<span style="font-feature-settings: 'frac';">The interest works out to 57/500, or 11 2/5 percent.</span>
The interest works out to 57/500, or 11 2/5 percent.
Number styles
There are four styles of numerals to pick from. The default is lining, proportional numerals:
font-feature-settings: "lnum", "pnum"; /* Or leave out; it's the default */
For artistic value, or to make the numbers go with the flow of mostly lowercase text, you can select old style numerals:
font-feature-settings: "onum", "pnum"; /* Or just "onum" */
For tabular data, you have the option of lining tabular numbers:
font-feature-settings: "lnum", "tnum"; /* Or just "tnum" */
Borrowed in 1492 | 1,000,000 |
Interest | 114,000 |
To repay in 1493 | 1,114,000 |
You can also use old style tabular numbers:
font-feature-settings: "onum", "tnum";
Vessel | Rental rate/mo |
---|---|
Santa Maria | 172,800 |
Pinta | 115,200 |
Nina | 57,600 |
Acknowledgements
Columbus’ balance sheet was found in The Journal of Applied Business Research, Fourth Quarter 2007 Volume 23, Number 4. The pangrams were lifted from Richard Rutter’s Clagnut blog.