private void PrintButton_Click(object sender, EventArgs e) { Masechta masechta = new Masechta(ChosenMasechta); Scanner = new Scanner(); string[] Blocks = Scanner.GetBlocks(masechta.FullText); Blocks = Scanner.CleanStringArrayOfEtc(Blocks); DisplayBlocks.Text = "Blocks In Chosen Text:\n\n"; for (int block = 0; block < Blocks.Length; block++) { DisplayBlocks.Text += "\n" + Blocks[block]; } }
private void ShortBlocksBttn_Click(object sender, EventArgs e) { Masechta masechta = new Masechta(ChosenMasechta); Scanner = new Scanner(); string[] Blocks = Scanner.GetBlocks(masechta.FullText); string[] shortBlocks = Scanner.ShortBlocks(Blocks, CharacterLimit); shortBlocks = Scanner.CleanStringArrayOfEtc(shortBlocks); for (int block = 0; block < shortBlocks.Length; block++) { DisplayBlocks.Text += shortBlocks[block]; } }
private void AnalyzeButton_Click(object sender, EventArgs e) { Masechta masechta = new Masechta(ChosenMasechta); Scanner = new Scanner(); string[] Blocks = Scanner.GetBlocks(masechta.FullText); string[] shortBlocks = Scanner.ShortBlocks(Blocks, CharacterLimit); shortBlocks = Scanner.CleanStringArrayOfEtc(shortBlocks); string[] repetitionsFound = Scanner.GetRepeatedCites(shortBlocks, Levenshtein); ResultsText.Text = $"Masechta {ChosenMasechta} has {repetitionsFound.Length / 2} repeated citations."; DisplayBlocks.Text = $"Here are the repetitions discovered in {ChosenMasechta}."; DisplayBlocks.Text = "\n"; for (int repetition = 0; repetition < repetitionsFound.Length; repetition++) { DisplayBlocks.Text += repetitionsFound[repetition]; } if (SaveOption.Checked) { SaveTextFile(repetitionsFound); } }