aboutsummaryrefslogtreecommitdiffstats
path: root/epy.py
diff options
context:
space:
mode:
authorwustho <benawiadha@gmail.com>2020-04-19 19:34:12 +0700
committerwustho <benawiadha@gmail.com>2020-04-19 19:34:12 +0700
commit72c756fb560fdc048cb78693c6168ea337837686 (patch)
tree20b0f89c1e39021378f9ff9a280aa698716e7526 /epy.py
parenta27b7854d96bd2238e2c87d10d99d5e1b4084e63 (diff)
downloadepy-72c756fb560fdc048cb78693c6168ea337837686.tar.gz
Renamed ToC --> TableOfContents.
Diffstat (limited to 'epy.py')
-rwxr-xr-xepy.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/epy.py b/epy.py
index 1d0bf42..6349216 100755
--- a/epy.py
+++ b/epy.py
@@ -65,7 +65,7 @@ CFG = {
"SetWidth": "=",
"Metadata": "M",
"DefineWord": "d",
- "ToC": "t",
+ "TableOfContents": "t",
"Follow": "f",
"OpenImage": "o",
"RegexSearch": "/",
@@ -91,7 +91,7 @@ K = {
"PageDown": {curses.KEY_NPAGE, ord(" "), curses.KEY_RIGHT},
"BeginningOfCh": {curses.KEY_HOME},
"EndOfCh": {curses.KEY_END},
- "ToC": {9, ord("\t")},
+ "TableOfContents": {9, ord("\t")},
"Follow": {10},
"Quit": {3, 27, 304}
}
@@ -631,7 +631,7 @@ def parse_keys():
except KeyError:
K[i] = {parsedk}
WINKEYS = {curses.KEY_RESIZE}|K["Metadata"]|K["Help"]|\
- K["ToC"]|K["ShowBookmarks"]
+ K["TableOfContents"]|K["ShowBookmarks"]
def savestate(file, index, width, pos, pctg):
@@ -672,7 +672,7 @@ def pgend(tot, winhi):
@choice_win()
def toc(src, index):
- return "Table of Contents", src, index, K["ToC"]
+ return "Table of Contents", src, index, K["TableOfContents"]
@text_win
@@ -1204,12 +1204,12 @@ def reader(ebook, index, width, y, pctg, sect):
y = toc_secid[toc_sect[ntoc]]
except (KeyError, IndexError):
y = pgend(totlines, rows)
- elif k in K["ToC"]:
+ elif k in K["TableOfContents"]:
if ebook.toc_entries == [[], [], []]:
k = errmsg(
"Table of Contents",
- "N/A: ToC is unavailable for this book.",
- K["ToC"]
+ "N/A: TableOfContents is unavailable for this book.",
+ K["TableOfContents"]
)
continue
ntoc = find_curr_toc_id(toc_idx, toc_sect, toc_secid, index, y)