> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Country and language settings

> Configure country and language settings in the FlexiCapture for Invoices Document Definition: tax rates, currencies, IBAN and VATID formats, and keywords.

FlexiCapture for Invoices can process invoices originating from a number of different countries and supports a wide range of languages.

All supported countries are enabled by default in the Document Definition. However, select only the countries from which you expect to receive invoices.

Ensuring that the right country is selected is important because:

* Keywords specific to invoices from that country become available to the program.
* Recognition quality is significantly better, because the right language is used.
* The program knows which number and currency formats to expect.

The country of the invoice is used to determine the currency, keywords, additional fields, and the formats of fields such as IBAN and VATID.

The country of the invoice also determines the language set. Enable only the languages that are used during recognition. Extra languages interfere with processing and decrease performance.

By selecting countries, you determine which invoices the program can process.

## Specify countries and languages

<Steps>
  <Step title="Open the Document Definitions dialog box">
    Open the **Project** menu and click **Document Definitions...**.
  </Step>

  <Step title="Edit the Document Definition">
    Click the **Edit...** button in the dialog box that opens.
  </Step>

  <Step title="Open the Document Definition properties">
    Open the **Document Definition** menu and click **Document Definition Properties...**.
  </Step>

  <Step title="Open the Document Definition settings">
    Select the **Document Definition Settings** tab in the dialog box that opens.
  </Step>

  <Step title="Open the Countries and Languages settings">
    Click the **Edit...** button to the right of the **Countries and Languages** group.
  </Step>

  <Step title="Specify the settings">
    Specify the settings in the **Countries and Languages** dialog box that opens. The sections below explain how to edit each type of setting.
  </Step>
</Steps>

### Edit the list of countries

Add or remove countries by selecting or clearing their check boxes.

### Edit the list of languages

The list of languages is generated automatically based on the list of countries. Each country has its own set of languages, which can be edited in the properties of the country. Remove any extra languages and add any missing ones:

<Steps>
  <Step title="Select a country">
    Select the appropriate country from the list.
  </Step>

  <Step title="Open its properties">
    Click the **Edit...** button.
  </Step>

  <Step title="Edit the languages">
    Select the **Languages** tab in the dialog box that opens and edit the list of languages.
  </Step>
</Steps>

### Edit a country's tax rates

If tax rates have changed in a country, these changes must be reflected in that country's settings.

<Steps>
  <Step title="Select the country">
    Select the country from the list.
  </Step>

  <Step title="Open its properties">
    Click the **Edit...** button.
  </Step>

  <Step title="Open the tax rates">
    Select the **Tax Rates** tab in the dialog box that opens.
  </Step>

  <Step title="Edit or add a tax rate">
    Select the tax rate you want to change from the list and click **Edit...**. Click **Add...** to add a new tax.
  </Step>

  <Step title="Specify the rate">
    Specify the new rate, duration, and keywords in the **Tax Rate Settings** dialog box.
  </Step>
</Steps>

### Change IBAN and VAT formats

Change the format of a Bank Account, Bank code, IBAN, National VATID, VATID, Total, or Total tax.

<Steps>
  <Step title="Select the country">
    Select the appropriate country from the list.
  </Step>

  <Step title="Open its properties">
    Click the **Edit...** button.
  </Step>

  <Step title="Edit the formats">
    Select the **Formats** tab in the dialog box that opens and edit the formatting settings. For more information, see [Extended regular expressions](/flexi-capture/invoice-reader/ir-regular-expression-ext).
  </Step>
</Steps>

### Change currency formatting

Change the formatting of a currency or add a new currency.

<Steps>
  <Step title="Select the country">
    Select the appropriate country from the list.
  </Step>

  <Step title="Open its properties">
    Click the **Edit...** button.
  </Step>

  <Step title="Edit the currency">
    Select the **Currency** tab in the dialog box that opens and change the currency formatting settings.
  </Step>
</Steps>

### Change the keywords used to find fields on an invoice

Keywords are words that are frequently found next to specific fields on invoices. The program uses them to locate these fields. Keywords on invoices originating from a specific country may depend on the invoice language, but keywords in a language used in several countries may be different for those countries.

Keywords for fields are specified in the properties of countries and languages. Properly specified keywords help FlexiCapture for Invoices locate fields and improve recognition accuracy.

To view and edit the list of keywords:

* **Keywords for a specific country:**
  1. Select the country from the list.
  2. Click the **Edit...** button.
  3. Select the **Keywords** tab in the dialog box that opens and edit the keywords.
* **Keywords for a specific language:**
  1. Select the language from the list.
  2. Click the **Edit...** button.
  3. Edit the keywords in the **Language Keywords** dialog box.

<Note>
  The language properties contain a list of elements that are used to find fields instead of a set of fields. For more information, see [Keywords](/flexi-capture/invoice-reader/ir-language-keywords).
</Note>

### Add a new country

If you cannot find a country in the list, you can create it and specify its properties, such as currency, tax rates, and rules.

<Steps>
  <Step title="Select a similar country">
    Select a country from the list. All properties of the country you select except for languages are copied, so select a country whose properties are as close as possible to the ones you want.
  </Step>

  <Step title="Duplicate it">
    Click the **Duplicate...** button.
  </Step>

  <Step title="Name the new country">
    In the dialog box that opens, select the name of the country you want to add and click **OK**.
  </Step>

  <Step title="Edit its properties">
    Edit the properties of the new country.
  </Step>
</Steps>
