Fix Sonnet autodetect failing on Indian langs
Needs ReviewPublic

Authored by waqar on Sat, Nov 23, 6:22 PM.

Details

Reviewers
mludwig
Summary

Fixes Bug 176537. Sonnet fails to autodetect a language if there are no trigrams available for the language. In some cases, the script of the language is detected exactly but only because no trigrams were found for the language in question, autodetection fails.

Additionally, I have tested and patched it in QOwnNotes and it is working pretty well there.

Diff Detail

Repository
R246 Sonnet
Branch
fix-176537 (branched from master)
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 19141
Build 19159: arc lint + arc unit
waqar created this revision.Sat, Nov 23, 6:22 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptSat, Nov 23, 6:22 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
waqar requested review of this revision.Sat, Nov 23, 6:22 PM
waqar edited the summary of this revision. (Show Details)Sat, Nov 23, 6:25 PM
waqar updated this revision to Diff 70238.Sat, Nov 23, 6:48 PM
waqar edited the summary of this revision. (Show Details)

Fix Sonnet autodetect completely failing when no trigrams found

waqar edited the summary of this revision. (Show Details)Sun, Nov 24, 7:47 AM
waqar updated this revision to Diff 70262.Sun, Nov 24, 3:11 PM

Revert a change, as autodetection fails for languages with similar scripts

waqar updated this revision to Diff 70288.Mon, Nov 25, 1:47 PM

Add test for autodetection

waqar updated this revision to Diff 70289.Mon, Nov 25, 1:50 PM

Add Test for autodetection

waqar updated this revision to Diff 70290.Mon, Nov 25, 1:54 PM

Update copyright

waqar updated this revision to Diff 70291.Mon, Nov 25, 1:58 PM

Remove unused includes