|
The method
"ColumnText.setArabicOptions(ColumnText.AR_COMPOSEDTASHKEEL)" is being called,
but it doesn't resolve the problem.
Just to clarify the problem, words in arabic may
have diacritics (tashkeel), which are symbols that appear either above or below
a letter. The diacrics should not affect the way in which 2 letters are
joined. Currently, iText treats diactrics as a normal character that
affects the way letters are joined.
The method
"ArabicLigaturizer.ligature(nextletter, curchar)" checks the current character
with the next character in order to determine the join type. The method
correctly determines when a word with diacritics is being processed and returns
a value of 1 to distinguish this case.
In the method "ArabicLigaturizer.shape(char text[], StringBuffer string, int level)" there is a sequence of if-then-else blocks that shape the characters based on the join type (determined by ligature method). However, the case for join type 1 (diactric join) is not implemented. I think the correct behaviour for the diactric join
would be:
1. Determine the join type based on the current character and the character following the diacritic. 2. Draw the diactric either above or below the character preceding the diactric (depending on which diactric). Ayman
|
Title: RE: [iText-questions] Problems in Arabic Diactrics (tashkeel)
- [iText-questions] Problems in Arabic Diactrics (tashkeel) Ayman Zarroug
- RE: [iText-questions] Problems in Arabic Diactrics (tas... Paulo Soares
- RE: [iText-questions] Problems in Arabic Diactrics ... Ayman Zarroug
- RE: [iText-questions] Problems in Arabic Diactrics (tas... Paulo Soares
- RE: [iText-questions] Problems in Arabic Diactrics (tas... Paulo Soares
- Re: [iText-questions] Problems in Arabic Diactrics ... Paulo Soares
- Re: [iText-questions] Problems in Arabic Diactr... Ayman Zarroug
- RE: [iText-questions] Problems in Arabic Diactrics (tas... Paulo Soares
