View Source Idmlx.Updater.Stories (idmlx v0.2.1)

Functions for handling story content in IDMS files.

Summary

Functions

Creates properly formatted story content XML with styling.

Gets the children of an XML element.

Gets the Story reference from a TextFrame element.

Updates the content of an element (used for Story elements).

Updates the content of a Story element with proper styling.

Functions

create_story_content(attrs)

Creates properly formatted story content XML with styling.

Parameters

  • attrs: Map containing content and styling information:
    • content: The text content
    • applied_paragraph_style: Optional paragraph style reference
    • applied_character_style: Optional character style reference (defaults to [No character style])

element_children(arg)

Gets the children of an XML element.

get_story_reference(element)

Gets the Story reference from a TextFrame element.

update_element_with_content(element, new_content)

Updates the content of an element (used for Story elements).

update_story_content(xml, story_ref, content)

Updates the content of a Story element with proper styling.