Version 5.7.12

# Compatibility with older versions

The development of the speedata Publisher has one big “mantra”: existing setups must work with newer versions of the speedata Publisher without change. So you can always upgrade to the latest version without having to fear that you need to change your layout file.

New features are introduced via new XML tags or attributes. Existing layout files simply ignore them and continue to work.

## Legacy options

Since version 5, the XPath parser `lxpath` and the font loader `harfbuzz` are the defaults. The older variants (`luxor` and `fontforge`) are deprecated and scheduled for removal in version 6.0. If an existing layout requires one of the old variants, it can still be activated via the configuration file for the time being.

Known differences of the old variants:

- `fontforge`: Supports virtual fonts which can be used to simulate certain font features.
- `luxor`: Can calculate with dimensions (e.g. `"2cm + 12mm"`), which does not conform to the XPath specification but is used in some older layouts.

### Migrating to lxpath and harfbuzz

If you still use one of the old variants, you should switch before version 6.0:

- `luxor`: Run the layout with the default `lxpath` and fix the reported errors. Calculations with units (e.g. `"2cm + 12mm"`) can be expressed with the function `sd:dimexpr()`.
- `fontforge`: Remove the `fontloader` key from the configuration file or the attribute `mode="fontforge"` on `<LoadFontfile>`; fonts are then loaded with `harfbuzz`. Type 1 fonts (`.pfb`) only work with fontforge and should be converted to OpenType.

## Setting requirements in the layout file

The `require` attribute on the `<Layout>` command can be used to ensure that a specific configuration is active. This is useful when layout files are exchanged between different installations:

    <Layout
        xmlns="urn:speedata.de:2009/publisher/en"
        xmlns:sd="urn:speedata:2009/publisher/functions/en"
        require="lxpath,harfbuzz">

The available options are:

Key | Description
--- | ---
`lxpath` | Ensures the XPath parser `lxpath` is used (default since v5).
`harfbuzz` | Ensures the font loader `harfbuzz` is used (default since v5).
`luxor` | Forces the old XPath parser (deprecated).
`fontforge` | Forces the old font loader (deprecated).

#### On this page