Two different things are in this repository and only one of them is ours to
license.

Ours
----

The engine in `src`, the romanizers in `rom`, the two front ends in `cli`, the
tools in `tools`, the tests in `test`, the reference build in `reference` and
the documents in `docs` are our own work: C written against IBM's objects and
checked against them, line by line, by the audio coming out. That is what the
MIT licence in LICENSE covers.

Two files in `src` are the exception, and they are data rather than code.
`src/klatt/klatt_tables.c` is the synthesiser's own tables, lifted out of `clsyn.obj`
by `tools/engine/klatt-tables.py`, and `src/eci/ssml/eci_xmltok_tables.c` is the eight tables the
XML scanner is, lifted out of `xmltok.obj` by `tools/engine/xmltok.py`. Both are
IBM's on the terms below, exactly as everything under `lang` is. The head of
each says which object it came from, and either can be produced again from
IBM's own file rather than taken on trust. Nothing else in `src` is lifted:
every other file there is C written by hand.

The XML scanner is worth a sentence on why. It is flex output, and a rule set
that has been compiled into a state machine cannot be recovered from the
machine -- the equivalence classes, the base and default rows and the accepting
lists are the only surviving statement of what the forty-eight rules were. So
lifting them was the only faithful course; writing a parser that behaved
roughly the same would have been ours and would have been a different scanner.

`rom` is where the split between the two halves matters most, and it is why
that directory exists at all. A language written in another script needs a
romanizer, which in IBM's SDK is a module of code beside the language's data.
The code is transcribed the way `src` is and is ours on the same terms; the
dictionary and the tables it reads are IBM's data and are in `lang/<tag>` with
the rest of that language, on the terms below. Putting the two in one
directory would have been tidier and would have made the licence line harder
to state truthfully.

Two pieces of that code were written outside this repository and came in
from their authors' own projects, under the same MIT licence, and their
copyright notices are in LICENSE beside ours. The arena allocator's walk from
the first free block, in `src/port/evv_arena.c`, is Josh Kennedy's, from
OpenEvv-sapi5, whose notice gives it to the OpenEVV SAPI5 contributors. The
NVDA add-on's per-language text encoding and its return to the reader's own
language, in `nvda/addon/synthDrivers/_openevv.py` and `openevv.py`, are
Felix Steindorff's, from openevv-nvda.

IBM's
-----

Everything under `lang` but `lang/fifi` and `lang/ptbr` is transcribed out of
IBM's Embedded ViaVoice objects: `lang/enus` is US English, `lang/dede` is
German, `lang/engb` is British English, `lang/eses` and `lang/esus` are the two
Spanishes, `lang/frfr` and `lang/frca` the two Frenches and `lang/itit` is
Italian. `lang/fifi` and `lang/ptbr` are ETI's, and the section after this one
says so.

`lang/jajp` is Japanese and is not in the tree, because a language module that
cannot yet make an instance would break any build that named it. What that
directory holds when it is lifted is IBM's on exactly the terms above, and most
of it by volume is the romanizer's own data: the static dictionary of kanji and
their readings, the substitution tables that make romaji, and the codeset
conversion tables. `tools/rom/dictionary.py` and `tools/rom/tables.py` are what
lift it, and both read IBM's objects rather than being typed out here.

`lang/plpl` says Polish and is Italian. It was made by copying `lang/itit`'s
text forms and renaming them, because a language IBM never shipped has to start
from one it did, and every rule and every table in it is IBM's Italian data
until it has been replaced by something written here. Nothing about the
directory being called Polish makes any of it ours. `make EVVLANG=lang/plpl
census` is what says how much of it is still Italian, and while that answers
anything at all the answer above governs it.

The rules as bytecode, the constants they read, the
statement and field tables, the lookup sets, the variable declarations, the
settings the engine carries in its own image, the voice presets and the
dictionary, and where the engine's arithmetic depends on the exact bytes they
are the exact bytes. The rule names in each directory's
`delta_rules_<lang>.h` and `delta_rules_shim_<lang>.c` are IBM's names,
because they are the names its own compiler left in the objects.

Everything else in a module has a text form beside it now -- `<lang>.globals`,
`<lang>.settings`, `<lang>.statements`, `<lang>.sets` and `<lang>.dict` -- and
each of those is that same data written another way rather than anything of
ours, so they are IBM's on the same terms as the C they regenerate.

The same rules are in `lang/<lang>/rules` as text: one operation to a line in
`.dr` files, what each wrapper stands for in `wrappers.up`, and a few of them
written again as what they do in the `.up` files beside. Those are
transcriptions of IBM's rules rather than anything said about them, so they are
IBM's too, and so is anything of IBM's copied byte for byte into
`rules/constants`. The tools that write and read all of it are in `tools` and
are ours. The language in front of every name is ours as well, and is there so
that two languages can be linked into one program.

