pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tilman Hausherr <THaush...@t-online.de>
Subject Re: Disconnected arabic characters
Date Thu, 28 Dec 2017 14:03:34 GMT
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> 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> 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
View raw message