The punctuation mark is correct but it can look wrong if you don't fully understand RTL, LTR and neutral chars. There's no magic way of knowing if some text is RTL or LTR other that analysing each char and then deciding. A way of doing it is to get the first non neutral char and set the text as RTL if it's an Arabic or Hebrew char or LTR otherwise. Note that setting the text LTR will still reorder things and shape the Arabic text
Paulo . ----- Original Message ----- From: "tamtam18" <twelche...@gmail.com> To: <itext-questions@lists.sourceforge.net> Sent: Thursday, November 19, 2009 6:28 PM Subject: [iText-questions] Scrambled Punctuation in Right To Left I have a document that prints both Hebrew and English on the same page (sometimes even in the same cell). PdfPCell is working really well with one exception -- punctuation marks, such as colons, periods, plus/minus signs that are at the end or beginning of a string print on the wrong side of the string. So a cell that says "Notes:" will print as ":Notes". A punctuation mark in the middle of a string is not an issue. I have no way of knowing whether the incoming text is Hebrew or English, and this punctuation reversal happens with both the Hebrew and English text ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/