Preferences

— Customize Sigil —

The Preferences dialog gives you control over many settings in Sigil and is divided into seven sections:

To open Preferences, go to the main menu bar at the top of the screen and select Edit=>Preferences (on Mac: Sigil=>Preferences):

Image of the Preferences menu.

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

Image of Appearance Preferences.

Preview

Appearance Preferences, Preview tab.

Icon Themes

Image of how to select a different icon theme.

Main UI

Appearances Preferences for the Main User Interface tab.

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

Image of General Settings dialog.

Security

General Settings Security Tab.

Validation

General Settings, Validation Tab

Advanced

General Settings Advanced Tab

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.

Keyboard Shortcuts Preferences

To assign or remove a shortcut:

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.

Language Preferences Dialog

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.

Spellcheck Dictionaries Settings dialog.

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 Add To Default Dictionary.

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 (Tools=>Reformat HTML=>Mend All HTML Files), Sigil automatically converts all character entities to Unicode characters unless they are included in the Entities to Preserve list.

Preserve Entities Preferences dialog.

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 Tools=>Reformat HTML=>Mend All HTML Files.

Plugins

Sigil supports a wide variety of useful plugins that augment Sigil’s editing power.

Plugin Preferences and management dialog.

Toolbar buttons: Assigning a plugin to an icon shortcut.

Image of a set of 10 pulldowns used to assign a current plugin to a toolbar icon

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:

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.