Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-75857

QTextBoundaryFinder::Sentence is returning two sentences if string has a word with capital letters followed by comma

    XMLWordPrintable

Details

    • Windows
    • b0493998c391688022df7502892bd9b42cfdab7b (qt/qtbase/5.13)

    Description

      QTextBoundaryFinder, when used with BoundaryType Sentence, is breaking the sentence when there is a word with all capital letters followed by comma. E.g.

      text = "This is a normal thing, another thing."  --> returns one sentence
      text = "This is a normal THING, another thing."  --> returns two sentence
      

      Which seems to be unexpected behavior.

      Attachments

        For Gerrit Dashboard: QTBUG-75857
        # Subject Branch Project Status CR V

        Activity

          People

            laknoll Lars Knoll
            shmittal Shveta Mittal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes