<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fa">
	<id>http://mobinwiki.ir/w/index.php?action=history&amp;feed=atom&amp;title=%D8%A7%D9%84%DA%AF%D9%88%3AScript%2FArabic%2F%D8%AA%D9%88%D8%B6%DB%8C%D8%AD%D8%A7%D8%AA</id>
	<title>الگو:Script/Arabic/توضیحات - تاریخچهٔ نسخه‌ها</title>
	<link rel="self" type="application/atom+xml" href="http://mobinwiki.ir/w/index.php?action=history&amp;feed=atom&amp;title=%D8%A7%D9%84%DA%AF%D9%88%3AScript%2FArabic%2F%D8%AA%D9%88%D8%B6%DB%8C%D8%AD%D8%A7%D8%AA"/>
	<link rel="alternate" type="text/html" href="http://mobinwiki.ir/w/index.php?title=%D8%A7%D9%84%DA%AF%D9%88:Script/Arabic/%D8%AA%D9%88%D8%B6%DB%8C%D8%AD%D8%A7%D8%AA&amp;action=history"/>
	<updated>2026-12-05T23:44:14Z</updated>
	<subtitle>تاریخچهٔ نسخه‌ها برای این صفحه در ویکی</subtitle>
	<generator>MediaWiki 1.39.15</generator>
	<entry>
		<id>http://mobinwiki.ir/w/index.php?title=%D8%A7%D9%84%DA%AF%D9%88:Script/Arabic/%D8%AA%D9%88%D8%B6%DB%8C%D8%AD%D8%A7%D8%AA&amp;diff=46670&amp;oldid=prev</id>
		<title>imported&gt;Mohammad Cowboy: خنثی‌سازی ویرایش 31809953 از Mohammad Cowboy (بحث)</title>
		<link rel="alternate" type="text/html" href="http://mobinwiki.ir/w/index.php?title=%D8%A7%D9%84%DA%AF%D9%88:Script/Arabic/%D8%AA%D9%88%D8%B6%DB%8C%D8%AD%D8%A7%D8%AA&amp;diff=46670&amp;oldid=prev"/>
		<updated>2021-04-17T04:07:01Z</updated>

		<summary type="html">&lt;p&gt;خنثی‌سازی ویرایش 31809953 از &lt;a href=&quot;/wiki/%D9%88%DB%8C%DA%98%D9%87:%D9%85%D8%B4%D8%A7%D8%B1%DA%A9%D8%AA%E2%80%8C%D9%87%D8%A7/Mohammad_Cowboy&quot; title=&quot;ویژه:مشارکت‌ها/Mohammad Cowboy&quot;&gt;Mohammad Cowboy&lt;/a&gt; (&lt;a href=&quot;/w/index.php?title=%D8%A8%D8%AD%D8%AB_%DA%A9%D8%A7%D8%B1%D8%A8%D8%B1:Mohammad_Cowboy&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;بحث کاربر:Mohammad Cowboy (صفحه وجود ندارد)&quot;&gt;بحث&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;صفحهٔ تازه&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&amp;lt;div style=&amp;quot;float:right&amp;quot;&amp;gt;__TOC__&amp;lt;/div&amp;gt;__NOTOC__&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Categories and interwikis go at the bottom of this page. --&amp;gt;&lt;br /&gt;
This template is to render properly Arabic-based scripts which don't use the main Arabic alphabet, also to ensure that [[Arabic diacritics]] appear properly.&lt;br /&gt;
== Usage ==&lt;br /&gt;
: &amp;lt;nowiki&amp;gt;{{Script/Arabic|موسوعة}}&amp;lt;/nowiki&amp;gt; to give you {{Script/Arabic|موسوعة}}&lt;br /&gt;
* The 1st parameter is mandatory and contains the text written in the Arabic script.&lt;br /&gt;
* The optional &amp;lt;code&amp;gt;style&amp;lt;/code&amp;gt; parameter can be used to override the generated style (for example another font size) or to specify additional CSS formattings (e.g. color).&lt;br /&gt;
* The optional &amp;lt;code&amp;gt;attributes&amp;lt;/code&amp;gt; parameter can be used for specifying additional HTML attributes (for example a descriptive &amp;lt;code&amp;gt;title=&amp;quot;...&amp;quot;&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
Use simple &amp;lt;nowiki&amp;gt;{{lang|ar|...}}&amp;lt;/nowiki&amp;gt; for inline citation of Arabic language. Use {{tl|rtl-para}} for entire paragraphs of Arabic text, however, they do not force choosing the fonts in that template.&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
The template contains this phrase:&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;span class=&amp;quot;script-arabic script-Arab&amp;quot; dir=&amp;quot;rtl&amp;quot; style=&amp;quot;font-family:Scheherazade,Lateef,'Droid Arabic Naskh',Amiri,'Arabic Transparent',Arial,'Microsoft Sans Serif','Segoe UI','Sakkal Majalla','Microsoft Uighur','Arabic Typesetting',sans-serif,serif; font-size: 125%; font-weight: normal; {{{style|}}}&amp;quot; {{{attributes|}}}&amp;gt;{{{1}}}&amp;lt;/span&amp;gt;&amp;amp;amp;lrm;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
* The font size was fixed at 125% for better readability.&lt;br /&gt;
* The style &amp;lt;code&amp;gt;font-weight: normal&amp;lt;/code&amp;gt; is present to remove boldness, e.g. in section titles, because Arabic diacritics are best read only in normal weight, but also because some fonts do not exist in bold styles; without it, other fallback fonts would be used instead (possibly with lover coverage), or boldness may be synthetized from a non-bold font (making most diacritics unreadable).&lt;br /&gt;
* Specifying the HTML attribute &amp;lt;code&amp;gt;dir=&amp;quot;rtl&amp;quot;&amp;lt;/code&amp;gt; in a &amp;lt;code&amp;gt;span&amp;lt;/code&amp;gt; HTML element is sufficient to also activate on Wikipedia the &amp;lt;code&amp;gt;unicode-bidi: embed&amp;lt;/code&amp;gt; style which is part of the site-wide CSS stylesheet; this HTML attribute also activates the CSS style &amp;quot;direction: rtl&amp;quot; (which should be implemented by default in browsers, but is also set in the site-wide CSS stylesheet).&lt;br /&gt;
&lt;br /&gt;
=== Fonts information ===&lt;br /&gt;
Template intended to force following fonts if installed:&lt;br /&gt;
*[http://code.google.com/p/googlefontdirectory/source/browse/droidarabicnaskh/ Droid Arabic Naskh] (better at smaller sizes)&lt;br /&gt;
*Scheherazade [http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&amp;amp;id=ArabicFonts SIL International] (lacks a bold weight)&lt;br /&gt;
*Lateef [http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&amp;amp;id=ArabicFonts SIL International] (lacks a bold weight)&lt;br /&gt;
*[http://www.amirifont.org/ Amiri] (does not display properly on Windows)&lt;br /&gt;
&lt;br /&gt;
These fonts contain all Arabic character defined in [[Arabic Unicode]] for text in the various languages that use the [[خط عربی]], but not all the redundant glyphs used in stylizing.&lt;br /&gt;
&lt;br /&gt;
If the previous fonts are not installed, other fallback fonts would display:&lt;br /&gt;
* [[Core fonts for the Web#External links|Arabic Transparent]], Arial (essentially look the same and lack a few characters)&lt;br /&gt;
* Microsoft Sans Serif (lacks a few characters and lacks a bold weight)&lt;br /&gt;
* Segoe UI (lacks a few characters and lacks a normal weight)&lt;br /&gt;
* Sakkal Majalla&lt;br /&gt;
* Microsoft Uighur (lacks a few characters and lacks a bold weight)&lt;br /&gt;
* Arabic Typesetting (lacks a bold weight)&lt;br /&gt;
&lt;br /&gt;
== How to override fonts in user's preferences ==&lt;br /&gt;
Any user can use another font with a different size by writing the following on [[Special:Mypage/vector.css|his custom CSS]]. (see [[Help:User style]])&lt;br /&gt;
&lt;br /&gt;
An example making the font size 105%, and choosing Droid Arabic Naskh to be the main font with Arial as an additional font :&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
.script-arabic {&lt;br /&gt;
    font-size: 105% !important;&lt;br /&gt;
    font-family: 'Droid Arabic Naskh', Arial, sans-serif !important;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
: Font names containing spaces (or any other character than a letter) need to be put between &amp;lt;code&amp;gt;&amp;lt;strong&amp;gt;'&amp;lt;/strong&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;lt;strong&amp;gt;&amp;quot;&amp;lt;/strong&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
: The list of fonts should always be terminated by the pseudo-font names &amp;quot;sans-serif&amp;quot; and/or &amp;quot;serif&amp;quot;, to allow using the fonts defined in user preferences in their browser, or the fonts set by default in browsers.&lt;br /&gt;
: You may choose to add the line-height phrase if you wanted to make lines in a paragraph more spaced from each other, or less spaced. &amp;lt;code&amp;gt;line-height: 125%;&amp;lt;/code&amp;gt; Remember to put it before the }. The more number percentage, the more space is added. If you wanted to decrease the line height spacing, decrease the percentage. You may use any number (e.g. 85% or 140%) or use the special value &amp;quot;normal&amp;quot; which will properly use the minimum setting of the line-height recommended by each candidate font. &lt;br /&gt;
: Some Arabic-based letters aren't rendered properly initially/medially by some old versions of ''[[Times New Roman]]'' : &amp;lt;span dir=&amp;quot;rtl&amp;quot; style=&amp;quot;font-family: 'Droid Arabic Naskh', Scheherazade, Lateef, 'Microsoft Uighur', 'Arabic Typesetting', 'Sakkal Majalla', 'Segoe UI', 'Microsoft Sans Serif', 'Arabic Transparent', Arial; font-size: 200%; line-height:normal;&amp;quot;&amp;gt;ېـ&amp;amp;nbsp;ـېـ&amp;amp;nbsp;ـې&amp;amp;nbsp;ې&amp;lt;/span&amp;gt; which is used in [[زبان پشتو]] and [[زبان اویغوری]]; the newest versions of the following fonts render it properly: &amp;lt;i&amp;gt;&amp;lt;b&amp;gt;'Droid&amp;amp;nbsp;Arabic&amp;amp;nbsp;Naskh'&amp;lt;/b&amp;gt;, &amp;lt;b&amp;gt;Scheherazade&amp;lt;/b&amp;gt;, &amp;lt;b&amp;gt;Lateef&amp;lt;/b&amp;gt;, 'Sakkal&amp;amp;nbsp;Majalla', 'Microsoft&amp;amp;nbsp;Uighur', 'Arabic&amp;amp;nbsp;Typesetting', 'Arabic&amp;amp;nbsp;Transparent', Arial, 'Microsoft&amp;amp;nbsp;Sans&amp;amp;nbsp;Serif', 'Segoe&amp;amp;nbsp;UI'.&amp;lt;/i&amp;gt; (The newest versions which are available free-of-charge online are marked as '''bold'''.)&lt;br /&gt;
* A demonstration with ''[http://code.google.com/p/googlefontdirectory/source/browse/droidarabicnaskh/ 'Droid Arabic Naskh']'' added first at 105%: &amp;lt;span dir=&amp;quot;rtl&amp;quot; style=&amp;quot;font-family: 'Droid Arabic Naskh', 'Arabic Transparent', Arial, 'Times New Roman'; font-size: 105%&amp;quot;&amp;gt;موسوعة&amp;lt;/span&amp;gt;.&lt;br /&gt;
* A demonstration with ''[http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&amp;amp;id=ArabicFonts&amp;amp;_sc=1 Scheherazade]'' added first at 175% (and the line-height set to the &amp;quot;normal&amp;quot; value, which is the minimum line-height recommended by each candidate font): &amp;lt;span dir=&amp;quot;rtl&amp;quot; style=&amp;quot;font-family: Scheherazade, Lateef, 'Microsoft Uighur', 'Arabic Typesetting', 'Sakkal Majalla', 'Arabic Transparent', Arial, 'Times New Roman'; font-size: 175%&amp;quot;&amp;gt;موسوعة&amp;lt;/span&amp;gt; That font is freely available online, but if you chose to use it, you must increase the text size, because it shows it very small compared to other fonts.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
.script-arabic {&lt;br /&gt;
    font-size: 175% !important;&lt;br /&gt;
    /*&lt;br /&gt;
       The default line-height used by Wikipedia is 1.5 em, which can be lower or higher than the font default,&lt;br /&gt;
       reduce it to the minimum recommended for HTML by using the word normal or for example, use a percentage&lt;br /&gt;
       value, as 95%&lt;br /&gt;
    */&lt;br /&gt;
    line-height: 95%;&lt;br /&gt;
    font-family:&lt;br /&gt;
        /* The following fonts are recommended for best coverage fo the Arabic script: */&lt;br /&gt;
        Scheherazade, Lateef, 'Droid Arabic Naskh'     /* free fonts */&lt;br /&gt;
        'Sakkal Majalla',                         /* commercial font, also installed with recent versions of Windows */&lt;br /&gt;
        'Microsoft Uighur', 'Arabic Typesetting', /* commercial fonts installed with recent versions of Windows */&lt;br /&gt;
        /* Other fonts supporting the Arabic script with partial coverage: */&lt;br /&gt;
        'Arabic Transparent', /* Warning! Old versions may not support a few characters. */&lt;br /&gt;
        Arial,                /* Warning! Old versions may not support a few characters. */&lt;br /&gt;
        'Times New Roman',    /* Warning! Old versions may not support a few characters. The newest version doesn't join one of the Arabic characters properly */&lt;br /&gt;
        /* Default fallback fonts determined in the browser: */&lt;br /&gt;
        sans-serif /* No comma here! */&lt;br /&gt;
        /* Required at end to actually enable the override and make it work : */&lt;br /&gt;
        !important;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
The same example without the notes:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
.script-arabic {&lt;br /&gt;
    font-size: 175% !important;&lt;br /&gt;
    line-height: 95%;&lt;br /&gt;
    font-family: Scheherazade, Lateef, 'Droid Arabic Naskh', 'Sakkal Majalla', 'Microsoft Uighur',&lt;br /&gt;
               'Arabic Typesetting', 'Arabic Transparent', Arial, 'Times New Roman', sans-serif !important;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Template:Arabic alphabet shapes]] (its documentation page features a table showing a full test of contextual Arabic letter shapes supported).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Categories and interwikis go here: --&amp;gt;&lt;br /&gt;
[[رده:الگو:خط‌ها|{{PAGENAME}}]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Mohammad Cowboy</name></author>
	</entry>
</feed>