Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support non-breaking content in Python #251

Merged
merged 1 commit into from
Aug 17, 2023
Merged

Commits on Aug 15, 2023

  1. Support non-breaking content in Python

    This patch supports non-breaking content in Python.
    
    In Java and Python implementations, the "Skip" operation includes the
    skipped content to the BudouX parser, so no changes to the text for the
    parser is needed.
    
    This patch changes following items:
    1. Changed `to_skip` to a stack of elements, rather than always reset
       to `False` at the end of an element.
    2. When there's a phrase boundary right before the "skip" element,
       insert a break before the "skip" element.
    
    Note `<NOBR>` is added to `skip_nodes.json` at:
    google#248.
    kojiishi committed Aug 15, 2023
    Configuration menu
    Copy the full SHA
    f2abb56 View commit details
    Browse the repository at this point in the history