virtualvinodh / aksharamukha-python

Aksharamukha Python Library
GNU Affero General Public License v3.0
43 stars 15 forks source link

Converter for *.docx Files #5

Closed mhdsulaimantan closed 1 year ago

mhdsulaimantan commented 1 year ago

In this PR we have implemented a converter for *.docx files, it can be used in:

  1. Python Package: The users can call the module "ConvertDocx" and then import the function "convert_docx".

    from aksharamukha import ConvertDocx
    
    ConvertDocx.convert_docx(src, tgt, file, nativize = True, pre_options = [], post_options = [], is_api_mode=False)
  2. Web API Call: It can be used with the aksharamukha web interface/API to convert docx files.

Parameter Description
src Script identifier of the source script
tgt Script identifier of the target script
file The docx file path
nativize The text is by default nativized in accordance to the conventions of the output script. Set the value to False to prevent this.
pre_options Various options that are relevant to the input text. An array of strings, the strings being the various options.
post_options Various options that customize the transliteration output. An array of strings, the strings being the various options.
is_api_mode check if it is an API call or python package usage