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

    • Windows
    • b0493998c391688022df7502892bd9b42cfdab7b (qt/qtbase/5.13)

      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.

        1. qtbug75857.zip
          1 kB
          Shveta Mittal
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes