Skip to content

Incorrect nextbegindifference for \GreBarSyllables #1734

Open

Description

@davidweichiang
  1. If a word is interrupted by a bar syllable, it seems that the bar and its surrounding space are not counted when deciding whether to hyphenate the word. I think the first example should have a hyphen, but doesn't:
\gresetinitiallines{0}
\gabcsnippet{a(g)(,)a(g)}
\gabcsnippet{a(gg)(,)a(g)}

Output (with barspacing lines turned on):
Image

Activity

  1. changed the title [-]Hyphenation across a bar syllable[/-] [+]Incorrect nextbegindifference for \GreBarSyllables[/+] on Apr 7, 2026
  2. davidweichiang commented on Apr 7, 2026

    @davidweichiang
    ContributorAuthor
    1. If there are two bar syllables in a row, the first syllable's nextbegindifference does not include the space before the second bar, but the second syllable's begindifference does include the space before the bar. This can make the two syllables collide:
    \gabcsnippet{a(g)a(,)baaaa(,)a(g)}                                                           
    
    Image
  3. linked a pull request that will close this issueBar spacing in Lua #1764on Jul 10, 2026
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions