Giter VIP home page Giter VIP logo

word2html's Introduction

Convert a Word Doc to html

To install, run:

pip install word2html

This will give you a command-line script, which you can run:

$ word2html /path/to/MyGloriousDoc.docx

This will give you a new file, /path/to/MyGloriousDoc.html, that's (hopefully) decent-looking html.

Note on tests & versions

  • This project has NO TESTS! (feel free to add some of you think it should).
  • This was last used with python 3.9 and the dependency versions listed in requirements.txt

Note on Licenses

While this code is MIT-licensed, it uses boty pypandoc and pytidylib, both of which depend on other software that may not be MIT-licensed and must be installed for this to work.

  • pytidylib is available under the MIT license, and Tidy is available under an MIT-like license
  • pypandoc is available under the MIT license, while Pandoc is released under the GPL.

word2html's People

Contributors

bradmontgomery avatar nkelner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

word2html's Issues

OSError

OSError: Could not load libtidy using any of these names: libtidy,libtidy.so,libtidy-0.99.so.0,cygtidy-0-99-0,tidylib,libtidy.dylib,tidy

word2html don't work

when I run word2html 1.docx I get an error
RuntimeError: Invalid input format! Got "docx" but expected one of these: docbook, haddock, html, json, latex, markdown, markdown_github, markdown_mmd, markdown_phpextra, markdown_strict, mediawiki, native, opml, rst, textile

ImportError

ImportError: cannot import name 'main' from 'word2html.main'


used conda
python 3.9.1

command:
activate
pip install word2html
word2html L:/2_3.docx

(base) L:>word2html L:/2_3.docx
Traceback (most recent call last):
File "d:\miniconda\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "d:\miniconda\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "D:\Miniconda\Scripts\word2html.exe_main
.py", line 4, in
ImportError: cannot import name 'main' from 'word2html.main' (d:\miniconda\lib\site-packages\word2html\main.py)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.