Paper Office
paper-pptxAPI referencediff

BulletShift

paper-pptx 0.2.0 API reference

One paragraph whose resolved bullet changed between the two decks.

Bullets live only in formatting, so a list losing its bullets changes no text and no field marker: text_changes stays empty while the slide visibly loses every glyph. This is the facet that reports it.

Paragraphs qualify only when their exact text-and-field value is unique on both sides and lies in the canonical unchanged prefix or suffix. Repeated or changed-region paragraphs are skipped rather than paired by position.

Fields:

  • part -- partname of the slide the paragraph lives on.
  • shape -- stable shape identity plus current display name.
  • before_location / after_location -- container-local paragraph locations.
  • text -- the unchanged paragraph's literal text.
  • before / after -- the resolved bullet, bullet_font and bullet_size payloads from :func:pptx.inspect.effective_paragraph_format on each side.
BulletShift(part: str, shape: ShapeRef, before_location: dict, after_location: dict, text: str, before: dict, after: dict)

Attributes

after

attributeafterdict

after_location

attributeafter_locationdict

before

attributebeforedict

before_location

attributebefore_locationdict

part

attributepartstr

shape

attributeshapeShapeRef

text

attributetextstr

Functions

to_dict

functo_dict() -> dict

Return this bullet change as a JSON-ready dict, before and after values included.

Returns

dict

On this page