A language's `letters` file is its letter rules written another way, and is
IBM's on the same terms: `lang/enus/letters`, `lang/eses/letters` and
`lang/itit/letters` are transcriptions of IBM's own.

A rule written for a language rather than transcribed out of an object is ours,
and `lang/plpl/rules/is_val.up` and the Polish blocks of `lang/plpl/letters`
are that: the formant targets of sounds Italian has not got, and the
letter-to-sound rules for Polish's spelling and for its own letters. The blocks
of `lang/plpl/letters` that it says are still Italian's -- f, p, t, v, k, x,
a, l and m, copied from `lang/itit/letters` -- are IBM's Italian as that
file is, apart from the arms written into f, p, t and k for Polish, which
are ours. What those rules name is
still IBM's -- a phoneme number, a statement type and the code the alphabet
gives a character are its numbering, and a byte in `lang/plpl/rules/constants`
that stands for one of those stands for a number of its -- but what the rules
say with them was written here. That does not soften the paragraph above:
everything else in that module is IBM's Italian until it has been replaced.

So are `lang/enus/rules/ut_numbr.up` and `lang/engb/rules/ut_numbr.up`,
which read a long number's groups of noughts the way the same number without
commas is read, where IBM's rules read the comma after such a group as a
digit. They are written here and stand on IBM's rules rather than replacing
them: the two calls in each `ut_numbr.dr` that were pointed at them are an
edit to IBM's text, and the rest of that text is IBM's as it was.

That data is IBM's work, not ours. The MIT licence does not cover it and we are
in no position to license it to anyone. The SDK it was read out of says as much
itself, in `doc/wxp/readme.txt`:

    Licensed Materials - Property of IBM
    (C) Copyright IBM Corp. 1999, 2004  All Rights Reserved.

It is in the tree because the engine cannot speak without it, and because a
build that first needed a 110 megabyte SDK from 2004 is a build almost nobody
would ever run. That is a deliberate choice about being useful, not a claim
about ownership.

If you mean to do more with this than read it and run it, the rights in that
data are yours to sort out with whoever holds them, and who that is today is
not simple. IBM published these objects. The engine underneath them was
Eloquence, by Eloquent Technology, which passed to SpeechWorks, then ScanSoft,
then Nuance, whose text-to-speech rights went to Cerence in the 2019 spinoff
and are now the subject of Cerence Inc. v. Microsoft Corporation and Nuance
Communications, Inc., D. Del. 1:25-cv-00553, filed 6 May 2025. None of this is
legal advice.

ETI's
-----

In `lang/enus` and in `lang/engb` alike: the rules that say they were lifted
by `tools/rules/lift64.py` -- at the end of `rules/ut_norm.up` in both, and in
`lang/enus` the ones in `rules/et_prfx.up` and `rules/et_numbr.up` too -- the
bytes named `eti_` in `rules/constants`, the sixth character type and the
records that use it in the statements, the six variables the globals' comments
say are 6.1's and, in `lang/enus`, the seven more they say are, those of them
that `set_global_constants` in `rules/u_vars.dr` now sets to 6.1's values, and
the set of three-letter domain names in the sets are ETI Eloquence 6.1's, read
out of the US and British English language modules Apple ships with its
operating systems. They are on the same footing as everything under `lang`: no
more ours to license than IBM's are, and nothing here grants anything in them.
Two things in those rules are not 6.1's, and both are edits to its text rather
than anything with a claim of its own: the call `normalize_text` makes to IBM's
`backquote`, and the annotations three of the `eti_` strings write with IBM's
mark rather than 6.1's.

In `lang/enus` alone, the words `lang/enus/merge` says were added, set or read
as 6.1 reads them say what 6.1 says, taken from what it speaks rather than
from its tables, and are on the same footing. The ledger itself, the letter
arms it names and the tools that measured it are ours.

`lang/fifi`, Finnish, is ETI Eloquence 6.1's from end to end: the rules in its
`rules/f61_*.up`, the strings in `rules/constants`, the variables, the
statement table, the sets and dictionaries, the settings and the voices, and
the C written from all of them, read out of the Finnish module Apple ships by
`tools/module/lift61.py` and `tools/rules/lift64.py`. Its doubles are kept
here as whole numbers of ten-thousandths, which is the same data written
another way. The one rule in `rules/written.up` was written here because the
lifter could not read 6.1's, and it says what 6.1's does, so it is a
transcription and on the same footing. None of it is ours to license.

