Skip to content

Escape special is double applied in g2p-studio #441

@joanise

Description

@joanise

The crk to crk-no-symbols mapping uses escape special to be able to map & to êkwa before we proceed to IPA.

When we run g2p convert '&' crk crk-no-symbols we get êkwa as expected.

However, in the g2p-studio, if you select input language = crk and put & in the text to convert, the output is simply &, unmapped. If you disable the Escape Special checkbox, or change \& back to & in the rule table, then things work, but with the default settings we're effectively escaping the specials twice. Indeed, the input \& gets mapped to êkwa.

Studio needs to make sure escape special is not applied twice: in change_table, what is loaded needs to be the raw table, unescaped, since escape special semantics are applied in convert() in app.py.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions