Part

class aruudy.poetry.meter.Part(tafiila_comp)

Bases: aruudy.poetry.foot.TafiilaComp

The text’s part description.

Parameters:tafiila_comp (TafiilaComp) – The description of the Foot which this part is based on.
ameter

The Arabic meter.

Type:str
emeter

The english meter.

Type:type
text

The part of text following that meter.

Type:type

Methods Summary

extract([units]) Extracts the part of text following the meter.
to_dict() Transforms this object to a dictionary.

Methods Documentation

extract(units=[])

Extracts the part of text following the meter.

Parameters:units (list(str)) – A list of vocallized and unvocalized elements, generated from the text.
Returns:the text following the meter.
Return type:str
to_dict()

Transforms this object to a dictionary.

Returns:The dictionary will contin:
  • type (TafiilaComp): the type of the foot
  • emeter (str): the English meter
  • ameter (str): the Arabic meter
  • mnemonic (str): the mnemonic describing the meter
  • text (str): the text following the meter
Return type:dict