Metadata-Version: 2.1
Name: mathcad2smath
Version: 1.7
Summary: This module convert XMCD mathcad files in XMCD compatible with Smath Studio
Home-page: https://github.com/Ginklings/mathcad2smath
Author: André Ginklings
Author-email: andre.ginklings@gmail.com
License: UNKNOWN
Project-URL: Bug Tracker, https://github.com/Ginklings/mathcad2smath/issues
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.9
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: Microsoft :: Windows
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE

# mathcad2smath
Command tool to convert mathcad XMCD to XMCD with Smath Studio support.

Usage: 

    mathcad2smath [-h] [-o] [-r] [-d BASEDIR] [-p PREFIX] [-s SUFIX] [--ignore_custom]
                  [-e ADD_EXTERNAL [ADD_EXTERNAL ...]] [--external_path EXTERNAL_PATH] [-f FILENAME]

    Convert XMCD mathcad files into XMCD compatible with Smath Studio

    optional arguments:
      -h, --help            show this help message and exit
      -o, --overwrite       Overwrite the output file if exist
      -r, --recursive       Find XMCD files recursively
      -d BASEDIR, --basedir BASEDIR
                            The basedir to convert the XMCD's file
      -p PREFIX, --prefix PREFIX
                            The prefix to output file
      -s SUFIX, --sufix SUFIX
                            The sufix to output file
      --ignore_custom       Include a "custom.sm" file into output XMCD directory with mathcad specific functions   
      -e ADD_EXTERNAL [ADD_EXTERNAL ...], --add_external ADD_EXTERNAL [ADD_EXTERNAL ...]
                            Add user externals files into output XMCD directory. Try to add a file relative to      
                            "external_path", then try to get the file as full path. If a "*" is used, try to add    
                            all SM file in "external_path"
      --external_path EXTERNAL_PATH
                            The path to user external files
      -f FILENAME, --filename FILENAME
                            Convert specific file
      --smath_path SMATH_PATH
                            Path to Smath Studio instalation, convert external files to SM when needed
      --save_as_sm          Save output file as SM file

The "custom.sm" file has the "ceil" and "floor" function that is not defined in Smath Studio and define also a "Percent" variable, because the "%" char is translated as "Percent" when Smath import XMCD files.

The SMATH_PATH is used to convert XMCD in SM file when there is a linked worksheet in file, because the "include" function in Smath only works with SM files. This is used also for save the converted file as SM with the "save_as_sm" option.