`lang/ptbr`, Brazilian Portuguese, is ETI Eloquence 6.1's on exactly the same
terms, read out of the Portuguese module Apple ships, and the one rule in its
`rules/written.up` is the same transcription as Finnish's.

Where it came from
------------------

IBM's Embedded ViaVoice 4.3 SDK for Windows, which IBM still serves at

    https://public.dhe.ibm.com/software/pervasive/tools/viavoice/sdk/evvWXP.exe

`docs/building.md` says what to do with it, and every tool that reads it is in
`tools`, so anything under `lang` can be produced again from IBM's own file
rather than taken on trust.

What is ETI's came out of `enu.dylib`, `eng.dylib`, `fin.dylib` and
`ptb.dylib` as Apple's tvOS 18.2 ships them, read by `tools/rules/lift64.py`
and `tools/module/lift61.py`, which work on any of Apple's modules of that
engine.

Measured against
----------------

`test/cases/words-fifi.txt` is twenty thousand words spread through the
vocabulary of the Voikko project's Finnish (https://voikko.puimula.org),
whose copyright holders are listed in its CONTRIBUTORS and which is published
under the GNU General Public License, version 2 or later. Only the words are
here, lowercased; `tools/measure/wordlist.py` says how they were chosen.

`test/cases/words-ptbr.txt` is twenty thousand words spread through VERO, the
Brazilian Portuguese spelling dictionary LibreOffice ships, copyright
Raimundo Santos Moura and published under the GNU Lesser General Public
License, version 3, and the Mozilla Public License. Only the words are here,
lowercased, chosen the same way.

The Polish intonation numbers in `docs/status.md` were measured from FLEURS
(https://huggingface.co/datasets/google/fleurs), read speech published by
Google under CC BY 4.0, of which the Polish, US English and Italian
development sets were used. Neither its audio nor its text is in this
repository; what is here is the numbers derived from it and `tools/measure/pitch.py`,
which derived them.

Names
-----

IBM, ViaVoice and Embedded ViaVoice are trademarks of International Business
Machines Corporation. Eloquence is a trademark of its respective owner. This
project is not affiliated with, endorsed by or supported by IBM, Cerence,
Nuance, Microsoft or Apple.

ReLoq C additions in 0.2.147
--------------------------

The engb61, eses61, esmx61, frfr61, frca61 and itit61 rule directories are
fresh native-C captures of the corresponding ETI Eloquence 6.1 modules in
Apple's tvOS 18.2 distribution. Input identities and the pinned source tree
are recorded in reference-apple/behavior-0.2.147/language-provenance147.json
at the ReLoq project root. The common bounded acoustic endpoint, platform
adapters and duration-policy connections are separately authored C.
Finnish ü handling replaces the native word and character-name rules.
The original binary modules are not included in the distributed packages.

ReLoq C 0.2.148 additions
------------------------
Japanese, Korean and Mandarin (China/Taiwan) language data and behavioral
analysis use Apple Eloquence 6.1 from Mudb0y/Apple-Eloquence-ELF, pinned at
12cf68ad4aba0841900dafcdd34876101e0913db. No original executable module is
packaged. The Japanese romanizer source and plain dictionary data use the
OpenEVV source commit d2bc0c68a7769967bb3dfdc86701f69bc53767b4; their notices
are retained. Unicode admission and the CJK/Greek frontends are ReLoq C work.
Greek follows the earlier prototype's Castilian acoustic-base choice; it is
not represented as an official Greek Eloquence module. Detailed identities,
comparison scripts and remaining limits are retained under
reference-apple/behavior-0.2.148.

Traditional Chinese pronunciation identities
-------------------------------------------

The compact ambiguous-Han reading table uses Unicode 17.0 Unihan kMandarin,
kHanyuPinyin and kTraditionalVariant data under the Unicode-3.0 license.
Source URL, input hashes and the selected families are recorded in
`data/chinese_traditional_readings.json`. The generated C table retains
original character distinctions during native lexical lookup. The Unicode
license is included with both platform packages.

ReLoq C 0.2.193 changes
----------------------
Per-request abbreviation and phrase-prediction controls use the existing
native environment. German SPR metadata additionally projects native phrase
relations into the retained independent acoustic planner. German degree and
underscore names are replaced within the native character rule and admitted
character table. Ring accents retain their original names. No runtime bytecode,
original DLL/SYN dependency or speech-result cache is added.

ReLoq C 0.2.194 changes

The German sentence frontend retains native source whitespace and numeric
identity for abbreviation and phrase analysis. Its runtime supplemental RLEX
file is removed from NVDA/Android packages. Licensed compound corrections
resolve built-in constituents on demand without retaining pronunciations.
No runtime bytecode, original-module dependency or speech-result cache is added.
