# Numbers, punctuation and parenthesis reversed in RTL

Contrary to my belief and to what's shown here, the above are coming up reversed for me:

I've seen this happen in other places too (enumerations off the top of my head), but these are the most bothering.

Here's a MWE:

\documentclass{article}
\usepackage{polyglossia}
\setdefaultlanguage[calendar=hebrew, numerals=arabic]{hebrew}
\setotherlanguage{english}
\newfontfamily\hebrewfont{David CLM}
\begin{document}
מספר 1.

משהו )בסוגריים(.
\end{document}


Since the display here is having a hard time with the Hebrew and parenthesis, this is how it looks in an editor:

And RTL (note that the parenthesis are correct because they look properly in RTL rather than LTR):

And when numbers and parenthesis are combined, there's a whole party going on:

-
First note that my question, which you linked to, is not about xetex + polyglossia. As for your example, you're trying to flip the parentheses, and you shouldn't. Your latex code does not, I believe, match your screenshots. You wrote MASHEHU, then left paren instead of right, then BESOGRAIM, then right paren instead of left. –  einpoklum Jan 30 '12 at 6:28
EyalRozenberg: I was referring to the last answer there, by AdamRedwine. The latex code is identical - I took the screenshots all at once. I included the LTR/RTL screenshots for exactly this reason that the text displayed is confusing. But you can see in the LTR shot that the first paren is a right one and the last is a left. This is evident in that it looks right in RTL. –  Idan K Jan 30 '12 at 12:16
In the screenshot, you're right, but in the LaTeX code above, it's the other way around. Really. –  einpoklum Jan 31 '12 at 17:53
EyalRozenberg: I think you might be right, although I'm confused myself now. But even if we ignore the inverted parenthesis, there's still the other issues. –  Idan K Feb 11 '12 at 12:52
I suspect the error might be located in a faulty input file. I have copied your code and it gives me the exact same output you have. But when I typed it in myself, I got a correct output. (I am using TeXShop on Mac OS X and Mac OS switches the input direction automatically, i. e. I see my input already correctly.) –  brian-ammon Jun 8 '12 at 13:37