Preferences
— Customize Sigil —
The Preferences dialog gives you control over many settings in Sigil and is divided into seven sections:
- Appearance
- General Settings
- Keyboard Shortcuts
- Language
- Spellcheck Dictionaries
- Preserve Entities
- Plugins
To open Preferences, go to the main menu bar at the top of the screen and select (on Mac: ):
Once the Preferences window is open, select the section you want from the list on the left. Some of the sections are further divided into tabs that run across the top. Once you are satisfied with your settings, click OK or close the window to save the current settings.
Hover your mouse over the various preference options to see if they reveal a helpful tooltip.
Appearance
Sigil offers many options for how things appear on your screen. Appearance preferences are divided into four clickable tabs running across the top of the dialog window: Code View, Preview, Icon Themes, and Main UI.
Code View
- Monospaced Code Font: Select the font size and font family used for text in the Code View window.
- Sigil’s Code View uses monospaced system fonts installed on your computer. If there is a monospaced font you would like to use that is not offered in the dropdown window, make sure it is installed on your computer.
- Insert Special Characters: Select the font size and font family used in the Insert Special Characters window.
- Colors:
- Select the color of HTML and CSS items.
- Select the color for highlighting text, the underline for misspelled words, etc.
- Choose whether matching tags are highlighted when the cursor is inside a tag.
Preview
- Fonts: Select the default font size and font family for text shown in the Preview window when none is specified in the CSS stylesheet. (“Standard” sets the overall default font.)
- Make Preview simulate a dark appearance in dark mode: Choose whether the Preview window simulates a dark appearance when your computer is in dark mode.
Icon Themes
- Select your icon theme: Sigil offers three different icon themes: Default, Fluent, and Material. Hover your mouse over the theme name to see a sample.
- Sigil also supports custom user-supplied icon themes via a custom .rcc file. Check out https://github.com/Sigil-Ebook/IconThemes for more information.
- Restart Sigil after changing your icon theme for them to take effect.
Main UI
- Main Menu Icon Size: Adjust the size of the toolbar buttons using a slider.
- High DPI Setting (Windows only):
- Detect: Detect whether any high dpi scaling should take place. This setting defers to any Qt environment variables that are set to control high dpi behavior.
- On: Turn on high dpi scaling and ignore any Qt environment variables that are set controlling high dpi behavior.
- Off: Turn off high dpi scaling regardless of if any Qt environment variables controlling high dpi behavior are set.
- Fonts: Select the font family and font size used for Sigil’s menus, buttons, etc.
- Control Book Browser Appearance: Choose whether the Book Browser shows full filepaths or abbreviated ones.
- Tweak Drag Distance (Windows only): Adjust the distance (in pixels) necessary to drag an item before a move event is triggered. This is useful if you are accidentally moving tabs with a twitch of the mouse.
- Reset All: Reset all Main UI Appearance preferences to default.
Appearance settings affect how your book is displayed in Sigil. They do NOT affect how your book is displayed on e-readers!
General Settings
General Settings are divided into four clickable tabs running across the top of the window: Basics, Security, Validation, and Advanced.
Basics
- Create New or Empty Epubs as: Choose the version of EPUB (2 or 3) that will be used when new books are created in Sigil.
- Mend Not Well Formed HTML Source Code On: When checked, Sigil will automatically mend HTML source code that is not well formed or are missing a DOCTYPE, html, head, or body element whenever you Open or Save a book. Mending is done using Google’s gumbo auto-repair parser. If ill-formed code is detected, a confirmation window will appear asking you to confirm whether you want to proceed with mending.
- Number of clipboard history items to save: Specify the number of clipboard snippets that will be saved to a list for later recall; or specify 0 to disable clipboard history.
- Set your preferred external xhtml editor: If you set a preferred external xhtml editor, it will launch whenever you click the Launch External Xhtml Editor toolbar button . This allows you to quickly and easily open and edit selected html files using an external editor (such PageEdit, notepad++, or BBEdit) with the click of a button.
Security
- Control Access by Epubs to non-multimedia remote resources: Choose whether to allow EPUBs to access non-multimedia remote resources
- Control Use of Javascript by Epubs: Choose whether to allow EPUBs to use javascript.
Validation
- EPUB2 W3C Stylesheet Validation Level: Choose the CSS level that the W3C stylesheet validation tool will use for EPUB2 books.
- EPUB3 W3C Stylesheet Validation Level: Choose the CSS level that the W3C stylesheet validation tool will use for EPUB3 books.
Advanced
- Set the temp folder that Sigil will use for your temporary EPUB files.
- If you’re using the macOS version of Sigil, you should select a folder other than /temp to avoid potential data loss issues that might occur in some macOS versions.
Keyboard Shortcuts
Sigil offers a variety of keyboard shortcuts, which you can customize to your liking. For example, if you want F12 to always open Find & Replace, you can change it here.
You can assign or re-assign a shortcut temporarily if you need a function to be easier to access for a short time.
To assign or remove a shortcut:
- Select an entry from the list of commands.
- Click in the Shortcut text box.
- Press the key combination you want to use – do not spell it out using letters, just press the key combination.
- Click Assign to set the shortcut. If the key combination is already being used for another command, an alert message showing the conflict will appear.
- To remove a shortcut, select an entry and click Remove.
- Use Reset All to change all shortcuts back to their defaults.
Use the Filter text box to easily search for shortcuts.
Note to Mac users: References to the Ctrl key in Sigil correspond to the Cmd key on the Macintosh keyboard, and references to the Meta key correspond to the Ctrl key on Mac.
This is due to Qt’s automatic remapping, which allows each platform’s most common shortcut key sequences to work as expected. For example, when Windows/Linux users press Ctrl+C, they get the Copy command, as they expect; and thanks to Qt’s automatic remapping of Ctrl to Cmd on macOS, when Mac users press Cmd+C, they get the Copy command, as they expect.
Language
Sigil has been translated into many languages.
- User Interface Language: Choose your preferred language for Sigil’s user interface. If a translation is not available for specific words, they will be shown in English.
- Default Language For Metadata: Set the default language that will be used by the Metadata Editor for new books or books that do not already have a language set.
You must restart Sigil in order for a new user interface language to take effect.
Try setting the interface to another language and restarting Sigil to see the translations volunteers have created.
Spellcheck Dictionaries
Sigil supports spellchecking and offers a variety of spellchecking options, including a choice of standard dictionaries and the use of personal user dictionaries.
- Primary Language Dictionary: Choose your primary language dictionary from a dropdown menu.
- To add new standard dictionaries (which must be in the hunspell format), click Open Preferences Location and go into the “hunspell_dictionaries” directory. Put your new dictionary files into the “hunspell_dictionaries” directory then restart Sigil.
- One source for additional dictionaries is the OpenOffice Dictionaries site. To add these dictionaries, download, extract, and copy the files (e.g. en_GB.aff, en_GB.dic, hyph_en_GB.dic) to the “hunspell_dictionaries” directory location and restart Sigil.
- Secondary Language Dictionary: Choose your secondary language dictionary.
- Highlight Misspelled Words: Choose whether misspelled words are highlighted in Code View with a wavy red underline. You will then be able to right-click on the word to select a suggested correction or add it to a dictionary.
- Check Numbers: Enabling this option will allow words that have numbers in them, such as 32nd or HTML5, to be checked for spelling.
- User Dictionaries:
- You can create your own personal user dictionaries, and even use different ones for different books and different types of words (e.g., places, names, etc.).
- If you have not created any user dictionaries, Sigil will create and enable a “default” user dictionary for you, which you can rename or delete.
- To create a new user dictionary, click on the User Dictionaries tab, click Add, then enter a name for your new dictionary:
- You can see the words in each User Dictionary by selecting the dictionary under the User Dictionaries tab, then clicking on the User Dictionary Word List tab. You will then see all the words in that dictionary, which you can add to, edit, or remove.
- To add words directly to a user dictionary, select the dictionary from the User Dictionaries tab, click on the User Dictionary Word List, then click Add. Type in as many words as you want, or paste them in from a file. Words can be separated by commas, spaces, or listed one per line.
- You can also add words to a dictionary using Spellcheck, or by right-clicking on misspelled words in Code View and selecting one of the options.
- You can copy a complete dictionary using Copy, and then rename it as needed.
- You can select which user dictionaries are enabled by marking the checkbox next to the dictionary’s name. Multiple dictionaries can be enabled at the same time. All enabled dictionaries will be used when checking words to see if they are misspelled.
The default dictionary is the one that is selected and highlighted. It is also identified at the bottom left corner of User Dictionaries section of the Preferences window. The default dictionary is used when you add words using the Add Misspelled Word shortcut or the context menu item .
An enabled dictionary is marked with a checkmark to the left. While only one user dictionary can be selected and set as the default at any one time, mulitiple dictionaries can be enabled. All enabled dictionaries are used when spellchecking is run.
Preserve Entities
When you run Mend (), Sigil automatically converts all character entities to Unicode characters unless they are included in the Entities to Preserve list.
- To preserve specific entities and prevent Mend from converting them to Unicode characters, click Add, and add them to the Entities to Preserve list. Multiple entities can be input at one time when separated by spaces, line breaks, or commas.
- Use Remove or Remove All to remove entities from the list. Entities not on the list will be converted to Unicode characters on Mend.
Please note that you can’t use named entities (e.g. &nsbp;) in EPUB3 books; you must use numerical entities (e.g.,  ) instead.
If you have Mend Not Well Formed HTML Source Code turned on for Open or Save, and the source code is well formed, entities will not be automatically converted (because entities are perfectly valid code). To convert entities in html files with well formed code, you must manually invoke .
Plugins
Sigil supports a wide variety of useful plugins that augment Sigil’s editing power.
- Use Bundled Python: Enable this option to select the Python interpreter bundled with Sigil (recommended). Please note that if you disable this option, you will need to select an external Python 3 interpreter.
- Path to Interpreter Executable: This option is intended for plugin developers; you’ll also need to set it if Use Bundled Python is disabled (or can’t be selected). Click Auto or Set to choose an external Python 3 interpreter.
- Add/Remove
- Add Plugin: Click this button to install a plugin.
- Remove Plugin: Click this button to uninstall the currently selected plugin.
- Remove All Plugins: Click this button to uninstall all plugins.
- Shortcuts
- Assign plugins to the 10 plugin buttons on the toolbar. When you click on a plugin button, the assigned plugin will launch automatically.
Toolbar buttons:
Open Preferences Location
The Open Preferences Location button at the bottom left corner of all Preferences screens will open the directory containing all of your preferences files. You can copy the files for backup or for sharing with others.
The preferences location will likely be in the following locations:
Windows:
…\Local Settings\Application Data\sigil-ebook\sigil
Mac:
/Users/[Username]/Library/Application\ Support/sigil-ebook/sigil/
Linux:
$HOME/.local/share/sigil-ebook/sigil
The files/folders you may see include:
- automate01.txt, automate02.txt, automate03.txt: Optional user automated task lists for use with the Run Automate List toolbar buttons.
- custom_preview_style.css: Optional user CSS for Sigil’s Preview window.
- hunspell_dictionaries: Where any standard dictionaries you add are stored.
- local-devtools: Where data for Preview’s Inspector is stored.
- local-storage: Where JavaScript local storage data is stored.
- plugins: Where any plugins you install are stored.
- plugins_prefs: Where plugin preferences files are stored.
- qt_styles.qss: Optional custom Qt styles for Sigil GUI elements.
- QtWebEngine: Where data for Preview is stored.
- repo: Where checkpoint versions are stored.
- sgc-toc.css: Optional custom TOC stylesheet for EPUB2 books.
- sgc-nav.css: Optional custom TOC stylesheet for EPUB3 books.
- sigil_clips.ini: Your saved Clips.
- sigil_index.ini: Your Index entries.
- sigil_searches.ini: Your Saved Searches (Sigil 1.5.0 and earlier).
- sigil_searches_v2.ini: Your Saved Searches (Sigil 1.6.0 and later).
- sigil.ini: General configuration information for Sigil.
- user_dictionaries: Where any personal user dictionaries are stored.
- user-template2.css, user-template3.css: Optional user CSS templates for use with the Add Blank Stylesheet command.
- user-template2.xhtml, user-template3.xhtml: Optional user XHTML templates for use with the Add Blank HTML File command.
Change the Font Size of GUI Controls
Since Sigil is a Qt app, you can customize the font size of some GUI controls by creating a qt_styles.qss stylesheet file and placing it in the Sigil preferences folder. (qt_styles.qss needs to contain valid Qt style sheet declarations.)
For example, the following styles will increase the font size of the fields in the Find & Replace window:
QLabel { font-size: 16pt }
QLineEdit { font-size: 16pt }
QComboBox { font-size: 16pt }
Customizing the Background of Preview
Since Preview is technically a browser showing rendered (x)html/CSS, the only way to alter font and/or background colors is by specifying that info via styles: either inline or via CSS from within the EPUB.
The only exception to the above is that a custom user-specified CSS file will be applied to Preview (no matter what EPUB is open) if a file named custom_preview_style.css exists in the Sigil preferences folder and contains valid CSS.
For example, the following styles will give Preview a light gray background with blue text:
body {
background-color: #D3D3D3;
color: blue;
}
Note: Applying such CSS can possibly adversely affect the visibility of some styled elements within an EPUB, depending on what CSS has already been applied via the EPUB and how.