Skip to content

Rules with indices cannot map one character to multiple characters #438

@joanise

Description

@joanise

If you create rules with indices intended to map a single character into multiple characters in the same order, the mapping output gets corrupted.

Example 1

Paste this into g2p-studio as a custom rule:
a{1}b{1} -> xxx{1}yyy{2}
input: ab output: xxxbyy with prevent feeding, xyxbyy without prevent feeding; expected output either way: xxxyyy and a graph showing a going to three x's then b going to three y's.

animated graph:

Image Image

If you change the rule's output to xxx{2}yyy{1} you get the correct xxxyyy output but the graph is wrong:

Image

Example 2

c{1}d{2}e{3} -> f{1}gg{2}h{3}
Input cde output: fghe with prevent feeding, fgge without prevent feeding; expected output either way: fggh and a graph showing c going to f, d going to two g's and e going to h

animated graph

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions