itstool-2.0.7

#### Beyond Linux® From Scratch (System V Edition) - Version r13.0-1374

### Chapter 49. Extensible Markup Language (XML)

- Prev

  docbook-xsl-ns-1.79.2

- Next

  xmlto-0.0.29

- Up
- Home

# itstool-2.0.7

## Introduction to itstool

Itstool extracts messages from XML files and outputs PO template files, then merges translations from MO files to create translated XML files. It determines what to translate and how to chunk it into messages using the W3C Internationalization Tag Set (ITS).

### Note

This version of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable version of the System V books.

### Package Information

- Download (HTTP): https://github.com/itstool/itstool/archive/2.0.7/itstool-2.0.7.tar.gz

- Download MD5 sum: e759b258617a912acce630de3fa43957

- Download size: 79 KB

- Estimated disk space required: 688 KB

- Estimated build time: less than 0.1 SBU

### Additional Downloads

- Required patch: https://www.linuxfromscratch.org/patches/blfs/svn/itstool-2.0.7-lxml-1.patch

### Itstool Dependencies

#### Required

docbook-xml-4.5 and lxml-6.1.1

## Installation of itstool

First, apply a patch to use lxml-6.1.1 for handling the XML files instead of the deprecated (disabled by default) Python module from libxml2-2.15.3:

    patch -Np1 -i ../itstool-2.0.7-lxml-1.patch

Install itstool by running the following commands:

    PYTHON=/usr/bin/python3 ./autogen.sh --prefix=/usr &&
    make

To test the results, issue: python3 tests/run_tests.py.

Now, as the `root` user:

    make install

## Contents

Installed Program: itstool
Installed Libraries: None
Installed Directory: /usr/share/itstool

### Short Descriptions

itstool | is used to create translated XML files

- Prev

  docbook-xsl-ns-1.79.2

- Next

  xmlto-0.0.29

- Up
- Home