-
A collection of custom configuration profiles for PocketBook e-readers (ERA, Verse, Touch Lux, InkPad, etc.). Each profile contains tuned margins.cfg and linespacing.cfg files designed to mimic different reading environments (Kindle, Kobo, KOReader, and a balanced βNormalβ preset).
These profiles allow you to swap global PocketBook text rendering styles instantly by replacing the config files in system/reader/.
No firmware modification or third-party tools required.
-
Additionally, there is an optional bash script to apply these changes automatically.
-
A stylesheet.css, to apply to books in Calibre, whose default formatting is less than ideal, and ignores any changes you might apply within the Pocketbook app or KOReader.
Pocketbook_settings/
β
βββ stylesheet.css
βββ pb-profile.sh
β
βββ Default_backup/
β βββ linespacing-default.cfg
β βββ margins.cfg
β
βββ Kindle/
β βββ linespacing-kindle.cfg
β βββ margins-kindle.cfg
β
βββ Kobo/
β βββ linespacing-kobo.cfg
β βββ margins-kobo.cfg
β
βββ KOReader/
β βββ linespacing-koreader.cfg
β βββ margins-koreader.cfg
β
βββ Normal/
βββ linespacing-normal.cfg
βββ margins-normal.cfg
If you use custom fonts on your PocketBook, install them manually into system/fonts/.
Balanced and comfortable. A clean middle-ground layout between Kindle compactness and Kobo airiness. Good for general reading and most fonts.
Compact, efficient layout. Tighter line spacing and margins similar to modern Kindle devices. Maximizes words per page without looking cramped.
Airy, wide margins and open spacing. Mimics Koboβs trade-paperback feel. Great for serif fonts and relaxed reading.
Moderate, flexible spacing. More open than Normal but less wide than Kobo. Inspired by KOReaderβs most commonly used settings.
Your original PocketBook config files β use these if you ever need to restore stock behavior.
- Connect your PocketBook to your computer via USB.
- Open the deviceβs storage.
- Navigate to:
system/reader/
- Backup the existing files (optional but recommended):
linespacing.cfg
margins.cfg
- Choose one of the profiles (Normal, Kindle, Kobo, KOReader).
- Copy that profileβs two .cfg files into:
system/reader/
- Rename them to exactly:
linespacing.cfg
margins.cfg
- Safely eject the PocketBook.
- Restart the device.
Your new global reading layout will now be active for all EPUBs.
- PocketBook
.cfgfiles do not support comments (#, //, etc.). - Do not delete unused keys (e.g., *-panel, *-pager), or the device may revert settings to defaults.
- Percentages (%) represent screen-relative margins/line heights, not CSS units.
- Changes require a device reboot to take effect.
Why multiple variants (pager, panel, pager-panel)?
- PocketBook uses several internal renderers.
- Some books or modes trigger alternate render paths; keeping the same values across all variants ensures the layout stays consistent.
Which profiles work best with which fonts?
- Kindle: Bookerly, Ember, Roboto, Inter
- Kobo: Noto Serif, Merriweather, Literata, Georgia clones
- Normal: Works with almost any font
- KOReader-style: Fonts with larger x-height (Inter, Atkinson, Lora)
Do these override book CSS?
- Yes β margins and line spacing defined here are applied globally by PocketBookβs renderer.
- If a book contains extreme inline CSS, cleaning it in Calibre may still help.
If you want to quickly swap between margin/line-spacing profiles without manually copying files each time, you can install an optional macOS helper script.
This script:
- detects your PocketBook automatically
- lets you pick a profile (Normal / Kindle / Kobo / KOReader)
- copies the correct linespacing.cfg and margins.cfg
- renames them automatically for the PocketBook
- and exits cleanly
This is run on your Mac, not on the device.
The script assumes two things:
- Your PocketBook mounts as
/Volumes/POCKETBOOK - Your settings repo lives at
~/Pocketbook_settings
If either of these paths is different on your system, you must edit the script before running it.
In the script, look for:
PROFILES_DIR="$HOME/Pocketbook_settings"
DEVICE_MOUNT="/Volumes/POCKETBOOK"
and change them accordingly.
Example:
If your repo is in: ~/Documents/Pocketbook_settings
change:
PROFILES_DIR="$HOME/Pocketbook_settings"
to:
PROFILES_DIR="$HOME/Documents/Pocketbook_settings"
And if your PocketBook mounts as: /Volumes/ERA
change:
DEVICE_MOUNT="/Volumes/POCKETBOOK"
to:
DEVICE_MOUNT="/Volumes/ERA"
β Do not skip this step!
If these paths are wrong:
- the script wonβt run
- or worse: it may copy files to the wrong location
- Copy the script into your repo
Save the script from this repo as:
pb-profile.sh
and make it executable:
chmod +x pb-profile.sh
You can run it directly:
./pb-profile.sh
If you want pb-profile available everywhere in Terminal:
- Move it into /usr/local/bin
sudo mv pb-profile.sh /usr/local/bin/pb-profile
sudo chmod +x /usr/local/bin/pb-profile
Now you can run:
pb-profile
from any folder.
Some macOS setups (especially M1/M2/M3 machines) may not include /usr/local/bin in PATH by default.
Check:
echo $PATH
If you donβt see /usr/local/bin, add it:
For zsh (default macOS shell):
echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
Plug in your PocketBook (should mount as a volume)
- Run:
pb-profile
- Choose the profile number
- Eject and reboot the device to apply the new settings
Many EPUBs, especially indie releases and older commercial ones, include aggressive CSS that overrides margins, spacing, and line height in ways that make them unreadable on PocketBook.
- To fix this, you can use the provided:
stylesheet.css
This file includes clean, minimal typography rules that restore:
- proper margins
- paragraph spacing
- sensible line height
- no βfalling off the edgeβ text
- consistent indentation
- no forced zero-spacing between paragraphs
- no quirky author-supplied overrides
You apply this per book, inside Calibre.
- Open the book in Calibreβs editor
Right-click the book β Edit Book
This opens the EPUB contents.
- Replace the main CSS with your own
-
Find the stylesheet in the left file pane.
- Itβs usually named:
stylesheet.cssstyle.cssstyles.cssbook.css
- Itβs usually named:
-
Open it.
-
Select all,copy, andpastethe contents of yourstylesheet.cssfrom this repo. -
Save.
-
A lot of books include chunks of CSS inside the HTML itself, like:
<style>
div#book-inner * {
margin-top: 0 !important;
margin-bottom: 0 !important;
}
</style>
These override everything, even good CSS.
To remove them:
- In the Calibre editor, press
- Search β Search & Replace (Ctrl+F)
- In the Search box, choose mode:
- Regular Expression
- Use this pattern:
<style[\s\S]*?</style>
- Replace with nothing.
- Press Replace All.
- Save.
This clears destructive inline CSS while leaving the actual book markup intact.
Often the first βcontent pageβ is buried among title pages and copyright leaves.
To clean up the book and confirm the start of the real content:
-
In the Calibre editor, expand Text on the left.
-
Look for the first file that actually contains chapters or narrative text. Usually named something like:
chapter1.xhtmlbody.xhtmlsection0001.xhtml
-
Check this file for:
- inline
<style>tags - custom zero-margin
<p style="...">blocks - weird
<div>wrappers with forced spacing
- inline
-
Remove or normalize these as needed.
Use the stylesheet + cleanup when:
- margins wonβt change
- line spacing is stuck
- paragraphs are smashed together
- text sits flush against the bezel
- βall whitespace removedβ bugs
- unusual or old EPUB formatting
- KOReader or PocketBook canβt override the CSS
- This restores each book to a clean typographic baseline.