#Sed script file for converting code page 720 to ArabTeX transliteration. #Note: You can inactivate any command by placing a pound sign in front of it. #Tested #This command converts doubled lams with shaddah. s//l-ll/g # #This command converts an alif with tanwin at the end of a word. s//aN/g # #This command converts an initial alif (i.e. an alif preceded by a space). s/ / a/g # #This command converts an initial alif at the beginning of a line. s/^/a/g # #These commands ensure that doubled Arabic letters are not converted to a #single letter with a shaddah. s//b-b/g s//t-t/g s//_t-_t/g s//^g-^g/g s//.h-.h/g s//_h-_h/g s//d-d/g s//_d-_d/g s//r-r/g s//z-z/g s//s-s/g s//^s-^s/g s//.s-.s/g s//.d-.d/g s//.t-.t/g s//.z-.z/g s//`-`/g s//.g-.g/g s//f-f/g s//q-q/g s//k-k/g s//l-l/g s//m-m/g s//n-n/g s//h-h/g s//w-w/g s//y-y/g # #These commands convert various forms of lam alif. s//lA/g s//l\'A/g s//l\'i/g # #These commands convert single letters with shaddah to doubled letters. s//\'\'a/g s//u\'\'/g s//\'\'i/g s//bb/g s//tt/g s//_t_t/g s//^g^g/g s//.h.h/g s//_h_h/g s//dd/g s//_d_d/g s//rr/g s//zz/g s//ss/g s//^s^s/g s//.s.s/g s//.d.d/g s//.t.t/g s//.z.z/g s//``/g s//.g.g/g s//ff/g s//qq/g s//kk/g s//ll/g s//mm/g s//nn/g s//hh/g s//ww/g s//yy/g # #These commands convert hamzah on waw preceded or followed by dammah. s//u\'/g s//\'u/g # #These commands convert single letters. s//\'/g s//\'A/g s//\'a/g #Note: ArabTeX produces a hamzah on a waw from an apostrophe either preceded #or followed by `u' (i.e. u' or 'u). It produces a hamzah on a nabrah from an #apostrophe preceded or followed by `i' (i.e. i' or 'i). The following two #commands substitute an apostrophe preceded by `u' for every unvocalized #hamzah on a waw and an apostrophe followed by `i' for every unvocalized #hamzah on a nabrah. These substitutions, however, may not produce the #correct vocalization of a given word. In such cases manual correction will #be required. s//u\'/g s//\'i/g s//\'i/g s//A/g s//b/g s//t/g s//_t/g s//^g/g s//.h/g s//_h/g s//d/g s//_d/g s//r/g s//z/g s//s/g s//^s/g s//.s/g s//.d/g s//.t/g s//.z/g s//`/g s//.g/g s//f/g s//q/g s//k/g s//l/g s//m/g s//n/g s//h/g s//w/g s//y/g s//_A/g s//T/g # #These commands convert vowels. s//a/g s//u/g s//uN/g s//i/g s//iN/g # #This command converts connecting lines (tatwil, kashidah). #s//--/g # #This command removes connecting lines. s///g # #This command removes sukun, which ArabTeX adds automatically. s///g # #This script file may not convert all shaddahs. This command removes any #shaddahs remaining in the original file. s///g