Skip to content

Handle multiple indicators within a Bliss-word when editing the indicator #38

@klown

Description

@klown

Describe the bug

Most Bliss-words have a single indicator above the classifier. In some cases, one or more of the specifiers in the word can have an indicator. Any indicator associated with a specifier should remain intact and not be subject to the "remove indicator" command or any substitution of the indicator.

To reproduce

Steps to reproduce the behavior:

  1. Add a Bliss-word that has multiple indicators in the editing area
  2. Click on the "remove indicator" button. The indicator on the classifier will be removed as expected
  3. Click on the "remove indicator" button a second time. The first indicator on a specifier will be removed. This is an error.

Or:

  1. Add a Bliss-word that has multiple indicators in the editing area
  2. Click on one of the indicator symbols in the indicator strip to add an indicator to the symbol.
  3. That indicator will replace the previous indicator on the classifier, which is correct.
  4. It will also replace all indicators on all of the specifiers. This is an error.

Expected behavior

Only the indicator on the classifier should be affected when adding, removing, or replacing an indicator on a Bliss-word.

Additional context or notes

A short-term solution is to use the current way of finding the classifier and noting its location. Then, when the edit-indicator operation occurs, it is applied only to the classifier.

A longer term solution is to have the category of each symbol in the Bliss-word noted. The relevant categories are classifier, specifier, modifier, and indicator. Then the edit-indicator operation is applied only to the classifier.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions