- 
                Notifications
    
You must be signed in to change notification settings  - Fork 280
 
Run Manuskript from Source Code on Windows
This guide describes the steps for installing and running Manuskript from source code on Windows.
The steps include installing all necessary software dependencies.
These steps were developed on 32 bit Windows XP and also tested on 64 bit Windows 7 (see also Appendix A near bottom). The steps should work as is or as a guideline for newer version of Windows.
Text based commands in this guide should be run in a command prompt.
Following are some ways to invoke a command prompt in Windows:
- Use menu option Start -> All Programs -> Accessories -> Command Prompt
 - Simultaneously press Windows + R keys on keyboard to open launcher, type 
cmd.exeand press Enter key. 
Manuskript is written in the Python (v3) programming language and uses the QT (v5) cross-platform UI framework and also requires some additional software.
Download and install the following software:
Download Python v3.4.4 - Windows x86 MSI installer and run the installer accepting all defaults.
https://www.python.org/downloads/windows/
Python v3.4.4 is the last version that works with Windows XP.
Download PyQt v5.5.1 for python v3.4 Windows 32 bit installer and run the installer accepting all defaults.
https://sourceforge.net/projects/pyqt/files/PyQt5/
PyQt v5.5.1 is the last version that works with Windows XP and Python v3.4.x
Note that 64 bit versions and newer versions are available from
https://www.riverbankcomputing.com/software/pyqt/download5
Download lxml-3.4.4.win32-py3.4.exe and run the installer accepting all defaults.
https://pypi.python.org/pypi/lxml/3.4.4/
- 
Open a command prompt as described earlier.
 - 
Change to the
C:\Python34\Scriptsdirectory.C: cd \Python34\Scripts - 
Install PyEnchant using pip.
pip install pyenchantAt time of writing v1.6.8 was installed. You can specify this version with the
pip install pyenchant==1.6.8command. - 
Close command prompt.
 
At time of writing the following dictionaries were automatically installed with PyEnchant:  de_DE, en_AU, en_GB, en_US, and fr_FR.
Use steps similar to those above to install PyEnchant.
- 
Install MarkDown using pip.
pip install markdownAt time of writing v2.6.8 was installed. You can specify this version with the
pip install markdown==2.6.8command. 
To access additional compile/export formats, such as ePub, OpenDocument and DocX, download and install pandoc.
At time of writing pandoc v1.19.2.1 was installed.
The source code for Manuskript is managed with the git distributed version control system, and hence we need git to be able to clone a copy of the source code.
Download Git-v2.10.0-32-bit.exe and run the installer accepting all defaults.
https://github.com/git-for-windows/git/releases/tag/v2.10.0.windows.1
Git v2.10.0 is the last version to support Windows XP.
- 
Open a command prompt as described earlier.
 - 
Choose and change to a directory to install the source code. For example, your
C:\directory:C: cd \ - 
Use git to clone a copy of the source code your chosen directory.
git clone https://github.com/olivierkes/manuskript.gitThe above command will create a manuskript subdirectory.
 - 
Change into the manuskript subdirectory.
cd manuskript 
At any time after you have cloned the source code, you can update your copy to the latest version with the git pull command.
git checkout develop
Note that you can return to the master branch with the git checkout master command.
Enter the following command in a command prompt, or Win+R launcher:
C:\Python34\python "C:\manuskript\bin\manuskript"
Note that the above command requires the full directory path to the location in which you installed manuskript.
If you are running Windows 7 or higher, you may wish to install more recent software to run Manuskript. Following are the steps I used to install and run Manuskript on 64-bit Windows 7.
- 
Download Python 3.7.2 - Windows x86 executable installer file.
In Windows Explorer (Windows Key + E) find
python-3.7.2.exein the Downloads folder and double-click.Be sure to enable "Add Python to PATH".
Note that I chose a custom install with the path
C:\Python37, and chose Install for all users. - 
Download pyenchant-1.6.11.win32.exe file.
In Windows Explorer (Window Key + E) find
pyenchant-1.6.11.win32.exein the Downloads folder and double-click.Follow the instruction prompts to complete the installation.
 - 
Install remaining required software.
Open a command prompt as described earlier.
Install PyQt5, Lxml, and Markdown using pip.
pip install pyqt5 lxml markdown