mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 00:11:37 -06:00
80244ea4e2
Squash of feat/koreader-widget-board. KOReader plugin 2.0.0 gets the widget-board dashboard, redesigned book details, menus, lists and dialogs, Decor page and reading companions. Highlights, notes and bookmarks now stay in step across web, Kobo, KOReader and the phones (defects D-00 to D-20, migration 0121), and reading progress and narration hand off cleanly between devices.
62 lines
2.3 KiB
Lua
62 lines
2.3 KiB
Lua
--[[--
|
|
Names people know their readers by.
|
|
|
|
KOReader reports devices by model id (Device.model): Kobos by codename
|
|
("Kobo_monza"), Kindles by a run-together name ("KindlePaperWhite5"). The
|
|
progress prompt names the device that holds the other position, so it shows
|
|
the name on the box. Anything not listed is shown as reported.
|
|
]]
|
|
|
|
local DeviceNames = {}
|
|
|
|
local NAMES = {
|
|
Kobo_trilogy_A = "Kobo Touch", Kobo_trilogy_B = "Kobo Touch", Kobo_trilogy_C = "Kobo Touch",
|
|
Kobo_pixie = "Kobo Mini",
|
|
Kobo_kraken = "Kobo Glo",
|
|
Kobo_dragon = "Kobo Aura HD",
|
|
Kobo_phoenix = "Kobo Aura",
|
|
Kobo_dahlia = "Kobo Aura H2O",
|
|
Kobo_alyssum = "Kobo Glo HD",
|
|
Kobo_pika = "Kobo Touch 2.0",
|
|
Kobo_star = "Kobo Aura", Kobo_star_r2 = "Kobo Aura",
|
|
Kobo_daylight = "Kobo Aura One",
|
|
Kobo_snow = "Kobo Aura H2O", Kobo_snow_r2 = "Kobo Aura H2O",
|
|
Kobo_nova = "Kobo Clara HD",
|
|
Kobo_frost = "Kobo Forma",
|
|
Kobo_storm = "Kobo Libra H2O",
|
|
Kobo_luna = "Kobo Nia",
|
|
Kobo_europa = "Kobo Elipsa",
|
|
Kobo_cadmus = "Kobo Sage",
|
|
Kobo_io = "Kobo Libra 2",
|
|
Kobo_goldfinch = "Kobo Clara 2E",
|
|
Kobo_condor = "Kobo Elipsa 2E",
|
|
Kobo_monza = "Kobo Libra Colour",
|
|
Kobo_spaBW = "Kobo Clara BW",
|
|
Kobo_spaColour = "Kobo Clara Colour",
|
|
Kindle2 = "Kindle 2",
|
|
KindleDXG = "Kindle DX",
|
|
Kindle3 = "Kindle Keyboard",
|
|
Kindle4 = "Kindle 4",
|
|
KindleTouch = "Kindle Touch",
|
|
KindlePaperWhite = "Kindle Paperwhite",
|
|
KindlePaperWhite2 = "Kindle Paperwhite 2",
|
|
KindlePaperWhite3 = "Kindle Paperwhite 3",
|
|
KindlePaperWhite4 = "Kindle Paperwhite 4",
|
|
KindlePaperWhite5 = "Kindle Paperwhite 5",
|
|
KindlePaperWhite5SE = "Kindle Paperwhite Signature",
|
|
KindlePaperWhite6 = "Kindle Paperwhite 6",
|
|
KindleBasic = "Kindle", KindleBasic2 = "Kindle", KindleBasic3 = "Kindle", KindleBasic4 = "Kindle", KindleBasic5 = "Kindle",
|
|
KindleVoyage = "Kindle Voyage",
|
|
KindleOasis = "Kindle Oasis", KindleOasis2 = "Kindle Oasis", KindleOasis3 = "Kindle Oasis",
|
|
KindleScribe = "Kindle Scribe", KindleScribe3 = "Kindle Scribe",
|
|
KindleColorSoft = "Kindle Colorsoft",
|
|
KindleScribeColorSoft = "Kindle Scribe Colorsoft",
|
|
}
|
|
|
|
function DeviceNames.label(model)
|
|
if type(model) ~= "string" or model == "" then return nil end
|
|
return NAMES[model] or model
|
|
end
|
|
|
|
return DeviceNames
|