Skip to content

Support variable info not in message patterns #98

Closed
@echeran

Description

@echeran

Sometimes, a variable piece of information that affects the translation or formatting of a message pattern may not be naturally represented as a regular "printable" placeholder -- a placeholder that occupies a position within the message pattern. This information may be known at the time the message pattern is created, so we should represent it as part of the message somehow. I think that issue #33 about denoting whether a message is for print or for speech might be a good example of this.

I think we can store this type of information at the level of the message, but outside of the message pattern in which the "printable placeholders" occur. More specifically, I think we can re-use the concept of placeholders and treat these placeholders as "non-printing". Doing so could help during the selection phase of a multi-select message, esp if the message already has printing placeholders (ex: when {MEDIUM=SPEECH, COUNT=MANY}, the multi-select might return ["Hey y'all, " {COUNT} " is a boatload."] ).

This decision would help inform the shape of the data model.

More context on the text/speech problem is in issue #33 filed by @grhoten.
I think @mihnita may have had ideas of other examples.

Metadata

Metadata

Assignees

No one assigned

    Labels

    requirementsIssues related with MF requirements listresolve-candidateThis issue appears to have been answered or resolved, and may be closed soon.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions