OrthographyRender.h header

#include <ew/app/OrthographyRender.h>

Namespace ew::app

Functions

QString ew::app::romanizeWord(const QString &word, const ew::core::PhonemeInventory &inventory, const ew::core::RomanizationScheme &scheme)

Renders a word (written in the inventory's default graphemes) using the romanization scheme, by longest-match transliteration: each phoneme's default grapheme is replaced by the grapheme the scheme spells that phoneme with, falling back to the default grapheme for any phoneme the scheme does not remap. Characters matching no phoneme are kept as-is.

QString ew::app::wordToIpa(const QString &word, const ew::core::PhonemeInventory &inventory)

Renders a word – written in the inventory's default graphemes, as the word generator produces it – into IPA, by longest-match transliteration against inventory (each phoneme's grapheme is replaced by its IPA symbol). A run of characters that matches no phoneme grapheme is kept as-is, so literals in a syllable template survive. Longest graphemes are matched first, so a multi-character grapheme like "sh" is not mis-split into "s" + "h".