Skip to content

stop filtering _-prefixed anchors during smart component instantiation#2011

Merged
anthrotype merged 1 commit into
mainfrom
fix-smart-component-underscore-anchors
May 15, 2026
Merged

stop filtering _-prefixed anchors during smart component instantiation#2011
anthrotype merged 1 commit into
mainfrom
fix-smart-component-underscore-anchors

Conversation

@anthrotype
Copy link
Copy Markdown
Member

@anthrotype anthrotype commented May 15, 2026

Fixes #2010

JMM

The blanket `!a.name.starts_with('_')` filter was a precautionary
heuristic (PR #1885) with no concrete regression behind it. In Glyphs,
`_`-prefixed anchors are the same unified system used for both component
alignment and mark attachment — there is no naming distinction between
the two roles. The mark writer's used_groups intersection already
discards any anchors that don't pair with a counterpart on an exported
glyph, making the filter redundant.

Removing it fixes Padyakke (Kannada), where `_headline` on the smart
component `_part.knmAU` is needed for 277 abvm MarkToBase rules.
With the filter, all `_headline` anchors were dropped and nearly all
Kannada mark attachment was lost.

Verified: `ttx_diff` on Padyakke now reports "output is identical".

Fixes #2010
Copy link
Copy Markdown
Member

@cmyr cmyr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch!

@anthrotype anthrotype added this pull request to the merge queue May 15, 2026
Merged via the queue into main with commit 6ba4f76 May 15, 2026
13 checks passed
@anthrotype anthrotype deleted the fix-smart-component-underscore-anchors branch May 15, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[glyphs-reader] smart component instantiation drops mark-attaching _-prefixed anchors

2 participants