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 <[email protected]> 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 <[email protected]> wrote:

Am 22.12.2017 um 14:18 schrieb [email protected]:
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: [email protected]
For additional commands, e-mail: [email protected]



-----
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: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



-----
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: [email protected]
For additional commands, e-mail: [email protected]


Reply via email to