Requires Python 3.9.2 and above This python program converts a Obsidian theme(CSS) to microsoft word theme(DOTX) Support for all css may come eventually. This program only works on windows for now
Path to css is required For basic usage use: [path to css] is a string (e.g. "./Obsidian gruvbox.css")
CSSTODOTX.py [path to css]To change output name use (-o, --output): [name] is a string string without the file extension (e.g. "style"). This adds the file extension automatically
CSSTODOTX.py [path to css] -o [name]Verbosity is (-v, -vv, --verbose):
- info
- warning
- debug(debug + info & warning)
- dump(all + extra)
CSSTODOTX.py [path to css] -v
CSSTODOTX.py [path to css] -vv
CSSTODOTX.py [path to css] --verboseTo install font automatically use (-If, --install-font): This Requires Administrator mode and will only work on windows, it will download the font if it can find it. Also not all themes has a font that needs downloading & installing.
CSSTODOTX.py [path to css] --install-fontTo delete a font from a css use (-Df, --delete-font): This Requires Administrator mode and will only work on windows
CSSTODOTX.py [path to css] --delete-fontTo change output directory use (-oD, --output-dir): [directory] is a string (e.g. "./output"). This creates the directory if it does not exist
CSSTODOTX.py [path to css] -oD [directory]To change output name use (-oN, --output-name): [name] is a string string without the file extension (e.g. "style"). This adds the file extension automatically
CSSTODOTX.py [path to css] -oN [name]For logging use (-l, --log): this is outputted in ./logs/[datetime].log
CSSTODOTX.py [path to css] -lBasic usage:
CSSTODOTX.py "./Obsidian gruvbox.css"Dump verbosity:
CSSTODOTX.py "./Obsidian gruvbox.css" -vvvvChange output name:
CSSTODOTX.py "./Obsidian gruvbox.css" -vv -oN "different"Change output directory:
CSSTODOTX.py "./Obsidian gruvbox.css" -verbose -oD "C:/different"Change output name and directory:
CSSTODOTX.py "./Obsidian gruvbox.css" -oN "name" -oD "C:/path/to/dir"Change output name and directory, and install font(if available):
CSSTODOTX.py "./Obsidian gruvbox.css" -vv -oN "new" -oD "./new" -IfChange output name and directory, and delete font(if already installed):
CSSTODOTX.py "./Obsidian gruvbox.css" -vvv -oN "name" -oD "./path" -DfLog output:
CSSTODOTX.py "./Obsidian gruvbox.css" -l