# CHomeworkTool **Repository Path**: Goldgom/chomework-tool ## Basic Information - **Project Name**: CHomeworkTool - **Description**: CHomeworkTool - **Primary Language**: Unknown - **License**: AGPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2023-11-26 - **Last Updated**: 2023-11-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README This Python script is designed to automate the process of generating files and documents for a homework tool. It performs the following steps: Generate dot files from input files. Adapt dot files for Chinese characters. Generate SVG files from dot files. Generate PNG files from dot files. Generate highlighted code snapshots from source files. Generate a document with the generated files and basic information. The script first checks for necessary dependencies and installs them if they are not present. It then sets up the environment, clears temporary and output folders, and prepares to convert the files. The script uses the os, sys, subprocess, pygments, matplotlib, and docx libraries to perform its tasks. It also uses the cxx2flow and Graphviz tools to generate dot, SVG, and PNG files. The script also includes a section for generating a document that includes the generated files and some basic information. It uses the docx library to open, modify, and save Word documents. The script is designed to be run from the command line and does not require any arguments. It uses print statements to provide feedback on its progress.