Hi Mehdi,

You are right, I used the example and configuration sent by Luis Bernardo,
and fop works well.
As for the fonts, his (Luis) example used Arial, I also tested
ArialUnicodeMS and works.
Traditional arabic (BTW, the links on the page are wrong) produces this
error:

org.apache.fop.apps.FOPException: The font trado.ttf is not embeddable due
to a licensing restriction.

Thank you,
Bernardo

-- 
Bernardo Gonzalez Kriegel
[email protected]



On Thu, Nov 8, 2012 at 9:12 AM, Mehdi Houshmand <[email protected]> wrote:

> Hi Bernardo,
>
> By the looks of the exception you've got an error in the FO you're
> creating, which probably has nothing to do with Arabic support. If you're
> wondering which fonts to use, I'd suggest you read the Apache FOP website,
> it should give you all the information you need [1].
>
> As for your erroneous FO, I'd suggest the following; use an XSLT
> transformer to create the FO, then use that as the input to FOP and you
> should get some information from the error as to which FO construct is
> erroring. If you're still having issues, post the FO to this forum (though
> under a new thread, it's won't be relevant to the original thread).
>
> Hope that helps
>
> Mehdi
>
> [1]
> http://xmlgraphics.apache.org/fop/trunk/complexscripts.html#fonts_arabic
>
>
> On 8 November 2012 11:39, Bernardo Gonzalez Kriegel 
> <[email protected]>wrote:
>
>> Hello,
>> I think that it's not so simple, but as Eduard pointed out you need:
>> a) a correct font
>> b) fop-1.1
>> c) fo generation
>> d) fop configuration
>>
>> I am also frustrated, I have not been able to generate a PDF in Arabic.
>> So, these are my questions/experiences:
>>
>> a) I'm using Arial Unicode MS [1]. It's a good choice?
>> b) I downloaded the last version from [2]
>> c) I tried xsltproc, that converts any gliph into character codes
>> (ej. 3.8 (&#x628;&#x627;&#x644;&#x639;&#x631;&#x628;&#x64A;&#x629;)),
>> or saxon that leaves the gliphs intact
>> (3.8 (بالعربية))
>> d) I've edited fop.xconf to register the font
>>
>> In any case, not only fop refuses to generate a pdf, complaining about
>> missing glyphs and hyphenation,
>> but aborts with many org.apache.fop.fo.ValidationException.
>>
>> So, anyone know's or can point to a document to learn about these
>> questions
>>  a) What font is recommended, or have been used with success?
>>  b) What is the best way to generate the FO?
>>  c) What configuration do you use to register the font?
>>  d) There are any examples?
>>
>> Best regards,
>> Bernardo
>>
>> [1] http://www.microsoft.com/typography/fonts/family.aspx?fid=24
>> [2] http://xmlgraphics.apache.org/fop/1.1/
>>
>> --
>> Bernardo Gonzalez Kriegel
>> [email protected]
>>
>>
>>
>> On Thu, Nov 8, 2012 at 4:53 AM, Eduard Tibet <[email protected]>wrote:
>>
>>> Brian,
>>>
>>> It's simple. I'll try to explain.
>>>
>>> 1. Check if fonts, available on your system, support Arabic glyphs.
>>> 2. Write down (i.e. in any text editor) the names of these fonts.
>>> 3. Open your fo file and check the names of the fonts you are using.
>>> Please, note, that the font families in your fo file should have the same
>>> names as your font files in your system.
>>> 4. Try to use the exact fonts with Arabic glyphs instead of autodetect.
>>> Try to use the following:
>>> http://xmlgraphics.apache.org/fop/1.1/fonts.html#advanced (but hold the
>>> step 2 in your mind).
>>>
>>> Finally, you need to get:
>>> 1. The names of the fonts file in your system, that contains Arabic
>>> glyphs.
>>> 2. The fo file with font families that exists in your system and
>>> contains Arabic glyphs.
>>> 3. The configuration file that makes a dependency between the font files
>>> in your system and font names fo file.
>>>
>>> --
>>> Best regards,
>>>  Eduard Tibet
>>>
>>>
>>> -----Original Message-----
>>> From: Brian Hansen [mailto:[email protected]]
>>> Sent: Thursday, November 08, 2012 11:06 AM
>>> To: [email protected]
>>> Subject: Need help to get Arabic working with FOP
>>>
>>> Hi
>>>
>>> I'm pulling my hair out in frustration! I have been trying for so long
>>> to get Arabic fonts to display correct when using Docbook (converting
>>> XML to FO using Xsltproc and then to PDF using FOP).
>>>
>>> I'm sorry, but I just don't understand the documentation for FOP. It's
>>> not clear enough for me.
>>>
>>> I'm running FOP 1.0 on Linux. I need to know exacty, step by step,
>>> what I need to do to get Arabic text rendered properly. Instead # is
>>> shown.
>>>
>>> I have created this file foprc.xconf:
>>>
>>> <fop>
>>>         <renderers>
>>>                 <renderer mime="application/pdf">
>>>                         <fonts>
>>>                                 <auto-detect/>
>>>                         </fonts>
>>>                 </renderer>
>>>         </renderers>
>>> </fop>
>>>
>>> When I run FOP I use this command:
>>>
>>> $ fop -c foprc.xconf -fo filename.fo -pdf filename.pdf
>>>
>>> I get this message:
>>>
>>> <SNIP>
>>> Font "Symbol,normal,700" not found. Substituting with
>>> "Symbol,normal,400".
>>> Font "ZapfDingbats,normal,700" not found. Substituting with
>>> "ZapfDingbats,normal,400".
>>> Glyph "?" (0x627, afii57415) not available in font "Helvetica-Bold".
>>> Glyph "?" (0x644, afii57444) not available in font "Helvetica-Bold".
>>> Glyph "?" (0x625, afii57413) not available in font "Helvetica-Bold".
>>> Glyph "?" (0x633, afii57427) not available in font "Helvetica-Bold".
>>> Glyph "?" (0x645, afii57445) not available in font "Helvetica-Bold".
>>> Glyph "?" (0x64a, afii57450) not available in font "Helvetica-Bold".
>>> Glyph "?" (0x629, afii57417) not available in font "Helvetica-Bold".
>>> Glyph "?" (0x646, afii57446) not available in font "Helvetica-Bold".
>>> Glyph "?" (0x644, afii57444) not available in font "Times-Roman".
>>> Glyph "?" (0x627, afii57415) not available in font "Times-Roman".
>>> Glyph "?" (0x625, afii57413) not available in font "Times-Roman".
>>> Glyph "?" (0x647, afii57470) not available in font "Times-Roman".
>>> Glyph "?" (0x62a, afii57418) not available in font "Times-Roman".
>>> Glyph "?" (0x642, afii57442) not available in font "Times-Roman".
>>> Glyph "?" (0x648, afii57448) not available in font "Times-Roman".
>>> Glyph "?" (0x649, afii57449) not available in font "Times-Roman".
>>> Glyph "?" (0x62e, afii57422) not available in font "Times-Bold".
>>> Glyph "?" (0x627, afii57415) not available in font "Times-Bold".
>>> Glyph "?" (0x641, afii57441) not available in font "Times-Bold".
>>> Glyph "?" (0x625, afii57413) not available in font "Times-Bold".
>>> Glyph "?" (0x650, afii57456) not available in font "Times-Bold".
>>> Glyph "?" (0x646, afii57446) not available in font "Times-Bold".
>>> Glyph "?" (0x651, afii57457) not available in font "Times-Bold".
>>> Glyph "?" (0x64e, afii57454) not available in font "Times-Bold".
>>> Line 1 of a paragraph overflows the available area by 33725
>>> millipoints. (See position 38:32883)
>>> Line 1 of a paragraph overflows the available area by 33725
>>> millipoints. (See position 38:33245)
>>> Line 1 of a paragraph overflows the available area by 33725
>>> millipoints. (See position 38:33624)
>>> Line 1 of a paragraph overflows the available area by 2500
>>> millipoints. (See position 42:40585)
>>> Line 1 of a paragraph overflows the available area by 2500
>>> millipoints. (See position 42:41202)
>>> Line 1 of a paragraph overflows the available area by 2500
>>> millipoints. (See position 42:41645)
>>> Line 1 of a paragraph overflows the available area by 2500
>>> millipoints. (See position 42:42132)
>>> Line 1 of a paragraph overflows the available area by 2500
>>> millipoints. (See position 42:42782)
>>> Line 1 of a paragraph overflows the available area by 2500
>>> millipoints. (See position 42:43361)
>>> Line 1 of a paragraph overflows the available area by 2500
>>> millipoints. (See position 42:44233)
>>> </SNIP>
>>>
>>> What exactly do I need to do?
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected]
>>> For additional commands, e-mail: [email protected]
>>>
>>>
>>
>

Reply via email to