Shatr¶
-
class
aruudy.poetry.prosody.
Shatr
(text)¶ Bases:
object
Shatr (Hemistich) object.
In Arabic, a verse is composed of two hemistiches (shatr). This object will contain all information about a given text.
Parameters: text (str) – The text to be analysed. -
parts
¶ The text split into different parts. Each part is a dict with these components:
- emeter: the english meter of that part
- type: the type of that part: is it regular or else
- part: the text of that part
- mnemonic: the mnemonic text of that part
Type: list(Part)
Methods Summary
to_dict
([bahr, parts])Generates a dict object of the Bahr. Methods Documentation
-
to_dict
(bahr=False, parts=False)¶ Generates a dict object of the Bahr.
Parameters: Returns: A dictionary object describing the Shatr.
- norm (str): normalized text
- prosody (str): prosody form of the text
- ameter (str): Arabic meter of the text
- emeter (str): English meter of the text
- bahr (Bahr or dict): the bahr of the text
- parts (list(Part or dict)): the parts of the text
Return type:
-