Debian Codegraph @

documentation/source/special.md

raw
1 ---
2 title: Awami Nastaliq - What is Special About Awami Nastaliq?
3 fontversion: 3.200
4 ---
5
6 The Awami Nastaliq font was developed to support a wide variety of languages that are written using the Nastaliq style of Arabic script. Since at least the year 2000, SIL’s Writing Systems Technology team has received requests for a publication-quality Nastaliq font that is fully customizable and extensible, enabling support for minority languages. While there are a handful of Nastaliq-style fonts that support the Urdu language adequately, until recently there have been no fonts that handle the range of characters and diacritics needed for approximately twenty-five other languages of Pakistan, spoken by over 120 million people, as well as other languages in neighboring countries. The Awami Nastaliq font meets a long-standing need in this part of the world.
7
8 The complexity of the sloping, calligraphic style makes the development of a truly flexible font quite challenging, and so Awami Nastaliq makes use of specially-designed mechanisms built into SIL’s Graphite font technology. For this reason, Awami Nastaliq requires applications that provide Graphite support. Such applications include the [Firefox web browser](https://www.mozilla.org/firefox), the [LibreOffice suite](https://www.libreoffice.org/), [XeTeX/XeLaTeX](https://www.tug.org/texlive/), and linguistic software such as [FieldWorks](https://software.sil.org/fieldworks/), [Paratext](https://paratext.org/), [PTXprint](https://software.sil.org/ptxprint/), and [Bloom](http://bloomlibrary.org/).
9
10 The following are some characteristics of Awami’s smart font rendering.
11
12 ## Special character support
13
14 Awami Nastaliq supports all the special characters known to be used by languages of Pakistan. Below we give examples of some of those characters and how they can appear with missing or incomplete support in other fonts. (The problems -- shown below in red -- are demonstrated using Awami, but they all show rendering failures actually encountered with other popular fonts.) For instance, where the character is completely missing from the font, the software may substitute a glyph from another Arabic font. In other cases, an isolate form is used with no contextual shaping.
15
16 ![Seen with four dots - U+075C](assets/images/MissingLetters2_Palula_red.png){width=30%}
17 <!-- PRODUCT SITE IMAGE SRC https://software.sil.org/awami/wp-content/uploads/sites/33/2017/07/MissingLetters2_Palula_red.png -->
18 <figcaption>Seen with four dots - U+075C (used in Shina and Palula)</figcaption>
19
20 ![Rnoon - U+06BB (used in Saraiki and Palula)](assets/images/MissingLetters1_Saraiki_red.png){width=30%}
21 <!-- PRODUCT SITE IMAGE SRC https://software.sil.org/awami/wp-content/uploads/sites/33/2017/08/MissingLetters1_Saraiki_red.png -->
22 <figcaption>Rnoon - U+06BB (used in Saraiki and Palula)</figcaption>
23
24 ![Seen with three dots above and below - U+069C (used in Palula - notice that the yeh with sideways noon ghunna mark is also incorrect in one example.)](assets/images/MissingLetters5_Palula_red.png){width=22%}
25 <!-- PRODUCT SITE IMAGE SRC https://software.sil.org/awami/wp-content/uploads/sites/33/2017/08/MissingLetters5_Palula_red.png -->
26 <figcaption>Seen with three dots above and below - U+069C (used in Palula - notice that the yeh with sideways noon ghunna mark is also incorrect in one example.)</figcaption>
27
28 ![Yeh with small V above - U+06CE (used in Balochi)](assets/images/MissingLetters3_Balochi_red.png){width=22%}
29 <!-- PRODUCT SITE IMAGE SRC https://software.sil.org/awami/wp-content/uploads/sites/33/2017/07/MissingLetters3_Balochi_red.png -->
30 <figcaption>Yeh with small V above - U+06CE (used in Balochi)</figcaption>
31
32 ![Hah with small tah and two dots below - U+076F (used in Khowar)](assets/images/MissingLetters6_Khowar_red.png){width=22%}
33 <!-- PRODUCT SITE IMAGE SRC https://software.sil.org/awami/wp-content/uploads/sites/33/2019/06/MissingLetters6_Khowar_red.png -->
34 <figcaption>Hah with small tah and two dots below - U+076F (used in Khowar)</figcaption>
35
36 ![Seen with small tah and two dots below - U+0770 (used in Khowar)](assets/images/MissingLetters4_Khowar_red.png){width=22%}
37 <!-- PRODUCT SITE IMAGE SRC https://software.sil.org/awami/wp-content/uploads/sites/33/2019/06/MissingLetters4_Khowar_red.png -->
38 <figcaption>Seen with small tah and two dots below - U+0770 (used in Khowar)</figcaption>
39
40 ## Diacritic support
41
42 The highly calligraphic and sloping style of Nastaliq makes proper handling of diacritics especially tricky. Some languages require a wider variety and more frequently occurring diacritics than Urdu, so providing support for them has always been a challenge.
43
44 Awami Nastaliq includes support for a wide variety of diacritics in combination with all the special characters available in the font. The images below demonstrate how Awami’s special glyph positioning mechanism allows the diacritics to be shifted to avoid collisions that might otherwise occur.
45
46 ![Diacritic support](assets/images/DiacCollisions1_Marwari_red.png){width=22%}
47 <!-- PRODUCT SITE IMAGE SRC https://software.sil.org/awami/wp-content/uploads/sites/33/2017/07/DiacCollisions1_Marwari_red.png -->
48
49 ![Diacritic support](assets/images/DiacCollisions2_Marwari_red.png){width=22%}
50 <!-- PRODUCT SITE IMAGE SRC https://software.sil.org/awami/wp-content/uploads/sites/33/2017/07/DiacCollisions2_Marwari_red.png -->
51
52 ![Diacritic support](assets/images/DiacCollisions3_Brahui_red.png){width=22%}
53 <!-- PRODUCT SITE IMAGE SRC https://software.sil.org/awami/wp-content/uploads/sites/33/2017/07/DiacCollisions3_Brahui_red.png -->
54
55 ![Diacritic support](assets/images/DiacCollisions4_Balochi_red.png){width=22%}
56 <!-- PRODUCT SITE IMAGE SRC https://software.sil.org/awami/wp-content/uploads/sites/33/2017/07/DiacCollisions4_Balochi_red.png -->
57
58
59
60 ## Correct spacing
61
62 Graphite’s smart shape-based kerning mechanism is used to both avoid collisions between calligraphic sequences and to provide the correct spacing between words.
63
64 ![Correct spacing](assets/images/Spacing1_Shina_red.png){width=22%}
65 <!-- PRODUCT SITE IMAGE SRC https://software.sil.org/awami/wp-content/uploads/sites/33/2017/07/Spacing1_Shina_red.png -->
66
67 ![Correct spacing](assets/images/Spacing2_Palula_red.png){width=22%}
68 <!-- PRODUCT SITE IMAGE SRC https://software.sil.org/awami/wp-content/uploads/sites/33/2017/07/Spacing2_Palula_red.png -->
69
70 ![Correct spacing](assets/images/Spacing3_Balochi_red.png){width=22%}
71 <!-- PRODUCT SITE IMAGE SRC https://software.sil.org/awami/wp-content/uploads/sites/33/2017/07/Spacing3_Balochi_red.png -->
72
73
74 ## Diagonal cluster fitting
75
76 One of the distinctives of the written Nastaliq style is that the left side of diagonally-sloping clusters can be tucked underneath the right side of others in order to give the page a more even texture. This is quite difficult to accomplish with most computer fonts, because the overlap has to be anticipated and the text adjusted ahead of time. The Awami Nastaliq font, however, uses Graphite’s on-the-fly smart positioning to make these adjustments happen without pre-programming.
77
78 The images below show some segments and word sequences with the distinctive cluster fitting and compares them with the same sequences without the fitting (in red).
79
80 The following examples show cluster fitting within a single word.
81
82 ![Diagonal cluster fitting](assets/images/Fitting1Word1_Balochi.png){width=22%}
83 <!-- PRODUCT SITE IMAGE SRC https://software.sil.org/awami/wp-content/uploads/sites/33/2017/07/Fitting1Word1_Balochi.png -->
84
85 ![Diagonal cluster fitting](assets/images/Fitting1Word2_Palula.png){width=22%}
86 <!-- PRODUCT SITE IMAGE SRC https://software.sil.org/awami/wp-content/uploads/sites/33/2017/07/Fitting1Word2_Palula.png -->
87
88 ![Diagonal cluster fitting](assets/images/Fitting1Word3_Balochi.png){width=22%}
89 <!-- PRODUCT SITE IMAGE SRC https://software.sil.org/awami/wp-content/uploads/sites/33/2017/07/Fitting1Word3_Balochi.png -->
90
91 Cluster fitting also occurs between words.
92
93 ![Cluster fitting also occurs between words](assets/images/Fitting2Words1_Balochi.png){width=22%}
94 <!-- PRODUCT SITE IMAGE SRC https://software.sil.org/awami/wp-content/uploads/sites/33/2017/07/Fitting2Words1_Balochi.png -->
95
96 ![Cluster fitting also occurs between words](assets/images/Fitting2Words2_Balochi.png){width=22%}
97 <!-- PRODUCT SITE IMAGE SRC https://software.sil.org/awami/wp-content/uploads/sites/33/2017/07/Fitting2Words2_Balochi.png -->
98
99 ![Cluster fitting also occurs between words](assets/images/Fitting2Words3_Palula.png){width=22%}
100 <!-- PRODUCT SITE IMAGE SRC https://software.sil.org/awami/wp-content/uploads/sites/33/2017/07/Fitting2Words3_Palula.png -->
101
102 ## Variable word spacing
103
104 Communities that use Nastaliq-style script can have varying preferences about how tight or loose word spacing should be. Highly literate communities often prefer minimal word spacing, but language groups new to literacy find that wider spaces enhance readability for inexperienced readers.
105
106 For this reason, Awami Nastaliq allows the user to choose among five levels of word spacing, depending on the needs of the expected readership. The image below demonstrates the five levels of word spacing.
107
108 ![Variable word spacing](assets/images/WordSpacing.png){width=28%}
109 <!-- PRODUCT SITE IMAGE SRC https://software.sil.org/awami/wp-content/uploads/sites/33/2017/07/WordSpacing.png -->
110
111 ## Alternate letter forms
112
113 Awami Nastaliq provides alternate forms of the letters shown below. These alternates can be selected within LibreOffice by modifying the font name or in Firefox using CSS - see [Features Demo](features) for a description of how to use these features.
114
115 ![Medial heh goal (with or without hook)](assets/images/Feature_hehk_color.png){width=22%}
116 <!-- PRODUCT SITE IMAGE SRC https://software.sil.org/awami/wp-content/uploads/sites/33/2017/07/Feature_hehk_color.png -->
117 <figcaption>Medial heh goal (with or without hook)</figcaption>
118
119 ![Initial heh doachashmee (round or heart-shaped)](assets/images/Feature_hedo_color.png){width=22%}
120 <!-- PRODUCT SITE IMAGE SRC https://software.sil.org/awami/wp-content/uploads/sites/33/2017/07/Feature_hedo_color.png -->
121 <figcaption>Initial heh doachashmee (round or heart-shaped)</figcaption>
122
123 ![Lam with V (V located over stem or bowl on isolate and final forms)](assets/images/Feature_lamv_color.png){width=22%}
124 <!-- PRODUCT SITE IMAGE SRC https://software.sil.org/awami/wp-content/uploads/sites/33/2017/07/Feature_lamv_color.png -->
125 <figcaption>Lam with V (V located over stem or bowl on isolate and final forms)</figcaption>
126
127 ![Full stop (dash-like or dot-like)](assets/images/Feature_cv85_color.png){width=22%}
128 <!-- PRODUCT SITE IMAGE SRC https://software.sil.org/awami/wp-content/uploads/sites/33/2017/07/Feature_cv85_color.png -->
129 <figcaption>Full stop (dash-like or dot-like)</figcaption>
130
131 ![Sukun/jazm (open down or open left)](assets/images/Feature_cv78_color.png){width=22%}
132 <!-- PRODUCT SITE IMAGE SRC https://software.sil.org/awami/wp-content/uploads/sites/33/2017/07/Feature_cv78_color.png -->
133 <figcaption>Sukun/jazm (open down or open left)</figcaption>
134
135 ![Hamza (Urdu- or Arabic-style)](assets/images/Feature_hamz_color.png){width=22%}
136 <!-- PRODUCT SITE IMAGE SRC https://software.sil.org/awami/wp-content/uploads/sites/33/2017/07/Feature_hamz_color.png -->
137 <figcaption>Hamza (Urdu- or Arabic-style)</figcaption>
138
139 ![Small nuqtas - Larger nuqtas enhance readability, but can cause problems with glyph collisions. It is possible to use smaller glyphs on initial, medial, and final forms.](assets/images/Feature_snuq_color.png){width=22%}
140 <!-- PRODUCT SITE IMAGE SRC https://software.sil.org/awami/wp-content/uploads/sites/33/2017/07/Feature_snuq_color.png -->
141 <figcaption>Small nuqtas - Larger nuqtas enhance readability, but can cause problems with glyph collisions. It is possible to use smaller glyphs on initial, medial, and final forms.</figcaption>
142
143
144 ## Short forms
145
146 The diagonal nature of the Nastaliq style causes some of the letter sequences to get quite tall, which can result in collisions with the previous line of text. Awami includes a feature to use shorter forms of some of the letters to help avoid this problem. Letters that can be shortened include kafs and gafs (at or near the beginning of the sequence) and final forms of noon, seen, chotiyeh, lam, meem, and qaf.
147
148 ![Kafs and gafs](assets/images/Feature_shrt1_color.png){width=22%}
149 <!-- PRODUCT SITE IMAGE SRC https://software.sil.org/awami/wp-content/uploads/sites/33/2017/07/Feature_shrt1_color.png -->
150 <figcaption>Kafs and gafs</figcaption>
151
152 ![Finals - noon, seen, chotiyeh, lam, meem, qaf](assets/images/Feature_shrt2_color.png){width=22%}
153 <!-- PRODUCT SITE IMAGE SRC https://software.sil.org/awami/wp-content/uploads/sites/33/2017/07/Feature_shrt2_color.png -->
154 <figcaption>Finals - noon, seen, chotiyeh, lam, meem, qaf</figcaption>
155
156 ![Both](assets/images/Feature_shrt3_color.png){width=22%}
157 <!-- PRODUCT SITE IMAGE SRC https://software.sil.org/awami/wp-content/uploads/sites/33/2017/07/Feature_shrt3_color.png -->
158 <figcaption>Both</figcaption>
159