6

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

Idan K
  • 293
  • 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 06: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
  • If you edit the question to include just the period at the end of the line, maybe it'll get some more attention... and if that doesn't work we can offer a bounty. – einpoklum Feb 12 '12 at 19:34
  • 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 08 '12 at 13:37
  • Hi, I'm getting the same problem as with this example, and also with citation brackets. For parentheses I could just flip them myself, but I can't do that for citations. Did you ever find a solution to this problem? – haggai_e Jun 23 '12 at 09:42
  • Sorry, I guess my parentheses were also reversed, as the ones in the question, and the bracket thing was solved by moving the \cite command out of the \LR it was previously in. – haggai_e Jun 23 '12 at 10:30
  • @brian-ammon Please convert your comment into an answer, so that this question can be removed from the "unanswered" list. – lockstep Sep 22 '12 at 21:04

1 Answers1

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
  • 2,425
  • 1
  • 21
  • 35