Skip to content
This repository was archived by the owner on Aug 21, 2026. It is now read-only.
This repository was archived by the owner on Aug 21, 2026. It is now read-only.

Glossary rule is not applied to source text during translation #60

Description

@anthonyliangxd

Describe the bug

When translating German legal reference shorthand to American English with a custom enabled glossary, the glossary mapping for the term AV is never substituted in the output. All other configured glossary abbreviations (anm, Abs, kap) are replaced correctly as expected.

Steps to reproduce

  1. Create a DE → EN glossary with the following mappings:
Source (DE) Target (EN)
AV General Rule
anm Note
Abs para
kap Chapter
  1. Activate this glossary for German to American English translation.
  2. Paste the source German input text:
    AV 1 / AV 6 / AV 5 b)\nAnm 1 Abs 1 Kap 39
  3. Execute translation and inspect the output.

Expected behavior

All glossary shorthand tokens should be fully replaced:
General Rule 1 / General Rule 6 / General Rule 5 b)\nNote 1 para. 1 Chapter 39

Actual behavior

Only Anm, Abs, Kap are substituted. Every instance of AV remains unmodified in the translated result:
AV 1 / AV 6 / AV 5 b)\nNote 1, para. 1, Chapter 39

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions