PPTools/Guiguts/Guiguts Tool Updates
Introduction
There are several tools bundled with Guiguts, particularly with the Windows release. Some of these tools are maintained externally and are not under the direct control of the Guiguts maintenance team. Examples are the Nu HTML Checker and ebookmaker, both of which are available as online tools in addition to the local versions bundled with Guiguts. This means that from time to time, a tool may be updated and released online when there is no plan for a new release of Guiguts. With a little effort, it is possible to update some of these tools to the latest version yourself, though you should be aware that there is potential for a mismatch between the new version of the tool and the version of Guiguts you are running. When there is a significant change that may be useful to Guiguts users, a member of the Guiguts maintenance team will attempt to notify users via the forums. Advanced users may also wish to update their tools at other times at their own risk. The purpose of this page is to give instructions on how to update the local version of several tools.
Ebookmaker
Ebookmaker has its own GitHub repository, where the developers collaborate, develop, document and store the tool. However, although the latest release of the ebookmaker Python script is available there for users who have Python installed (typically Linux and Mac users, though Windows users are able to install Python), that script will not be useful for a typical Windows Guiguts user. The Guiguts team will therefore convert ebookmaker from its Python script form into a Windows ".exe" program which is compatible with Guiguts on Windows systems - this is called "ebm_builder". The following instructions are therefore for Windows users only.
- Go to the ebm_builder releases page.
- The latest release will be at the top of the list - its version number corresponds directly to the version number of ebookmaker used to create it.
- Directly below the release description, under "Assets", download the ebookmaker zip file, e.g. by right clicking and choosing "Save link as".
- Unzip this file on your computer - inside it you will find
ebookmaker.exe
. - Make sure the old
ebookmaker.exe
in your release is safe, in case you want to return to it, as follows: Go toguiguts\tools\ebookmaker
; renameebookmaker.exe
toebookmaker_safe.exe
, or something similar. - Copy the new
ebookmaker.exe
that you unzipped earlier into theguiguts\tools\ebookmaker
folder.
Nu HTML Checker
The Nu HTML Checker (or validator) also has a GitHub repository. Unfortunately, it is not being released in dated pre-built forms in the same way as some other tools. Instead it is being "tagged" on certain dates, but to use these you will need to build the vnu.jar
file yourself - see below for outline instructions.
There is however a "latest" release, which you could download at your own risk: note that this is a development version, is not necessarily the version being used online, and may contain bugs. To get this latest (pre-release) pre-built version:
- Go to the validator releases page.
- The release at the top of the list is named "latest" and labelled "Pre-release".
- Directly below the release description, under "Assets", download the vnu.jar zip file, e.g. by right clicking and choosing "Save link as".
- Unzip this file on your computer - inside it you will find a folder named
dist
, and in that a filevnu.jar
. - Make sure the old
vnu.jar
in your release is safe, in case you want to return to it, as follows: Go toguiguts\tools\W3C
; renamevnu.jar
tovnu_safe.jar
, or something similar. - Copy the new
vnu.jar
that you unzipped earlier into theguiguts\tools\W3C
folder.
Alternatively, if you are confident with using Git, Python and shell commands, then you can download and build a tagged version as follows:
- Go to the validator tags page.
- Note the tag number - referred to below as TAG
- Create an empty temporary directory where the system can build the new version - referred to below as TEMPDIRNAME
- Execute the following in a shell (MSYS2 - Mingw64, not Mingw32, works under Windows)
git clone --branch TAG https://github.com/validator/validator.git TEMPDIRNAME
cd TEMPDIRNAME
python ./checker.py update-shallow build jar
- this takes quite a while and createsbuild/dist/vnu.jar
- Copy
build/dist/vnu.jar
into theguiguts\tools\W3C
folder after you have taken a safe copy of the version currently there.
EPUBCheck
EPUBCheck also has a GitHub repository. To update to the latest version follow the instructions below:
- Go to the EPUBCheck releases page.
- The release at the top of the list might be labelled "Pre-release". Unless you are confident that this is the version you want, ignore it - it has not been officially released, and may contain bugs. Instead, find the first release in the list that is not a pre-release; it will probably have the label "Latest".
- Directly below the release description, under "Assets", download the epubcheck zip file, e.g. by right clicking and choosing "Save link as".
- Unzip this file on your computer - inside it you will find a folder named
epubcheck-VERSION
, where VERSION will be some numbers, like "4.2.6". - Make sure the old
EPUBCheck
in your release is safe, in case you want to return to it, as follows: Go toguiguts\tools\W3C
; rename the folderepubcheck
toepubcheck_safe
, or something similar. - Copy the new
epubcheck-VERSION
folder that you unzipped earlier into theguiguts\tools\W3C
folder. - IMPORTANT: Rename the new folder you have just copied to plain
epubcheck
CSS Validator
The CSS Validator also has a GitHub repository. To update to the latest version follow the instructions below:
- Go to the CSS Validator releases page.
- The release at the top of the list might be labelled "Pre-release". Unless you are confident that this is the version you want, ignore it - it has not been officially released, and may contain bugs. Instead, find the first release in the list that is not a pre-release; it will probably have the label "Latest".
- Directly below the release description, under "Assets", download the
css-validator.jar
file, e.g. by right clicking and choosing "Save link as". - Make sure the old
CSS Validator
in your release is safe, in case you want to return to it, as follows: Go toguiguts\tools\W3C
; renamecss-validator.jar
tocss-validator_safe.jar
, or something similar. - Copy the new
css-validator.jar
folder that you downloaded earlier into theguiguts\tools\W3C
folder.
Additional dictionaries for Spell Query
- Go to the Guiguts supplementary materials page.
- Find the language you want - note that English, French and German are included with the Guiguts release anyway.
- Download the relevant zip file.
- Unzip the file - it will contain a file named
dict_LANG_user.txt
, where LANG is the two letter language code. - Copy the
dict_LANG_user.txt
file to your GGprefs folder (recommended). Alternatively, you can put it in the "data" folder under the release if you do not have a GGprefs folder. - Restart Guiguts and ensure the project language is set correctly to pick up the new dictionary