Hi Seyal, See below:
------ Original Message ------ From "Hans Hagen" <j.ha...@xs4all.nl<mailto:j.ha...@xs4all.nl>> To "seyal.zav...@gmail.com<mailto:seyal.zav...@gmail.com>" <seyal.zav...@gmail.com<mailto:seyal.zav...@gmail.com>>; "mailing list for ConTeXt users" <ntg-context@ntg.nl<mailto:ntg-context@ntg.nl>> Date 5/9/2024 3:31:45 AM Subject [NTG-context] Re: rendering arabic diacritics ** Caution: EXTERNAL Sender ** On 5/9/2024 10:03 AM, seyal.zav...@gmail.com<mailto:seyal.zav...@gmail.com> wrote: Hi all, when i want to use the linked font for arabic texts it doesn't render diacritics properly i doesn't have problem with this font in inkscape or libreoffice what featureset should i apply? font link: https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdrive.google.com%2Ffile%2Fd%2F1hCcv6wqWjd-5GEKnaowh8E8YVbTgGqQr%2Fview%3Fusp%3Dsharing&data=05%7C02%7CIdris.Hamid%40ColoState.EDU%7C8e2b7a1a4eaf46f6b10808dc700b7b2a%7Cafb58802ff7a4bb1ab21367ff2ecfc8b%7C0%7C0%7C638508441848485171%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=51bK7I53UxZOK0PcbrYlpX2s%2Bdy%2BK83SslQZ%2BvhnvwU%3D&reserved=0<https://drive.google.com/file/d/1hCcv6wqWjd-5GEKnaowh8E8YVbTgGqQr/view?usp=sharing> this is my MWE: \definefontfeature [arabis] [mode=node,language=dflt,script=arab, init=yes,medi=yes,fina=yes,isol=yes, liga=yes,dlig=yes,rlig=yes,clig=yes, mark=yes,mkmk=yes,kern=yes,curs=yes] \definefont [Ahang] [file:Ahang-Regular.otf*arabis at 18pt] \setupalign[r2l] \starttext {\Ahang تَشْكِيل كَسْرَة} \stoptext \definefont [Ahang] [file:Ahang-Regular.otf*arabic at 18pt] but there is an issue with widths, ill send you a patch to test The provided "*arabic" featureset should suffice for this font. Also TEXpage is useful for this kind of MWE: \definefont [Ahang] [file:Ahang-Regular.otf*arabic at 18pt] \setupalign[r2l] \startTEXpage[offset=1em] {\Ahang تَشْكِيل كَسْرَة} \stopTEXpage In prehistoric ConTeXt version 2023.09.26 18:19 the diacritics look fine in both ConTeXt and unicode editor MS Notepad. So if there is something wrong, it must be in a more recent version. For comparison: Before applying Hans' patch, could you kindly send your pdf of the MWE that shows the error? Mine is attached. Best wishes Idris -- Idris Samawi Hamid, Professor Department of Philosophy Colorado State University Fort Collins, CO 80523
ahang.pdf
Description: ahang.pdf
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________