pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilad Denneboom <gilad.denneb...@gmail.com>
Subject Re: Disconnected arabic characters
Date Thu, 28 Dec 2017 15:55:06 GMT
My Arabic is a bit rusty but the second one is certainly the best outcome.
The first one has the letters in their connected forms, but they are
reversed (ie, the first letter appear on the left instead of the right).
In the third outcome they are in the correct order, but not correctly
combined. The second one is in the correct orientation (I recognize the
first word - S'aid - holiday) and the letters are combined.

On Thu, Dec 28, 2017 at 3:03 PM, Tilman Hausherr <THausherr@t-online.de>
wrote:

> Hi,
>
> I tried this... I entered "Happy holidays everybody" into google
> translate, the result was:
>
> سعيد الأعياد الجميع
>
> screenshot from google:
>
>
>
> in netbeans it looked like this:
>
>
>
> I used ArialUni.ttf, and the result PDF had this:
>
> (1)
>
> when I reversed the result text I got this:
>
> (2)
>
> I also tried reversing the arab text before processing with icu4j, then I
> got this:
>
> (3)
>
>  So I wonder which of this is the best one (probably (2)), and if any of
> these is correct at all.
>
> Tilman
>
>
>
> Am 22.12.2017 um 20:17 schrieb Gert de Jong:
>
> String resultText = new ArabicShaping(ArabicShaping.LETTERS_SHAPE).shape(text)
>
>
> See http://www.icu-project.org/applets/icu4j/4.1/docs-4_1_1/
> index.html?com/ibm/icu/text/ArabicShaping.html
>
> On Fri, 22 Dec 2017 19:26:09 +0100, Tilman Hausherr
> <THausherr@t-online.de> <THausherr@t-online.de> wrote:
>
> Can you provide an example how this can be used with our PDF producing
> code?
>
> Tilman
>
> Am 22.12.2017 um 18:07 schrieb Gert de Jong:
>
> I found out how to do it. I used the ArabicShaping class from icu4j.
> There's not much info on this on the internet.
>
> Gert de Jong
>
> On Fri, 22 Dec 2017 17:18:26 +0100, Tilman Hausherr
> <THausherr@t-online.de> <THausherr@t-online.de> wrote:
>
> Am 22.12.2017 um 14:18 schrieb gert.dejong@telfort.nl:
>
> Hello,
>
> I'm trying to draw arabic characters in such a way that the characters are
> connected to each other.
> Is this supported by pdfbox version 2?
>
>
> No. We don't support "complex scripts". Try Apache FOP, if possible.
>
> Tilman
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
>
>
>
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2016.0.8013 / Virus Database: 4791/15244 - Release Date: 12/22/17
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
>
>
>
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2016.0.8013 / Virus Database: 4791/15244 - Release Date: 12/22/17
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
>
>
>

Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message