Skip to content

Commit

Permalink
documentation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Jul 3, 2022
1 parent fbd5bfe commit bca3b6c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
Binary file modified .vs/AsoSoftLibrary/v17/.suo
Binary file not shown.
2 changes: 1 addition & 1 deletion G2P.cs
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ private static int SonorityIndex(char ch)
return 1;
}

// for tests
/// <summary>only for tests.</summary>
public static Dictionary<string, int> AllCandidates(string grapheme)
{
return EVAL(Generator(g2pNormalize(grapheme)));
Expand Down
4 changes: 3 additions & 1 deletion Normalize.cs
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ public static string Normalize(string text,
"۷", "٧", "7",
"۸", "٨", "8",
"۹", "٩", "9", };

/// <summary>unifies numeral characters into desired numeral type from en (0123456789) or ar (٠١٢٣٤٥٦٧٨٩).</summary>
public static string UnifyNumerals(string text, string NumeralType)
{
for (int i = 0; i < digits.Length; i += 3)
Expand Down Expand Up @@ -302,7 +304,7 @@ public static string TrimLine(string line)
return line.Trim();
}

/// <summary>HTML Entity replacement for web crawled texts (e.g. "&eacute;" with "é")</summary>
/// <summary>HTML Entity replacement for web crawled texts (e.g. "&amp;eacute;" with "é")</summary>
public static string ReplaceHtmlEntity(string text)
{
return Regex.Replace(text, "&[a-zA-Z]+;", m => System.Net.WebUtility.HtmlDecode(m.Value));
Expand Down
1 change: 1 addition & 0 deletions Number2Word.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ namespace AsoSoftLibrary
{
public static partial class AsoSoft
{
/// <summary>converts numerals into Central Kurdish words. It is useful in text-to-speech tools.</summary>
public static string Number2Word(string text)
{
// convert numbers to latin
Expand Down
2 changes: 2 additions & 0 deletions Sort.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ namespace AsoSoftLibrary
{
public static partial class AsoSoft
{
/// <summary>Sorting a string list in correct order of Kurdish alphabet.</summary>
public static List<string> KurdishSort(List<string> inputList)
{
var ku = new List<char>();
ku.AddRange("ئءاآأإبپتثجچحخدڎڊذرڕزژسشصضطظعغفڤقكکگڴلڵمنوۆۊۉۋهھەیێ");
return CustomSort(inputList, ku);
}
/// <summary>Sorting a string list in custom order.</summary>
public static List<string> CustomSort(List<string> inputList, List<char> inputOrder)
{
var baseChar = 62000;// 9472;
Expand Down

0 comments on commit bca3b6c

Please sign in to comment.