docs: #306 sectionizing

This commit is contained in:
Hamid Reza Mohammadi 2022-04-02 12:11:55 +04:30
parent f1ce340451
commit 25abc0c8f7
2 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@
/// <summary>
/// sections like paragraphs or poems within paragraphs of text
/// </summary>
Default = 0,
WholePoem = 0,
/// <summary>
/// bands of a multi-band poem
/// </summary>

View File

@ -50,7 +50,7 @@ namespace RMuseum.Services.Implementation
GanjoorPoemSection mainSection = new GanjoorPoemSection()
{
PoemId = poem.Id,
SectionType = PoemSectionType.Default,
SectionType = PoemSectionType.WholePoem,
Index = 0,
Number = 1,
GanjoorMetreId = poem.GanjoorMetreId,
@ -65,7 +65,7 @@ namespace RMuseum.Services.Implementation
mainSection.RhymeLetters = analysisRes.Result.Rhyme;
}
}
context.Add(mainSection);
context.Add(mainSection);//having a main section for مثنوی inside normal text helps keep track of related versess
foreach (var verse in verses)
{
verse.PoemSectionIndex = mainSection.Index;