***********************************************************************************************************************
** PCT forms stylesheet readme.txt Created on 12-01-2018, Updated on 16-01-2018                                      **
**                                                                                                                   **
** [Stylesheet Version] v0.99-8x released on 01-11-2016                                                              **
** [Corresponding DTDs Version] 1.14 released on 01-07-2017                                                          **
**                                                                                                                   **
***********************************************************************************************************************


***********************************************************************************************************************
**                                                                                                                   **
** 1. Introduction                                                                                                   **
**                                                                                                                   **
***********************************************************************************************************************

The PCT Forms stylesheet is a collection of XFO files with which you can render PDF images of the PCT forms such as ISR, WOSA from those XML files. The stylesheet supports 10 languages, namely English, French, German, Spanish, Portuguese, Japanese, Korean, Chinese, Russian and Arabic.


***********************************************************************************************************************
**                                                                                                                   **
** 2. Supported PCT Forms & Languages                                                                                **
**                                                                                                                   **
***********************************************************************************************************************

Please refer to the spreadsheet file "PCT Forms stylesheet.xlsx".


***********************************************************************************************************************
**                                                                                                                   **
** 3. Requirement                                                                                                    **
**                                                                                                                   **
***********************************************************************************************************************

Currently, the PCT Forms stylesheet must work with FOP 1.1. Please download FOP 1.1 at https://xmlgraphics.apache.org/fop/1.1/. For more detailed requirements regarding FOP, please refer to the apache home page (https://xmlgraphics.apache.org/fop/quickstartguide.html).


***********************************************************************************************************************
**                                                                                                                   **
** 4. Configuration                                                                                                  **
**                                                                                                                   **
***********************************************************************************************************************

After downloading FOP 1.1, please take the following steps for configuration.

 (a) Download fop.xconf at (http://www.wipo.int/export/sites/www/pct-safe/en/resources/fop/fop_1.1.xconf.zip).

 (b) Replace fop.xconf with the existing file contained in the package of FOP 1.1. The existing fop.xconf is located under "conf" directory of the fop package.

 (c) Modify the fop configuration file to meet the requirement of the languages that your office uses. The downloaded fop.xconf includes the configuration of fonts for all languages. For your information, here is the list of fonts for each language. Please note that WIPO Unifont is a free font for use.

         Japanese:          IPAMincho, IPAGothic & WIPOUni
         Chinese:           Simsun & WIPOUni
         Other languages:   ArialUni & WIPOUni

 (d) Locate font files where appropriate. As for the location, please refer to the attached configuration file "fop.xconf".  WIPO Unifont is available at http://www.wipo.int/export/sites/www/pct-safe/en/resources/WIPOUni.zip


***********************************************************************************************************************
**                                                                                                                   **
** 5. Command line                                                                                                   **
**                                                                                                                   **
***********************************************************************************************************************

To render PDF images using FOP and the PCT forms stylesheet, please use the following command line:

 call fop.bat -xsl index.xfo -c ./conf/fop.xconf -xml sample.xml -pdf sample.pdf

Please note that the location of each above file needs to be correctly specified according to your environment.


***********************************************************************************************************************
**                                                                                                                   **
** 6. Contact                                                                                                        **
**                                                                                                                   **
***********************************************************************************************************************

If you have anything unclear regarding this readme.txt & the PCT Forms stylesheets, please feel free to contact yuya.ushida@wipo.int. For offices interesting in using a service provided by the IB to render forms, please contact c..@wipo.int

