Skip to content

A simple tool to convert CSS to DOTX, I'm using way too much if statements. I know its slow, complain about any other problems.

License

Notifications You must be signed in to change notification settings

V8gaming/CSS-TO-DOTX

Repository files navigation

CSS To DOTX

Discription

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

Usage

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):

  1. info
  2. warning
  3. debug(debug + info & warning)
  4. dump(all + extra)
CSSTODOTX.py [path to css] -v
CSSTODOTX.py [path to css] -vv
CSSTODOTX.py [path to css] --verbose

To 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-font

To 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-font

To 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] -l

Examples

Basic usage:

CSSTODOTX.py "./Obsidian gruvbox.css"

Dump verbosity:

CSSTODOTX.py "./Obsidian gruvbox.css" -vvvv

Change 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" -If

Change output name and directory, and delete font(if already installed):

CSSTODOTX.py "./Obsidian gruvbox.css" -vvv -oN "name" -oD "./path" -Df

Log output:

CSSTODOTX.py "./Obsidian gruvbox.css" -l

Modules

Python 3 Windows font installer

About

A simple tool to convert CSS to DOTX, I'm using way too much if statements. I know its slow, complain about any other problems.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages