comment-preserving docx <-- --> markdown converter
Project description
Commentary
Commentary is a command line document conversion tool that preserves native-style comments between Markdown and MS Word.
Requirements
Installation
pip install commentary
Usage
usage: commentary [-h] [-o [OUTPUT]] [-a [AUTHOR]] [-m] [-t] [-p] [-D]
[-A [DEFAULT_AUTHOR]]
[input]
comment-preserving docx-markdown converter
positional arguments:
input input
optional arguments:
-h, --help show this help message and exit
-o [OUTPUT], --output [OUTPUT]
ouput filename. supports docx and txt/md
-a [AUTHOR], --author [AUTHOR]
name to appear in docx comments
-m, --metadata preserve comment metadata in docx to md conversions
-p, --print print results to terminal
-D, --force-docx-comments
force conversion to docx-style comments during md -->
md conversion. default is to use markdown-style
comments
-A [DEFAULT_AUTHOR], --default-author [DEFAULT_AUTHOR]
configure default name to appear in docx comments
Configuration
Use -A 'AUTHOR NAME'
to save the default comment author name to ~/.config/commentary.yaml
.
Converting Comments
Commentary handles comments well in most cases. Docx comments which highlight areas spanning multiple paragraphs may fail, however.
Using the -m
flag, Commentary will save docx comment metadata within markdown html comment tags. For markdown-to-docx conversions, Commentary will re-convert these comments to docx with their original author and time-stamp metadata.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file commentary-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: commentary-0.2.1-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.11.0 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eaddc177441d9afa8352102155cb505d467084b135addfd4553b1794c23847f4 |
|
MD5 | 60e17cecae6c3c58ac4eea81533cd4c4 |
|
BLAKE2b-256 | 61d5457c46abbd58353e0b5105cada60e19de2e9f1a0a356b5033912feb2b156 |