ChatPPT v0.1
Pre-release
Pre-release
ChatPPT v0.1 Release Notes
New Features
- PowerPoint Content Parsing: Introduced a robust input parsing system that converts structured text into PowerPoint slides, including title, key points, and images. This system uses advanced regular expressions to map user input to corresponding slide layouts.
- Template-based PowerPoint Generation: Implemented dynamic PowerPoint slide generation based on a master template (
MasterTemplate.pptx
). Users can define layouts such as "Title and Content" and "Title with 2 Columns" for different slide types. - Image and Bullet Point Handling: Added support for automatic insertion of images and bullet points into slides, ensuring images are placed in designated placeholders.
- User Input Conversion: Developed a function to convert a natural language slide description into the required format for slide generation. This function transforms input like "Slide X: Title, Key Points, Notes" into the necessary format for parsing and PowerPoint creation.
- File Naming Based on Title: Automatically uses the input's main title (e.g., "企业年度报告") as the generated PowerPoint file name, streamlining the output process for users.
Enhancements
- Logging and Error Handling: Added comprehensive logging for better debugging, including layout mapping, placeholder identification, and file generation steps. This ensures users can easily trace any issues in slide creation.
- Unit Testing for Input Parsing: Introduced unit tests for the input parser module, verifying that user inputs in the form of slide titles, bullet points, and images are correctly converted into the standard input format.
- Template Compatibility: Improved compatibility with various PowerPoint templates, allowing for flexible layouts and dynamic content insertion. Special handling for text and image placeholders ensures correct placement of content.
- Placeholder Identification: Enhanced the detection of image and text placeholders within templates to ensure content is correctly placed, avoiding issues with missing or misidentified placeholders.
Commit Log
- Created an input parser to convert structured text to PowerPoint-ready content.
- Implemented a function to dynamically generate PowerPoint slides from structured text using Python's
python-pptx
library. - Added functionality for detecting and inserting images and bullet points in slide layouts.
- Optimized slide generation to automatically use the main title of the input text as the file name for the generated PowerPoint.
- Developed unit tests for the
input_parser.py
module to verify input transformation logic. - Enhanced error logging to capture placeholder and layout mapping issues during PowerPoint generation.