अध्याय 9. कॉन्फ़िगरेशन फ़ाइलें

Last Updated: 2026-10-23 02:52 Views: 5

अध्याय 9. कॉन्फ़िगरेशन फ़ाइलें

wxreader का सारा उपयोगकर्ता डेटा एक ही निर्देशिका में रहता है, wxterm / wxeditor से पूर्णतः अलग:

प्लेटफ़ॉर्म डेटा निर्देशिका
Linux / FreeBSD ~/.wxreader/
macOS ~/Library/Application Support/wxreader/
Windows %APPDATA%\wxreader\

9.1 फ़ाइलें

फ़ाइल उद्देश्य
data.dat लाइब्रेरी SQLite डेटाबेस (WAL मोड): shelf / books / notes / mark तालिकाएँ
cover/{book-id}.png कवर कैश (240×320)
settings.json सारी सेटिंग्स: options (थीम/भाषा/UI फ़ॉन्ट/थीम बदलाव/पृष्ठभूमि) + editor (reader नोड के अंतर्गत रीडर शैली)
logs/app_{date}.log तारीख-वार घूमते चलाने के लॉग (समस्या निवारण के समय देखें)

9.2 data.dat स्कीमा

तालिका कॉलम
shelf id, name (unique), added_time, sort_order (खींचने का क्रम)
books id, shelf_id (0 = अवर्गीकृत), title, path (unique, डी-डुप कुंजी), cover, added_time, last_read, read_seconds, progress, favorite, author, format, note
notes id, book_id, page, selected_text, note_content, added_time
mark id, book_id, page, selected_text, added_time

format के मान: pdf / epub / mobi (azw3, prc सहित) / md / txt / chm / img (कॉमिक फ़ोल्डर)।

9.3 settings.json संरचना

{
  "options": {
    "theme": "Tokyo Night",
    "lang": "hi",
    "themeFontFamily": "Inter",
    "themeFontSize": 12,
    "themeSwitchMode": "by-time",
    "uiDarkTheme": "Dark",
    "uiLightTheme": "Light",
    "darkThemeStartTime": "19:00",
    "lightThemeStartTime": "07:00",
    "backgroundImage": "/path/to/img.jpg",
    "backgroundImageMode": 2,
    "backgroundImageOpacity": 0.3
  },
  "editor": {
    "reader": {
      "fontSize": 18,
      "lineHeight": 1.5,
      "paraSpacing": 1.0,
      "textAlign": 0,
      "invert": false,
      "brightness": 1.0,
      "autoScroll": false,
      "scrollInterval": 3,
      "viewMode": 0
    }
  }
}

9.4 प्रगति के अर्थ

books.progress (1 से शुरू) प्रारूप के अनुसार भिन्न अर्थ रखता है:

प्रारूप progress का अर्थ
epub / mobi / md / txt अध्याय संख्या
pdf पृष्ठ संख्या
img पुनरावर्ती पठन क्रम में छवि क्रमांक
chm हमेशा 1

read_seconds संचित पढ़ाई का समय है (रीडर विंडो खुली रहने तक हर 60 सेकंड पर +60)।

← Previous Article अध्याय 8. शॉर्टकट और कमांड लाइन Next Article → अध्याय 10. समस्या निवारण

Comments

No comments yet