XSL Formatter V2 Q&A| Q. | In the parameters list in menu Formatter/Formatter option/xsl:param only accepts one parameter, I cannot create a second line. [No.2002031801] |
|---|---|
| A. |
To make a second line in the xsl:param dialog, press down arrow key after inputting a name or a value of xsl:param. This feature should be modified to be easier. |
| Q. | How do I get around a error message dialog on screen? [No.2002041203] |
|---|---|
| A. |
Take the following steps if you want to turn off the error message on screen.
|
| Q. | Does XSL Formatter view the file automatically without pressing F (Run Formatter) button? [No.2002062805] |
|---|---|
| A. |
In V2.2, the function of starting auto formatting is supported. By registering constantly used stylesheet, it eliminates the need for specifying the stylesheet on each time. Furthermore, by checking the auto-formatting check box, and specifying the document, it starts formatting automatically. |
| Q. | In the PDF Output window, when I change default path for storing the PDF, it changes first time. But second time, it doesn't change to my selected window. [No.2002090602] |
|---|---|
| A. |
We are now investing the functionality so that the selected path becomes valid. And it will be possible in the next version V2.3. |
| Q. | We want to choose different editors for working with the document instance and the stylesheet. [No.2002090603] |
|---|---|
| A. |
Yes. User Interface can register a separate editor into a document and a stylesheet for each from V2.4. |
| Q. | I can't see the current page number in the toolbar of XSL Formatter GUI. [No.2003070403] |
|---|---|
| A. |
This problem was fixed with XSL Formatter V2.5 MR3. |
| Q. | XSL Formatter seems to be a GUI tool, can I use XSL Formatter by giving XML, XSL, FO files to command line as arguments? [No.2002011533] |
|---|---|
| A. |
Yes. You may use an interface program of command line to the engine (AXFO.dll) of XSL Formatter that enables you to pass file names as the arguments from command line. |
| Q. | I want to generate pdf file on command-line. Is the option.ini file required for PDF Output? [No.2002051001] |
|---|---|
| A. |
The option.ini file is not a necessary condition for PDF file generating. XSL Formatter can generate PDF file without specifying option ini file. If you don't specify option.ini file, XSL Formatter uses default value in the formatter option. e.g. AXFOCMD -d "c:\My Documents\xml\sample.xml" -s "c:\My Documents\xml\sample.xsl" -p "Acrobat PDFWriter" -o "c:\My Documents\xml\sample.pdf" If you want to specify option.ini file, please make option.ini file before formatting. Click here to get sample option.ini file. |
| Q. | Dose XSL Formatter V2.2 support passing parameter to the XSLT stylesheet through the command line? If so, how? [No.2002051702] |
|---|---|
| A. |
Yes. We support passing parameters on the commandline. You can specify parameter name and value of xsl:param. When value includes white space, specify "name=value" using double-quortation mark. The following three patterns are available. e.g.
-param name=value
-param "name"=value
-param name="value"
You can use '='(equal mark) within " " or ' '. Specify "&guot;" as a string double quortation. Specify "'" as a string single quortation. |
| Q. | Tell me how to use PDF Output Option by commandline utility (AXFOCMD.exe). [No.2002102505] |
|---|---|
| A. |
I you want to use PDF Option by commandline utility, specify @PDF as printername. AXFOCMD -p "@PDF" -d document.fo -o document.pdf |
| Q. | Is the command line interface of XSL Formatter case sensitive? [No.2003071101] |
|---|---|
| A. |
Yes. Please specify a file name or a printer name in case sensitive. |
| Q. | Can I output stream PDF made on the server to the Web browser of the client? [No.2002041204] |
|---|---|
| A. |
Only when the COM interface is used on the ASP application, it is possible.
And, in current XSL Formatter V2, the temporary file is used. |
| Q. | Do you offer the ability to set security options for the PDF for creating secure documents, such as contracts? [No.2002062804] |
|---|---|
| A. |
From V2.2, security function is supported. It is possible to set user password, master password and some access privileges. Refer to Online Manual attached to PDF Output Option for details. |
| Q. | How can I produce PDF form in my PDF data? [No.2002062807] |
|---|---|
| A. |
No. It's no supported yet. |
| Q. | How can I embed JavaScript in my PDF data? [No.2002062808] |
|---|---|
| A. |
No. It's no supported yet. |
| Q. | Is an XSL FO file that is rendered through a print driver identical to one rendered through the PDF output? Will it always have the same number of pages? [No.2002071202] |
|---|---|
| A. |
Yes. It will have the same number of pages. |
| Q. | We have generated XSL-FO instances of about 90 pages with two background-images on all the pages. Why does it take 3 hours to output using PDF Output Option? [No.2002080904] |
|---|---|
| A. |
Support team has checked the FO instance. The reason it takes time to create PDF is background-images. PDF Output Option supports JPEG-based compression and ZLIB-based compression when outputting raster graphics. By specifying 'Auto' selection of compression method, this version PDF Output Option program calculates the size of compressed image for both compression methods for each page, selects smaller size of the two methods. To shorten the time to create PDF, you are recommended to specify JPEG or ZLIB compression method depending on your type of graphics, by taking following steps:
Antenna House will improve PDF Output Option in the future. |
| Q. | Why is the usage of an image increasing the document size more than the image size? I embedded 6KByte images in 10K document, then it became 19KByte document. What could be the likely cause of the extra 3k? [No.2002080905] |
|---|---|
| A. |
In the current PDF Option version, the original image is not output to PDF as is. Once the image is transformed into BMP or WMF/EMF, then according to the specified compression or quality, it is transformed into JPEG-based compression and ZLIB-based compression of BMP image again. That's why the size of the image becomes bigger or smaller. |
| Q. | Do you support the destination functionality in PDF? [No.2002120603] |
|---|---|
| A. |
Not yet in XSL Formatter. You told us that it was possible in V2.2 but not work in V2.3. However, both V2.2 and V2.3 doesn't support this functionality. In order to achieve it Antenna House extension functionality is required, which is not implemented yet. |
| Q. | Do you have any Antenna House extensions that allow me to specify Title, Author and other metadata in a PDF document that I generate using XSL Formatter with PDF output? [No.2002122001] |
|---|---|
| A. |
It's possible to specify these document properties from V2.5 by using Antenna House XSL Extensions. Please refer to the XSL Formatter Online Manual for more details. |
| Q. | I convert the same FO into PDF using XSL Formatter and FOP. However, there is a difference in the amount of memory between two PDFs. Why? [No.2002122004] |
|---|---|
| A. |
XSL Formatter is based on C++, while FOP is based on Java. We assume this makes the difference in the amount of memory use between them. |
| Q. | Rendering PDF seems to be quite slow even when using moderately sized images (pictures). I'm guessing that images somehow are "re-rendered" when generating PDF. Is there any way to speed up PDF rendering for images? What settings can I use, differences between image file formats, etc.? [No.2003030702] |
|---|---|
| A. |
It often happens when the compression method in the PDF Option dialog is set as Automatic. It's because PDF Output Option supports JPEG-based compression and ZLIB-based compression when outputting raster graphics. By specifying 'Automatic' selection of compression method, this version PDF Output Option program calculates the size of compressed image for both compression methods for each page, selects smaller size of the two methods. That is the images are created twice, the processing speed becomes lower. To shorten the processing time to create PDF, you are recommended to specify JPEG or ZLIB compression method depending on your type of graphics. If your image is like a picture, select "JPEG", if it is like a business graphic, select "ZLIB". The processing method is different in XSL Formatter V3, An original image processing function has been strengthened.
|
| Q. | The size of the PDF files created by PDF Output Option may become larger. Why? [No.2003032801] |
|---|---|
| A. |
When a PDF file is created as a PDF output option, it turns out that file size becomes large according to the following conditions.
These two problems were fixed with XSL Formatter V2.5. However, there might be a possibility that the size becomes bigger when the word-spacing,letter-spacing,justify property is used for justifying letter spacing. In addition, This problem does not occur in XSL Formatter V3. |
| Q. | When creating PDF using PDF Output Option, the error "IID_IXFOCtl failed." occurs. [No.2003032803] |
|---|---|
| A. |
If the font file of 0 Byte exists in the "font" folder of the Windows system currently used, it turns out that this error occurs. This problem will be generated if XSL Formatter V2.4 or earlier are used. This problem was corrected in XSL Formatter V2.4 Maintenance Release 1. |
| Q. | When creating a PDF file using PDF Output Option, and displaying in Acrobat, the error message " There was an error processing a page. There was a problem reading this document(115)" is displayed and the page cannot be displayed. [No.2003032804] |
|---|---|
| A. |
This is a bug of PDF Output Option. When fo:basic-link external-destination is used and the link address ends with ')' , inaccurate PDF is outputted. This problem is due to be corrected in the next version. Please understand the situation. |
| Q. |
I specified page-width="210mm" page-height="297mm" and formatted to
PDF document. However the size of the PDF became 209.9 × 296.69 by PDF Option.It also became 209.9 × 297.04 by using Acrobat Distiller. Why?
[No.2003060604]
|
|---|---|
| A. |
PDF file does not store the paper size as "mm" but as "point". 1 point is equal to 1/72 inches.
|
| Q. | Is it possible to created the PDF file of PDF/X standard (ISO15930) using PDF output option or Acrobat Distiller? [No.2003060605] |
|---|---|
| A. |
XSL Formatter V2 and PDF output option are not supporting CMYK. Therefore, the PDF file of PDF/X standard (ISO15930) cannot be made, using PDF output option or Acrobat Distiller unfortunately. However it's possible to convert to CMYK by post-processing the file with a third party application. PDF/X standard will be examined from now on. |
| Q. | When PDF created by XSL Formatter installed on client PC is compared with PDF created by XSL Formatter installed on a server, the quality of JEPG image in PDF created from the server is not good. Why does the quality of an image become bad although a setup of PDF option is the same? [No.2003081504] |
|---|---|
| A. |
This problem is a limitation of XSL Formatter V2. When XSL Formatter V2 processes JPEG, the image displayed on a screen is processed. Therefore, if a screen setup of client PC differs from that of server PC, such phenomenon will occur. Please set the same value to the "color" in the "setting" item of "Display Property" for each PC. |
| Q. | In PDF generated by using the PDF option, there might be a space between cells of fo:table. [No.2003082204] |
|---|---|
| A. |
When we examined it by using the sample data, the space with the width of 0.01mm was generated between cells of fo:table. For instance, there seems to be a thin line in zoomed PDF when background-color is specified for fo:table-cell. This problem was fixed with XSL Formatter V2.5 MR3. |
| Q. | Though I used only black color to the data, black color of Device RGB color space is used in the generated PDF. Is it possible to output PDF with the black color of DeviceGray? [No.2003110701] |
|---|---|
| A. |
When PDF is generated by XSL Formatter, the color space used in PDF is DeviceRGB. |
| Q. | Is the PDF generated by PDF Option compression format? And, is the compression setting necessary when creating PDF ? [No.2003111702] |
|---|---|
| A. |
The test data and the line art data in PDF file generated by PDF Option are always set as compression format. This setting is not changeable. It is possible for the image files to select the way of compression by ZLIB/JPEG/Auto. ('Auto' can select the smaller size of the file automatically. Please see also the online manual of XSL Formatter V2.5 PDF output option.) |
| Q. | When I open PDF with Adobe Acrobat 5.0, the bold character is not displayed. [No.2004051101] |
|---|---|
| A. |
The bold character might not be displayed with Acrobat 5.0. It is displayed with Acrobat 5.0.5 or the later version. Please update the version of Acrobat. |
| Q. | Are there any differences between XSL Formatter and FOP in creating bookmarks in PDF? What's the difference? [No.2002050201] |
|---|---|
| A. |
There are some differences as follows:
The function of creating bookmarks in XSL Formatter is much more efficient, easy to handle and saving your time compared to that of FOP. Please refer to XSL Formatter Online Manual for creating bookmarks. |
| Q. | Does XSL Formatter already add the additional bookmark functionality to postscript files? [No.2002093008] |
|---|---|
| A. |
The difference between PDF Output Option and Postscript in creating PDF is:
XSL-FO -->(FORMATTER)-->AreaTree-->(PDF Output Option) --> PDF
|
|
(Windows GDI)
|
+--> (Postscript Printer Driver) -> postscript
The functionality "PDF Mark" can be embedded in Postscript. When outputting Postscript by Postscript Printer Diver, it will be possible to set the function of Bookmark and Link by using PDF Mark. Then, Bookmark and Link can be set to PDF generated by Distiller. This functionality is available with the version of V2.3. |
| Q. | Thai characters appear as dots when creating the bookmarks using Distiller. [No.2002110803] |
|---|---|
| A. |
Acrobat and Acrobat Reader can not show Thai characters in bookmark. They become always dots in bookmark. Acrobat and Acrobat Reader do not support Thai language for bookmark. |
| Q. | Would it be possible for the XSL Formatter to not output to PostScript special characters that are not supported in the bookmarks? [No.2002122002] |
|---|---|
| A. |
No, it's impossible. |
| Q. | When I want to create a bookmark, the first bookmark of the second level or later drops. Why? [No.2002122003] |
|---|---|
| A. |
This was a bug of XSL Formatter until V2.3. When axf:outline-level="2" is specified to the nested block, axf:outline is ignored. <fo:block axf:outline-level="1" axf:outline-title="Level1" >
Level1
<fo:block axf:outline-level="2" axf:outline-title="Level2" >
Level2
<fo:block axf:outline-level="3" axf:outline-title="Level3" >
Level3
</fo:block>
</fo:block>
</fo:block>
In the FO sample above, the bookmarks of axf:outline-level="2", axf:outline-title="Level2", axf:outline-level="3" or axf:outline-title="Level3" cannot be created. This problem will be fixed with the next version of XSl Formatter. BTW, if you remove the nested block, bookmarks are created correctly.
<fo:block axf:outline-level="1" axf:outline-title="Level1" >
Level1
</fo:block>
<fo:block axf:outline-level="2" axf:outline-title="Level2" >
Level2
</fo:block>
<fo:block axf:outline-level="3" axf:outline-title="Level3" >
Level3
</fo:block>
|
| Q. | I transform FO that has a hyperlink specified by 'fo:basic-link' into PS (PostScript) file via PS printer driver. Then I transform this PS file into PDF using Acrobat Distiller. A hyperlink where 'fo:basic-link' is specified is missing in the produced PDF result. Why? [No.2003041803] |
|---|---|
| A. |
This problem occurs when the paper orientation is landscape. It's because there is a problem in transforming coordinate with some PS printer driver (Distiller) when the paper orientation changes from portrait to landscape. As the result the link spot is not placed correctly. Please use the newest version of your PS printer Driver (Distiller) in such case. |
| Q. | When I open the PDF file that is specified as internal link in the original PDF,the zoom ratio of the destination PDF becomes different from that of original PDF file. [No.2003053001] |
|---|---|
| A. |
We fixed this problem in the Maintenance Relase 2 version of XSL Formatter. |
| Q. | I want to output PDF by dividing a big document. And, can it have the link and the bookmark to which divided PDFs refer mutually? [No.2003061301] |
|---|---|
| A. |
Automatic division of PDF, the crossing reference for the link or the bookmark cannot be achieved. We will consider for this issue to be improved by adding an extension function in the future. |
| Q. | Can the bookmark of PDF be generated with the page number? [No.2003070401] |
|---|---|
| A. |
This is impossible. Only a static content is made for Bookmark of PDF by the Antenna House Extensions. Bookmark that uses a dynamic content such as |
| Q. | Links we are experiencing with XSL Formatter 2.3 that were not present in version 2.2. Links to the Internet are not launching a web browser and going to the appropriate URL. Why? [No.2002101503] |
|---|---|
| A. |
In your FO, you specified as follows: external-destination="url("www.antennahouse.com")"
When you want to specify absolute URI as external destination, please be sure to write 'http://' as follows:
external-destination="url("http://www.antennahouse.com")"
Without specifying 'http://', it doesn't work correctly because it is considered to be relative path. (BTW It is accidental that it seemed that the external link of PDF operated correctly by V2.2.) |
| Q. | I tried to output the document to PDF in which the internal link is specified using Distiller. However, links that are cross references to other sections in the PDF document go to where is not specified. Why? [No.2002101504] |
|---|---|
| A. |
This is considered to be the bug of Acrobat Distiller. When "PDF" is created by "Distiller" from "PSfile" created by "Distiller", we found that the correct "PDF" was output. Antenna House avoids this problem of Distiller from XSL Formatter V2.3MR1. |
| Q. | Is there any restriction in the number of the characters for the title of bookmark when creating PDF using Acrobat Distiller? [No.2002101801] |
|---|---|
| A. |
When creating PDF using Distiller, up to 127 characters are acceptable. XSL Formatter makes the title length of a bookmark valid up to 100 characters at the maximum when using Distiller. The characters beyond 100 are omitted, then "..." is used instead of the omitted characters. |
| Q. | In the FO, I set the rotation direction 90 degrees. When I view in XSL Formatter, the page is landscape oriented correctly, but when I view the PDF using Distiller the page is portrait oriented. Why? [No.2002110102] |
|---|---|
| A. |
It's because Distiller rotates the page direction automatically by judging the text direction so that text can be read. If all the direction of the pages to be output to PDF is 'portrait' or 'landscape', you can avoid this problem by selecting 'Collectively by File' in 'Auto-Rotated Pages'. If the page direction is mixed with portrait and landscape, select 'Individually' in 'Auto-Rotated Pages'. In this case, I suppose Distiller decides the page direction by judging the text direction in a page. Then selects the direction of larger number of text as the direction of the whole text. Therefore if you put larger number of the text to meet the page direction, you can generate page direction as you like. BTW, The problem and the way around are only suppositions by Antenna House investigation. The other information (images etc.) may affect this problem. Please understand that this is a part of Distiller's engineering |
| Q. | I create a table with 0.1pt rules. When outputting to PDF by Acrobat Distiller, the width of the rules are inconsistent. Why? [No.2002110807] |
|---|---|
| A. |
The reason why the ruler width are not consistent: In this case of creating PDF by Acrobat Distiller. PDF was output through Windows GDI. The width of the rule depends on the output resolution. Even though you specify a small value like 0.1pt, if the resolution is 72dpi, the minimum width becomes 1pt. Furthermore, there is a possibility that the width becomes 2 pixel-width of a rule if the rule is placed expanding to the next pixel. In order to avoid this behavior,
|
| Q. | I specified Acrobat Distiller as a printer using Command line Interface. Then PS file was created although PDF file was expected to be outputted. How can I create PDF file? [No.2003061302] |
|---|---|
| A. |
Not only using Command line Interface, even if Com Interface is used, a PDF file is not created. XSL Formatter cannot distinguish the output destination as Acrobat Distiller, but outputs a formatted result like using an usual printer. And the file name specified to "output file"parameter turns into the file name specifed to "Print to file" in a print dialog. Since "Acrobat Distiller" is a PostScript printer driver, PS file is outputted to the specified destination. |
| Q. | I want to send a formatted file to printer directly, by using XSL Formatter and taking batch processing. Can I print it directly without displaying in window by selecting some XML files, specifying a stylesheet? [No.2002011534] |
|---|---|
| A. |
Yes. You can do it by using the interface program of command line |
| Q. | I want to print a document by using Command line or COM. Does XSL Formatter incorporate the control of paper trays or the selection of forms without using the printer setting dialog? [No.2002032501] |
|---|---|
| A. |
Yes. It is possible to select paper trays without using printer-setting dialog. XSL Formatter can initialize printer setting by making a data file that records the printer settings and specifying it to XSL Formatter. In Windows, DEVMODE structure is used to specify the information regarding printer setting. The printer driver runs according to the information of the DEVMODE structure. XSL Formatter package includes AXFODEV.exe as an application for making DEVMODE structure and saving it to a file. Please refer to XSL Formatter Online Manual for more details. |
| Q. | I am using a DOS batch file to call AXFOCMD.exe and I want to pass in the printer name using the "-p parameter" but it doesn't seem to be working. [No.2002032901] |
|---|---|
| A. |
When the printer name includes a space, you need to double-quote the printer name you want to use like the following: AXFOCMD -p "EPSON LP-LP8700" Also, double-quote a file name of XML, XSL, PDF, if a file name includes a space. |
| Q. | Can XSL Formatter output the file to Postscript? [No.2002032902] |
|---|---|
| A. |
XSL Formatter cannot generate Postscript by itself. If you install Postscript Pinter driver on Windows and select the Postscript Printer driver from print dialog of XSL Formatter, then you can get Postscript file via Pinter driver. |
| Q. | When I create a postscript file and distill this using Postscript printer driver, the links point to completely different pages than they should link. Is linking not supported when creating Postscript file? [No.2002121301] |
|---|---|
| A. |
No, it's not supported when creating Postscript file. Linking is supported only when you create PDF files. Therefore when creating a postscript file with XSL Formatter, bookmarks and links are sometimes not placed correctly. If you really need to create a correct Postscript file, specify Acrobat Distiller as a Postscript printer name. |
| Q. | Can I embed ps-command in a PostScript file when creating a PostScript file using a PostScript printer driver? [No.2003090507] |
|---|---|
| A. |
This issue is impossible. |
| Q. | We are using Arial as the font for this document. We noticed that Unicode character U+2003 (Em Space) shows up as a box in XSL Formatter, while Zero-width space, U+200B does not show a box. Why? [No.2002032505] |
|---|---|
| A. |
Arial does not have the glyph for U+2003. Therefore U+2003 shows up as a box in XSL Formatter. The fonts that have these space code glyph are limited to Tahoma, Lucida Sans Unicode, Arial Unicode MS and etc. If you specify font-family="Tahoma", the U+2003 will be indicated by XSL Formatter. While, the Zero-width space is processed by XSL Formatter (for justification). Therefore U+200B does not show as a box. Next code shows up as a box:
|
| Q. | When I specify font-family="Mincho", and the font Mincho does not exist in the system folder, Chinese character can be displayed in XSL Formatter. However, it is not displayed and becomes a white space when outputting to PDF using PDF Output option. Why? [No.2002052401] |
|---|---|
| A. |
As the "Mincho" font does not exist in the system folder, XSL Formatter retrieves the font of "Lucida Sans Unicode", "Arial Unicode MS", "Tahoma, Microsoft SansSerif" and use the fist retrieved font as a fallback font. The reason why these fonts are retrieved is that they are Unicode and they include many Unicode characters, that is easy to alternate. When "LucidaSansUnicode" is used as a fallback font family, it's impossible to use Japanese character because Japanese character (glyph) does not exist in "LucidaSansUnicode". Then XSL Formatter cannot embed the non-existing Japanese character in PDF and it becomes a white space. The reason why Japanese character can be displayed in XSL Formatter is that when XSL Formatter gives a command to display to the system (Windows), Windows automatically use a font such as MS PGothic as a fallback font family and display it. Then it happens that Chinese character becomes white space in PDF, while it can be displayed correctly in XSL Formatter. To avoid this:
|
| Q. | Is there any way to specify MS Mincho to Default font, specify Arial to Western font separately? When I specify font-family="MS Mincho, Arial", all fonts become MS Mincho. [No.2002062102] |
|---|---|
| A. |
Yes. Put the fonts in reverse order like this: font-family="Arial , MS Mincho" The first placed font takes priority. If MS Mincho is placed first, It is applicable in Western font, so Arial is not used. If Arial is placed first, Western font uses Arial and Japanese font uses MS Mincho because Arial is not applicable in Japanese. |
| Q. | We're specifying Arial for the document. Are system fonts used or are fonts shipped with the product used? [No.2002071201] |
|---|---|
| A. |
XSL Formatter uses the fonts installed on your system. |
| Q. | We have the Plantin ATM fonts installed on our system and output PDF by PDF Output Option. We have noticed how text look like in Antenna GUI tool compared to PDF file. Could you tell me why it looks differently? If it's not supported, do you have any plan to support this? [No.2002090201] |
|---|---|
| A. |
Plantin ATM font is Type1 font. When Type1 font is specified, text in Antenna GUI may look differently compared to PDF. It's because XSL Formatter V2.3 of PDF Option does not support Type1 font except Adobe Standard 14 fonts. If you output PDF by Acrobat PDF Distiller, there is no problem creating PDF. This problem was fixed with XSL Formatter V2.4. |
| Q. | When we generate PDFs, Non-breaking spaces (character number U+00A0) and Trademark symbol (Unicode U+2122、Unicode U+00AE) appear as garbage characters in the bookmarks. [No.2002110802] |
|---|---|
| A. |
Acrobat and Acrobat Reader don't support specifying "Non-breaking spaces" character and "trademark" character to bookmarks. Therefore, PDF file views garbage characters where the "Non-breaking spaces" character and "trademark" character are written. |
| Q. | I don't want to separate my string after the colon of document reference when it comes at the end of line and it's too long to be end. However, I have no way to keep them together. [No.2002112204] |
|---|---|
| A. |
This is an issue of line braking by The Specification of Unicode Line Breaking Properties: According to this specification, it's acceptable to break lines after the colon of 2001/02:Sk322. IS - Numeric Separator (Infix) (XB) Characters that usually occur inside a numerical expression may not be separated from following numeric characters, unless space character intervenes. Since they are otherwise sentence ending punctuation, they prevent breaks before. There is no break in “100.00” or “10,000”, nor in “12:59” 002C COMMA 002E FULL STOP 003A COLON 003B SEMICOLON 0589 ARMENIAN FULL STOP It means that if numbers follow after the COLON, there should be no break, however, if non-numbers follow after the COLON, the line break is acceptable. In order to avoid breaking after the COLON, please put ⁠ after the COLON as follows: 2001/02:⁠Sk322 See also Unicode 3.2 Specification to get more information about ⁠ (U+2060 = WORD JOINER): |
| Q. | Looking at the formatted result, I notice that the space between some specific words is gone. Do you think it's a bug? [No.2002120604] |
|---|---|
| A. |
It sometimes happens that it looks as if the space between words is gone depending on the font size or the font type you specify. First using the zoom in function of XSL Formatter, confirm how it looks like. Then adjust the font size or font type if necessary. |
| Q. | In FO with language="en" that is specified to fo:root, I specified Japanese font to Japanese text suchlike font-family="Arial, MS Gothic, sans-serif" or font-family="Times New Roman, MS Mincho, serif". I also specify zh-CN, zh-TW to Chinese font on the Language-Fonts i18n tab in the Formatter Option dialog. When the script is common for Japanese and Chinese, Chinese character is adopted to some of the fonts which should be appeared as Japanese Kanji. Why? [No.2002120605] |
|---|---|
| A. |
This was a bug of XSL Formatter until V2.4. For example, when the fonts for different languages are set out as follows: font-family="MS Mincho, SimSun" According to the current XSL Formatter, if the text is recognized as Chinese, font for Chinese character is supposed to be selected, even though it can be shown as Japanese font. In the following case, font-family="MS Mincho,serif" the result is the same as above if serif is specified as Chinese font in the setting on the Language-Fonts i18n tab. The reason why the script is shown as Chinese font in FO with language="en" specified is that when the script is recognized as Chinese character and XSL Formatter cannot know exactly which language's font it is, Chinese character takes priority. From V2.5, in this case, the font is selected by the locale of the system (OS) where XSL Formatter runs. |
| Q. | Though I specify font-family="Times New Roman", fonts are not changed. [No.2003013104] |
|---|---|
| A. |
Font name should be exactly the same as the standard font name. For example, in the name "Times New Roman", the white space between Time and New should exist, number of white space should be one. In order to specify the font name without fail, I recommend to view a font name in a font dialog box in any applications, and copy and paste it. |
| Q. | During testing of XSL Formatter and PDF Output Option, we've managed to display CJK glyphs only in the XSL Formatter GUI and not in rendered PDF documents. We get errors from Acrobat Reader saying fonts are missing although they are installed. What is needed on the server and client, in terms of fonts and software, to make Asian text work? [No.2003020703] |
|---|---|
| A. |
If the specified font does not have glyphs for some characters, XSL Formatter GUI displays these characters by alternative font which has the glyphs for the characters. This is automatically done by Windows Operating System. Acrobat Reader ties to use the specified font for the characters, but the font does not have glyphs for the characters. It causes error messages of Acrobat Reader. The reason of this problem is that you may have specified the incorrect fonts to CJK. To resolve this phenomenon, you must specify the correct fonts for the CJK. |
| Q. | Is it possible for XSL Formatter and PDF option to embed TrueType fonts to PDF files? [No.2003021401] |
|---|---|
| A. |
Yes, it's possible to embed TrueType font matrix information within PDF files. (However,as an exception, the fonts having limitation on embedding are not included.)
It's also possible to specify fonts to be embedded individually. |
| Q. | The width of the space between words looks different size according to the position where it is placed. Why does it look different? [No.2003021404] |
|---|---|
| A. |
As the width of the space is calculated by the specified font, it is supposed to be the same if the glyph is the same. However, it looks as if the width of the space is different because of the part of space existing in the glyph of font. Please format this file in XSL Formatter GUI and display the border. |
| Q. | The PDF option doesn't seem to be outputting the same spaces in some cases as compared to the PDF output from Acrobat Distiller. Why? [No.2003022801] |
|---|---|
| A. |
This problem is a bug of PDF Output Option V2.4. We will fix this problem in the next version. |
| Q. | I tried to install both 'Avenir-Heavy' Font and 'Avenir-Roman' Font and also I tried to Format these two fonts, then output to PDF. However only the 'Avenir-Roman' can be embedded. [No.2003041101] |
|---|---|
| A. |
These two fonts are the Type1 font. Information of the font is as mentioned below.
'Avenir-Heavy' Font
avenh___.pfm
dfWeight=400(0x190)
WindowsName='Avenir'
mPostScriptName='Avenir-Heavy'
'Avenir-Roman' Font
avenr___.pfm
dfWeight=400(0x190)
WindowsName='Avenir'
mPostScriptName='Avenir-Roman'
From the above-mentioned information, with Windows, the indicatory name of both fonts becomes Avenir. ( That's the reason why two fonts are not visible with MS-Word.) Usually, with Windows a font distinguishes the font name (WindowsName) or dfWeight value (Bold or Italic, for example). However, as these two font have the same value of WindowsName and dfWeight, they cannot be distinguished. Usually, Windows distinguishes the font name by the font name (WindowsName) or by the dfWeight value (Bold or Italic, for example). However, as these two font have the same value of WindowsName and dfWeight, they cannot be distinguished. Because XSL Formatter uses GDI to select the fonts, it cannot distinguish two fonts as well as MS-Word, only one font can be embedded in PDF. When two fonts are installed on the Windows system, the Avenir-Roman font is supposed to be embedded in PDF. If you probably would like to use the Avenir-Heavy font, by deleting the font of Avenir-Roman from your Windows system, the Avenir-Heavy font will be embedded in PDF. |
| Q. | I want to use external characters. How can I specify them? [No.2003041804] |
|---|---|
| A. |
In order to use external characters, please specify the font where external character is stored, and describe the character code of the external character which you would like to use. In XML and XSL, it's possible to embed the Unicode of external characters into XSL-FO by describing as follows: In XML
.
.
.
<FONT FACE="Font name of external character">
&#x260E;
</FONT>
.
.
.
In XSL
.
.
.
<xsl:template match="FONT">
<fo:block font-family="{@FACE}">
<xsl:value-of disable-output-escaping="yes" select="." />
</fo:block>
</xsl:template>
.
.
.
|
| Q. | I tried to output a vertically-written sentence specifying '"writing-mode = "tb"'. It is normal when outputting it directly to the printer. However, when outputting it to PDF, the character shifts horizontally. [No.2003050903] |
|---|---|
| A. |
This was a bug of XSL Formatter until V2.4. It happens when the proportional font is used. Therefore, if fonts other than the proportional font are specified, it is possible to evade. This problem was corrected in XSL Formatter V2.5. |
| Q. |
The character "RIGHTWARDS ARROWHEAD" that I specified by the code ➤ in Zapfdingbats font is not displayed on GUI, Why?
[No.2003121901]
|
|---|---|
| A. |
XSL Formatter V2 can not display the character of some Type 1 font such as ZapfDingbats and Symbol on GUI when they are specified by Unicode. Please use the Postscript encoding for them instead of Uniocde. The PostScript encoding can be confirmed by the text (Zapfdingbats.txt) attached to the font. For example, please use the code as follows:
<fo:block font-size="12pt" font-family="ZapfDingbats">
ä
</fo:block>
|
| Q. | Why is the size of the image changed, when transforming HTML into XSL-FO? [No.2002011507] |
|---|---|
| A. |
You have to put a unit of measure when specifying the size in XSL-FO. It is an error if there are no units. In addition, you have to use the unit px when specifying the width, height of the img tag in HTML. The following is the example. <xsl:if test="@width">
<xsl:attribute name="content-width">
<xsl:value-of select="@width" />px
</xsl:attribute>
</xsl:if>
|
| Q. | How can I display and print SVG (Scalable Vector Graphics)? [No.2002011531] |
|---|---|
| A. |
It is possible by installing InternetExploler 5.0 or later, installing SVG Viewer provided from the Adobe homepage, although XSL Formatter cannot display and print SGV by itself. |
| Q. | I saved an XML file and an XSL file in each different folder. Then I specified the file name of the image in the XSL file. But the image did not appear in the formatted result. Why? [No.2002031802] |
|---|---|
| A. |
XSL Formatter treats relative path as XML document based. Therefore when there is no path or when you specify a image file as a relative path, XSL Formatter search the image file using the pass as XML document based. In this case, you need to specify the absolute path of the image file, or need to save the image file in the folder where XML file exists. |
| Q. | I hear XSL Formatter supports graphics drastically. what graphics do you support? [No.2002040801] |
|---|---|
| A. |
We add powerful functions of graphics with the release of V2.5 in comparison with V2.0. Click here for more details. |
| Q. | Do you support GIF? If you support it, what needs to be arranged to format GIF images with your product? [No.2002040802] |
|---|---|
| A. |
Yes. You can use GIF with XSL Formatter. UNISYS requires the direct contract between customer and UNISYS if the customer uses GIF function on the Internet or Intranet servers. Especially for Web server, I think each customer is required to contract with UNISYS. For standalone purpose or in-house use, Antenna House can supply GIF function to users depending of the contract between Antenna House and UNISYS. It is only a matter of amount of fee. |
| Q. | How can I produce the vector graphics in PDF without destroying the quality? Is it possible to embed vector graphics without transforming to rasterized format? Are there any ways to keep the quality of vector graphics? [No.2002053101] |
|---|---|
| A. |
By using PDF Output Option, it's impossible to embed vector graphics without change in PDF. By using Distiller or PDF Writer, it's possible to embed other than SVG vector graphics as vector format without transforming to rasterized format in PDF. In case of PDF Option:
In case of Acrobat Distiller or Acrobat PDF Writer:
XSL Formatter V3 includes only SVG image in PDF with a vector image. Therefore, an image does not deteriorate. |
| Q. | How can I display and print CGM(Computer Graphics Metafile)? [No.2002062802] |
|---|---|
| A. |
XSL Formatter supports CGM. It's possible to display CGM using Corel ActiveCGM, ITEDO ISO-View as a plug-in for XSL Formatter. Both are downloadable CGM Viewers free of charge. |
| Q. | How can I produce JPEG (Raster image) in PDF without destroying the quality by using PDF Option? [No.2002062806] |
|---|---|
| A. |
In V2.2, Setting of compression rate is supported. You can specify the value of resolution, specify the quality of the Raster Graphics when stored in JPEG format in the range of 1-100, or low, medium, high, max. The quality becomes higher in proportion to the increase of number, however the size of the output file becomes bigger. Compression Setting for PDF graphics output is available in the PDF Option dialog. On the XSL Formatter Tools menu, click PDF Option and select Compression. |
| Q. | Does XSL Formatter support a CMYK color model? [No.2002090601] |
|---|---|
| A. |
No. It's our future plan. When creating a PDF file using PDF output option, the image of CMYK is converted to RGB and embedded in PDF. Concerning this issue, we would like to keep examining in the future. |
| Q. | Would it be possible to insert OLE objects directly into the PDF? I use ChartFX to generate dynamic graphs, which are vector based and are OLE objects. [No.2002090901] |
|---|---|
| A. |
Not yet. We are now investigating if it's possible to add this functionality to our future version. |
| Q. | Can I display and print a formula written by using MathML? [No.2002093003] |
|---|---|
| A. |
From V2.3 it's available to display and print MathML by installing MathPlayer plug-in by Design Science, Inc. (MS IE6.0 or later required.) |
| Q. | Can I display and print EPS image? [No.2002093004] |
|---|---|
| A. |
Preview Image and Postscript Code are included in EPS. From V2.2, EPS image can be displayed on screen, output to printer, inserted to PDF by embedding Postscript code in EPS into Postscript output file via Postscript printer driver. (Available only in Windows2000/XP) In case of generating PDF by Acrobat Distiller, the printer driver within Acrobat Distiller is distinguished as Postscript Printer Driver. Then the Postscript code in EPS is output, converted and embedded into PDF, it means Acrobat Distiller can generate PDF with high quality EPS graphics on Windows2000/XP. From V2.3, even if EPS has no preview image, it's possible to embed EPS by reflecting a dummy image on window. When printing by PS Printer, outputting PDF by Adobe Acrobat Distiller, Postscript code in EPS is output and EPS image can be embedded. |
| Q. | When I specified "http://aaa.bmp" in fo:external-graphic, the image cannot be displayed. What's wrong? [No.2002093005] |
|---|---|
| A. |
It was revised in the version V2.2 and it's possible to specify external-graphic using http. However, in case you use XSL Formatter on a server, the target file is downloaded and stored in the local temporary folder. Therefore if the image cannot be downloaded for authorization reason, it's not shown. |
| Q. | Will the graphic still be visible on screen in PDF if the EPS does not have a preview image? [No.2002093009] |
|---|---|
| A. |
If the EPS does not contain preview image, the special graphics that means "preview image does not exist" will be inserted on XSL Formatter GDI window. When printing to "Distiller" or other "Postscript Print Driver", Postscript code within EPS file will be output in Postscript. |
| Q. | What are the optimum settings to use when creating a gif image in order to get the actual (small) size of the image being used within the XSL-Formatter generated pdf document? [No.2002100401] |
|---|---|
| A. |
In your case, you changed the original data into GIF. However, it doesn't seem to make sense because XSL Formatter converts it to BMP. I look over the fo in your file and actually converted it to PDF using the smallest data of which buffy.fo(13,249Byte) is attached. Please see how I converted it to PDF as shown below: Image: ReallySmall.gif 4,039Byte
Compression method: Auto (JPEG compression rate selected)
V2.2: 15,112 Byte
V2.3: 14,837 Byte
13,394 Byte (CJKSCreen setting in Distiller)
In this data, image became 4,588Byte (a little bit bigger than original), text became 3,001Byte, and the rest of the main part is character width data. Times New Roman is used as default formatting, however four types of font type, Regular, Bold, Italic and BoldItalic are used in this document. As the character width data is different for each font type, PDF has four different character width data. When I modified fo and leave only Regular type in the data, it became 10,652 Byte. 4KByte is reduced and it is the part of 3 types of font types concerning character width data. I assume there is not so much room for reducing the volume in this document so far. |
| Q. | How can I embed SVG in a document? [No.2002101501] |
|---|---|
| A. |
There are two ways of embedding SVG. One is to link to the external destination by using 'external-graphic'. The other is to describe the code of svg or abc:svg xmlns:abc="http://www.w3.org/2000/svg" directly to the document by using 'instream-foreign-object'. . . . <fo:instream-foreign-object content-width="215.9mm" content-height="279.4mm" > <svg xmlns="http://www.w3.org/2000/svg"> . (Code of SVG) . </svg> </fo:instream-foreign-object> . . . In this case please be sure to make the first element as |
| Q. | I embedded the code of SVG directly to the document, but the size became smaller. Why? [No.2002101502] |
|---|---|
| A. |
When embedding SVG in the document, the size of SVG becomes the absolute value of content-width/content-height properties specified to 'instream-foreign-object' or 'external-graphic'. If these properties don't exist, the absolute value of width/height specified to the svg tag becomes the SVG size. If there aren't these properties or are invalid, the height of SVG becomes the same as that of line-area (normally font-size). Please specify content-width and content-height or specify the absolute value of width/height to the svg tag as follows: . . . <fo:instream-foreign-object content-width="215.9mm" content-height="279.4mm" > <svg xmlns="http://www.w3.org/2000/svg"> . (Code of SVG) . </svg> </fo:instream-foreign-object> . . . |
| Q. | I understand that vector image is converted to raster image when displaying. Do you have any way to change the resolution (DPI) of raster image? [No.2002110104] |
|---|---|
| A. |
XSL Formatter does not have such a function. It's our future plan. In XSL Formatter V2.4 or later and XSL Formatter V3, the resolution value of the raster images can be specified. Moreover, in XSL Formatter V3, SVG, EMF and WMF are drawn as vector images in the PDF without being converted into the raster images. Please refer to an Online Manual for details. |
| Q. | Can the non-compressed GIF Graphic file be displayed without LZW license? [No.2002110801] |
|---|---|
| A. |
The U.S. LZW patent expired on June 20, 2003, and the Japanese counterpart patents expired June 20, 2004. GIF/TIFF-LZW License/Fee is not required to display or output in PDF the LZW compression-based GIF/TIFF files any more. The cansellation of the above restriction is available from XSL Formatter V3.1 MR3. |
| Q. | The image file specified as an external-graphic is not shown. What's wrong? [No.2002111501] |
|---|---|
| A. |
Please confirm your file path.
|
| Q. | When I put PNG image with transparent background on a page with background-image, transparent part of the image covers the background-image. [No.2002120602] |
|---|---|
| A. |
Only background-color is affected by the image with transparent. background-image is not affected (not transparent). It's a limitation of the current XSL Formatter. In XSL Fromatter V3.1, function of setting transparent color PNG/GIF is added. |
| Q. | I describe the data of MathML directly in XSL-FO. However nothing appears. What's wrong? [No.2003011702] |
|---|---|
| A. |
Not apply only to MathML, there are some image types that can be described in XSL-FO. When describing them directly, you need to use the fo:instream-foreign-object method before writing the image data. Following shows the example of MathML:
<fo:block>
<fo:instream-foreign-object content-type="application/mathml+xml">
<m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
.
. (MathML data)
.
</m:math>
</fo:instream-foreign-object>
</fo:block>
|
| Q. | I embed a SVGZ image (SVG compressed type) by external reference. However the size of the image doesn't reflect correctly. Why? [No.2003020701] |
|---|---|
| A. |
In case of embedding a SVGZ image, it sometimes happens that the size of the original image displayed is not obtained.Please specify the size of a displayed image to content-width, content-height explicitly. |
| Q. | If I use the same image several times in a document, it looks like the image is encoded several times into the PDF document. This is rather inefficient for large, reoccurring logotypes. Can I get around this problem in any way? [No.2003030703] |
|---|---|
| A. |
XSL Formatter V2.4 or earlier encoded all the images even though there are the same images. This was the cause of making the file size big. From V2.5, XSL Formatter encodes the images one time and reduces the size of PDF output file. |
| Q. | How does your EPS support work? Some EPS images do not work at all. Others use only the low-quality preview image stored in the EPS file. [No.2003030705] |
|---|---|
| A. |
Preview Image and Postscript Code are included in EPS. Preview image of EPS is displayed on GUI. It's a specification of XSL Formatter. And in the PDF Output Option, preview image is embedded also. By using Adobe Acrobat Distiller, EPS is outputted to PDF by embedding Postscript code in EPS into Postscript output file via Postscript printer driver. (Available only in Windows2000/XP) |
| Q. | There is a problem displaying TIFF images using the XSL Formatter Developer license. The evaluation version has no problem in displaying at all. What's the difference? [No.2003050201] |
|---|---|
| A. |
As Raster Imaging Pro library is not included in Developer License (SDK), it's not available to display TIFF, that is supported with evaluation version. It has to do with the licensing from Lead Technologies that prevents us from redistributing the imaging software/modules as part of the SDK. This is covered in the description of the SDK on our website. Since XSL Formatter V3 processes only baseline-TIFF in the library of the XSL Formatter itself, it can be displayed also by SDK. TIFF other than baseline-TIFF will also be supported in the future. |
| Q. |
Is Raster Imaging Pro library necessary to display BMP image?
Which graphic formats can we use if we don't buy Raster Image's graphic engine? [No.2003050202] |
|---|---|
| A. |
No, it's not necessary to display BMP image.
RasterImagingPro is not necessary for:
RasterImagingPro is necessary for:
PS:
|
| Q. | I installed ActiveCGM to use CGM Image formatting. However, the image is not displayed. [No.2003051601] |
|---|---|
| A. |
XSL Formatter needs ActiveCGM plug-in for CGM output.
When 2byte character exists in the path name, ActiveCGM does not display the image. This is a limitation of current XSL Formatter. Please change to no inclusion of 2byte character in CGM path. |
| Q. | When the inline images with the same file format are used several times, the first image is displayed for the second image or later repeatedly. [No.2003070402] |
|---|---|
| A. |
This problem is a bug of XSL Formatter V2.5. This problem was fixed with XSL Formatter V2.5 MR3. |
| Q. | Does XSL Formatter support Asian language fonts such as Japanese, Traditional Chinese, Simplified Chinese, or Korean (CJK)? [No.2002041206] |
|---|---|
| A. |
When Windows standard CJK fonts are available, XSL Formatter uses these standard CJK fonts as default for each language. In the Formatter Options dialog box, click the Language-Fonts, i18n tab. Following is the normal setting: language: ja - Japanese Generic font family setting for the language: serif: MS Mincho sans-serif: MS Gothic cursive: (default) fantasy: (default) monospace: MS Mincho If your setting is different, initialize all the settings of generic font family to default. Click the Default Fonts tab in the formatter Options dialog box. Check Reset generic font family settings to set as default. Then you can see Asian fonts without specifying font name to the font-family property. e.g., <fo:block font-family="serif" xml:lang="ja"> (Japanese text here) </fo:block> If you want to specify a font name explicitly, please confirm that the font name is correct.( for example, MS Mincho should have a space, MSMincho is incorrect.) e.g., <fo:block font-family="'Times New Roman', 'MS Mincho', Batang, serif"> (Latin and Japanese and Korean mixed text) </fo:block> Note: CJK-Unicode is slightly different in character glyph by locales, even if you use the same CJK Unicode. Therefore specify Japanese fonts for Japanese documents, specify Chinese fonts for Chinese documents. |
| Q. | Japanese and Chinese (Traditional Chinese) are already installed on my Windows2000 in multilingual locale setting. I added Chinese (Simplified Chinese) and Korean fonts this time but the characters are not displayed correctly. Why? [No.2002041207] |
|---|---|
| A. |
XSL Formatter initializes the setting for standard languages and fonts when XSL Formatter is installed and first executed. As this setting is stored in the registry, the default setting is done only when XSL Formatter is first executed after the installation and there are no changes in the registry. If you install Chinese fonts and Korean fonts after the default setting, these fonts are not stored as specified fonts in the registry. To make additional fonts effective:
|
| Q. | We couldn't render Arabic script correctly in XSL Formatter. How can I render the script right-to left as it should ? [No.2002070503] |
|---|---|
| A. |
Take the following steps:
|
| Q. | I tried creating a sample Thai PDF document using the direct-to PDF function but it didn't seem to work. Thai document looked fine in the XSL Formatter preview. [No.2002071203] |
|---|---|
| A. |
It's because the font not listed in Online Manual is used. In your file, the font might be sans-serif specified in Formatter option. In order to create Thai PDF, specify Microsoft Sans Serif instead of Arial that is initial. Then it is suppose to work. Arial is not available because Arial doesn't have the point code glyph of Thai, as well as Times New Roman. GDI displays Thai using other font, but the creator cannot take this process. |
| Q. | I got a FO file that sets font-family="Arial Unicode MS" to fo:block including Hebrew text. However, as "Arial Unicode MS" is not installed on my Windows2000, I set the default font on the default fonts tab in the Formatter Option dialog as follows: Default Language: he-Hebrew, Default Font Family: sans-serif: Arial, But the fonts didn't not become "Arial" but "Lucida Sans Unicode" instead. Why? [No.2002081901] |
|---|---|
| A. |
Default Font Family specified in the Formatter Option is used when there is no font-family specified in the stylesheet and it is not used when font-family is specified in the stylesheet. When the font that is not installed on the system or the font not found is specified in the font-family setting, defaultFontFamily is not accepted but fallbackFontFamily which exists insiade AXFO.dll is used instead. fallbackFontFamily = "Lucida Sans Unicode, Arial Unicode MS, Tahoma, Microsoft Sans Serif" Then, the font becomes Lucida Sans Unicode. Please change the setting as font-family="Arial Unicode MS, serif" in your stylesheet. |
| Q. | Does XSL Formatter support HAT (Hebrew, Arabic and Thai)? Does XSL Formatter support the BIDI-algorithm? [No.2002093013] |
|---|---|
| A. |
Yes. XSL Formatter supports HAT. Because XSL Formatter is a UNICODE application on Windows, the languages can be formatted as far as there are suitable fonts installed on your PC. Details are as follows:
UnicodeBIDI processing is supported only with Windows2000/XP. |
| Q. | When I format multilingual documents, I cannot put the xml:lang attribute on the fo:root element. Please tell me where the xml:lang attribute need to be. [No.2002101804] |
|---|---|
| A. |
xml:lang is a shorthand of the country property and the language property. You can specify xml:lang where the country property and the language property can be specified. And the language can be changed.
<fo:block xml:lang="en">
English flow(language code en)
</fo:block>
<fo:block xml:lang="zh-CN">
Simplified Chinese flow(language code zh, country code CN)
</fo:block>
|
| Q. | In order to format multilingual documents, what fonts do I need to specify? If I specify Arial Unicode MS in the FO as the font for the entire document, will that font display correctly in XSL Formatter for all the languages? If not, do I need to specify a different font in the FO for each language in the document. [No.2002101805] |
|---|---|
| A. |
Arial Unicode MS supports almost all of Unicode characters. However, Arial Unicode MS cannot display all the languages correctly. As CJK (Chinese, Japanese and Korean) have common area in Unicode, it's impossible to distinguish which of CJK character is from the character code. Concerning CJK, you have to specify the specific font name for CJK code point characters. In other words, it is necessary to specify the specific font of the language in order to display the appropriate language as follows. <fo:block font-family="MingLiU">
沈下大海的島嶼(Traditional Chinese text)
</fo:block>
<fo:block font-family="SimSun">
〓下大海的〓〓(Simplified Chinese text)
</fo:block>
<fo:block font-family="MS Gothic">
海に沈む島(Japanese text)
</fo:block>
|
| Q. | When I format the document with mixture of English (writing mode is from left to right) and Arabic (writing mode is from right to left), the parentheses enclosing English text is not displayed correctly. Is it a bug? [No.2002102508] |
|---|---|
| A. |
It's not a bug. It follows the Unicode spec. The directionality of Unicode text is decided by bidi algorithm defined in the Unicode specification. Latin Alphabet goes from left to right, Arabic Alphabet and Hebrew Alphabet go from right to left. The enclosing parentheses are neutral characters that are available for both writing mode in left-to-right and right-to-left. The glyph direction changes reversibly when writing directions changes from 'right-to-left' to 'left-to-right'. It's so called 'Mirroring'. In other words, as the enclosing parentheses are neutral characters and also characters acceptable for 'Mirroring', left parenthesis '(' becomes right parenthesis ')' and right parenthesis ')' becomes left parenthesis '('. Strictly saying, this phenomenon occurs by reversing the glyph, so the right parenthesis doesn't become the exact left parenthesis. In the following example, suppose 'Arabic' stands for an Arabic word and 'English1', 'English2' stand for English words, and English2 is enclosed by parentheses, appearing order is as follows: <fo:block-container writing-mode="rl-tb" language="ar"> <fo:block> Arabic English1 (English2) </fo:block> </fo:block-container> When displaying in writing mode 'right-to left', it's shown as follows: (English1 (English2 cibarA As the Unicode Spec says that ' ... Generally, neutrals take on the direction of the surrounding text.', the direction of the neutral between the left-to-right text and the left-to-right text becomes left-to-right. So, the left parenthesis between 'English1' and 'English2' becomes left-to-right mode. However, as the Unicode Spec. says that 'In case of a conflict, they take on the embedding direction.', the right parenthesis placed after 'English2' becomes right-to-left mode because writing-mode="rl-tb" is specified to fo:block-container. Then, the right parenthesis becomes left parenthesis by the process of mirroring and placed at the last of line (left side) by writing-mode="rl-tb". There are two ways considerable to avoid this. First, please use the Unicode control character U+200E (LRM, Left-to-Right MARK). LRM is a zero-width character with directionality. If you add a character with left-to-right mode on the right side of '(English2)', the right parenthesis also becomes left-to-right mode. <fo:block-container writing-mode="rl-tb" language="ar"> <fo:block> Arabic English1 (English2) ‎ </fo:block> </fo:block-container> This character is also effective with IE. In Notepad installed on Windows 2000/XP, LRM can be entered in [Insert Unicode control character] in right click menu.
Second, please use fo:bidi-override. Enclose '(English2)' with
<fo:block-container writing-mode="rl-tb" language="ar"> <fo:block> Arabic English1 <fo:bidi-override unicode-bidi="embed" direction="ltr"> (English2) </fo:bidi-override> </fo:block> </fo:block-container> FYI, as half-width space is also a neutral character, its position can be changed. Please use either way of the above mentioned. Get more info from 'Unicode Standard Annex #9 The Bidirectional Algorithm': |
| Q. | In the text mixed with Hebrew and numbers, the parent's path is even (level 0) so my interpretation is that Hebrew is at level 1 and the numbers should be at level 2 in BIDI algorithm. Is that right? [No.2002111504] |
|---|---|
| A. |
Yes. The level of the numbers are level 2. Therefore the value (EN) is reversed and after that the Hebrew text whose level is 1 is reversed. Please refer to Unicode Standard Annex #9 to see more BIDI Algorithm. Also you can test it by Reference Code from the following URL. The followings shows the sample of BidiReferenceCpp. Pease find the answer here. E:\BidiReferenceCpp\Debug>BidiReferenceCpp -verbose "abc 12 - GHI 12 - 34def" Input 1: abc 12 - GHI 12 - 34def Input Types: >>>_11_ _<<<_11_ _11>>> Base Level : 0 Levels (A) : 00000000000000000000000 Types (A) : >>> >> <<< 11 11>>> Types (B) : >>>>>>>>><<<<11<<<11>>> Levels (B) : 00000000011112211122000 Output 1: abc 12 - 34 - 12 IHGdef |
| Q. | When I display a text with mixture of Hebrew and numbers in IE and the same text in XSL Formatter, both results look different. Why? [No.2002111505] |
|---|---|
| A. |
BIDI Algorithm of XSL Formatter V2.3 uses Windows Uniscribe API. Because of this reason, The algorithm is influenced by Uniscribe. Uniscribe API probably implements the BIDI Algorithm of Unicode 2.x. The BIDI Algorithm of Unicode 2.x doesn't have the rule that EN (numbers) coming after L(left-to-right characters) become L. For this reason , BIDI level of numbers raises even though the numbers come after Western characters. The latest Unicode BIDI Algorithm has the following rules: Form the URL
W7. Search backwards from each instance of a European number until the first
strong type (R, L, or sor) is found.
If an L is found, then change the type of the European number to L.
L N EN => L N L
BIDI Algorithm of IE Looks more obedient to the above latest Unicode BIDI than that of Uniscrige API. That is, IE doesn't seem to use Uniscribe API. Therefore there may be differences in IE and XSL Formatter in BIDI Algorithm. BTW, regarding this matter, we were not investigating accurately, it's only an Antenna House's prospect. And Windows Edit control shows the same result as XSL Formatter. I suppose it's because Edit control uses Uniscribe API. Last of all, this test was confirmed by Windows XP Professional (SPI). |
| Q. | In several languages, can only a part of the document change the flow of the page? [No.2003072504] |
|---|---|
| A. |
It's impossible in XSL-FO to change the flow of a part of hole pages in one document. (For example, the pages running from the left to the right are embedded in the pages running from the right to the left) |
| Q. | Line breaking is not done well when there is Thai in fo:inline in table and list. Or, XSL Formatter might not respond. [No.2003080102] |
|---|---|
| A. |
This problem was fixed with XSL Formatter V2.5 MR3. When a Thai text is written directly not in fo:inline but in fo:block, the problem might be solved. |
| Q. |
XSL Formatter produces an error message:
Error. Error code: -2147352567 Source: AFXOHYP.Hyphenator.1 Message: Unknown Hyphenation ErrorHow can I deal with that? [No.2003031402] |
|---|---|
| A. |
This error occurs when MSXML3 or MSXML4 is not installed on your PC. Please confirm if you have installed MSXML3 or MSXML4. If you have already installed MSXML3 or MSXML4, please Re-install it or install IE6 because in some case installation has not completed. And try again. FYI: The error message saying "MSXML is not installed" will be shown from V2.5. |
| Q. | Are there any ways to create the INI file easily? [No.2003082201] |
|---|---|
| A. |
There is an "Export INI file" function in XSL Formatter GUI. This function outputs each option set up in GUI with INI file format. This INI file can be handed over with a command line interface or COM interface without change. |