My goal is to write small chuncks of Arabic/Hebrew text (words, paragraphs) within a Latin-alphabet language.
I've been trying to set an Arabic fallback font using various examples from here, but so far results have been subpar (even the parentheses do not work):
\definefallbackfamily [mainface] [serif] [Adobe Arabic] [range=arabic,feature=arabic]
\definefontfamily [mainface] [serif] [Minion Pro][features=oldstyle]
%\definefontfallback[mainface][sans][range=arabic]
\setupbodyfont[mainface]
\definefontfeature
[arabic]
[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]
\define[1]\arabico{\definedfont[name:adobearabic*arabic]\setupalign[r2l]#1}
\starttext
% load the font
{
\definedfont[name:adobearabic*arabic% at 36pt
]
\setupalign[r2l]
ضَرَبَ ضُرِبَ ضَرْبًا(
)
ضَرَبَ ضُرِبَ ضَرْبًا
}
%
%\d{D}
Teste: %font loads, no right-to-left
(ضَرَبَ ضُرِبَ ضَرْبًا)
Teste {\definedfont[name:adobearabic*arabic]\setupalign[r2l]ضَرَبَ ضُرِبَ ضَرْبًا}
%works, but parenthesis doesn't
asdf (\arabico{ضَرَبَ ضُرِبَ ضَرْبًا})
\stoptext