polymerist.genutils.textual.interpolation ========================================= .. py:module:: polymerist.genutils.textual.interpolation .. autoapi-nested-parse:: For inserting text into other text in a rules-based manner Functions --------- .. autoapisummary:: polymerist.genutils.textual.interpolation.insert_into_text_periodic polymerist.genutils.textual.interpolation.insert_into_text_periodic_re Module Contents --------------- .. py:function:: insert_into_text_periodic(text: str, period: int, insertion: str = '\n') -> str Takes a string of text and another "insertion" string and inserts it throughout the text every characters .. py:function:: insert_into_text_periodic_re(text: str, period: int, insertion: str = '\n') -> str Takes a string of text and another "insertion" string and inserts it throughout the text every characters Same as insert_into_text_periodic(), but implemented with regular expressions (allows for more complicated logical extensions)