[xep-support] Re: multi-language support using XEP

From: Kevin Brown <kevin_at_ADDRESS_REMOVED>
Date: Thu Nov 11 2021 - 12:11:45 PST

There are some things wrong.

 

1. I assume this is the directory in the picture:

C:\Program Files\Oxygen XML Editor 24\frameworks\dita\DITA-OT3.x\plugins\org.dita.pdf2.xep\lib\xep\fonts

 

If not, that is your first problem. That font group says it is for all relatively referenced fonts in this absolute path.

 

2. Based on the fact that your first font group is this (relative) path:

fonts/

 

It means all the fonts in that group are found in a subdirectory /fonts from the location of the parent file (xep.xml).

Because your rendering is not failing completely and the fact that Helvetica is in the picture you sent, you sent a picture of the /fonts directory.

 

Now if C:\Program Files\Oxygen XML Editor 24\frameworks\dita\DITA-OT3.x\plugins\org.dita.pdf2.xep\lib\xep\fonts is the same as /fonts then you are still missing many of the referenced fonts. Like Artial.ttf, Times.ttf and such.

 

3. There are other issues like option VALIDATE is not a valid entry in the <generator-options format="PDF"> section. Whomever made these edits was incorrect.

 

The key here is that you should look at the log output from RenderX. If you are trying to reference a font and it is not found, then the log will tell you where it looked (per your xep.xml). Normally (since you are on Windows), one would copy the fonts to the c:\Windows\Fonts directory to install those TTF fonts in the Windows OS. Then that whole section where you are referencing fonts in some deep path under Oxygen should point to “c:/Windows/Fonts/”. In this case, fonts that are already install in Windows like Arial, Courier New, Tahoma and Verdana would just work. It may be that you actually did install the fonts like Noto and Arial Unicode and they are in Windows/Fonts but then you are telling XEP they are in C:\Program Files\Oxygen XML Editor 24\frameworks\dita\DITA-OT3.x\plugins\org.dita.pdf2.xep\lib\xep\fonts

As a side note, I would normally never use VALIDATE = false until I was sure I had a completely functional system. It is better to set:

VALIDATE=”true”
DISCARD_IF_NOT_VALID=”false”

 

This way you get all the warnings, errors and yet the formatter will still try and format the document.

Kevin Brown
RenderX

 

 

From: Eric Sirois <eric.sirois@ixiasoft.com>
Sent: Thursday, November 11, 2021 11:30 AM
To: 'kevin@renderx.com' <kevin@renderx.com>; 'RenderX Community Support List' <xep-support@renderx.com>
Subject: RE: [xep-support] Re: multi-language support using XEP

 

Apologies for the long delay.

 

Here is the info. I tried swapping out the reference to Arial MS Unicode in the xep.xml file from the actual licensed version to Noto Sans. The content has Hindi, Japanese, and Traditional Chinese. None are showing up. So I fully expect something missing or misconfigured in our xep.xml file. For the Hindi content though. The latest version of FOP in DITA OT 3.6.1 was able to render the content in the PDF.

 

Please let me know if you have any questions.

 

 

Éric Sirois

DITA Toolsmith​

 

IXIASOFT

45 Chemin Bates, Suite 220 • Montreal, QC H2V 1A6
tel + 1 514 279-4942 / toll free + 1 877 279-4942

mobile + 1 647 462-3620

 <mailto:eric.sirois_AT_ixiasoft.com> eric.sirois_AT_ixiasoft.com / <http://www.ixiasoft.com/> www.ixiasoft.com

 

 

 

 

 

From: Xep-support <xep-support-bounces@renderx.com <mailto:xep-support-bounces@renderx.com> > On Behalf Of Kevin Brown
Sent: September 29, 2021 1:35 PM
To: 'RenderX Community Support List' <xep-support@renderx.com <mailto:xep-support@renderx.com> >
Subject: [xep-support] Re: multi-language support using XEP

 

* We do have xep.xml configured to load the Arial MS Unicode font in which the glyph does exist in that font.

 

How do you know this is correct? Please send your xep.xml lines where you have included the font including all pathing. Also include a screen shot of your directory that the font is located in. And finally include the relative xsl fo showing you are specifying that font. Note: Arial Unicode MS is a font which requires a license to use. You should own this license if you intend to use it and even then it is not recommended. The copyright notice for the font is very large and legally required to be inserted into the output. RenderX respects this and will insert the copyright information *even if you are only using one character of that font*. We have had customers complain that using one smiley face increases the output PDF size by 100kb. This is because the copyright notice must be inserted into the PDF output (something other formatters may not do).

 

* I did find the following thread from 2015 where it was mentioned Hindi/Devanagari is not supported. Is that still the case or was support added in newer versions of Xep?

 

It takes more than just a font to support Indic languages. The formatter engine must support advanced ligatures and glyph reshaping to properly format those languages.

RenderX does not include support for Indic languages.

 

Kevin Brown

RenderX

 

 

 

 

From: Xep-support <xep-support-bounces@renderx.com <mailto:xep-support-bounces@renderx.com> > On Behalf Of Eric Sirois
Sent: Monday, September 20, 2021 7:43 AM
To: 'xep-support@renderx.com' <xep-support@renderx.com <mailto:xep-support@renderx.com> >
Subject: [xep-support] multi-language support using XEP

 

Hi,

 

A client of ours would like to have multi-language content show up in their PDFs, but they are getting blank boxes instead. We do have xep.xml configured to load the Arial MS Unicode font in which the glyph does exist in that font. I did find the following thread from 2015 where it was mentioned Hindi/Devanagari is not supported. Is that still the case or was support added in newer versions of Xep?

 

 <http://services.renderx.com/lists/xep-support/7405.html> http://services.renderx.com/lists/xep-support/7405.html

 

Éric Sirois

DITA Toolsmith​

 

IXIASOFT

45 Chemin Bates, Suite 220 • Montreal, QC H2V 1A6
tel + 1 514 279-4942 / toll free + 1 877 279-4942

mobile + 1 647 462-3620

 <mailto:eric.sirois_AT_ixiasoft.com> eric.sirois_AT_ixiasoft.com / <http://www.ixiasoft.com/> www.ixiasoft.com

 

 

 

 

 

_______________________________________________
(*) To unsubscribe, please visit http://lists.renderx.com/mailman/options/xep-support
(*) By using the Service, you expressly agree to these Terms of Service http://w
ww.renderx.com/terms-of-service.html

image001.png image002.png
Received on Thu Nov 11 12:07:41 2021

This archive was generated by hypermail 2.1.8 : Thu Nov 11 2021 - 12:07:46 PST