docs: #306 sectionizing
This commit is contained in:
parent
f1ce340451
commit
25abc0c8f7
@ -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>
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user