2014-06-18 17:18:27 +00:00
|
|
|
-- To make configuration changes that persists between (nightly) releases,
|
|
|
|
-- copy defaults.lua to defaults.persistent.lua and make the changes there.
|
|
|
|
|
2013-07-01 06:41:33 +00:00
|
|
|
-- number of page turns between full screen refresh
|
2013-09-14 07:27:11 +00:00
|
|
|
-- default to do a full refresh on every 6 page turns
|
2013-07-01 06:41:33 +00:00
|
|
|
DRCOUNTMAX = 6
|
|
|
|
|
2013-09-14 07:27:11 +00:00
|
|
|
-- number of pages for hinting
|
2014-03-09 08:48:13 +00:00
|
|
|
-- default to pre-rendering 1 page
|
|
|
|
DHINTCOUNT = 1
|
2013-09-14 07:27:11 +00:00
|
|
|
|
2013-07-03 06:19:10 +00:00
|
|
|
-- full screen mode, 1 for true, 0 for false
|
|
|
|
DFULL_SCREEN = 1
|
|
|
|
|
|
|
|
-- scroll mode, 1 for true, 0 for false
|
2016-07-17 05:47:09 +00:00
|
|
|
DSCROLL_MODE = 1
|
2013-07-03 06:19:10 +00:00
|
|
|
|
2013-07-01 06:41:33 +00:00
|
|
|
-- default gamma setting:
|
|
|
|
DGLOBALGAMMA = 1.0
|
|
|
|
|
|
|
|
-- DjVu page rendering mode (used in djvu.c:drawPage())
|
|
|
|
-- See comments in djvureader.lua:DJVUReader:select_render_mode()
|
|
|
|
DRENDER_MODE = 0 -- 0 is COLOUR
|
|
|
|
|
2014-01-19 03:40:34 +00:00
|
|
|
-- minimum cache size
|
|
|
|
DGLOBAL_CACHE_SIZE_MINIMUM = 1024*1024*10
|
|
|
|
|
|
|
|
-- proportion of system free memory used as global cache
|
2015-10-21 15:04:46 +00:00
|
|
|
DGLOBAL_CACHE_FREE_PROPORTION = 0.4
|
2014-01-19 03:40:34 +00:00
|
|
|
|
|
|
|
-- maximum cache size
|
2015-10-21 15:04:46 +00:00
|
|
|
DGLOBAL_CACHE_SIZE_MAXIMUM = 1024*1024*60
|
2013-07-01 06:41:33 +00:00
|
|
|
|
|
|
|
-- background colour in non scroll mode: 8 = gray, 0 = white, 15 = black
|
|
|
|
DBACKGROUND_COLOR = 0
|
|
|
|
|
|
|
|
-- outer page colour in scroll mode: 8 = gray, 0 = white, 15 = black
|
|
|
|
DOUTER_PAGE_COLOR = 0
|
|
|
|
|
|
|
|
-- supported view mode includes: "scroll" and "page"
|
|
|
|
DCREREADER_VIEW_MODE = "page"
|
|
|
|
|
2013-09-14 11:35:32 +00:00
|
|
|
-- show dimmed area to indicate page overlap in "page" view mode,
|
|
|
|
-- default to false
|
|
|
|
DSHOWOVERLAP = false
|
|
|
|
|
2013-10-13 07:50:34 +00:00
|
|
|
-- show hidden files in filemanager
|
|
|
|
-- default to false
|
|
|
|
DSHOWHIDDENFILES = false
|
|
|
|
|
2014-01-03 15:38:47 +00:00
|
|
|
-- landscape clockwise rotation
|
|
|
|
-- default to true, set to false for counterclockwise rotation
|
|
|
|
DLANDSCAPE_CLOCKWISE_ROTATION = true
|
|
|
|
|
2014-07-15 10:16:41 +00:00
|
|
|
-- default minimum screen height for reading with 2 pages in landscape mode
|
|
|
|
DCREREADER_TWO_PAGE_THRESHOLD = 7
|
|
|
|
|
2014-02-16 11:42:50 +00:00
|
|
|
-- page overlap pixels
|
|
|
|
DOVERLAPPIXELS = 30
|
|
|
|
|
2014-12-03 04:55:53 +00:00
|
|
|
-- timeout to show link rectangle around links
|
|
|
|
-- default to 0.5 second
|
|
|
|
-- set to 0 to disable showing rectangle and follow link immediately
|
|
|
|
FOLLOW_LINK_TIMEOUT = 0.5
|
|
|
|
|
2013-12-15 09:02:52 +00:00
|
|
|
-- customizable tap zones(rectangles)
|
|
|
|
-- x: x coordinate of top left corner in proportion of screen width
|
|
|
|
-- y: y coordinate of top left corner in proportion of screen height
|
|
|
|
-- w: width of tap zone in proportion of screen width
|
|
|
|
-- h: height of tap zone in proportion of screen height
|
2017-04-24 06:33:12 +00:00
|
|
|
DTAP_ZONE_MENU = {x = 1/8, y = 0, w = 3/4, h = 1/8}
|
2017-08-05 19:49:00 +00:00
|
|
|
DTAP_ZONE_CONFIG = {x = 1/8, y = 7/8, w = 3/4, h = 1/8}
|
2018-07-24 19:29:44 +00:00
|
|
|
DTAP_ZONE_MINIBAR = {x = 0, y = 31/32, w = 1, h = 1/32}
|
2013-12-15 09:02:52 +00:00
|
|
|
DTAP_ZONE_FORWARD = {x = 1/4, y = 0, w = 3/4, h = 1}
|
|
|
|
DTAP_ZONE_BACKWARD = {x = 0, y = 0, w = 1/4, h = 1}
|
2013-12-17 11:53:43 +00:00
|
|
|
DTAP_ZONE_BOOKMARK = {x = 7/8, y = 0, w = 1/8, h = 1/8}
|
|
|
|
DTAP_ZONE_FLIPPING = {x = 0, y = 0, w = 1/8, h = 1/8}
|
2014-07-03 16:12:41 +00:00
|
|
|
DDOUBLE_TAP_ZONE_NEXT_CHAPTER = {x = 6/8, y = 0, w = 2/8, h = 2/8}
|
|
|
|
DDOUBLE_TAP_ZONE_PREV_CHAPTER = {x = 0, y = 0, w = 2/8, h = 2/8}
|
|
|
|
|
|
|
|
-- behaviour of swipes
|
|
|
|
DCHANGE_WEST_SWIPE_TO_EAST = false
|
|
|
|
DCHANGE_EAST_SWIPE_TO_WEST = false
|
2013-12-15 09:02:52 +00:00
|
|
|
|
2013-07-01 06:41:33 +00:00
|
|
|
-- koptreader config defaults
|
2014-03-13 13:52:43 +00:00
|
|
|
DKOPTREADER_CONFIG_FONT_SIZE = 1.0 -- range from 0.1 to 3.0
|
|
|
|
DKOPTREADER_CONFIG_TEXT_WRAP = 0 -- 1 = on, 0 = off
|
|
|
|
DKOPTREADER_CONFIG_TRIM_PAGE = 1 -- 1 = auto, 0 = manual
|
|
|
|
DKOPTREADER_CONFIG_DETECT_INDENT = 1 -- 1 = enable, 0 = disable
|
|
|
|
DKOPTREADER_CONFIG_DEFECT_SIZE = 1.0 -- range from 0.0 to 3.0
|
|
|
|
DKOPTREADER_CONFIG_PAGE_MARGIN = 0.10 -- range from 0.0 to 1.0
|
|
|
|
DKOPTREADER_CONFIG_LINE_SPACING = 1.2 -- range from 0.5 to 2.0
|
|
|
|
DKOPTREADER_CONFIG_RENDER_QUALITY = 1.0 -- range from 0.5 to 2.0
|
|
|
|
DKOPTREADER_CONFIG_AUTO_STRAIGHTEN = 0 -- range from 0 to 10
|
|
|
|
DKOPTREADER_CONFIG_JUSTIFICATION = 3 -- -1 = auto, 0 = left, 1 = center, 2 = right, 3 = full
|
|
|
|
DKOPTREADER_CONFIG_MAX_COLUMNS = 2 -- range from 1 to 4
|
|
|
|
DKOPTREADER_CONFIG_CONTRAST = 1.0 -- range from 0.2 to 2.0
|
2013-07-01 06:41:33 +00:00
|
|
|
|
2013-07-19 19:33:58 +00:00
|
|
|
-- word spacing for reflow
|
2014-08-17 19:51:16 +00:00
|
|
|
DKOPTREADER_CONFIG_WORD_SPACINGS = {0.05, -0.2, 0.375} -- range from (+/-)0.05 to (+/-)0.5
|
|
|
|
DKOPTREADER_CONFIG_DEFAULT_WORD_SPACING = -0.2 -- range from (+/-)0.05 to (+/-)0.5
|
2013-07-19 18:46:51 +00:00
|
|
|
-- document languages for OCR
|
2013-10-13 15:08:37 +00:00
|
|
|
DKOPTREADER_CONFIG_DOC_LANGS_TEXT = {"English", "Chinese"}
|
2014-03-13 13:52:43 +00:00
|
|
|
DKOPTREADER_CONFIG_DOC_LANGS_CODE = {"eng", "chi_sim"} -- language code, make sure you have corresponding training data
|
|
|
|
DKOPTREADER_CONFIG_DOC_DEFAULT_LANG_CODE = "eng" -- that have filenames starting with the language codes
|
2013-07-19 19:33:58 +00:00
|
|
|
|
2013-10-16 09:06:28 +00:00
|
|
|
-- crereader font sizes
|
|
|
|
-- feel free to add more entries in this list
|
2016-02-24 08:02:34 +00:00
|
|
|
DCREREADER_CONFIG_FONT_SIZES = {12, 16, 20, 22, 24, 26, 28, 30, 34, 38, 44} -- option range from 12 to 44
|
2014-01-03 03:23:11 +00:00
|
|
|
DCREREADER_CONFIG_DEFAULT_FONT_SIZE = 22 -- default font size
|
2013-10-16 09:06:28 +00:00
|
|
|
|
2013-12-28 10:39:42 +00:00
|
|
|
-- crereader margin sizes
|
|
|
|
-- margin {left, top, right, bottom} in pixels
|
2014-01-08 07:26:44 +00:00
|
|
|
DCREREADER_CONFIG_MARGIN_SIZES_SMALL = {5, 10, 5, 10}
|
2014-01-16 10:32:09 +00:00
|
|
|
DCREREADER_CONFIG_MARGIN_SIZES_MEDIUM = {10, 15, 10, 15}
|
|
|
|
DCREREADER_CONFIG_MARGIN_SIZES_LARGE = {20, 20, 20, 20}
|
2019-03-01 11:55:55 +00:00
|
|
|
DCREREADER_CONFIG_MARGIN_SIZES_X_LARGE = {30, 30, 30, 30}
|
|
|
|
DCREREADER_CONFIG_MARGIN_SIZES_XX_LARGE = {50, 50, 50, 50}
|
|
|
|
DCREREADER_CONFIG_MARGIN_SIZES_XXX_LARGE = {70, 70, 70, 70}
|
|
|
|
DCREREADER_CONFIG_MARGIN_SIZES_HUGE = {100, 100, 100, 100}
|
|
|
|
DCREREADER_CONFIG_MARGIN_SIZES_X_HUGE = {140, 140, 140, 140}
|
2013-12-28 10:39:42 +00:00
|
|
|
|
2018-03-11 13:54:17 +00:00
|
|
|
-- crereader font gamma (no longer used)
|
|
|
|
-- DCREREADER_CONFIG_LIGHTER_FONT_GAMMA = 10
|
|
|
|
-- DCREREADER_CONFIG_DEFAULT_FONT_GAMMA = 15
|
|
|
|
-- DCREREADER_CONFIG_DARKER_FONT_GAMMA = 25
|
2014-08-17 13:45:48 +00:00
|
|
|
|
|
|
|
-- crereader line space percentage
|
2019-03-14 23:34:46 +00:00
|
|
|
DCREREADER_CONFIG_LINE_SPACE_PERCENT_X_TINY = 70
|
|
|
|
DCREREADER_CONFIG_LINE_SPACE_PERCENT_TINY = 75
|
|
|
|
DCREREADER_CONFIG_LINE_SPACE_PERCENT_XX_SMALL = 80
|
|
|
|
DCREREADER_CONFIG_LINE_SPACE_PERCENT_X_SMALL = 85
|
2014-08-17 13:45:48 +00:00
|
|
|
DCREREADER_CONFIG_LINE_SPACE_PERCENT_SMALL = 90
|
2019-03-14 23:34:46 +00:00
|
|
|
DCREREADER_CONFIG_LINE_SPACE_PERCENT_L_SMALL = 95
|
2014-08-17 13:45:48 +00:00
|
|
|
DCREREADER_CONFIG_LINE_SPACE_PERCENT_MEDIUM = 100
|
2019-03-14 23:34:46 +00:00
|
|
|
DCREREADER_CONFIG_LINE_SPACE_PERCENT_L_MEDIUM = 105
|
|
|
|
DCREREADER_CONFIG_LINE_SPACE_PERCENT_XL_MEDIUM = 110
|
|
|
|
DCREREADER_CONFIG_LINE_SPACE_PERCENT_XXL_MEDIUM = 115
|
2014-08-17 13:45:48 +00:00
|
|
|
DCREREADER_CONFIG_LINE_SPACE_PERCENT_LARGE = 120
|
2019-03-14 23:34:46 +00:00
|
|
|
DCREREADER_CONFIG_LINE_SPACE_PERCENT_X_LARGE = 125
|
|
|
|
DCREREADER_CONFIG_LINE_SPACE_PERCENT_XX_LARGE = 130
|
2014-08-17 13:45:48 +00:00
|
|
|
|
2018-07-03 13:29:04 +00:00
|
|
|
-- word gap percentage
|
|
|
|
DCREREADER_CONFIG_WORD_GAP_SMALL = 50
|
|
|
|
DCREREADER_CONFIG_WORD_GAP_MEDIUM = 75
|
|
|
|
DCREREADER_CONFIG_WORD_GAP_LARGE = 100
|
|
|
|
|
2014-02-12 07:43:38 +00:00
|
|
|
-- crereader progress bar
|
|
|
|
-- 0 for top "full" progress bar
|
|
|
|
-- 1 for bottom "mini" progress bar
|
|
|
|
DCREREADER_PROGRESS_BAR = 1
|
|
|
|
|
2014-07-02 08:30:22 +00:00
|
|
|
-- configure "mini" progress bar
|
2014-08-11 03:09:45 +00:00
|
|
|
DMINIBAR_TOC_MARKER_WIDTH = 2 -- Looses usefulness > 3
|
|
|
|
DMINIBAR_HEIGHT = 7 -- Should be smaller than DMINIBAR_CONTAINER_HEIGHT
|
|
|
|
DMINIBAR_CONTAINER_HEIGHT = 14 -- Larger means more padding at the bottom, at the risk of eating into the last line
|
2014-09-27 10:59:33 +00:00
|
|
|
DMINIBAR_FONT_SIZE = 14
|
|
|
|
|
2016-09-22 08:16:52 +00:00
|
|
|
-- change this to any numerical value if you want to automatically save settings when turning pages
|
2013-12-27 15:18:16 +00:00
|
|
|
DAUTO_SAVE_PAGING_COUNT = nil
|
|
|
|
|
2014-01-10 03:12:51 +00:00
|
|
|
-- dictionary font size
|
|
|
|
DDICT_FONT_SIZE = 20
|
|
|
|
|
2014-06-11 18:49:24 +00:00
|
|
|
-- Frontlight decrease of sensitivity for two-fingered pan gesture,
|
|
|
|
-- e.g. 2 changes the sensitivity by 1/2, 3 by 1/3 etc.
|
|
|
|
FRONTLIGHT_SENSITIVITY_DECREASE = 2
|
|
|
|
|
2016-04-16 10:21:49 +00:00
|
|
|
-- Normally, KOReader will present file lists sorted in case insensitive manner
|
2014-11-16 18:27:31 +00:00
|
|
|
-- when presenting an alphatically sorted list. So the Order is "A, b, C, d".
|
|
|
|
-- You can switch to a case sensitive sort ("A", "C", "b", "d") by disabling
|
|
|
|
-- insensitive sort
|
|
|
|
DALPHA_SORT_CASE_INSENSITIVE = true
|
|
|
|
|
2014-08-07 07:13:27 +00:00
|
|
|
-- Set a path to a folder that is filled by Calibre (must contain the file metadata.calibre)
|
|
|
|
-- e.g.
|
2014-08-09 06:52:20 +00:00
|
|
|
-- "/mnt/sd/.hidden" for Kobo with files in ".hidden" on the SD card
|
|
|
|
-- "/mnt/onboard/MyPath" for Kobo with files in "MyPath" on the device itself
|
|
|
|
-- "/mnt/us/documents/" for Kindle files in folder "documents"
|
2014-08-16 20:28:29 +00:00
|
|
|
SEARCH_LIBRARY_PATH = ""
|
|
|
|
SEARCH_LIBRARY_PATH2 = ""
|
2014-08-07 07:13:27 +00:00
|
|
|
|
|
|
|
-- Search parameters
|
|
|
|
SEARCH_CASESENSITIVE = false
|
|
|
|
|
|
|
|
SEARCH_AUTHORS = true
|
|
|
|
SEARCH_TITLE = true
|
|
|
|
SEARCH_TAGS = true
|
|
|
|
SEARCH_SERIES = true
|
|
|
|
SEARCH_PATH = true
|
|
|
|
|
2014-08-12 11:09:22 +00:00
|
|
|
-- Light parameter for Kobo
|
2017-09-04 19:05:05 +00:00
|
|
|
KOBO_LIGHT_ON_START = -2 -- -1, -2 or 0-100.
|
|
|
|
-- -1 uses previous koreader session saved brightness
|
|
|
|
-- -2 uses 'Kobo eReader.conf' brighness,
|
|
|
|
-- other sets light on start to a fix brighness
|
2016-01-07 14:30:28 +00:00
|
|
|
KOBO_SYNC_BRIGHTNESS_WITH_NICKEL = true -- Save brightness set in KOreader
|
|
|
|
-- with nickel's 'Kobo eReader.conf'
|
2014-08-07 07:13:27 +00:00
|
|
|
|
2014-10-05 08:04:49 +00:00
|
|
|
-- Network proxy settings
|
|
|
|
-- proxy url should be a string in the format of "http://localhost:3128"
|
|
|
|
-- proxy authentication is not supported yet.
|
|
|
|
NETWORK_PROXY = nil
|
|
|
|
|
2015-06-02 05:07:17 +00:00
|
|
|
-- Experimental features
|
|
|
|
-- Use turbo library to handle async HTTP request
|
|
|
|
DUSE_TURBO_LIB = false
|
|
|
|
|
2015-06-06 09:21:39 +00:00
|
|
|
-- Custom font dir for Android
|
|
|
|
ANDROID_FONT_DIR = "/system/fonts;/sdcard/koreader/fonts"
|
|
|
|
|
2013-07-01 06:41:33 +00:00
|
|
|
-- ####################################################################
|
|
|
|
-- following features are not supported right now
|
|
|
|
-- ####################################################################
|
|
|
|
|
|
|
|
-- set panning distance
|
|
|
|
--DSHIFT_X = 100
|
|
|
|
--DSHIFT_Y = 50
|
|
|
|
|
|
|
|
-- step to change zoom manually, default = 16%
|
|
|
|
--DSTEP_MANUAL_ZOOM = 16
|
|
|
|
--DPAN_BY_PAGE = false -- using shift_[xy] or width/height
|
|
|
|
--DPAN_MARGIN = 5 -- horizontal margin for two-column zoom (in pixels)
|
|
|
|
--DPAN_OVERLAP_VERTICAL = 30
|
|
|
|
|
|
|
|
-- tile cache configuration:
|
|
|
|
--DCACHE_MAX_MEMSIZE = 1024*1024*5 -- 5MB tile cache
|
|
|
|
--DCACHE_MAX_TTL = 20 -- time to live
|
|
|
|
|
|
|
|
-- renderer cache size
|
|
|
|
--DCACHE_DOCUMENT_SIZE = 1024*1024*8 -- FIXME random, needs testing
|
|
|
|
|
|
|
|
-- default value for battery level logging
|
|
|
|
--DBATTERY_LOGGING = false
|
|
|
|
|
|
|
|
|
|
|
|
-- delay for info messages in ms
|
|
|
|
--DINFO_NODELAY=0
|
|
|
|
--DINFO_DELAY=1500
|
|
|
|
|
|
|
|
-- toggle defaults
|
|
|
|
--DUNIREADER_SHOW_OVERLAP_ENABLE = true
|
|
|
|
--DUNIREADER_SHOW_LINKS_ENABLE = true
|
|
|
|
--DUNIREADER_COMICS_MODE_ENABLE = true
|
|
|
|
--DUNIREADER_RTL_MODE_ENABLE = false
|
|
|
|
--DUNIREADER_PAGE_MODE_ENABLE = false
|
|
|
|
|
|
|
|
--DDJVUREADER_SHOW_OVERLAP_ENABLE = true
|
|
|
|
--DDJVUREADER_SHOW_LINKS_ENABLE = false
|
|
|
|
--DDJVUREADER_COMICS_MODE_ENABLE = true
|
|
|
|
--DDJVUREADER_RTL_MODE_ENABLE = false
|
|
|
|
--DDJVUREADER_PAGE_MODE_ENABLE = false
|
|
|
|
|
|
|
|
--DKOPTREADER_SHOW_OVERLAP_ENABLE = true
|
|
|
|
--DKOPTREADER_SHOW_LINKS_ENABLE = false
|
|
|
|
--DKOPTREADER_COMICS_MODE_ENABLE = false
|
|
|
|
--DKOPTREADER_RTL_MODE_ENABLE = false
|
|
|
|
--DKOPTREADER_PAGE_MODE_ENABLE = false
|
|
|
|
|
|
|
|
--DPICVIEWER_SHOW_OVERLAP_ENABLE = false
|
|
|
|
--DPICVIEWER_SHOW_LINKS_ENABLE = false
|
|
|
|
--DPICVIEWER_COMICS_MODE_ENABLE = true
|
|
|
|
--DPICVIEWER_RTL_MODE_ENABLE = false
|
|
|
|
--DPICVIEWER_PAGE_MODE_ENABLE = false
|
|
|
|
|
|
|
|
|
2014-03-13 13:52:43 +00:00
|
|
|
--DKOPTREADER_CONFIG_MULTI_THREADS = 1 -- 1 = on, 0 = off
|
|
|
|
--DKOPTREADER_CONFIG_SCREEN_ROTATION = 0 -- 0, 90, 180, 270 degrees
|