Skip to main content

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

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apowerconverter-1.2.0.tar.gz (1.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

apowerconverter-1.2.0-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file apowerconverter-1.2.0.tar.gz.

File metadata

  • Download URL: apowerconverter-1.2.0.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

Hashes for apowerconverter-1.2.0.tar.gz
Algorithm Hash digest
SHA256 d6b2ae7d263880e0b74cde66c04de346ac7a0e7081d8a64fa77eb6ed315b31f8
MD5 d8151521e53a4a5bbc4e8a72f39e43d7
BLAKE2b-256 3b834d7c3007639e4c634fde5be369ae88204995bfad5f171d9d7e8c48f2da4d

See more details on using hashes here.

File details

Details for the file apowerconverter-1.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for apowerconverter-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4fb03d9c84e69c2fd2650ba80127774951736d3027d5caa47d77ed1d1e7d02dd
MD5 f08f5e8912a7e42ef5ebcae731c471ea
BLAKE2b-256 9b272fccd92d5540a4d2ea90c7165d8102d6e1661c99fda5adacb09598cadac5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page