Coder Social home page Coder Social logo

customised_formatting_script's Introduction

Instructions

Installing

Open a terminal window at the location of the unziped folder. and run

chmod +x run.sh

Once chmod, it can now be executed easily by writing

./run.sh

Into the terminal window.

How to use

Run the script with the given arguments, options would be running 
the script using the default which is with conversion being applied 
in the script. The second option would be handling the conversion
manually using 'https://cloudconvert.com'.

The conversion is done from docx to HTML. Conversion is done to HTML
because the docx is only modifiable from Word.

Formatting begins by searching all bolded words. The script does not 
know when a specific vocab word starts or beings. It can only know 
by the lenght of the bolded text. I.e. if you have a sentance with 
"My name is John" and you want to use "My name" as the vocab translation.
Then you have to bold "My name" together, and not "My" and then "name" as 
2 seperate bolded objects. If the goal is to have "My" and "name" as two 
different vocabulary words then each word has to be bolded seperately.

To recap, each object that is bolded regardless of amount of words will
be used as the translation origin.

After the formatting is finished, the file is then reconverted from HTML 
to docx. Keeping the format as close as possible.

Usage: custom_format.py -i <-input> [-c]

Options: -h --help Show this screen --version Show version -i <-input> The file to be formatted -c Convert the file from docx to HTML and back to docx

customised_formatting_script's People

Contributors

jordan-castro avatar

Stargazers

 avatar

Watchers

 avatar

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.