Fixed the check for CapRoIfLastLower and the UpRoAftrDash conditions
This commit is contained in:
parent
d058e4b585
commit
63166ed728
@ -1194,7 +1194,9 @@ namespace Volian.Controls.Library
|
||||
|
||||
// Caps ROs anywhere if no lower case text follows
|
||||
// and an upper case letter immediately precedes the RO.
|
||||
if (_MyItemInfo.ActiveFormat.PlantFormat.FormatData.ROData.CapRoIfLastLower && !Regex.IsMatch(afterRO,"[a-z]") && char.IsUpper(LastAlpha(beforeRO)))
|
||||
|
||||
if (_MyItemInfo.ActiveFormat.PlantFormat.FormatData.ROData.CapRoIfLastLower &&
|
||||
!Regex.IsMatch(afterRO,@".*(?<!\\)[a-z].*") && char.IsUpper(LastAlpha(beforeRO)))
|
||||
{
|
||||
//int indx = startLinkText - 1;
|
||||
//int indx2 = endLinkText + 1;
|
||||
@ -1207,7 +1209,7 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
|
||||
// If a RO follows a "- " then it will be uppercased
|
||||
if (_MyItemInfo.ActiveFormat.PlantFormat.FormatData.ROData.UpRoAftrDash && Regex.IsMatch(beforeRO, @".*\\u8209\?( |\\u160\?)$"))
|
||||
if (_MyItemInfo.ActiveFormat.PlantFormat.FormatData.ROData.UpRoAftrDash && Regex.IsMatch(beforeRO, @".*\\u8209\?( |\\u160\?)"))
|
||||
{
|
||||
//int indx = startLinkText - 1;
|
||||
//while (indx > 0 && !IsSpaceOrHardSpace(stepText[indx])) indx--; // find character before RO
|
||||
|
Loading…
x
Reference in New Issue
Block a user