WmlComparerSettings.cs 1.0 KB

1234567891011121314151617181920212223242526272829
  1. // Copyright (c) Microsoft. All rights reserved.
  2. // Licensed under the MIT license. See LICENSE file in the project root for full license information.
  3. using System;
  4. using System.Globalization;
  5. using System.IO;
  6. namespace OpenXmlPowerTools
  7. {
  8. public class WmlComparerSettings
  9. {
  10. public char[] WordSeparators;
  11. public string AuthorForRevisions = "Open-Xml-PowerTools";
  12. public string DateTimeForRevisions = DateTime.Now.ToString("o");
  13. public double DetailThreshold = 0.15;
  14. public bool CaseInsensitive = false;
  15. public CultureInfo CultureInfo = null;
  16. public Action<string> LogCallback = null;
  17. public int StartingIdForFootnotesEndnotes = 1;
  18. public DirectoryInfo DebugTempFileDi;
  19. public WmlComparerSettings()
  20. {
  21. // note that , and . are processed explicitly to handle cases where they are in a number or word
  22. WordSeparators = new[] { ' ', '-', ')', '(', ';', ',' }; // todo need to fix this for complete list
  23. }
  24. }
  25. }