<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">at what moment are you doing contextual analysis? Without contextual analysis everything will be in isolated form...<div><br><div><div>Le 8 févr. 09 à 15:35, وفا خلیقی a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">I use the following test file but Arabic alphabets are not connected. Do you know what should I do?<br><br>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br>\documentclass[a4paper,12pt]{article}<br> \pdfoutput1<br>\directlua0{<br>callback.register('define_font',<br> function(name, size)<br> fonttype = nil<br> filename = kpse.find_file(name,"opentype fonts")<br> if (filename)<br> then fonttype = 'opentype'<br> else filename = kpse.find_file(name, "truetype fonts")<br> end<br> if filename and not fonttype then fonttype = 'truetype' end<br> if fonttype then<br> if (size < 0) then size = (- 655.36) * size end<br> ttffont = fontforge.to_table(fontforge.open(filename))<br> if ttffont then<br> f = { }<br> <a href="http://f.name">f.name</a> = ttffont.fontname<br> f.fullname = ttffont.names[1].names.fullname<br> f.parameters = { }<br> f.designsize = size<br> f.size = size<br> direction = 0<br> f.parameters.slant = 0<br> f.parameters.space = size * 0.25<br> f.parameters.space_stretch = 0.3 * size<br> f.parameters.space_shrink = 0.1 * size<br> f.parameters.x_height = 0.4 * size<br> f.parameters.quad = 1.0 * size<br> f.parameters.extra_space = 0<br> f.characters = { }<br> local mag = size / ttffont.units_per_em<br> <br> names_of_char = { }<br> for char, glyph in pairs(ttffont.map.map)<br> do<br> names_of_char[ttffont.glyphs[glyph].name]<br> = ttffont.map.backmap[glyph]<br> end<br><br> names_of_glyph = { }<br> for char, glyph in pairs(ttffont.map.map)<br> do<br> names_of_glyph[ttffont.glyphs[glyph].name]<br> = glyph<br> end<br><br> for char, glyph in pairs(ttffont.map.map)<br> do<br> glyph_table = ttffont.glyphs[glyph]<br><br> f.characters[char] = {<br> index = glyph,<br> width = glyph_table.width * mag,<br> name = <a href="http://glyph_table.name">glyph_table.name</a>,<br> }<br> if glyph_table.boundingbox[4] then<br> f.characters[char].height = glyph_table.boundingbox[4] * mag<br> end<br> if glyph_table.boundingbox[2] then<br> f.characters[char].depth = -glyph_table.boundingbox[2] * mag<br> end<br><br> if glyph_table.kerns then<br> local kerns = { }<br> for _, kern in pairs(glyph_table.kerns)<br> do<br> kerns[names_of_char[kern.char]] = kern.off * mag<br> end<br> f.characters[char].kerns = kerns<br> end<br> end<br> f.filename = filename<br> f.type = 'real'<br> f.format = fonttype<br> f.embedding = "subset"<br> f.cidinfo = {<br> registry = "Adobe",<br> ordering = "Identity",<br> supplement = 0,<br> version = 1<br> }<br> end<br> else<br> f = font.read_tfm(name, size)<br> end<br> return f<br> end<br>)<br>}<br><br>\pagedir TRT \bodydir TRT \textdir TRT \pardir TRT<br>\font\test="IranNastaliq.ttf" at 12pt<br>\begin{document}<br>\test<br>این یک آزمایش است.<br>\end{document}<br clear="all"> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br>-- <br>VK<br> </div></blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Monaco; font-size: 10px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><font class="Apple-style-span" face="Monaco" size="2">--</font></div><div><font class="Apple-style-span" face="Monaco" size="2">+-----------------------------------------------------------------------+</font></div><div><font class="Apple-style-span" face="Monaco" size="2">| Yannis Haralambous, Ph.D. <a href="mailto:yannis.haralambous@telecom-bretagne.eu">yannis.haralambous@telecom-bretagne.eu</a> |</font></div><div><font class="Apple-style-span" face="Monaco" size="2">| Directeur d'Études <a href="http://omega.enstb.org/yannis">http://omega.enstb.org/yannis</a> |</font></div><div><font class="Apple-style-span" face="Monaco" size="2">| Tel. +33 (0)2.29.00.14.27 |</font></div><div><font class="Apple-style-span" face="Monaco" size="2">| Fax +33 (0)2.29.00.12.82 |</font></div><div><font class="Apple-style-span" face="Monaco" size="2">| Département Informatique |</font></div><div><font class="Apple-style-span" face="Monaco" size="2">| Télécom Bretagne |</font></div><div><font class="Apple-style-span" face="Monaco" size="2">| Technopôle de Brest Iroise, CS 83818, 29238 Brest Cedex 3, France |</font></div><div><font class="Apple-style-span" face="Monaco" size="2">| Coordonnées Google-Earth : 48°21'31.57"N 4°34'16.76"W |</font></div><div><font class="Apple-style-span" face="Monaco" size="2">+-----------------------------------------------------------------------+</font></div><div><font class="Apple-style-span" face="Monaco" size="2"> ...pour distinguer l'extérieur d'un aquarium,</font></div><div><font class="Apple-style-span" face="Monaco" size="2"> mieux vaut n'être pas poisson</font></div><div><font class="Apple-style-span" face="Monaco" size="2"><br style="font-family: Monaco; font-size: 10px; "></font></div><div><font class="Apple-style-span" face="Monaco" size="2"> ...the ball I threw while playing in the park</font></div><div><font class="Apple-style-span" face="Monaco" size="2"> has not yet reached the ground</font></div><div><font class="Apple-style-span" face="Monaco" size="2"><br class="khtml-block-placeholder"></font></div><div><font class="Apple-style-span" face="Monaco" size="2"> Es gab eine Zeit, wo ich nur ungern über Schubert sprechen,</font></div><div><font class="Apple-style-span" face="Monaco" size="2"> nur Nächtens den Bäumen und Sternen von ihm vorerzählen mögen.<span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px; "></span></font></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px; "></span><br class="Apple-interchange-newline"><span></span><span></span></font></div></div></div></span></div></span></span></span></div></div></body></html>