TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In the following example

\definefont[Shehkl][name:Scheherazade*arabic at 15pt] % or file:amiri-regular.ttf*... file:alq.ttf



--------------------------------------------------------------------------------------------- (Fitra -\Arab[فطرة])


the last bracket in (Fitra -\Arab[فطرة]) is set into the next line - a mistake of course. One way to avoid that (caused by not correctly handling arabic?) would be to put it all into something like \neverbrakethis[] - which I know from LaTeX, what is the equivalent here - or are there better solutions for this?

share|improve this question

I don't know much about arabic typesetting, but your ConTeXt source does not appear to be right. Why not use the following, which is simpler and much more direct:


\definesimplefont[arabicfont][Scheherazade][size=15pt, features=arabic]

\startsetups arabic

  [commands=\setups{arabic}, style=\arabicfont]


English text \arabic{arabic text} english text

  .... arabic paragraph



  1. Ideally, in ConTeXt you want to switch to a complete typescript rather than just switch the main font. With typescripts, font variants such as bold, italic, sans bold, work correctly. I don't know if those variants make sense for Arabic.

  2. I am using the simplefonts module simply because I find it more convenient compared to the low level font commands.

share|improve this answer
Your code does not work, try some arabic word (f.e. mine of the above example). But with hbox it now works. – Mustafa Nov 9 '12 at 6:50
Which version of context are you using (output of context --version)? I tested with the input in your example, and do not get any line break between the arabic text and close parenthesis. You do not need a \hbox. – Aditya Nov 9 '12 at 8:19
Yes, but check the arabic output, the letters are not connected anymore, like it should be. I am using 2012.05.30 11:26 – Mustafa Nov 9 '12 at 8:45
Try with features=arabic in definesimplefonts (see updates answer). – Aditya Nov 10 '12 at 22:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.