A tool to convert DOCX files to AsciiDoc format with special table handling
Project description
aPowerConverter
A powerful tool to convert DOCX files to AsciiDoc format with special handling for tables and formatting.
Features
- Converts DOCX files to AsciiDoc format using Pandoc
- Special handling for tables with
|a|format, converting them to INFO blocks - Preserves document structure and formatting
- Supports batch processing of multiple files
- Handles images and media extraction
- Normalizes punctuation and heading levels
- Supports document ID generation
Installation
Make sure you have Python 3.6+ and Pandoc installed on your system.
pip install aPowerConverter
Usage
Basic usage:
aPowerConverter input.docx
Convert multiple files:
aPowerConverter file1.docx file2.docx file3.docx
Options:
-o, --output-dir: Output directory for converted files-i, --image-dir: Base directory for extracted images-k, --keep-numbers: Keep section numbers from the original document-d, --dry-run: Show what would be done without making changes-q, --quiet: Suppress progress messages-g, --generalize: Generalize headings after conversion-v, --version: Show version information
Table to INFO Block Conversion
The converter automatically detects tables with |a| format and converts them to INFO blocks:
Input table:
|===
| a|
* First bullet point
* Second bullet point
|===
Gets converted to:
[INFO]
====
* First bullet point
* Second bullet point
====
Requirements
- Python 3.6+
- Pandoc (https://pandoc.org/installing.html)
License
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file apowerconverter-1.1.7.tar.gz.
File metadata
- Download URL: apowerconverter-1.1.7.tar.gz
- Upload date:
- Size: 1.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e663ad3be030ec04ce8acc69c9e2f7a8fd96701c75cd4bef9307917bfa8916c3
|
|
| MD5 |
707bf40d169030d157b131eaca9a38d8
|
|
| BLAKE2b-256 |
8cc61e894806e0b4e55b5c20453fac0158539826fa7fff4256609257fab83c47
|
File details
Details for the file apowerconverter-1.1.7-py3-none-any.whl.
File metadata
- Download URL: apowerconverter-1.1.7-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e436c707ee3ea8a9348a50fcf223075f875e4f2a194b2d1196cca46c35748d3
|
|
| MD5 |
23d73a9ae01a7bbc94e28572f30c73fa
|
|
| BLAKE2b-256 |
a7bd8009d142abe47d5d2420a00a07c9121554d5394e90c71832b5ee96cf85ba
|