B2023-013 Added logic to convert certain character sequences to symbols. “+/-“ or “+-“ to plus minus symbol, “>=” to greater than or equal symbol, “<=” to less than or equal symbol, “->” to right arrow symbol, and “<-“ to left arrow symbol
This commit is contained in:
parent
ab19045ab1
commit
399fdbee95
@ -1446,6 +1446,20 @@ i = 0;
|
||||
{
|
||||
DisplayText dt1 = new DisplayText(MyPromsPrinter.MyItem, ROLookupVal, false, true);
|
||||
ROLookupVal = dt1.StartText;
|
||||
// B2023-013 translate character sequences for Plus Minus, Greater Than and Less Than or Equal, Right and Left Arrows
|
||||
// currently only BNPP uses this - 03-23-2023
|
||||
if (MySection.ActiveFormat.PlantFormat.FormatData.SectData.ConvertGTELTEPMinROValue)
|
||||
{
|
||||
ROLookupVal = ROLookupVal.Replace("+/-", @"\'b1"); // Plus Minus
|
||||
ROLookupVal = ROLookupVal.Replace("+-", @"\'b1"); // Plus Minus (without the forward slash - just in case)
|
||||
ROLookupVal = ROLookupVal.Replace(">=", @"\u8805?"); // Greater than or equal
|
||||
ROLookupVal = ROLookupVal.Replace("<=", @"\u8804?"); // Less than or equal
|
||||
}
|
||||
if (MySection.ActiveFormat.PlantFormat.FormatData.SectData.UseDashGreaterLessThenForArrowsInROValue)
|
||||
{
|
||||
ROLookupVal = ROLookupVal.Replace("->", @"\u8594?"); // Right Arrow
|
||||
ROLookupVal = ROLookupVal.Replace("<-", @"\u8592?"); // Left Arrow
|
||||
}
|
||||
}
|
||||
// replace the pagelist token with ROLookupVal
|
||||
pltok = pltok.Substring(0, idxstart) + ROLookupVal + ((idxstart + idxend < pltok.Length) ? pltok.Substring(idxstart + idxend + 1) : string.Empty);
|
||||
@ -2761,6 +2775,8 @@ i = 0;
|
||||
SvgText.CompressSub = mySection.ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.CompressHPSub;
|
||||
SvgText.CompressPropSubSup = mySection.ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.CompressPropSubSup;
|
||||
svgText.Text = text;
|
||||
//if (pageItem.TextColor != null && pageItem.TextColor != "")
|
||||
// svgText.FillColor = System.Drawing.Color.FromName(pageItem.TextColor);// System.Drawing.Color.Red;
|
||||
VEPROMS.CSLA.Library.E_Justify justify = pageItem.Justify ?? VEPROMS.CSLA.Library.E_Justify.PSLeft;
|
||||
float colAdj16bit = 0;
|
||||
if ((justify & VEPROMS.CSLA.Library.E_Justify.PSLeft) == VEPROMS.CSLA.Library.E_Justify.PSLeft)
|
||||
|
Loading…
x
Reference in New Issue
Block a user