Template:Lang-he
From Wikisource
{{{text}}}
This is a simple template that helps format Hebrew text. It defines the direction as right-to-left and HTML lang property to "he".
This template is not intended for formatting whole paragraphs, but only Hebrew passages in a paragraph that may be left-to-right. (In HTML terms, it's a <span>, not a <div>.)
It takes one required argument: "text". Example:
- {{lang-he|text=ארץ זבת חלב ודבש}}
yields:
- ארץ זבת חלב ודבש
It also takes the optional argument "vocalized". This argument sets the font to Ezra SIL SR.
Hebrew is usually written without vowel points ("Niqqud"), but Biblical texts, children books and poetry usually are printed with them. Most common Hebrew fonts do not support the vowel points well: although most of them include at least some of the required characters, the placement of the points and their combination with the consonant letters and with other points is buggy.
The font that is best suited for representing Hebrew text with vowel points is Ezra SIL SR. This original purpose of this font is to print the Biblia Hebraica Stuttgartensia. It means that its glyphs may appear somewhat archaic to people who are used to reading modern Hebrew. Nevertheless, this is the best font for representing Biblical Hebrew in digital form. Another advantage of this font is that it is released under the Open Font License, a Free Software license that allows free redistribution and modification of the font, which suits the WikiMedia philosophy of software and content freedom.
Compare:
- With "vocalized":
{{lang-he|vocalized=1|text=אָֽנָּ֫א}}-> אָֽנָּ֫א - Without "vocalized":
{{lang-he|text=אָֽנָּ֫א}}-> אָֽנָּ֫א
This is the English Wikisource, Hebrew <span>s are expected to be embedded in left-to-right paragraphs; therefore by default this template ends with the left-to-right marker (). If you want to disable it, add the argument "nolrm=1":
- Without "nolrm":
{{lang-he|text=משה}}, {{lang-he|text=אהרן}}-> משה, אהרן - With "nolrm":
{{lang-he|nolrm=1|text=משה}}, {{lang-he|text=אהרן}}-> משה, אהרן