C2022-021: resolve greater/less than or equal & plus/minus to symbols in ROs

C2022-021: Barakah resolve greater/less than or equal & plus/minus to symbols in ROs
This commit is contained in:
2022-11-02 14:37:49 +00:00
parent 2f4b33b621
commit 64e52f5f68
8 changed files with 17 additions and 0 deletions

View File

@@ -982,6 +982,14 @@ namespace Volian.Controls.Library
retval = retval.Replace("\\u8209?>", GetAddSymbolTextForROs(@"\u8594?")); // Right Arrow
retval = retval.Replace("<\\u8209?", GetAddSymbolTextForROs(@"\u8592?")); // Left Arrow
}
// C2022-021 convert a "<=" to a less than or equal symbol, a ">=" to a greather than or equal symbol and +- to a
// plus/minus symbol in ROs
if (MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.ConvertGTELTEPMinROValue)
{
retval = retval.Replace("<=", GetAddSymbolTextForROs(@"\u8804?")); // Less than or Equal
retval = retval.Replace(">=", GetAddSymbolTextForROs(@"\u8805?")); // Greater than or Equal
retval = retval.Replace("+\\u8209?", @"\'b1"); // plus/minus - note - is stored as \u8209 and plus/minus is < 256, i.e. handled differently
}
return retval;
}
public void InsertRO(string value, string link)