These instructions provide a base for getting everything working on a windows machine to use the StandardEbooks command line tools.
- https://code.visualstudio.com/
- Really nice code editor and fantastic integrated git tooling with extensions.
- https://git-scm.com/
- Set Visual Studio Code as the default Editor (if you are using VS Code)
- Set up credentials however you like (default credential cache should be ok, but you're fine to use no credential manager too)
- https://adoptopenjdk.net/
- Version 16, you only need the JRE, you can also have the JDK
- Download and run the msi.
- https://github.com/tschoonj/GTK-for-Windows-Runtime-Environment-Installer/releases/
- You have to tell windows its ok to run this installer (it's unsigned).
- https://www.python.org/downloads/
- Be sure to tell the installer to add python to your PATH (if you forget or it doesn't tell you, you can change it later if you 'modify' the installation)
- Also, tell it to disable the path length limit
- I used stable version 3.9.2.
- https://visualstudio.microsoft.com/visual-cpp-build-tools
- This is not strictly needed as all the python dependencies used by the toolkit as of April 2020 are distributed with python wheels for Windows. But should that change, you will need a compiler installed to build the dependencies.
- It is nearly 6 GB in size!
- See here for details on why you might need a windows compiler for python:
- Select C++ build tools under 'desktop & mobile'
- MSVCv142 - VS 2019 C++ x64/x86 build tools
- Windows 10 SDK
- You might not need to, but I found it helpful to ensure the env vars are set right.
- Open a new terminal (either a new visual studio code instance or straight CMD/powershell/git bash)
- Run command
python -m pip install --upgrade pip
- Run command
python -m pip install --upgrade setuptools
- Run command
python -m pip install --user pipx
- Run command
python -m pipx ensurepath
- Close Terminal
- Open a new terminal (either a new visual studio code instance or straight CMD/powershell/git bash)
- Run command
pipx install standardebooks
- Now you can use the all the ```se`` commands from the vs code command line. You can use powershell or git bash or even old cmd.
- GitLens
- Github Pull Requests and Issues
- SVG
- HTML Preview
- Insert Unicode (has a great unicode character search feature)
- Batch Rename
- Bookmarks
- Gremlins (for all those zero-width unicode characters we add to the text)
- macro-commander (Command Runner)
- MetaGo, MetaJump, MetaWord (for wicked fast keyboard navigation)
- Code Spell Checker (spell checker inside vs code - it is not perfect but is a good first-pass)
- Escape HTML Code (for those long descriptions)
- Multiple clipboards for VSCode
- Path Intellisense
- show-offset (for those error messages that don't give a line number)
- Text Pastry
- Zip File Explorer (rename your epub to zip, and you can browse it)
- Rewrap (very useful for PG transcriptions, haven't found a use in SE for this yet)
- Python & Pylance (If you want to develop against the SE tools)