From 1ed333fbba7edb1b1cceea9d3b2e0095d004cb58 Mon Sep 17 00:00:00 2001 From: Rainer Kottenhoff Date: Thu, 28 Mar 2019 09:29:02 +0100 Subject: [PATCH] + chg: increase CED's reliability to confidence level mapping treshold (-> 85%) --- src/Notepad3.c | 4 ++-- src/TypeDefs.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Notepad3.c b/src/Notepad3.c index ce7f8dc43..f02fff157 100644 --- a/src/Notepad3.c +++ b/src/Notepad3.c @@ -6966,12 +6966,12 @@ void LoadSettings() int const iARCLset = clampi(IniSectionGetInt(pIniSection, L"AnalyzeReliableConfidenceLevel", iARCLdef), 0, 100); Settings2.AnalyzeReliableConfidenceLevel = (float)iARCLset / 100.0f; - int const iRCEDCMdef = 51; + int const iRCEDCMdef = 85; Defaults2.ReliableCEDConfidenceMapping = (float)iRCEDCMdef / 100.0f; int const iRCEDCMset = clampi(IniSectionGetInt(pIniSection, L"ReliableCEDConfidenceMapping", iRCEDCMdef), 0, 100); Settings2.ReliableCEDConfidenceMapping = (float)iRCEDCMset / 100.0f; - int const iURCEDCMdef = 51; + int const iURCEDCMdef = 20; Defaults2.UnReliableCEDConfidenceMapping = (float)iURCEDCMdef / 100.0f; int const iURCEDCMset = clampi(IniSectionGetInt(pIniSection, L"UnReliableCEDConfidenceMapping", iURCEDCMdef), 0, iRCEDCMset); Settings2.UnReliableCEDConfidenceMapping = (float)iURCEDCMset / 100.0f; diff --git a/src/TypeDefs.h b/src/TypeDefs.h index 41c949689..c5da523a4 100644 --- a/src/TypeDefs.h +++ b/src/TypeDefs.h @@ -472,7 +472,7 @@ typedef struct _settings2_t int CurrentLineVerticalSlop; float AnalyzeReliableConfidenceLevel; - float ReliableCEDConfidenceMapping; // = 0.66f; + float ReliableCEDConfidenceMapping; // = 0.85f; float UnReliableCEDConfidenceMapping; //= 0.20f; WCHAR PreferredLanguageLocaleName[LOCALE_NAME_MAX_LENGTH+1];