Rewrote normalizing algorithm

The mormalizing algorithm was rewritten to be more efficient and hopefully more reliable. See changelog.md for more info.
This commit is contained in:
Tony Bark 2020-12-11 01:05:46 -05:00
parent ccb4da5b86
commit cd95b7c6ae
16 changed files with 313 additions and 183 deletions

16
CSTNet.Tests/CSTHelper.cs Normal file
View file

@ -0,0 +1,16 @@
using System;
using System.IO;
namespace CSTNet.Tests
{
static class CSTHelper
{
public static string CSTFile(string cst, string key)
{
var path = Path.Combine(AppContext.BaseDirectory, cst);
var file = File.ReadAllText(path);
return CaretSeparatedText.Parse(file, key);
}
}
}