Adding a pdf.encoding property to a lexicon module

A pdf.encoding property enables fonts and characters for Eastern European and Russian language locales, and a few Western European characters. The encoding property is entered in a pdf.lexicon text file for the target locale. This procedure describes the steps to add the pdf.encoding property to a new lexicon module.
Prerequisites:
  • A !lexicon subfolder in your Niagara installlation. If not already present in the installation you can create the folder.
Perform the following steps:
  1. Within the !lexicon folder, create a subfolder for the appropriate target language locale.
    As an example, for the Polish locale (indicated by the “pl” locale code) you would create: !lexicon\pl.
  2. Create a text file that contains the following four lines of text:
    pdf.encoding=encodingValuepdf.font=12pt ArialMTpdf.table.header.font=bold 10pt Arialpdf.table.cell.font=10pt Arial
  3. In the text file, replace the pdf.encoding value (shown in Step 2) with the appropriate value for your target language.

    For example, for the Polish target language use: CP1250.

    The following pdf.encoding values are available for use:

    Target language locale PDF.encoding value
    Default Latin alphabet ISO-8859-1
    Central and Eastern European languages CP1250
    Cyrillic (Russian) CP1251
    Extended Latin alphabet (includes Euro currency glyph) CP1252
    Japanese UniJIS-UCS2-H
    Korean UniKS-UCS2-H
    Chinese UniGB-UCS2-H
    Chinese (Taiwan) UniCNS-UCS2-H
  4. Save the text file to the !lexicon<locale> subfolder created in Step 1, naming the text file: “pdf.lexicon”.
  5. In Workbench, click on Tools > Lexicon Tool.
  6. In the Lexicon Report view, click the View dropdown menu and select Lexicon Module Builder.
    The view displays populating the selection table in the view with any subfolders and files currently located under your !lexicon <locale> subfolder.
  7. In the Lexicon Module Builder view, define the new module information by filling-in the text fields and clicking the checkbox to include the pdf.lexicon file (as shown), and click Build Module.
    Image
     NOTE: If your text file is not visible in the selection table, click Refresh in the Workbench toolbar to refresh the view. Also, for more details on using the Lexicon Module Builder, see the Niagara Lexicon Guide

On successful completion a confirmation dialog explains that the new module is available in the !modules folder, similar to the one shown here.

Image

 NOTE: It is possible to select an existing lexicon module via the Lexicon Module Builder’s Browse... button, add a pdf.lexicon text file to the selected module, and build a new module. However, the default lexicon modules for the installation (niagaraLexicon<xx>.jar files in !modules) cannot be used in a new module.