Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

enter image description here

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:

enter image description here

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

enter image description here

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

enter image description here

share|improve this question
    
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
1  
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
show 4 more comments

1 Answer 1

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.)

share|improve this answer
add comment

Your Answer

 
discard

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.