B2026-022-Adding-RO-Editor-symbols-to-RO-Tables
This commit is contained in:
@@ -2473,6 +2473,19 @@ namespace Volian.Controls.Library
|
||||
private string ConvertTableText(string str)
|
||||
{
|
||||
string rtn = str;
|
||||
string pattern = @"\\u([0-9]{1,4})\?";
|
||||
|
||||
string mValue, mValue2 = "";
|
||||
foreach (Match match in Regex.Matches(rtn, pattern, RegexOptions.IgnoreCase))
|
||||
{
|
||||
mValue = match.Value;
|
||||
mValue2 = @"\f1 " + mValue + @"\f0";
|
||||
rtn = rtn.Replace(match.Value, mValue2);
|
||||
// @"\f1\u9474 ?\f0")
|
||||
// linkValue = linkValue.Replace(match.Value, "\\f1 " + match.Value + "\\f0");
|
||||
}
|
||||
|
||||
|
||||
//ShowRawString(str, "ConvertTableText IN");
|
||||
rtn = rtn.Replace(@"START]\v0", @"START]\cf1\v0");
|
||||
rtn = rtn.Replace(@"\v #Link:", @"\cf0\v #Link:");
|
||||
@@ -3827,6 +3840,9 @@ namespace Volian.Controls.Library
|
||||
this.MergedRanges.Clear();
|
||||
this.Clear();
|
||||
this.IsRoTable = true;
|
||||
//valtext = valtext.Replace(@"\u8209?", "-");
|
||||
//valtext = Regex.Replace(valtext, @"\\u([0-9]{1,4})\?", m => int.TryParse(m?.Groups[1]?.Value, out int result) ? Convert.ToChar(result).ToString() : "");
|
||||
//valtext = valtext.Replace("-", @"\u8209?");
|
||||
this.ParseTableFromText(valtext, GridLinePattern.Single);
|
||||
this.AutoSizeCols();
|
||||
this.AutoSizeRows();
|
||||
|
||||
Reference in New Issue
Block a user