Skip to content

Attrs in dict file - Alternative #417

Closed

Description

@amnonma

In a dict file, we have many variants suggesting a single concept (eg, _bridge).
Each variant has to carry a copy of all the attributes and values to place on the same node, _bridge.
Alternatives:

1 - (NO CHANGE) Rather than in DICT, a pass file puts the attributes in a SINGLE PLACE for maintaining them.
@check
N("type") = "location";
fail();
@rules
_bridge @@

2- (DICT for NONLITERALS)
This would have to apply after normal DICT, which reduces literals.
_bridge type=location

@dehilsterlexis

Activity

  1. added a commit that references this issue on Oct 15, 2026
  2. ddehilster commented on Oct 15, 2026

    @ddehilster
    Member

    Done in #786 (4.2.30), as option 2: a dictionary line _bridge type=location puts its attributes on every _bridge node the dictionary builds (from s=bridge on any variant). An entry's own attributes win. Docs: VisualText/visualtext-files#242.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    code improvementChanging code to improve its design or efficiency

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions