perf: Avoid creating strings for file extension checks#1303
Conversation
📝 WalkthroughWalkthroughThis PR refactors file extension checking by centralizing logic in FsHelpers. It introduces new namespace-scoped functions ( Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@src/components/UITheme.cpp`:
- Around line 77-90: UITheme::getFileIcon currently calls filename.back() which
is undefined for empty strings; add a defensive check at the top of
UITheme::getFileIcon (e.g., if (filename.empty())) and return a sensible default
(such as File or Folder per your needs) before inspecting filename.back() or
calling FsHelpers methods (keep references to UITheme::getFileIcon,
filename.back(), and FsHelpers::* helpers when making the change).
ℹ️ Review info
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (19)
lib/Epub/Epub.cpplib/Epub/Epub/converters/JpegToFramebufferConverter.cpplib/Epub/Epub/converters/PngToFramebufferConverter.cpplib/FsHelpers/FsHelpers.cpplib/FsHelpers/FsHelpers.hlib/Txt/Txt.cpplib/Xtc/Xtc/XtcTypes.hsrc/RecentBooksStore.cppsrc/activities/boot_sleep/SleepActivity.cppsrc/activities/home/FileBrowserActivity.cppsrc/activities/home/HomeActivity.cppsrc/activities/home/RecentBooksActivity.cppsrc/activities/reader/ReaderActivity.cppsrc/components/UITheme.cppsrc/components/UITheme.hsrc/network/CrossPointWebServer.cppsrc/network/WebDAVHandler.cppsrc/util/StringUtils.cppsrc/util/StringUtils.h
💤 Files with no reviewable changes (4)
- lib/Xtc/Xtc/XtcTypes.h
- src/util/StringUtils.h
- src/activities/home/RecentBooksActivity.cpp
- src/util/StringUtils.cpp
📜 Review details
🧰 Additional context used
🧠 Learnings (4)
📚 Learning: 2026-03-02T10:14:16.036Z
Learnt from: Uri-Tauber
Repo: crosspoint-reader/crosspoint-reader PR: 1245
File: lib/Epub/Epub/Section.cpp:277-308
Timestamp: 2026-03-02T10:14:16.036Z
Learning: Guideline: Strengthen serialization::readString to defend against unbounded growth when reading from disk data. Implement and enforce a maximum allowed length (e.g., a configured or reasonable constant) and validate the incoming length before resizing or allocating. Audit all call sites (e.g., BookMetadataCache, TextBlock, KOReaderCredentialStore, Section cache readers) to ensure they do not rely on unbounded len-based resizing. If the readString API must remain, add internal safeguards (bounds checks, length validation, and error handling) so per-call-site validations are not required. Ensure Section cache files remain versioned (SECTION_FILE_VERSION) and parameter mismatches invalidate caches, but do not rely on unsafe allocations; prefer safe, bounded reads with explicit errors on invalid data.
Applied to files:
src/RecentBooksStore.cppsrc/network/WebDAVHandler.cppsrc/activities/home/FileBrowserActivity.cpplib/Epub/Epub/converters/JpegToFramebufferConverter.cppsrc/activities/home/HomeActivity.cppsrc/activities/boot_sleep/SleepActivity.cpplib/FsHelpers/FsHelpers.cpplib/Epub/Epub/converters/PngToFramebufferConverter.cppsrc/network/CrossPointWebServer.cppsrc/components/UITheme.cppsrc/activities/reader/ReaderActivity.cpplib/Txt/Txt.cpplib/Epub/Epub.cpp
📚 Learning: 2026-02-27T22:49:59.600Z
Learnt from: ngxson
Repo: crosspoint-reader/crosspoint-reader PR: 1218
File: src/activities/ActivityManager.cpp:254-265
Timestamp: 2026-02-27T22:49:59.600Z
Learning: In this codebase, assertions are always enabled (no NDEBUG). Use assert() to crash on programmer errors and surface logic bugs during development and in production builds. Do not rely on asserts for runtime error handling; they should enforce invariants that must always hold. Keep asserts side-effect free and inexpensive, and avoid relying on them for user-visible failures. Include <cassert> where appropriate and document the invariant being tested.
Applied to files:
src/RecentBooksStore.cppsrc/network/WebDAVHandler.cppsrc/activities/home/FileBrowserActivity.cpplib/Epub/Epub/converters/JpegToFramebufferConverter.cppsrc/activities/home/HomeActivity.cppsrc/activities/boot_sleep/SleepActivity.cpplib/FsHelpers/FsHelpers.cpplib/Epub/Epub/converters/PngToFramebufferConverter.cppsrc/network/CrossPointWebServer.cppsrc/components/UITheme.cppsrc/activities/reader/ReaderActivity.cpplib/Txt/Txt.cpplib/Epub/Epub.cpp
📚 Learning: 2026-02-21T16:47:45.578Z
Learnt from: Uri-Tauber
Repo: crosspoint-reader/crosspoint-reader PR: 1031
File: src/activities/reader/EpubReaderActivity.cpp:816-853
Timestamp: 2026-02-21T16:47:45.578Z
Learning: In src/activities/reader/EpubReaderActivity.cpp, the navigateToHref() function uses a fixed-size mini-stack (MAX_FOOTNOTE_DEPTH = 3) for saved positions rather than a dynamic stack. This is intentional to minimize RAM usage on ESP32-C3, which has limited memory. The design accepts that failed navigation at max depth may decrement footnoteDepth even when no push occurred, as a tradeoff for memory efficiency. Users exit by pressing Back three times maximum.
Applied to files:
src/activities/home/FileBrowserActivity.cppsrc/activities/home/HomeActivity.cppsrc/activities/boot_sleep/SleepActivity.cpp
📚 Learning: 2026-02-26T06:00:13.512Z
Learnt from: znelson
Repo: crosspoint-reader/crosspoint-reader PR: 1168
File: lib/EpdFont/builtinFonts/opendyslexic_10_bold.h:2553-2553
Timestamp: 2026-02-26T06:00:13.512Z
Learning: Generated font headers (lib/EpdFont/builtinFonts/*.h) are produced by convert-builtin-fonts.sh and must not be edited by hand; any changes will be overwritten.
Applied to files:
lib/Epub/Epub/converters/PngToFramebufferConverter.cpp
🧬 Code graph analysis (15)
src/RecentBooksStore.cpp (2)
lib/FsHelpers/FsHelpers.cpp (8)
hasEpubExtension(71-71)hasEpubExtension(71-71)hasXtcExtension(73-75)hasXtcExtension(73-73)hasTxtExtension(77-77)hasTxtExtension(77-77)hasMarkdownExtension(79-79)hasMarkdownExtension(79-79)lib/FsHelpers/FsHelpers.h (2)
hasEpubExtension(42-44)hasTxtExtension(51-53)
src/network/WebDAVHandler.cpp (2)
lib/FsHelpers/FsHelpers.cpp (12)
hasEpubExtension(71-71)hasEpubExtension(71-71)checkFileExtension(45-59)checkFileExtension(45-45)hasTxtExtension(77-77)hasTxtExtension(77-77)hasJpgExtension(61-63)hasJpgExtension(61-61)hasPngExtension(65-65)hasPngExtension(65-65)hasGifExtension(69-69)hasGifExtension(69-69)lib/FsHelpers/FsHelpers.h (6)
hasEpubExtension(42-44)checkFileExtension(15-17)hasTxtExtension(51-53)hasJpgExtension(21-23)hasPngExtension(27-29)hasGifExtension(36-38)
src/activities/home/FileBrowserActivity.cpp (2)
lib/FsHelpers/FsHelpers.cpp (10)
hasEpubExtension(71-71)hasEpubExtension(71-71)hasXtcExtension(73-75)hasXtcExtension(73-73)hasTxtExtension(77-77)hasTxtExtension(77-77)hasMarkdownExtension(79-79)hasMarkdownExtension(79-79)hasBmpExtension(67-67)hasBmpExtension(67-67)lib/FsHelpers/FsHelpers.h (2)
hasEpubExtension(42-44)hasTxtExtension(51-53)
lib/Epub/Epub/converters/JpegToFramebufferConverter.cpp (2)
lib/FsHelpers/FsHelpers.cpp (2)
hasJpgExtension(61-63)hasJpgExtension(61-61)lib/FsHelpers/FsHelpers.h (1)
hasJpgExtension(21-23)
src/components/UITheme.h (1)
src/components/UITheme.cpp (2)
getFileIcon(77-91)getFileIcon(77-77)
src/activities/home/HomeActivity.cpp (2)
lib/FsHelpers/FsHelpers.cpp (4)
hasEpubExtension(71-71)hasEpubExtension(71-71)hasXtcExtension(73-75)hasXtcExtension(73-73)lib/FsHelpers/FsHelpers.h (1)
hasEpubExtension(42-44)
src/activities/boot_sleep/SleepActivity.cpp (2)
lib/FsHelpers/FsHelpers.cpp (8)
hasBmpExtension(67-67)hasBmpExtension(67-67)hasXtcExtension(73-75)hasXtcExtension(73-73)hasTxtExtension(77-77)hasTxtExtension(77-77)hasEpubExtension(71-71)hasEpubExtension(71-71)lib/FsHelpers/FsHelpers.h (2)
hasTxtExtension(51-53)hasEpubExtension(42-44)
lib/FsHelpers/FsHelpers.cpp (3)
src/util/ScreenshotUtil.cpp (1)
path(46-46)src/network/WebDAVHandler.cpp (1)
fileName(228-228)lib/FsHelpers/FsHelpers.h (1)
checkFileExtension(15-17)
lib/Epub/Epub/converters/PngToFramebufferConverter.cpp (2)
lib/FsHelpers/FsHelpers.cpp (2)
hasPngExtension(65-65)hasPngExtension(65-65)lib/FsHelpers/FsHelpers.h (1)
hasPngExtension(27-29)
src/network/CrossPointWebServer.cpp (2)
lib/FsHelpers/FsHelpers.cpp (2)
hasEpubExtension(71-71)hasEpubExtension(71-71)lib/FsHelpers/FsHelpers.h (1)
hasEpubExtension(42-44)
src/components/UITheme.cpp (2)
lib/FsHelpers/FsHelpers.cpp (10)
hasEpubExtension(71-71)hasEpubExtension(71-71)hasXtcExtension(73-75)hasXtcExtension(73-73)hasTxtExtension(77-77)hasTxtExtension(77-77)hasMarkdownExtension(79-79)hasMarkdownExtension(79-79)hasBmpExtension(67-67)hasBmpExtension(67-67)lib/FsHelpers/FsHelpers.h (2)
hasEpubExtension(42-44)hasTxtExtension(51-53)
src/activities/reader/ReaderActivity.cpp (2)
lib/FsHelpers/FsHelpers.cpp (8)
hasXtcExtension(73-75)hasXtcExtension(73-73)hasTxtExtension(77-77)hasTxtExtension(77-77)hasMarkdownExtension(79-79)hasMarkdownExtension(79-79)hasBmpExtension(67-67)hasBmpExtension(67-67)lib/FsHelpers/FsHelpers.h (1)
hasTxtExtension(51-53)
lib/Txt/Txt.cpp (2)
lib/FsHelpers/FsHelpers.cpp (6)
hasTxtExtension(77-77)hasTxtExtension(77-77)hasBmpExtension(67-67)hasBmpExtension(67-67)hasJpgExtension(61-63)hasJpgExtension(61-61)lib/FsHelpers/FsHelpers.h (2)
hasTxtExtension(51-53)hasJpgExtension(21-23)
lib/Epub/Epub.cpp (2)
lib/FsHelpers/FsHelpers.cpp (6)
hasPngExtension(65-65)hasPngExtension(65-65)hasJpgExtension(61-63)hasJpgExtension(61-61)hasGifExtension(69-69)hasGifExtension(69-69)lib/FsHelpers/FsHelpers.h (3)
hasPngExtension(27-29)hasJpgExtension(21-23)hasGifExtension(36-38)
lib/FsHelpers/FsHelpers.h (1)
lib/FsHelpers/FsHelpers.cpp (20)
normalisePath(9-43)normalisePath(9-9)checkFileExtension(45-59)checkFileExtension(45-45)hasJpgExtension(61-63)hasJpgExtension(61-61)hasPngExtension(65-65)hasPngExtension(65-65)hasBmpExtension(67-67)hasBmpExtension(67-67)hasGifExtension(69-69)hasGifExtension(69-69)hasEpubExtension(71-71)hasEpubExtension(71-71)hasXtcExtension(73-75)hasXtcExtension(73-73)hasTxtExtension(77-77)hasTxtExtension(77-77)hasMarkdownExtension(79-79)hasMarkdownExtension(79-79)
🔇 Additional comments (20)
lib/FsHelpers/FsHelpers.cpp (2)
45-59: LGTM! Well-implemented case-insensitive extension check.The implementation correctly:
- Uses
unsigned charcast withtolowerto avoid undefined behavior with negative char values- Handles the case where filename is shorter than the extension
- Uses
std::string_viewto avoid allocations as intended
61-79: Clean utility functions with appropriate extension coverage.The helper functions correctly delegate to
checkFileExtensionand handle multi-extension formats (.jpg/.jpeg,.xtc/.xtch).lib/FsHelpers/FsHelpers.h (1)
15-17: LGTM! Efficient inline wrapper pattern.The
Stringoverloads efficiently construct astd::string_viewfrom the ArduinoStringwithout copying, achieving the PR's goal of avoiding allocations.lib/Epub/Epub/converters/PngToFramebufferConverter.cpp (1)
394-396: LGTM! Clean simplification.Replacing manual extension checking with
FsHelpers::hasPngExtensioncentralizes the logic and benefits from the case-insensitive comparison. Thestd::stringparameter implicitly converts tostd::string_view.lib/Epub/Epub/converters/JpegToFramebufferConverter.cpp (1)
489-491: LGTM! Handles both.jpgand.jpegvariants.The centralized
hasJpgExtensionproperly checks for both JPEG extension variants, simplifying the converter's format detection.src/RecentBooksStore.cpp (1)
73-86: LGTM! Extension checks correctly migrated.The logic flow is preserved:
- Check for EPUB → load Epub metadata
- Check for XTC → load Xtc metadata
- Check for TXT or Markdown → use filename as title
- Fallback with empty metadata
All extension predicates properly handle the
std::stringparameter.src/activities/boot_sleep/SleepActivity.cpp (2)
64-68: LGTM! BMP validation simplified.The BMP extension check properly filters non-BMP files in the custom sleep screen directory scan.
231-276: LGTM! Cover sleep screen extension handling preserved.The conditional chain correctly handles:
- XTC files (including
.xtch)- TXT files
- EPUB files
- Fallback to no-cover sleep screen
The logic order and behavior are preserved from the previous implementation.
src/activities/home/FileBrowserActivity.cpp (2)
94-99: LGTM! Efficient file filtering withstring_view.Creating
std::string_viewfrom thenamebuffer avoids allocation during the extension checks. Theemplace_back(filename)correctly constructs astd::stringin the vector from thestring_view.
121-127: LGTM! Cache clearing restricted to EPUB files.The extension check ensures cache clearing only occurs for
.epubfiles, preserving the original behavior.src/network/WebDAVHandler.cpp (2)
801-806: LGTM! EPUB cache clearing uses centralized check.The
hasEpubExtensioninline wrapper for ArduinoStringis used correctly here.
808-823: LGTM! MIME type detection refactored cleanly.The implementation appropriately uses:
- Dedicated helpers for common formats (EPUB, TXT, JPG, PNG, GIF)
- Generic
checkFileExtensionfor less common formats (PDF, HTML, CSS, JS, JSON, XML, SVG, ZIP, GZ)This balances convenience with avoiding helper function proliferation.
src/network/CrossPointWebServer.cpp (1)
46-46: LGTM!The migration to
FsHelpers::hasEpubExtension()is correct. Both call sites passconst String&which matches the inline overload inFsHelpers.hthat forwards to thestd::string_viewimplementation, avoiding heap allocations.Also applies to: 393-393
src/activities/reader/ReaderActivity.cpp (1)
24-31: LGTM!The extension checks correctly use the FsHelpers predicates. The
std::stringparameters implicitly convert tostd::string_view, achieving the PR's goal of avoiding allocations. The logic is preserved:
hasXtcExtensionhandles both.xtcand.xtchhasTxtExtension || hasMarkdownExtensioncorrectly treats.mdas text filessrc/activities/home/HomeActivity.cpp (1)
64-64: LGTM!The migration to
FsHelpers::hasEpubExtension()andFsHelpers::hasXtcExtension()is correct. Thebook.path(std::string) implicitly converts tostd::string_view, avoiding allocations while preserving the existing cover thumbnail generation logic.Also applies to: 82-82
src/components/UITheme.h (1)
24-24: LGTM!Changing the parameter from pass-by-value to
const std::string&avoids an unnecessary copy when callers pass an lvalue, aligning with the PR's goal of reducing allocations.lib/Epub/Epub.cpp (2)
106-110: LGTM!Good use of
std::string_viewfor the intermediaterefvariable. The extension checks operate on the view without allocation, and the assignment tostd::string imageRefonly copies when a valid image reference is found.
541-541: LGTM!The cover and thumbnail generation logic correctly uses
FsHelpers::hasJpgExtension()andFsHelpers::hasPngExtension(). The predicates handle both.jpgand.jpegextensions, preserving the original behavior while avoiding string allocations.Also applies to: 574-574, 628-628, 664-664
lib/Txt/Txt.cpp (2)
44-46: LGTM!The extension check correctly uses
FsHelpers::hasTxtExtension(). Since this predicate only matches.txt(exactly 4 characters), the subsequentsubstr(0, filename.length() - 4)is correct.
115-157: LGTM!The cover image handling correctly uses
FsHelpers::hasBmpExtension()andFsHelpers::hasJpgExtension(). The latter handles both.jpgand.jpegextensions, preserving the original behavior. The control flow is clear: BMP files are copied directly, JPG/JPEG files are converted, and unsupported formats are logged.
Absorbed upstream changes: - feat: footnote anchor navigation (crosspoint-reader#1245) - feat: dump crash report to sdcard (crosspoint-reader#1145) — HalSystem::checkPanic/clearPanic - feat: add turkish translation (crosspoint-reader#1192) - feat: User setting for image display (crosspoint-reader#1291) — imageRendering field - fix: dump crash log without usb plugged, bump release log to INFO (crosspoint-reader#1332) - fix: avoid zip filename overflow (crosspoint-reader#1321) - fix: Enable DESTRUCTOR_CLOSES_FILE flag (crosspoint-reader#1075) - fix: add Technically Unsupported section to SCOPE.md (crosspoint-reader#1295) - perf: Avoid creating strings for file extension checks (crosspoint-reader#1303) - refactor: Avoid rebuilding cache path strings (crosspoint-reader#1300) - chore: translation improvements (Catalan, German, Romanian, Swedish, Polish) - chore: Image settings Polish localization (crosspoint-reader#1299) - chore: Correct relative file paths in SKILL.md (crosspoint-reader#1304) - chore: add missing Catalan/German strings Our fork features preserved: - Remote page-turn control (WiFi, USB, WebSocket) - Remote open-book control + protocolVersion - HalGPIO virtual button injection - API parity fixes (settings/raw, wifi/status) - All fork-drift-specific UI, settings, and feature modules
…ader#1303) ## Summary **What is the goal of this PR?** This change avoids the pattern of creating a `std::string` using `.substr` in order to compare against a file extension literal. ```c++ std::string path; if (path.length() >= 4 && path.substr(path.length() - 4) == ".ext") ``` The `checkFileExtension` utility has moved from StringUtils to FsHelpers, to be available to code in lib/. The signature now accepts a `std::string_view` instead of `std::string`, which makes the single implementation reusable for Arduino `String`. Added utility functions for commonly repeated extensions. These changes **save about 2 KB of flash (5,999,427 to 5,997,343)**. --- ### AI Usage While CrossPoint doesn't have restrictions on AI tools in contributing, please be transparent about their usage as it helps set the right context for reviewers. Did you use AI tools to help write this code? _**NO**_
…ader#1303) ## Summary **What is the goal of this PR?** This change avoids the pattern of creating a `std::string` using `.substr` in order to compare against a file extension literal. ```c++ std::string path; if (path.length() >= 4 && path.substr(path.length() - 4) == ".ext") ``` The `checkFileExtension` utility has moved from StringUtils to FsHelpers, to be available to code in lib/. The signature now accepts a `std::string_view` instead of `std::string`, which makes the single implementation reusable for Arduino `String`. Added utility functions for commonly repeated extensions. These changes **save about 2 KB of flash (5,999,427 to 5,997,343)**. --- ### AI Usage While CrossPoint doesn't have restrictions on AI tools in contributing, please be transparent about their usage as it helps set the right context for reviewers. Did you use AI tools to help write this code? _**NO**_
…ader#1303) ## Summary **What is the goal of this PR?** This change avoids the pattern of creating a `std::string` using `.substr` in order to compare against a file extension literal. ```c++ std::string path; if (path.length() >= 4 && path.substr(path.length() - 4) == ".ext") ``` The `checkFileExtension` utility has moved from StringUtils to FsHelpers, to be available to code in lib/. The signature now accepts a `std::string_view` instead of `std::string`, which makes the single implementation reusable for Arduino `String`. Added utility functions for commonly repeated extensions. These changes **save about 2 KB of flash (5,999,427 to 5,997,343)**. --- ### AI Usage While CrossPoint doesn't have restrictions on AI tools in contributing, please be transparent about their usage as it helps set the right context for reviewers. Did you use AI tools to help write this code? _**NO**_
## Summary It's been a little while since the last release, but the community has been incredibly busy. With 155 changes from 48 contributors (30 of which were new!), there was a lot to cover. Here are some of the highlights: **🔤 Kerning, Ligatures, and Font Improvements** Text rendering gets a significant upgrade with proper kerning and ligature support, fixed-point fractional x-advance for more accurate character placement, and font compression improvements that reduce flash usage. **📝 Footnotes** Footnote anchor navigation lets you select a footnote reference and jump to the footnote text, then jump back. Slim footnotes support is also available for books that use inline footnotes. **📖 EPUB Optimizer** A new integrated EPUB optimizer can clean up and reprocess books for better compatibility with the reader, directly from the device. **🔋 Battery Charging Indicator** You can now see when your device is actively charging, with a visual indicator on the battery icon. **💾 Crash Diagnostics** When something goes wrong, the firmware now dumps a crash report to the SD card — even without USB plugged in. This makes it much easier to report and diagnose issues. **🌐 New Languages** The community continues to expand language support. New in this release: Turkish, Danish, Finnish, Polish, Dutch, Belarusian, Italian, Ukrainian, Romanian, Catalan, Vietnamese, and Kazakh — along with significant improvements to existing translations. **📂 File Management** Multi-select file deletion, BMP image viewer in the file browser, hidden directory browsing, and long-click file deletion from the file browser. **⚡ Performance** Under the hood, text layout switched from `std::list` to `std::vector`, HTML entity lookups are now O(log(n)), font rendering is faster, image decode is 5-20% faster with per-pixel overhead eliminated, and multiple string allocation hot paths were eliminated. Pre-indexing of the next chapter also reduces page-turn latency at chapter boundaries. --- Along with all of the above, there are many other additions including **WebDAV support**, **auto page turn**, **QR code for current page**, **split status bar settings**, **screenshot capture**, **JSON-based settings migration**, **light/dark theme groundwork**, and a long list of stability fixes and translation improvements. ## What's Changed ### Features * feat: Support for kerning and ligatures by @znelson in #873 * feat: footnote anchor navigation by @Uri-Tauber in #1245 * feat: slim footnotes support by @Uri-Tauber in #1031 * feat: integrated epub optimizer by @zgredex and @pablohc in #1224 * feat: battery charging indicator (mirroring PR #537) by @jpirnay in #1427 * feat: dump crash report to sdcard by @ngxson in #1145 * feat: Implement silent pre-indexing for the next chapter in EpubReaderActivity by @LSTAR1900 in #979 * feat: upgrade platform and support webdav by @dexif in #1047 * feat: Auto Page Turn for Epub Reader by @GenesiaW in #1219 * feat: enhance file deletion functionality with multi-select by @Jessica765 in #682 * feat: Long Click for File Deletion through File Browser by @Levrk in #909 * feat: Take screenshots by @el in #759 * feat: Current page as QR by @el in #1099 * feat: Download links for web server by @el in #1039 * feat: Added BmpViewer activity for viewing .bmp images in file browser by @Levrk in #887 * feat: User setting for image display by @jpirnay in #1291 * feat: Show hidden directories in browser by @jpirnay in #1288 * feat: Prefer ".sleep" over "sleep" for custom image directory by @jpirnay in #948 * feat: Allow a local configuration file for custom compiles by @jpirnay in #879 * feat: Migrate binary settings to json by @jpirnay in #920 * feat: split status bar setting by @whyte-j in #733 * feat: wrapped text in GfxRender, implemented in themes so far by @iandchasse in #1141 * feat: Themed language screen by @CaptainFrito in #1020 * feat: set WiFi hostname to CrossPoint-Reader-XXXXXXXXXXXX by @dexif in #1107 * feat: Add maxAlloc to memory information by @jpirnay in #1152 * feat: replace picojpeg with JPEGDEC for JPEG image decoding by @martinbrook in #1136 * feat: Add git branch to version information on settings screen by @jpirnay in #1225 * feat: sort languages in selection menu by @ariel-lindemann in #1071 * feat: Latin Extended-B European glyphs by @znelson in #1157 * feat: Latin Extended-B European glyphs by @znelson in #1167 * feat: Vietnamese glyphs support by @danoooob in #1147 * feat: add Turkish translation by @barbarhan in #1192 * feat: add full Danish translation by @hajisan in #1146 * feat: Add Finnish translations by @plahteenlahti in #1133 * feat: Add Polish Language by @th0m4sek in #1155 * feat: add Dutch translation by @basvdploeg in #1204 * feat: add Belarusian translation by @dexif in #1120 * feat: Add full Italian translations by @andreaturchet in #1144 * feat: add Ukrainian translation by @mirus-ua in #1065 * feat: Add Kazakh (kk) language support by @fsocietyipa in #1377 * feat: added Romanian strings by @ariel-lindemann in #987 * feat: add Catalan strings by @angeldenom in #1049 * feat: Make directories stand out more in local file browser: "[dir]" instead of "dir" by @jpirnay in #1339 * feat: Add Polish strings for commits #1219,#1169,#1031 +tweaks by @th0m4sek in #1227 * feat: Polish translation tweaks by @th0m4sek in #1193 ### Fixes * fix: Fix img layout issue / support CSS display:none for elements and images by @jpirnay in #1443 * fix: Overlapping battery percentage on image pages with anti-aliasing by @znelson in #1452 * fix: Fix prewarm perf when a page contains many styles by @adriancaruana in #1451 * fix: use sleep routine from the original firmware by @ngxson in #1298 * fix: Prevent line breaks on common English contractions by @znelson in #1405 * fix: Build with -fno-exceptions by @znelson in #1412 * fix: Reduce flash usage by cleaning up I18n translations by @steka in #1401 * fix: jpeg resource cleanup by @jpirnay in #1320 * fix: back button in settings returns to tab bar first by @Cache8063 in #1354 * fix: Init lastSleepImage (edge case) by @jpirnay in #1360 * fix: Add special handling for apostrophe hyphenation by @jpirnay in #1318 * fix: Fix inter-word spacing rounding error in text layout by @znelson in #1311 * fix: load access fault crash by @Uri-Tauber in #1370 * fix: Fix bootloop logging crash by @jpirnay in #1357 * fix: dump crash log without usb plugged, bump release log to INFO by @ngxson in #1332 * fix: avoid zip filename overflow by @jpirnay in #1321 * fix: Hanging indent (negative text-indent) and em-unit sizing by @jpirnay in #1229 * fix: Use fixed-point fractional x-advance and kerning for better text layout by @znelson in #1168 * fix: use HTTPClient::writeToStream for downloading files from OPDS by @osteotek in #1207 * fix: make file system operations thread-safe (HalFile) by @ngxson in #1212 * fix: properly implement requestUpdateAndWait() by @ngxson in #1218 * fix: prevent infinite render loop in Calibre Wireless after file transfer by @pablohc in #1070 * fix: WiFi lifecycle and hyphenation heap defragmentation for KOReader sync by @jpirnay in #1151 * fix: Fix coverRendered flag by @jpirnay in #1154 * fix: Handle non-ASCII characters in sanitizeFilename by @znelson in #1132 * fix: Update activity was missing "Back" button label by @znelson in #1128 * fix: force auto-hinting for Bookerly to fix inconsistent stem widths by @adriancaruana in #1098 * fix: image centering bleed by @martinbrook in #1096 * fix: double free WebDAVHandler by @ngxson in #1093 * fix: Consider extra quotation styles when hyphenating quoted words by @cbix in #1077 * fix: acquire power lock before sleeping by @ngxson in #1125 * fix: Unify inconsistent Wi-Fi/WiFi in Czech translation by @pepastach in #1138 * fix: sdfat warning about redefinition of macro by @ngxson in #1135 * fix: Close leaked file descriptors in SleepActivity and web server by @brbla in #869 * fix: Enable DESTRUCTOR_CLOSES_FILE flag by @daveallie in #1075 * fix: Change "UI Font Size" to "Reader Font Size" by @divinitycove in #1171 * fix: Hide unusable button hints when viewing empty directory by @Levrk in #1253 * fix: broken translations in status bar settings by @ariel-lindemann in #1188 * fix: clarity issue with ambiguous string `SET` by @ariel-lindemann in #1169 * fix: Crash (Load access fault) when indexing chapters containing characters unsupported by bold/italic font variants by @Uri-Tauber in #997 * fix: Increase PNGdec buffer size to support wide images by @osteotek in #995 * fix: Use HalPowerManager for battery percentage by @vjapolitzer in #1005 * fix: Fix dangling pointer by @Uri-Tauber in #1010 * fix: re-implementing Cover Outlines for the new Lyra Themes by @Levrk in #1017 * fix: use double FAST_REFRESH to prevent washout on large grey images by @martinbrook in #957 * fix: Fixed Image Sizing When No Width is Set by @DestinySpeaker in #1002 * fix: Strip unused CSS rules by @daveallie in #1014 * fix: continue reading card classic theme by @pablohc in #990 * fix: Destroy CSS Cache file when invalid by @daveallie in #1018 * fix: Shorten "Forget Wifi" button labels to fit on button by @lukestein in #1045 * fix: improve Spanish translations by @pablohc in #1054 * fix: Fixed book title in home screen by @DestinySpeaker in #1013 * fix: Fix hyphenation and rendering of decomposed characters by @jpirnay in #1037 * fix: Improve and add Spanish translations by @DaniPhii in #1338 * fix: improve and add Spanish translations by @DaniPhii in #1254 * fix: improve and add Swedish translations by @steka in #1317 * fix: Extend missing / amend existing German translations by @jpirnay in #1226 * fix: update french.yaml file to have a better French translation of the CFW by @Spigaw in #1130 * fix: added romanian translation to new strings by @ariel-lindemann in #1105 * fix: add missing romanian strings by @ariel-lindemann in #1187 * fix: add new Ukrainian translation line for STR_SCREENSHOT_BUTTON by @mirus-ua in #1149 * fix: Dutch translation prefix correction by @basvdploeg in #1223 * fix: Small typo in i18n.md regarding C++ identifiers by @victordomingos in #1210 * fix: typo in USER_GUIDE.md by @arnaugamez in #1036 * fix: add missing keyboard metrics to Lyra3CoversTheme by @dexif in #1101 ### Internal * perf: font-compression improvements by @adriancaruana in #1056 * perf: Improve font drawing performance by @jpirnay in #978 * perf: Replace std::list with std::vector in text layout by @znelson in #1038 * perf: Optimize HTML entities lookup to O(log(n)) by @Uri-Tauber in #1194 * perf: UITheme::getMetrics const and const-ref usage by @znelson in #1094 * perf: Avoid creating strings for file extension checks by @znelson in #1303 * perf: Eliminate per-pixel overheads in image rendering by @martinbrook in #1293 * perf: Update github actions for optimal performance with pioarduino by @Jason2866 in #1080 * style: Phase 1 - Simple light dark themes by @cdmoro in #1006 * refactor: implement ActivityManager by @ngxson in #1016 * refactor: Simplify REPLACEMENT_GLYPH fallback by @znelson in #1119 * refactor: Simplify new setting introduction by @jpirnay in #1086 * refactor: Use std binary search algorithms for font lookups by @znelson in #1202 * refactor: rename MyLibrary to FileBrowser by @osteotek in #1260 * refactor: Avoid rebuilding cache path strings by @znelson in #1300 * refactor: reader utils by @Uri-Tauber in #1329 * chore: Remove miniz and modularise inflation logic by @daveallie in #1073 * chore: Resolve several build warnings by @daveallie in #1076 * chore: Removed generated language headers by @znelson in #1156 * chore: Added generated lang headers to .gitignore by @znelson in #1158 * chore: remove redundant xTaskCreate by @ngxson in #1264 * chore: Removed unused PlatformIO include directory placeholder by @znelson in #1417 * chore: micro-optimisation: early exit on fillUncompressedSizes by @jpirnay in #1322 * chore: change label while on settings tab actions by @jpirnay in #1325 * chore: add firmware size history script by @znelson in #1235 * chore: Add powershell script for clang-formatting by @jpirnay in #1472 * chore: Removed unused ConfirmationActivity member by @znelson in #1234 * chore: Update russian.yaml by @madebyKir in #1198 * chore: new Ukrainian translation lines by @mirus-ua in #1199 * chore: new Ukrainian localization strings by @mirus-ua in #1270 * chore: Polish localization for STR_DELETE by @JonaszPotoniec in #1323 * chore: Image settings Polish localization by @znelson in #1299 * chore: add missing Catalan strings by @angeldenom in #1302 * chore: add missing translations for Romanian by @ariel-lindemann in #1265 * chore: Add Portuguese (Portugal) translator to the list by @victordomingos in #1211 * chore: Reduce flash usage by cleaning up I18n translations by @steka in #1401 * docs: Add lightweight contributor onboarding documentation by @bilalix in #894 * docs: ActivityManager migration guide by @znelson in #1222 * docs: USER_GUIDE.md update for 1.1.0 by @divinitycove in #1108 * docs: add quick KOReader sync setup guide by @wjhrdy in #1181 * docs: image support marked as completed by @ariel-lindemann in #1008 * feat: aiagent context definition by @jpirnay in #922 * chore: Update SKILL.md to reflect generated i18n files are gitignored by @znelson in #1423 * fix: ActivityManager tweaks by @znelson in #1220 * fix: Correct relative file paths in SKILL.md documentation by @pablohc in #1304 * fix: add Technically Unsupported section to SCOPE.md by @Uri-Tauber in #1295 ## New Contributors * @DestinySpeaker made their first contribution in #1002 * @arnaugamez made their first contribution in #1036 * @angeldenom made their first contribution in #1049 * @cdmoro made their first contribution in #1006 * @bilalix made their first contribution in #894 * @Jessica765 made their first contribution in #682 * @brbla made their first contribution in #869 * @dexif made their first contribution in #1047 * @mirus-ua made their first contribution in #1065 * @cbix made their first contribution in #1077 * @divinitycove made their first contribution in #1108 * @pepastach made their first contribution in #1138 * @Jason2866 made their first contribution in #1080 * @andreaturchet made their first contribution in #1144 * @Spigaw made their first contribution in #1130 * @iandchasse made their first contribution in #1141 * @th0m4sek made their first contribution in #1155 * @plahteenlahti made their first contribution in #1133 * @hajisan made their first contribution in #1146 * @madebyKir made their first contribution in #1198 * @victordomingos made their first contribution in #1210 * @basvdploeg made their first contribution in #1204 * @wjhrdy made their first contribution in #1181 * @DaniPhii made their first contribution in #1254 * @steka made their first contribution in #1317 * @barbarhan made their first contribution in #1192 * @JonaszPotoniec made their first contribution in #1323 * @Cache8063 made their first contribution in #1354 * @fsocietyipa made their first contribution in #1377 * @LSTAR1900 made their first contribution in #979 * @zgredex made their first contribution in #1224 **Full Changelog**: 1.1.1...release/1.2.0 --------- Co-authored-by: jpirnay <jens@pirnay.com> Co-authored-by: Dani Poveda <daniphii@outlook.com> Co-authored-by: Baris Albayrak <80099286+barbarhan@users.noreply.github.com> Co-authored-by: Barış Albayrak <barisa@pop-os.lan> Co-authored-by: Stefan Blixten Karlsson <sbkarlsson@gmail.com> Co-authored-by: Àngel <153315454+angeldenom@users.noreply.github.com> Co-authored-by: Jonasz Potoniec <jonasz@potoniec.eu> Co-authored-by: Егор Мартынов <martynovegorOF@yandex.ru> Co-authored-by: Mirus <mirusim@gmail.com> Co-authored-by: Spigaw <73850535+Spigaw@users.noreply.github.com> Co-authored-by: ariel-lindemann <41641978+ariel-lindemann@users.noreply.github.com> Co-authored-by: Nima Salami <54304457+hajisan@users.noreply.github.com> Co-authored-by: Arthur Tazhitdinov <lisnake@gmail.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: Bas van der Ploeg <bas@basvanderploeg.nl> Co-authored-by: martin brook <martin.brook100@googlemail.com>
It's been a little while since the last release, but the community has been incredibly busy. With 155 changes from 48 contributors (30 of which were new!), there was a lot to cover. Here are some of the highlights: **🔤 Kerning, Ligatures, and Font Improvements** Text rendering gets a significant upgrade with proper kerning and ligature support, fixed-point fractional x-advance for more accurate character placement, and font compression improvements that reduce flash usage. **📝 Footnotes** Footnote anchor navigation lets you select a footnote reference and jump to the footnote text, then jump back. Slim footnotes support is also available for books that use inline footnotes. **📖 EPUB Optimizer** A new integrated EPUB optimizer can clean up and reprocess books for better compatibility with the reader, directly from the device. **🔋 Battery Charging Indicator** You can now see when your device is actively charging, with a visual indicator on the battery icon. **💾 Crash Diagnostics** When something goes wrong, the firmware now dumps a crash report to the SD card — even without USB plugged in. This makes it much easier to report and diagnose issues. **🌐 New Languages** The community continues to expand language support. New in this release: Turkish, Danish, Finnish, Polish, Dutch, Belarusian, Italian, Ukrainian, Romanian, Catalan, Vietnamese, and Kazakh — along with significant improvements to existing translations. **📂 File Management** Multi-select file deletion, BMP image viewer in the file browser, hidden directory browsing, and long-click file deletion from the file browser. **⚡ Performance** Under the hood, text layout switched from `std::list` to `std::vector`, HTML entity lookups are now O(log(n)), font rendering is faster, image decode is 5-20% faster with per-pixel overhead eliminated, and multiple string allocation hot paths were eliminated. Pre-indexing of the next chapter also reduces page-turn latency at chapter boundaries. --- Along with all of the above, there are many other additions including **WebDAV support**, **auto page turn**, **QR code for current page**, **split status bar settings**, **screenshot capture**, **JSON-based settings migration**, **light/dark theme groundwork**, and a long list of stability fixes and translation improvements. * feat: Support for kerning and ligatures by @znelson in crosspoint-reader#873 * feat: footnote anchor navigation by @Uri-Tauber in crosspoint-reader#1245 * feat: slim footnotes support by @Uri-Tauber in crosspoint-reader#1031 * feat: integrated epub optimizer by @zgredex and @pablohc in crosspoint-reader#1224 * feat: battery charging indicator (mirroring PR crosspoint-reader#537) by @jpirnay in crosspoint-reader#1427 * feat: dump crash report to sdcard by @ngxson in crosspoint-reader#1145 * feat: Implement silent pre-indexing for the next chapter in EpubReaderActivity by @LSTAR1900 in crosspoint-reader#979 * feat: upgrade platform and support webdav by @dexif in crosspoint-reader#1047 * feat: Auto Page Turn for Epub Reader by @GenesiaW in crosspoint-reader#1219 * feat: enhance file deletion functionality with multi-select by @Jessica765 in crosspoint-reader#682 * feat: Long Click for File Deletion through File Browser by @Levrk in crosspoint-reader#909 * feat: Take screenshots by @el in crosspoint-reader#759 * feat: Current page as QR by @el in crosspoint-reader#1099 * feat: Download links for web server by @el in crosspoint-reader#1039 * feat: Added BmpViewer activity for viewing .bmp images in file browser by @Levrk in crosspoint-reader#887 * feat: User setting for image display by @jpirnay in crosspoint-reader#1291 * feat: Show hidden directories in browser by @jpirnay in crosspoint-reader#1288 * feat: Prefer ".sleep" over "sleep" for custom image directory by @jpirnay in crosspoint-reader#948 * feat: Allow a local configuration file for custom compiles by @jpirnay in crosspoint-reader#879 * feat: Migrate binary settings to json by @jpirnay in crosspoint-reader#920 * feat: split status bar setting by @whyte-j in crosspoint-reader#733 * feat: wrapped text in GfxRender, implemented in themes so far by @iandchasse in crosspoint-reader#1141 * feat: Themed language screen by @CaptainFrito in crosspoint-reader#1020 * feat: set WiFi hostname to CrossPoint-Reader-XXXXXXXXXXXX by @dexif in crosspoint-reader#1107 * feat: Add maxAlloc to memory information by @jpirnay in crosspoint-reader#1152 * feat: replace picojpeg with JPEGDEC for JPEG image decoding by @martinbrook in crosspoint-reader#1136 * feat: Add git branch to version information on settings screen by @jpirnay in crosspoint-reader#1225 * feat: sort languages in selection menu by @ariel-lindemann in crosspoint-reader#1071 * feat: Latin Extended-B European glyphs by @znelson in crosspoint-reader#1157 * feat: Latin Extended-B European glyphs by @znelson in crosspoint-reader#1167 * feat: Vietnamese glyphs support by @danoooob in crosspoint-reader#1147 * feat: add Turkish translation by @barbarhan in crosspoint-reader#1192 * feat: add full Danish translation by @hajisan in crosspoint-reader#1146 * feat: Add Finnish translations by @plahteenlahti in crosspoint-reader#1133 * feat: Add Polish Language by @th0m4sek in crosspoint-reader#1155 * feat: add Dutch translation by @basvdploeg in crosspoint-reader#1204 * feat: add Belarusian translation by @dexif in crosspoint-reader#1120 * feat: Add full Italian translations by @andreaturchet in crosspoint-reader#1144 * feat: add Ukrainian translation by @mirus-ua in crosspoint-reader#1065 * feat: Add Kazakh (kk) language support by @fsocietyipa in crosspoint-reader#1377 * feat: added Romanian strings by @ariel-lindemann in crosspoint-reader#987 * feat: add Catalan strings by @angeldenom in crosspoint-reader#1049 * feat: Make directories stand out more in local file browser: "[dir]" instead of "dir" by @jpirnay in crosspoint-reader#1339 * feat: Add Polish strings for commits crosspoint-reader#1219,crosspoint-reader#1169,crosspoint-reader#1031 +tweaks by @th0m4sek in crosspoint-reader#1227 * feat: Polish translation tweaks by @th0m4sek in crosspoint-reader#1193 * fix: Fix img layout issue / support CSS display:none for elements and images by @jpirnay in crosspoint-reader#1443 * fix: Overlapping battery percentage on image pages with anti-aliasing by @znelson in crosspoint-reader#1452 * fix: Fix prewarm perf when a page contains many styles by @adriancaruana in crosspoint-reader#1451 * fix: use sleep routine from the original firmware by @ngxson in crosspoint-reader#1298 * fix: Prevent line breaks on common English contractions by @znelson in crosspoint-reader#1405 * fix: Build with -fno-exceptions by @znelson in crosspoint-reader#1412 * fix: Reduce flash usage by cleaning up I18n translations by @steka in crosspoint-reader#1401 * fix: jpeg resource cleanup by @jpirnay in crosspoint-reader#1320 * fix: back button in settings returns to tab bar first by @Cache8063 in crosspoint-reader#1354 * fix: Init lastSleepImage (edge case) by @jpirnay in crosspoint-reader#1360 * fix: Add special handling for apostrophe hyphenation by @jpirnay in crosspoint-reader#1318 * fix: Fix inter-word spacing rounding error in text layout by @znelson in crosspoint-reader#1311 * fix: load access fault crash by @Uri-Tauber in crosspoint-reader#1370 * fix: Fix bootloop logging crash by @jpirnay in crosspoint-reader#1357 * fix: dump crash log without usb plugged, bump release log to INFO by @ngxson in crosspoint-reader#1332 * fix: avoid zip filename overflow by @jpirnay in crosspoint-reader#1321 * fix: Hanging indent (negative text-indent) and em-unit sizing by @jpirnay in crosspoint-reader#1229 * fix: Use fixed-point fractional x-advance and kerning for better text layout by @znelson in crosspoint-reader#1168 * fix: use HTTPClient::writeToStream for downloading files from OPDS by @osteotek in crosspoint-reader#1207 * fix: make file system operations thread-safe (HalFile) by @ngxson in crosspoint-reader#1212 * fix: properly implement requestUpdateAndWait() by @ngxson in crosspoint-reader#1218 * fix: prevent infinite render loop in Calibre Wireless after file transfer by @pablohc in crosspoint-reader#1070 * fix: WiFi lifecycle and hyphenation heap defragmentation for KOReader sync by @jpirnay in crosspoint-reader#1151 * fix: Fix coverRendered flag by @jpirnay in crosspoint-reader#1154 * fix: Handle non-ASCII characters in sanitizeFilename by @znelson in crosspoint-reader#1132 * fix: Update activity was missing "Back" button label by @znelson in crosspoint-reader#1128 * fix: force auto-hinting for Bookerly to fix inconsistent stem widths by @adriancaruana in crosspoint-reader#1098 * fix: image centering bleed by @martinbrook in crosspoint-reader#1096 * fix: double free WebDAVHandler by @ngxson in crosspoint-reader#1093 * fix: Consider extra quotation styles when hyphenating quoted words by @cbix in crosspoint-reader#1077 * fix: acquire power lock before sleeping by @ngxson in crosspoint-reader#1125 * fix: Unify inconsistent Wi-Fi/WiFi in Czech translation by @pepastach in crosspoint-reader#1138 * fix: sdfat warning about redefinition of macro by @ngxson in crosspoint-reader#1135 * fix: Close leaked file descriptors in SleepActivity and web server by @brbla in crosspoint-reader#869 * fix: Enable DESTRUCTOR_CLOSES_FILE flag by @daveallie in crosspoint-reader#1075 * fix: Change "UI Font Size" to "Reader Font Size" by @divinitycove in crosspoint-reader#1171 * fix: Hide unusable button hints when viewing empty directory by @Levrk in crosspoint-reader#1253 * fix: broken translations in status bar settings by @ariel-lindemann in crosspoint-reader#1188 * fix: clarity issue with ambiguous string `SET` by @ariel-lindemann in crosspoint-reader#1169 * fix: Crash (Load access fault) when indexing chapters containing characters unsupported by bold/italic font variants by @Uri-Tauber in crosspoint-reader#997 * fix: Increase PNGdec buffer size to support wide images by @osteotek in crosspoint-reader#995 * fix: Use HalPowerManager for battery percentage by @vjapolitzer in crosspoint-reader#1005 * fix: Fix dangling pointer by @Uri-Tauber in crosspoint-reader#1010 * fix: re-implementing Cover Outlines for the new Lyra Themes by @Levrk in crosspoint-reader#1017 * fix: use double FAST_REFRESH to prevent washout on large grey images by @martinbrook in crosspoint-reader#957 * fix: Fixed Image Sizing When No Width is Set by @DestinySpeaker in crosspoint-reader#1002 * fix: Strip unused CSS rules by @daveallie in crosspoint-reader#1014 * fix: continue reading card classic theme by @pablohc in crosspoint-reader#990 * fix: Destroy CSS Cache file when invalid by @daveallie in crosspoint-reader#1018 * fix: Shorten "Forget Wifi" button labels to fit on button by @lukestein in crosspoint-reader#1045 * fix: improve Spanish translations by @pablohc in crosspoint-reader#1054 * fix: Fixed book title in home screen by @DestinySpeaker in crosspoint-reader#1013 * fix: Fix hyphenation and rendering of decomposed characters by @jpirnay in crosspoint-reader#1037 * fix: Improve and add Spanish translations by @DaniPhii in crosspoint-reader#1338 * fix: improve and add Spanish translations by @DaniPhii in crosspoint-reader#1254 * fix: improve and add Swedish translations by @steka in crosspoint-reader#1317 * fix: Extend missing / amend existing German translations by @jpirnay in crosspoint-reader#1226 * fix: update french.yaml file to have a better French translation of the CFW by @Spigaw in crosspoint-reader#1130 * fix: added romanian translation to new strings by @ariel-lindemann in crosspoint-reader#1105 * fix: add missing romanian strings by @ariel-lindemann in crosspoint-reader#1187 * fix: add new Ukrainian translation line for STR_SCREENSHOT_BUTTON by @mirus-ua in crosspoint-reader#1149 * fix: Dutch translation prefix correction by @basvdploeg in crosspoint-reader#1223 * fix: Small typo in i18n.md regarding C++ identifiers by @victordomingos in crosspoint-reader#1210 * fix: typo in USER_GUIDE.md by @arnaugamez in crosspoint-reader#1036 * fix: add missing keyboard metrics to Lyra3CoversTheme by @dexif in crosspoint-reader#1101 * perf: font-compression improvements by @adriancaruana in crosspoint-reader#1056 * perf: Improve font drawing performance by @jpirnay in crosspoint-reader#978 * perf: Replace std::list with std::vector in text layout by @znelson in crosspoint-reader#1038 * perf: Optimize HTML entities lookup to O(log(n)) by @Uri-Tauber in crosspoint-reader#1194 * perf: UITheme::getMetrics const and const-ref usage by @znelson in crosspoint-reader#1094 * perf: Avoid creating strings for file extension checks by @znelson in crosspoint-reader#1303 * perf: Eliminate per-pixel overheads in image rendering by @martinbrook in crosspoint-reader#1293 * perf: Update github actions for optimal performance with pioarduino by @Jason2866 in crosspoint-reader#1080 * style: Phase 1 - Simple light dark themes by @cdmoro in crosspoint-reader#1006 * refactor: implement ActivityManager by @ngxson in crosspoint-reader#1016 * refactor: Simplify REPLACEMENT_GLYPH fallback by @znelson in crosspoint-reader#1119 * refactor: Simplify new setting introduction by @jpirnay in crosspoint-reader#1086 * refactor: Use std binary search algorithms for font lookups by @znelson in crosspoint-reader#1202 * refactor: rename MyLibrary to FileBrowser by @osteotek in crosspoint-reader#1260 * refactor: Avoid rebuilding cache path strings by @znelson in crosspoint-reader#1300 * refactor: reader utils by @Uri-Tauber in crosspoint-reader#1329 * chore: Remove miniz and modularise inflation logic by @daveallie in crosspoint-reader#1073 * chore: Resolve several build warnings by @daveallie in crosspoint-reader#1076 * chore: Removed generated language headers by @znelson in crosspoint-reader#1156 * chore: Added generated lang headers to .gitignore by @znelson in crosspoint-reader#1158 * chore: remove redundant xTaskCreate by @ngxson in crosspoint-reader#1264 * chore: Removed unused PlatformIO include directory placeholder by @znelson in crosspoint-reader#1417 * chore: micro-optimisation: early exit on fillUncompressedSizes by @jpirnay in crosspoint-reader#1322 * chore: change label while on settings tab actions by @jpirnay in crosspoint-reader#1325 * chore: add firmware size history script by @znelson in crosspoint-reader#1235 * chore: Add powershell script for clang-formatting by @jpirnay in crosspoint-reader#1472 * chore: Removed unused ConfirmationActivity member by @znelson in crosspoint-reader#1234 * chore: Update russian.yaml by @madebyKir in crosspoint-reader#1198 * chore: new Ukrainian translation lines by @mirus-ua in crosspoint-reader#1199 * chore: new Ukrainian localization strings by @mirus-ua in crosspoint-reader#1270 * chore: Polish localization for STR_DELETE by @JonaszPotoniec in crosspoint-reader#1323 * chore: Image settings Polish localization by @znelson in crosspoint-reader#1299 * chore: add missing Catalan strings by @angeldenom in crosspoint-reader#1302 * chore: add missing translations for Romanian by @ariel-lindemann in crosspoint-reader#1265 * chore: Add Portuguese (Portugal) translator to the list by @victordomingos in crosspoint-reader#1211 * chore: Reduce flash usage by cleaning up I18n translations by @steka in crosspoint-reader#1401 * docs: Add lightweight contributor onboarding documentation by @bilalix in crosspoint-reader#894 * docs: ActivityManager migration guide by @znelson in crosspoint-reader#1222 * docs: USER_GUIDE.md update for 1.1.0 by @divinitycove in crosspoint-reader#1108 * docs: add quick KOReader sync setup guide by @wjhrdy in crosspoint-reader#1181 * docs: image support marked as completed by @ariel-lindemann in crosspoint-reader#1008 * feat: aiagent context definition by @jpirnay in crosspoint-reader#922 * chore: Update SKILL.md to reflect generated i18n files are gitignored by @znelson in crosspoint-reader#1423 * fix: ActivityManager tweaks by @znelson in crosspoint-reader#1220 * fix: Correct relative file paths in SKILL.md documentation by @pablohc in crosspoint-reader#1304 * fix: add Technically Unsupported section to SCOPE.md by @Uri-Tauber in crosspoint-reader#1295 * @DestinySpeaker made their first contribution in crosspoint-reader#1002 * @arnaugamez made their first contribution in crosspoint-reader#1036 * @angeldenom made their first contribution in crosspoint-reader#1049 * @cdmoro made their first contribution in crosspoint-reader#1006 * @bilalix made their first contribution in crosspoint-reader#894 * @Jessica765 made their first contribution in crosspoint-reader#682 * @brbla made their first contribution in crosspoint-reader#869 * @dexif made their first contribution in crosspoint-reader#1047 * @mirus-ua made their first contribution in crosspoint-reader#1065 * @cbix made their first contribution in crosspoint-reader#1077 * @divinitycove made their first contribution in crosspoint-reader#1108 * @pepastach made their first contribution in crosspoint-reader#1138 * @Jason2866 made their first contribution in crosspoint-reader#1080 * @andreaturchet made their first contribution in crosspoint-reader#1144 * @Spigaw made their first contribution in crosspoint-reader#1130 * @iandchasse made their first contribution in crosspoint-reader#1141 * @th0m4sek made their first contribution in crosspoint-reader#1155 * @plahteenlahti made their first contribution in crosspoint-reader#1133 * @hajisan made their first contribution in crosspoint-reader#1146 * @madebyKir made their first contribution in crosspoint-reader#1198 * @victordomingos made their first contribution in crosspoint-reader#1210 * @basvdploeg made their first contribution in crosspoint-reader#1204 * @wjhrdy made their first contribution in crosspoint-reader#1181 * @DaniPhii made their first contribution in crosspoint-reader#1254 * @steka made their first contribution in crosspoint-reader#1317 * @barbarhan made their first contribution in crosspoint-reader#1192 * @JonaszPotoniec made their first contribution in crosspoint-reader#1323 * @Cache8063 made their first contribution in crosspoint-reader#1354 * @fsocietyipa made their first contribution in crosspoint-reader#1377 * @LSTAR1900 made their first contribution in crosspoint-reader#979 * @zgredex made their first contribution in crosspoint-reader#1224 **Full Changelog**: crosspoint-reader/crosspoint-reader@1.1.1...release/1.2.0 --------- Co-authored-by: jpirnay <jens@pirnay.com> Co-authored-by: Dani Poveda <daniphii@outlook.com> Co-authored-by: Baris Albayrak <80099286+barbarhan@users.noreply.github.com> Co-authored-by: Barış Albayrak <barisa@pop-os.lan> Co-authored-by: Stefan Blixten Karlsson <sbkarlsson@gmail.com> Co-authored-by: Àngel <153315454+angeldenom@users.noreply.github.com> Co-authored-by: Jonasz Potoniec <jonasz@potoniec.eu> Co-authored-by: Егор Мартынов <martynovegorOF@yandex.ru> Co-authored-by: Mirus <mirusim@gmail.com> Co-authored-by: Spigaw <73850535+Spigaw@users.noreply.github.com> Co-authored-by: ariel-lindemann <41641978+ariel-lindemann@users.noreply.github.com> Co-authored-by: Nima Salami <54304457+hajisan@users.noreply.github.com> Co-authored-by: Arthur Tazhitdinov <lisnake@gmail.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: Bas van der Ploeg <bas@basvanderploeg.nl> Co-authored-by: martin brook <martin.brook100@googlemail.com>
## Summary It's been a little while since the last release, but the community has been incredibly busy. With 155 changes from 48 contributors (30 of which were new!), there was a lot to cover. Here are some of the highlights: **🔤 Kerning, Ligatures, and Font Improvements** Text rendering gets a significant upgrade with proper kerning and ligature support, fixed-point fractional x-advance for more accurate character placement, and font compression improvements that reduce flash usage. **📝 Footnotes** Footnote anchor navigation lets you select a footnote reference and jump to the footnote text, then jump back. Slim footnotes support is also available for books that use inline footnotes. **📖 EPUB Optimizer** A new integrated EPUB optimizer can clean up and reprocess books for better compatibility with the reader, directly from the device. **🔋 Battery Charging Indicator** You can now see when your device is actively charging, with a visual indicator on the battery icon. **💾 Crash Diagnostics** When something goes wrong, the firmware now dumps a crash report to the SD card — even without USB plugged in. This makes it much easier to report and diagnose issues. **🌐 New Languages** The community continues to expand language support. New in this release: Turkish, Danish, Finnish, Polish, Dutch, Belarusian, Italian, Ukrainian, Romanian, Catalan, Vietnamese, and Kazakh — along with significant improvements to existing translations. **📂 File Management** Multi-select file deletion, BMP image viewer in the file browser, hidden directory browsing, and long-click file deletion from the file browser. **⚡ Performance** Under the hood, text layout switched from `std::list` to `std::vector`, HTML entity lookups are now O(log(n)), font rendering is faster, image decode is 5-20% faster with per-pixel overhead eliminated, and multiple string allocation hot paths were eliminated. Pre-indexing of the next chapter also reduces page-turn latency at chapter boundaries. --- Along with all of the above, there are many other additions including **WebDAV support**, **auto page turn**, **QR code for current page**, **split status bar settings**, **screenshot capture**, **JSON-based settings migration**, **light/dark theme groundwork**, and a long list of stability fixes and translation improvements. ## What's Changed ### Features * feat: Support for kerning and ligatures by @znelson in crosspoint-reader#873 * feat: footnote anchor navigation by @Uri-Tauber in crosspoint-reader#1245 * feat: slim footnotes support by @Uri-Tauber in crosspoint-reader#1031 * feat: integrated epub optimizer by @zgredex and @pablohc in crosspoint-reader#1224 * feat: battery charging indicator (mirroring PR crosspoint-reader#537) by @jpirnay in crosspoint-reader#1427 * feat: dump crash report to sdcard by @ngxson in crosspoint-reader#1145 * feat: Implement silent pre-indexing for the next chapter in EpubReaderActivity by @LSTAR1900 in crosspoint-reader#979 * feat: upgrade platform and support webdav by @dexif in crosspoint-reader#1047 * feat: Auto Page Turn for Epub Reader by @GenesiaW in crosspoint-reader#1219 * feat: enhance file deletion functionality with multi-select by @Jessica765 in crosspoint-reader#682 * feat: Long Click for File Deletion through File Browser by @Levrk in crosspoint-reader#909 * feat: Take screenshots by @el in crosspoint-reader#759 * feat: Current page as QR by @el in crosspoint-reader#1099 * feat: Download links for web server by @el in crosspoint-reader#1039 * feat: Added BmpViewer activity for viewing .bmp images in file browser by @Levrk in crosspoint-reader#887 * feat: User setting for image display by @jpirnay in crosspoint-reader#1291 * feat: Show hidden directories in browser by @jpirnay in crosspoint-reader#1288 * feat: Prefer ".sleep" over "sleep" for custom image directory by @jpirnay in crosspoint-reader#948 * feat: Allow a local configuration file for custom compiles by @jpirnay in crosspoint-reader#879 * feat: Migrate binary settings to json by @jpirnay in crosspoint-reader#920 * feat: split status bar setting by @whyte-j in crosspoint-reader#733 * feat: wrapped text in GfxRender, implemented in themes so far by @iandchasse in crosspoint-reader#1141 * feat: Themed language screen by @CaptainFrito in crosspoint-reader#1020 * feat: set WiFi hostname to CrossPoint-Reader-XXXXXXXXXXXX by @dexif in crosspoint-reader#1107 * feat: Add maxAlloc to memory information by @jpirnay in crosspoint-reader#1152 * feat: replace picojpeg with JPEGDEC for JPEG image decoding by @martinbrook in crosspoint-reader#1136 * feat: Add git branch to version information on settings screen by @jpirnay in crosspoint-reader#1225 * feat: sort languages in selection menu by @ariel-lindemann in crosspoint-reader#1071 * feat: Latin Extended-B European glyphs by @znelson in crosspoint-reader#1157 * feat: Latin Extended-B European glyphs by @znelson in crosspoint-reader#1167 * feat: Vietnamese glyphs support by @danoooob in crosspoint-reader#1147 * feat: add Turkish translation by @barbarhan in crosspoint-reader#1192 * feat: add full Danish translation by @hajisan in crosspoint-reader#1146 * feat: Add Finnish translations by @plahteenlahti in crosspoint-reader#1133 * feat: Add Polish Language by @th0m4sek in crosspoint-reader#1155 * feat: add Dutch translation by @basvdploeg in crosspoint-reader#1204 * feat: add Belarusian translation by @dexif in crosspoint-reader#1120 * feat: Add full Italian translations by @andreaturchet in crosspoint-reader#1144 * feat: add Ukrainian translation by @mirus-ua in crosspoint-reader#1065 * feat: Add Kazakh (kk) language support by @fsocietyipa in crosspoint-reader#1377 * feat: added Romanian strings by @ariel-lindemann in crosspoint-reader#987 * feat: add Catalan strings by @angeldenom in crosspoint-reader#1049 * feat: Make directories stand out more in local file browser: "[dir]" instead of "dir" by @jpirnay in crosspoint-reader#1339 * feat: Add Polish strings for commits crosspoint-reader#1219,crosspoint-reader#1169,crosspoint-reader#1031 +tweaks by @th0m4sek in crosspoint-reader#1227 * feat: Polish translation tweaks by @th0m4sek in crosspoint-reader#1193 ### Fixes * fix: Fix img layout issue / support CSS display:none for elements and images by @jpirnay in crosspoint-reader#1443 * fix: Overlapping battery percentage on image pages with anti-aliasing by @znelson in crosspoint-reader#1452 * fix: Fix prewarm perf when a page contains many styles by @adriancaruana in crosspoint-reader#1451 * fix: use sleep routine from the original firmware by @ngxson in crosspoint-reader#1298 * fix: Prevent line breaks on common English contractions by @znelson in crosspoint-reader#1405 * fix: Build with -fno-exceptions by @znelson in crosspoint-reader#1412 * fix: Reduce flash usage by cleaning up I18n translations by @steka in crosspoint-reader#1401 * fix: jpeg resource cleanup by @jpirnay in crosspoint-reader#1320 * fix: back button in settings returns to tab bar first by @Cache8063 in crosspoint-reader#1354 * fix: Init lastSleepImage (edge case) by @jpirnay in crosspoint-reader#1360 * fix: Add special handling for apostrophe hyphenation by @jpirnay in crosspoint-reader#1318 * fix: Fix inter-word spacing rounding error in text layout by @znelson in crosspoint-reader#1311 * fix: load access fault crash by @Uri-Tauber in crosspoint-reader#1370 * fix: Fix bootloop logging crash by @jpirnay in crosspoint-reader#1357 * fix: dump crash log without usb plugged, bump release log to INFO by @ngxson in crosspoint-reader#1332 * fix: avoid zip filename overflow by @jpirnay in crosspoint-reader#1321 * fix: Hanging indent (negative text-indent) and em-unit sizing by @jpirnay in crosspoint-reader#1229 * fix: Use fixed-point fractional x-advance and kerning for better text layout by @znelson in crosspoint-reader#1168 * fix: use HTTPClient::writeToStream for downloading files from OPDS by @osteotek in crosspoint-reader#1207 * fix: make file system operations thread-safe (HalFile) by @ngxson in crosspoint-reader#1212 * fix: properly implement requestUpdateAndWait() by @ngxson in crosspoint-reader#1218 * fix: prevent infinite render loop in Calibre Wireless after file transfer by @pablohc in crosspoint-reader#1070 * fix: WiFi lifecycle and hyphenation heap defragmentation for KOReader sync by @jpirnay in crosspoint-reader#1151 * fix: Fix coverRendered flag by @jpirnay in crosspoint-reader#1154 * fix: Handle non-ASCII characters in sanitizeFilename by @znelson in crosspoint-reader#1132 * fix: Update activity was missing "Back" button label by @znelson in crosspoint-reader#1128 * fix: force auto-hinting for Bookerly to fix inconsistent stem widths by @adriancaruana in crosspoint-reader#1098 * fix: image centering bleed by @martinbrook in crosspoint-reader#1096 * fix: double free WebDAVHandler by @ngxson in crosspoint-reader#1093 * fix: Consider extra quotation styles when hyphenating quoted words by @cbix in crosspoint-reader#1077 * fix: acquire power lock before sleeping by @ngxson in crosspoint-reader#1125 * fix: Unify inconsistent Wi-Fi/WiFi in Czech translation by @pepastach in crosspoint-reader#1138 * fix: sdfat warning about redefinition of macro by @ngxson in crosspoint-reader#1135 * fix: Close leaked file descriptors in SleepActivity and web server by @brbla in crosspoint-reader#869 * fix: Enable DESTRUCTOR_CLOSES_FILE flag by @daveallie in crosspoint-reader#1075 * fix: Change "UI Font Size" to "Reader Font Size" by @divinitycove in crosspoint-reader#1171 * fix: Hide unusable button hints when viewing empty directory by @Levrk in crosspoint-reader#1253 * fix: broken translations in status bar settings by @ariel-lindemann in crosspoint-reader#1188 * fix: clarity issue with ambiguous string `SET` by @ariel-lindemann in crosspoint-reader#1169 * fix: Crash (Load access fault) when indexing chapters containing characters unsupported by bold/italic font variants by @Uri-Tauber in crosspoint-reader#997 * fix: Increase PNGdec buffer size to support wide images by @osteotek in crosspoint-reader#995 * fix: Use HalPowerManager for battery percentage by @vjapolitzer in crosspoint-reader#1005 * fix: Fix dangling pointer by @Uri-Tauber in crosspoint-reader#1010 * fix: re-implementing Cover Outlines for the new Lyra Themes by @Levrk in crosspoint-reader#1017 * fix: use double FAST_REFRESH to prevent washout on large grey images by @martinbrook in crosspoint-reader#957 * fix: Fixed Image Sizing When No Width is Set by @DestinySpeaker in crosspoint-reader#1002 * fix: Strip unused CSS rules by @daveallie in crosspoint-reader#1014 * fix: continue reading card classic theme by @pablohc in crosspoint-reader#990 * fix: Destroy CSS Cache file when invalid by @daveallie in crosspoint-reader#1018 * fix: Shorten "Forget Wifi" button labels to fit on button by @lukestein in crosspoint-reader#1045 * fix: improve Spanish translations by @pablohc in crosspoint-reader#1054 * fix: Fixed book title in home screen by @DestinySpeaker in crosspoint-reader#1013 * fix: Fix hyphenation and rendering of decomposed characters by @jpirnay in crosspoint-reader#1037 * fix: Improve and add Spanish translations by @DaniPhii in crosspoint-reader#1338 * fix: improve and add Spanish translations by @DaniPhii in crosspoint-reader#1254 * fix: improve and add Swedish translations by @steka in crosspoint-reader#1317 * fix: Extend missing / amend existing German translations by @jpirnay in crosspoint-reader#1226 * fix: update french.yaml file to have a better French translation of the CFW by @Spigaw in crosspoint-reader#1130 * fix: added romanian translation to new strings by @ariel-lindemann in crosspoint-reader#1105 * fix: add missing romanian strings by @ariel-lindemann in crosspoint-reader#1187 * fix: add new Ukrainian translation line for STR_SCREENSHOT_BUTTON by @mirus-ua in crosspoint-reader#1149 * fix: Dutch translation prefix correction by @basvdploeg in crosspoint-reader#1223 * fix: Small typo in i18n.md regarding C++ identifiers by @victordomingos in crosspoint-reader#1210 * fix: typo in USER_GUIDE.md by @arnaugamez in crosspoint-reader#1036 * fix: add missing keyboard metrics to Lyra3CoversTheme by @dexif in crosspoint-reader#1101 ### Internal * perf: font-compression improvements by @adriancaruana in crosspoint-reader#1056 * perf: Improve font drawing performance by @jpirnay in crosspoint-reader#978 * perf: Replace std::list with std::vector in text layout by @znelson in crosspoint-reader#1038 * perf: Optimize HTML entities lookup to O(log(n)) by @Uri-Tauber in crosspoint-reader#1194 * perf: UITheme::getMetrics const and const-ref usage by @znelson in crosspoint-reader#1094 * perf: Avoid creating strings for file extension checks by @znelson in crosspoint-reader#1303 * perf: Eliminate per-pixel overheads in image rendering by @martinbrook in crosspoint-reader#1293 * perf: Update github actions for optimal performance with pioarduino by @Jason2866 in crosspoint-reader#1080 * style: Phase 1 - Simple light dark themes by @cdmoro in crosspoint-reader#1006 * refactor: implement ActivityManager by @ngxson in crosspoint-reader#1016 * refactor: Simplify REPLACEMENT_GLYPH fallback by @znelson in crosspoint-reader#1119 * refactor: Simplify new setting introduction by @jpirnay in crosspoint-reader#1086 * refactor: Use std binary search algorithms for font lookups by @znelson in crosspoint-reader#1202 * refactor: rename MyLibrary to FileBrowser by @osteotek in crosspoint-reader#1260 * refactor: Avoid rebuilding cache path strings by @znelson in crosspoint-reader#1300 * refactor: reader utils by @Uri-Tauber in crosspoint-reader#1329 * chore: Remove miniz and modularise inflation logic by @daveallie in crosspoint-reader#1073 * chore: Resolve several build warnings by @daveallie in crosspoint-reader#1076 * chore: Removed generated language headers by @znelson in crosspoint-reader#1156 * chore: Added generated lang headers to .gitignore by @znelson in crosspoint-reader#1158 * chore: remove redundant xTaskCreate by @ngxson in crosspoint-reader#1264 * chore: Removed unused PlatformIO include directory placeholder by @znelson in crosspoint-reader#1417 * chore: micro-optimisation: early exit on fillUncompressedSizes by @jpirnay in crosspoint-reader#1322 * chore: change label while on settings tab actions by @jpirnay in crosspoint-reader#1325 * chore: add firmware size history script by @znelson in crosspoint-reader#1235 * chore: Add powershell script for clang-formatting by @jpirnay in crosspoint-reader#1472 * chore: Removed unused ConfirmationActivity member by @znelson in crosspoint-reader#1234 * chore: Update russian.yaml by @madebyKir in crosspoint-reader#1198 * chore: new Ukrainian translation lines by @mirus-ua in crosspoint-reader#1199 * chore: new Ukrainian localization strings by @mirus-ua in crosspoint-reader#1270 * chore: Polish localization for STR_DELETE by @JonaszPotoniec in crosspoint-reader#1323 * chore: Image settings Polish localization by @znelson in crosspoint-reader#1299 * chore: add missing Catalan strings by @angeldenom in crosspoint-reader#1302 * chore: add missing translations for Romanian by @ariel-lindemann in crosspoint-reader#1265 * chore: Add Portuguese (Portugal) translator to the list by @victordomingos in crosspoint-reader#1211 * chore: Reduce flash usage by cleaning up I18n translations by @steka in crosspoint-reader#1401 * docs: Add lightweight contributor onboarding documentation by @bilalix in crosspoint-reader#894 * docs: ActivityManager migration guide by @znelson in crosspoint-reader#1222 * docs: USER_GUIDE.md update for 1.1.0 by @divinitycove in crosspoint-reader#1108 * docs: add quick KOReader sync setup guide by @wjhrdy in crosspoint-reader#1181 * docs: image support marked as completed by @ariel-lindemann in crosspoint-reader#1008 * feat: aiagent context definition by @jpirnay in crosspoint-reader#922 * chore: Update SKILL.md to reflect generated i18n files are gitignored by @znelson in crosspoint-reader#1423 * fix: ActivityManager tweaks by @znelson in crosspoint-reader#1220 * fix: Correct relative file paths in SKILL.md documentation by @pablohc in crosspoint-reader#1304 * fix: add Technically Unsupported section to SCOPE.md by @Uri-Tauber in crosspoint-reader#1295 ## New Contributors * @DestinySpeaker made their first contribution in crosspoint-reader#1002 * @arnaugamez made their first contribution in crosspoint-reader#1036 * @angeldenom made their first contribution in crosspoint-reader#1049 * @cdmoro made their first contribution in crosspoint-reader#1006 * @bilalix made their first contribution in crosspoint-reader#894 * @Jessica765 made their first contribution in crosspoint-reader#682 * @brbla made their first contribution in crosspoint-reader#869 * @dexif made their first contribution in crosspoint-reader#1047 * @mirus-ua made their first contribution in crosspoint-reader#1065 * @cbix made their first contribution in crosspoint-reader#1077 * @divinitycove made their first contribution in crosspoint-reader#1108 * @pepastach made their first contribution in crosspoint-reader#1138 * @Jason2866 made their first contribution in crosspoint-reader#1080 * @andreaturchet made their first contribution in crosspoint-reader#1144 * @Spigaw made their first contribution in crosspoint-reader#1130 * @iandchasse made their first contribution in crosspoint-reader#1141 * @th0m4sek made their first contribution in crosspoint-reader#1155 * @plahteenlahti made their first contribution in crosspoint-reader#1133 * @hajisan made their first contribution in crosspoint-reader#1146 * @madebyKir made their first contribution in crosspoint-reader#1198 * @victordomingos made their first contribution in crosspoint-reader#1210 * @basvdploeg made their first contribution in crosspoint-reader#1204 * @wjhrdy made their first contribution in crosspoint-reader#1181 * @DaniPhii made their first contribution in crosspoint-reader#1254 * @steka made their first contribution in crosspoint-reader#1317 * @barbarhan made their first contribution in crosspoint-reader#1192 * @JonaszPotoniec made their first contribution in crosspoint-reader#1323 * @Cache8063 made their first contribution in crosspoint-reader#1354 * @fsocietyipa made their first contribution in crosspoint-reader#1377 * @LSTAR1900 made their first contribution in crosspoint-reader#979 * @zgredex made their first contribution in crosspoint-reader#1224 **Full Changelog**: crosspoint-reader/crosspoint-reader@1.1.1...release/1.2.0 --------- Co-authored-by: jpirnay <jens@pirnay.com> Co-authored-by: Dani Poveda <daniphii@outlook.com> Co-authored-by: Baris Albayrak <80099286+barbarhan@users.noreply.github.com> Co-authored-by: Barış Albayrak <barisa@pop-os.lan> Co-authored-by: Stefan Blixten Karlsson <sbkarlsson@gmail.com> Co-authored-by: Àngel <153315454+angeldenom@users.noreply.github.com> Co-authored-by: Jonasz Potoniec <jonasz@potoniec.eu> Co-authored-by: Егор Мартынов <martynovegorOF@yandex.ru> Co-authored-by: Mirus <mirusim@gmail.com> Co-authored-by: Spigaw <73850535+Spigaw@users.noreply.github.com> Co-authored-by: ariel-lindemann <41641978+ariel-lindemann@users.noreply.github.com> Co-authored-by: Nima Salami <54304457+hajisan@users.noreply.github.com> Co-authored-by: Arthur Tazhitdinov <lisnake@gmail.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: Bas van der Ploeg <bas@basvanderploeg.nl> Co-authored-by: martin brook <martin.brook100@googlemail.com>
## Summary It's been a little while since the last release, but the community has been incredibly busy. With 155 changes from 48 contributors (30 of which were new!), there was a lot to cover. Here are some of the highlights: **🔤 Kerning, Ligatures, and Font Improvements** Text rendering gets a significant upgrade with proper kerning and ligature support, fixed-point fractional x-advance for more accurate character placement, and font compression improvements that reduce flash usage. **📝 Footnotes** Footnote anchor navigation lets you select a footnote reference and jump to the footnote text, then jump back. Slim footnotes support is also available for books that use inline footnotes. **📖 EPUB Optimizer** A new integrated EPUB optimizer can clean up and reprocess books for better compatibility with the reader, directly from the device. **🔋 Battery Charging Indicator** You can now see when your device is actively charging, with a visual indicator on the battery icon. **💾 Crash Diagnostics** When something goes wrong, the firmware now dumps a crash report to the SD card — even without USB plugged in. This makes it much easier to report and diagnose issues. **🌐 New Languages** The community continues to expand language support. New in this release: Turkish, Danish, Finnish, Polish, Dutch, Belarusian, Italian, Ukrainian, Romanian, Catalan, Vietnamese, and Kazakh — along with significant improvements to existing translations. **📂 File Management** Multi-select file deletion, BMP image viewer in the file browser, hidden directory browsing, and long-click file deletion from the file browser. **⚡ Performance** Under the hood, text layout switched from `std::list` to `std::vector`, HTML entity lookups are now O(log(n)), font rendering is faster, image decode is 5-20% faster with per-pixel overhead eliminated, and multiple string allocation hot paths were eliminated. Pre-indexing of the next chapter also reduces page-turn latency at chapter boundaries. --- Along with all of the above, there are many other additions including **WebDAV support**, **auto page turn**, **QR code for current page**, **split status bar settings**, **screenshot capture**, **JSON-based settings migration**, **light/dark theme groundwork**, and a long list of stability fixes and translation improvements. ## What's Changed ### Features * feat: Support for kerning and ligatures by @znelson in crosspoint-reader#873 * feat: footnote anchor navigation by @Uri-Tauber in crosspoint-reader#1245 * feat: slim footnotes support by @Uri-Tauber in crosspoint-reader#1031 * feat: integrated epub optimizer by @zgredex and @pablohc in crosspoint-reader#1224 * feat: battery charging indicator (mirroring PR crosspoint-reader#537) by @jpirnay in crosspoint-reader#1427 * feat: dump crash report to sdcard by @ngxson in crosspoint-reader#1145 * feat: Implement silent pre-indexing for the next chapter in EpubReaderActivity by @LSTAR1900 in crosspoint-reader#979 * feat: upgrade platform and support webdav by @dexif in crosspoint-reader#1047 * feat: Auto Page Turn for Epub Reader by @GenesiaW in crosspoint-reader#1219 * feat: enhance file deletion functionality with multi-select by @Jessica765 in crosspoint-reader#682 * feat: Long Click for File Deletion through File Browser by @Levrk in crosspoint-reader#909 * feat: Take screenshots by @el in crosspoint-reader#759 * feat: Current page as QR by @el in crosspoint-reader#1099 * feat: Download links for web server by @el in crosspoint-reader#1039 * feat: Added BmpViewer activity for viewing .bmp images in file browser by @Levrk in crosspoint-reader#887 * feat: User setting for image display by @jpirnay in crosspoint-reader#1291 * feat: Show hidden directories in browser by @jpirnay in crosspoint-reader#1288 * feat: Prefer ".sleep" over "sleep" for custom image directory by @jpirnay in crosspoint-reader#948 * feat: Allow a local configuration file for custom compiles by @jpirnay in crosspoint-reader#879 * feat: Migrate binary settings to json by @jpirnay in crosspoint-reader#920 * feat: split status bar setting by @whyte-j in crosspoint-reader#733 * feat: wrapped text in GfxRender, implemented in themes so far by @iandchasse in crosspoint-reader#1141 * feat: Themed language screen by @CaptainFrito in crosspoint-reader#1020 * feat: set WiFi hostname to CrossPoint-Reader-XXXXXXXXXXXX by @dexif in crosspoint-reader#1107 * feat: Add maxAlloc to memory information by @jpirnay in crosspoint-reader#1152 * feat: replace picojpeg with JPEGDEC for JPEG image decoding by @martinbrook in crosspoint-reader#1136 * feat: Add git branch to version information on settings screen by @jpirnay in crosspoint-reader#1225 * feat: sort languages in selection menu by @ariel-lindemann in crosspoint-reader#1071 * feat: Latin Extended-B European glyphs by @znelson in crosspoint-reader#1157 * feat: Latin Extended-B European glyphs by @znelson in crosspoint-reader#1167 * feat: Vietnamese glyphs support by @danoooob in crosspoint-reader#1147 * feat: add Turkish translation by @barbarhan in crosspoint-reader#1192 * feat: add full Danish translation by @hajisan in crosspoint-reader#1146 * feat: Add Finnish translations by @plahteenlahti in crosspoint-reader#1133 * feat: Add Polish Language by @th0m4sek in crosspoint-reader#1155 * feat: add Dutch translation by @basvdploeg in crosspoint-reader#1204 * feat: add Belarusian translation by @dexif in crosspoint-reader#1120 * feat: Add full Italian translations by @andreaturchet in crosspoint-reader#1144 * feat: add Ukrainian translation by @mirus-ua in crosspoint-reader#1065 * feat: Add Kazakh (kk) language support by @fsocietyipa in crosspoint-reader#1377 * feat: added Romanian strings by @ariel-lindemann in crosspoint-reader#987 * feat: add Catalan strings by @angeldenom in crosspoint-reader#1049 * feat: Make directories stand out more in local file browser: "[dir]" instead of "dir" by @jpirnay in crosspoint-reader#1339 * feat: Add Polish strings for commits crosspoint-reader#1219,crosspoint-reader#1169,crosspoint-reader#1031 +tweaks by @th0m4sek in crosspoint-reader#1227 * feat: Polish translation tweaks by @th0m4sek in crosspoint-reader#1193 ### Fixes * fix: Fix img layout issue / support CSS display:none for elements and images by @jpirnay in crosspoint-reader#1443 * fix: Overlapping battery percentage on image pages with anti-aliasing by @znelson in crosspoint-reader#1452 * fix: Fix prewarm perf when a page contains many styles by @adriancaruana in crosspoint-reader#1451 * fix: use sleep routine from the original firmware by @ngxson in crosspoint-reader#1298 * fix: Prevent line breaks on common English contractions by @znelson in crosspoint-reader#1405 * fix: Build with -fno-exceptions by @znelson in crosspoint-reader#1412 * fix: Reduce flash usage by cleaning up I18n translations by @steka in crosspoint-reader#1401 * fix: jpeg resource cleanup by @jpirnay in crosspoint-reader#1320 * fix: back button in settings returns to tab bar first by @Cache8063 in crosspoint-reader#1354 * fix: Init lastSleepImage (edge case) by @jpirnay in crosspoint-reader#1360 * fix: Add special handling for apostrophe hyphenation by @jpirnay in crosspoint-reader#1318 * fix: Fix inter-word spacing rounding error in text layout by @znelson in crosspoint-reader#1311 * fix: load access fault crash by @Uri-Tauber in crosspoint-reader#1370 * fix: Fix bootloop logging crash by @jpirnay in crosspoint-reader#1357 * fix: dump crash log without usb plugged, bump release log to INFO by @ngxson in crosspoint-reader#1332 * fix: avoid zip filename overflow by @jpirnay in crosspoint-reader#1321 * fix: Hanging indent (negative text-indent) and em-unit sizing by @jpirnay in crosspoint-reader#1229 * fix: Use fixed-point fractional x-advance and kerning for better text layout by @znelson in crosspoint-reader#1168 * fix: use HTTPClient::writeToStream for downloading files from OPDS by @osteotek in crosspoint-reader#1207 * fix: make file system operations thread-safe (HalFile) by @ngxson in crosspoint-reader#1212 * fix: properly implement requestUpdateAndWait() by @ngxson in crosspoint-reader#1218 * fix: prevent infinite render loop in Calibre Wireless after file transfer by @pablohc in crosspoint-reader#1070 * fix: WiFi lifecycle and hyphenation heap defragmentation for KOReader sync by @jpirnay in crosspoint-reader#1151 * fix: Fix coverRendered flag by @jpirnay in crosspoint-reader#1154 * fix: Handle non-ASCII characters in sanitizeFilename by @znelson in crosspoint-reader#1132 * fix: Update activity was missing "Back" button label by @znelson in crosspoint-reader#1128 * fix: force auto-hinting for Bookerly to fix inconsistent stem widths by @adriancaruana in crosspoint-reader#1098 * fix: image centering bleed by @martinbrook in crosspoint-reader#1096 * fix: double free WebDAVHandler by @ngxson in crosspoint-reader#1093 * fix: Consider extra quotation styles when hyphenating quoted words by @cbix in crosspoint-reader#1077 * fix: acquire power lock before sleeping by @ngxson in crosspoint-reader#1125 * fix: Unify inconsistent Wi-Fi/WiFi in Czech translation by @pepastach in crosspoint-reader#1138 * fix: sdfat warning about redefinition of macro by @ngxson in crosspoint-reader#1135 * fix: Close leaked file descriptors in SleepActivity and web server by @brbla in crosspoint-reader#869 * fix: Enable DESTRUCTOR_CLOSES_FILE flag by @daveallie in crosspoint-reader#1075 * fix: Change "UI Font Size" to "Reader Font Size" by @divinitycove in crosspoint-reader#1171 * fix: Hide unusable button hints when viewing empty directory by @Levrk in crosspoint-reader#1253 * fix: broken translations in status bar settings by @ariel-lindemann in crosspoint-reader#1188 * fix: clarity issue with ambiguous string `SET` by @ariel-lindemann in crosspoint-reader#1169 * fix: Crash (Load access fault) when indexing chapters containing characters unsupported by bold/italic font variants by @Uri-Tauber in crosspoint-reader#997 * fix: Increase PNGdec buffer size to support wide images by @osteotek in crosspoint-reader#995 * fix: Use HalPowerManager for battery percentage by @vjapolitzer in crosspoint-reader#1005 * fix: Fix dangling pointer by @Uri-Tauber in crosspoint-reader#1010 * fix: re-implementing Cover Outlines for the new Lyra Themes by @Levrk in crosspoint-reader#1017 * fix: use double FAST_REFRESH to prevent washout on large grey images by @martinbrook in crosspoint-reader#957 * fix: Fixed Image Sizing When No Width is Set by @DestinySpeaker in crosspoint-reader#1002 * fix: Strip unused CSS rules by @daveallie in crosspoint-reader#1014 * fix: continue reading card classic theme by @pablohc in crosspoint-reader#990 * fix: Destroy CSS Cache file when invalid by @daveallie in crosspoint-reader#1018 * fix: Shorten "Forget Wifi" button labels to fit on button by @lukestein in crosspoint-reader#1045 * fix: improve Spanish translations by @pablohc in crosspoint-reader#1054 * fix: Fixed book title in home screen by @DestinySpeaker in crosspoint-reader#1013 * fix: Fix hyphenation and rendering of decomposed characters by @jpirnay in crosspoint-reader#1037 * fix: Improve and add Spanish translations by @DaniPhii in crosspoint-reader#1338 * fix: improve and add Spanish translations by @DaniPhii in crosspoint-reader#1254 * fix: improve and add Swedish translations by @steka in crosspoint-reader#1317 * fix: Extend missing / amend existing German translations by @jpirnay in crosspoint-reader#1226 * fix: update french.yaml file to have a better French translation of the CFW by @Spigaw in crosspoint-reader#1130 * fix: added romanian translation to new strings by @ariel-lindemann in crosspoint-reader#1105 * fix: add missing romanian strings by @ariel-lindemann in crosspoint-reader#1187 * fix: add new Ukrainian translation line for STR_SCREENSHOT_BUTTON by @mirus-ua in crosspoint-reader#1149 * fix: Dutch translation prefix correction by @basvdploeg in crosspoint-reader#1223 * fix: Small typo in i18n.md regarding C++ identifiers by @victordomingos in crosspoint-reader#1210 * fix: typo in USER_GUIDE.md by @arnaugamez in crosspoint-reader#1036 * fix: add missing keyboard metrics to Lyra3CoversTheme by @dexif in crosspoint-reader#1101 ### Internal * perf: font-compression improvements by @adriancaruana in crosspoint-reader#1056 * perf: Improve font drawing performance by @jpirnay in crosspoint-reader#978 * perf: Replace std::list with std::vector in text layout by @znelson in crosspoint-reader#1038 * perf: Optimize HTML entities lookup to O(log(n)) by @Uri-Tauber in crosspoint-reader#1194 * perf: UITheme::getMetrics const and const-ref usage by @znelson in crosspoint-reader#1094 * perf: Avoid creating strings for file extension checks by @znelson in crosspoint-reader#1303 * perf: Eliminate per-pixel overheads in image rendering by @martinbrook in crosspoint-reader#1293 * perf: Update github actions for optimal performance with pioarduino by @Jason2866 in crosspoint-reader#1080 * style: Phase 1 - Simple light dark themes by @cdmoro in crosspoint-reader#1006 * refactor: implement ActivityManager by @ngxson in crosspoint-reader#1016 * refactor: Simplify REPLACEMENT_GLYPH fallback by @znelson in crosspoint-reader#1119 * refactor: Simplify new setting introduction by @jpirnay in crosspoint-reader#1086 * refactor: Use std binary search algorithms for font lookups by @znelson in crosspoint-reader#1202 * refactor: rename MyLibrary to FileBrowser by @osteotek in crosspoint-reader#1260 * refactor: Avoid rebuilding cache path strings by @znelson in crosspoint-reader#1300 * refactor: reader utils by @Uri-Tauber in crosspoint-reader#1329 * chore: Remove miniz and modularise inflation logic by @daveallie in crosspoint-reader#1073 * chore: Resolve several build warnings by @daveallie in crosspoint-reader#1076 * chore: Removed generated language headers by @znelson in crosspoint-reader#1156 * chore: Added generated lang headers to .gitignore by @znelson in crosspoint-reader#1158 * chore: remove redundant xTaskCreate by @ngxson in crosspoint-reader#1264 * chore: Removed unused PlatformIO include directory placeholder by @znelson in crosspoint-reader#1417 * chore: micro-optimisation: early exit on fillUncompressedSizes by @jpirnay in crosspoint-reader#1322 * chore: change label while on settings tab actions by @jpirnay in crosspoint-reader#1325 * chore: add firmware size history script by @znelson in crosspoint-reader#1235 * chore: Add powershell script for clang-formatting by @jpirnay in crosspoint-reader#1472 * chore: Removed unused ConfirmationActivity member by @znelson in crosspoint-reader#1234 * chore: Update russian.yaml by @madebyKir in crosspoint-reader#1198 * chore: new Ukrainian translation lines by @mirus-ua in crosspoint-reader#1199 * chore: new Ukrainian localization strings by @mirus-ua in crosspoint-reader#1270 * chore: Polish localization for STR_DELETE by @JonaszPotoniec in crosspoint-reader#1323 * chore: Image settings Polish localization by @znelson in crosspoint-reader#1299 * chore: add missing Catalan strings by @angeldenom in crosspoint-reader#1302 * chore: add missing translations for Romanian by @ariel-lindemann in crosspoint-reader#1265 * chore: Add Portuguese (Portugal) translator to the list by @victordomingos in crosspoint-reader#1211 * chore: Reduce flash usage by cleaning up I18n translations by @steka in crosspoint-reader#1401 * docs: Add lightweight contributor onboarding documentation by @bilalix in crosspoint-reader#894 * docs: ActivityManager migration guide by @znelson in crosspoint-reader#1222 * docs: USER_GUIDE.md update for 1.1.0 by @divinitycove in crosspoint-reader#1108 * docs: add quick KOReader sync setup guide by @wjhrdy in crosspoint-reader#1181 * docs: image support marked as completed by @ariel-lindemann in crosspoint-reader#1008 * feat: aiagent context definition by @jpirnay in crosspoint-reader#922 * chore: Update SKILL.md to reflect generated i18n files are gitignored by @znelson in crosspoint-reader#1423 * fix: ActivityManager tweaks by @znelson in crosspoint-reader#1220 * fix: Correct relative file paths in SKILL.md documentation by @pablohc in crosspoint-reader#1304 * fix: add Technically Unsupported section to SCOPE.md by @Uri-Tauber in crosspoint-reader#1295 ## New Contributors * @DestinySpeaker made their first contribution in crosspoint-reader#1002 * @arnaugamez made their first contribution in crosspoint-reader#1036 * @angeldenom made their first contribution in crosspoint-reader#1049 * @cdmoro made their first contribution in crosspoint-reader#1006 * @bilalix made their first contribution in crosspoint-reader#894 * @Jessica765 made their first contribution in crosspoint-reader#682 * @brbla made their first contribution in crosspoint-reader#869 * @dexif made their first contribution in crosspoint-reader#1047 * @mirus-ua made their first contribution in crosspoint-reader#1065 * @cbix made their first contribution in crosspoint-reader#1077 * @divinitycove made their first contribution in crosspoint-reader#1108 * @pepastach made their first contribution in crosspoint-reader#1138 * @Jason2866 made their first contribution in crosspoint-reader#1080 * @andreaturchet made their first contribution in crosspoint-reader#1144 * @Spigaw made their first contribution in crosspoint-reader#1130 * @iandchasse made their first contribution in crosspoint-reader#1141 * @th0m4sek made their first contribution in crosspoint-reader#1155 * @plahteenlahti made their first contribution in crosspoint-reader#1133 * @hajisan made their first contribution in crosspoint-reader#1146 * @madebyKir made their first contribution in crosspoint-reader#1198 * @victordomingos made their first contribution in crosspoint-reader#1210 * @basvdploeg made their first contribution in crosspoint-reader#1204 * @wjhrdy made their first contribution in crosspoint-reader#1181 * @DaniPhii made their first contribution in crosspoint-reader#1254 * @steka made their first contribution in crosspoint-reader#1317 * @barbarhan made their first contribution in crosspoint-reader#1192 * @JonaszPotoniec made their first contribution in crosspoint-reader#1323 * @Cache8063 made their first contribution in crosspoint-reader#1354 * @fsocietyipa made their first contribution in crosspoint-reader#1377 * @LSTAR1900 made their first contribution in crosspoint-reader#979 * @zgredex made their first contribution in crosspoint-reader#1224 **Full Changelog**: crosspoint-reader/crosspoint-reader@1.1.1...release/1.2.0 --------- Co-authored-by: jpirnay <jens@pirnay.com> Co-authored-by: Dani Poveda <daniphii@outlook.com> Co-authored-by: Baris Albayrak <80099286+barbarhan@users.noreply.github.com> Co-authored-by: Barış Albayrak <barisa@pop-os.lan> Co-authored-by: Stefan Blixten Karlsson <sbkarlsson@gmail.com> Co-authored-by: Àngel <153315454+angeldenom@users.noreply.github.com> Co-authored-by: Jonasz Potoniec <jonasz@potoniec.eu> Co-authored-by: Егор Мартынов <martynovegorOF@yandex.ru> Co-authored-by: Mirus <mirusim@gmail.com> Co-authored-by: Spigaw <73850535+Spigaw@users.noreply.github.com> Co-authored-by: ariel-lindemann <41641978+ariel-lindemann@users.noreply.github.com> Co-authored-by: Nima Salami <54304457+hajisan@users.noreply.github.com> Co-authored-by: Arthur Tazhitdinov <lisnake@gmail.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: Bas van der Ploeg <bas@basvanderploeg.nl> Co-authored-by: martin brook <martin.brook100@googlemail.com>
## Summary It's been a little while since the last release, but the community has been incredibly busy. With 155 changes from 48 contributors (30 of which were new!), there was a lot to cover. Here are some of the highlights: **🔤 Kerning, Ligatures, and Font Improvements** Text rendering gets a significant upgrade with proper kerning and ligature support, fixed-point fractional x-advance for more accurate character placement, and font compression improvements that reduce flash usage. **📝 Footnotes** Footnote anchor navigation lets you select a footnote reference and jump to the footnote text, then jump back. Slim footnotes support is also available for books that use inline footnotes. **📖 EPUB Optimizer** A new integrated EPUB optimizer can clean up and reprocess books for better compatibility with the reader, directly from the device. **🔋 Battery Charging Indicator** You can now see when your device is actively charging, with a visual indicator on the battery icon. **💾 Crash Diagnostics** When something goes wrong, the firmware now dumps a crash report to the SD card — even without USB plugged in. This makes it much easier to report and diagnose issues. **🌐 New Languages** The community continues to expand language support. New in this release: Turkish, Danish, Finnish, Polish, Dutch, Belarusian, Italian, Ukrainian, Romanian, Catalan, Vietnamese, and Kazakh — along with significant improvements to existing translations. **📂 File Management** Multi-select file deletion, BMP image viewer in the file browser, hidden directory browsing, and long-click file deletion from the file browser. **⚡ Performance** Under the hood, text layout switched from `std::list` to `std::vector`, HTML entity lookups are now O(log(n)), font rendering is faster, image decode is 5-20% faster with per-pixel overhead eliminated, and multiple string allocation hot paths were eliminated. Pre-indexing of the next chapter also reduces page-turn latency at chapter boundaries. --- Along with all of the above, there are many other additions including **WebDAV support**, **auto page turn**, **QR code for current page**, **split status bar settings**, **screenshot capture**, **JSON-based settings migration**, **light/dark theme groundwork**, and a long list of stability fixes and translation improvements. ## What's Changed ### Features * feat: Support for kerning and ligatures by @znelson in crosspoint-reader#873 * feat: footnote anchor navigation by @Uri-Tauber in crosspoint-reader#1245 * feat: slim footnotes support by @Uri-Tauber in crosspoint-reader#1031 * feat: integrated epub optimizer by @zgredex and @pablohc in crosspoint-reader#1224 * feat: battery charging indicator (mirroring PR crosspoint-reader#537) by @jpirnay in crosspoint-reader#1427 * feat: dump crash report to sdcard by @ngxson in crosspoint-reader#1145 * feat: Implement silent pre-indexing for the next chapter in EpubReaderActivity by @LSTAR1900 in crosspoint-reader#979 * feat: upgrade platform and support webdav by @dexif in crosspoint-reader#1047 * feat: Auto Page Turn for Epub Reader by @GenesiaW in crosspoint-reader#1219 * feat: enhance file deletion functionality with multi-select by @Jessica765 in crosspoint-reader#682 * feat: Long Click for File Deletion through File Browser by @Levrk in crosspoint-reader#909 * feat: Take screenshots by @el in crosspoint-reader#759 * feat: Current page as QR by @el in crosspoint-reader#1099 * feat: Download links for web server by @el in crosspoint-reader#1039 * feat: Added BmpViewer activity for viewing .bmp images in file browser by @Levrk in crosspoint-reader#887 * feat: User setting for image display by @jpirnay in crosspoint-reader#1291 * feat: Show hidden directories in browser by @jpirnay in crosspoint-reader#1288 * feat: Prefer ".sleep" over "sleep" for custom image directory by @jpirnay in crosspoint-reader#948 * feat: Allow a local configuration file for custom compiles by @jpirnay in crosspoint-reader#879 * feat: Migrate binary settings to json by @jpirnay in crosspoint-reader#920 * feat: split status bar setting by @whyte-j in crosspoint-reader#733 * feat: wrapped text in GfxRender, implemented in themes so far by @iandchasse in crosspoint-reader#1141 * feat: Themed language screen by @CaptainFrito in crosspoint-reader#1020 * feat: set WiFi hostname to CrossPoint-Reader-XXXXXXXXXXXX by @dexif in crosspoint-reader#1107 * feat: Add maxAlloc to memory information by @jpirnay in crosspoint-reader#1152 * feat: replace picojpeg with JPEGDEC for JPEG image decoding by @martinbrook in crosspoint-reader#1136 * feat: Add git branch to version information on settings screen by @jpirnay in crosspoint-reader#1225 * feat: sort languages in selection menu by @ariel-lindemann in crosspoint-reader#1071 * feat: Latin Extended-B European glyphs by @znelson in crosspoint-reader#1157 * feat: Latin Extended-B European glyphs by @znelson in crosspoint-reader#1167 * feat: Vietnamese glyphs support by @danoooob in crosspoint-reader#1147 * feat: add Turkish translation by @barbarhan in crosspoint-reader#1192 * feat: add full Danish translation by @hajisan in crosspoint-reader#1146 * feat: Add Finnish translations by @plahteenlahti in crosspoint-reader#1133 * feat: Add Polish Language by @th0m4sek in crosspoint-reader#1155 * feat: add Dutch translation by @basvdploeg in crosspoint-reader#1204 * feat: add Belarusian translation by @dexif in crosspoint-reader#1120 * feat: Add full Italian translations by @andreaturchet in crosspoint-reader#1144 * feat: add Ukrainian translation by @mirus-ua in crosspoint-reader#1065 * feat: Add Kazakh (kk) language support by @fsocietyipa in crosspoint-reader#1377 * feat: added Romanian strings by @ariel-lindemann in crosspoint-reader#987 * feat: add Catalan strings by @angeldenom in crosspoint-reader#1049 * feat: Make directories stand out more in local file browser: "[dir]" instead of "dir" by @jpirnay in crosspoint-reader#1339 * feat: Add Polish strings for commits crosspoint-reader#1219,crosspoint-reader#1169,crosspoint-reader#1031 +tweaks by @th0m4sek in crosspoint-reader#1227 * feat: Polish translation tweaks by @th0m4sek in crosspoint-reader#1193 ### Fixes * fix: Fix img layout issue / support CSS display:none for elements and images by @jpirnay in crosspoint-reader#1443 * fix: Overlapping battery percentage on image pages with anti-aliasing by @znelson in crosspoint-reader#1452 * fix: Fix prewarm perf when a page contains many styles by @adriancaruana in crosspoint-reader#1451 * fix: use sleep routine from the original firmware by @ngxson in crosspoint-reader#1298 * fix: Prevent line breaks on common English contractions by @znelson in crosspoint-reader#1405 * fix: Build with -fno-exceptions by @znelson in crosspoint-reader#1412 * fix: Reduce flash usage by cleaning up I18n translations by @steka in crosspoint-reader#1401 * fix: jpeg resource cleanup by @jpirnay in crosspoint-reader#1320 * fix: back button in settings returns to tab bar first by @Cache8063 in crosspoint-reader#1354 * fix: Init lastSleepImage (edge case) by @jpirnay in crosspoint-reader#1360 * fix: Add special handling for apostrophe hyphenation by @jpirnay in crosspoint-reader#1318 * fix: Fix inter-word spacing rounding error in text layout by @znelson in crosspoint-reader#1311 * fix: load access fault crash by @Uri-Tauber in crosspoint-reader#1370 * fix: Fix bootloop logging crash by @jpirnay in crosspoint-reader#1357 * fix: dump crash log without usb plugged, bump release log to INFO by @ngxson in crosspoint-reader#1332 * fix: avoid zip filename overflow by @jpirnay in crosspoint-reader#1321 * fix: Hanging indent (negative text-indent) and em-unit sizing by @jpirnay in crosspoint-reader#1229 * fix: Use fixed-point fractional x-advance and kerning for better text layout by @znelson in crosspoint-reader#1168 * fix: use HTTPClient::writeToStream for downloading files from OPDS by @osteotek in crosspoint-reader#1207 * fix: make file system operations thread-safe (HalFile) by @ngxson in crosspoint-reader#1212 * fix: properly implement requestUpdateAndWait() by @ngxson in crosspoint-reader#1218 * fix: prevent infinite render loop in Calibre Wireless after file transfer by @pablohc in crosspoint-reader#1070 * fix: WiFi lifecycle and hyphenation heap defragmentation for KOReader sync by @jpirnay in crosspoint-reader#1151 * fix: Fix coverRendered flag by @jpirnay in crosspoint-reader#1154 * fix: Handle non-ASCII characters in sanitizeFilename by @znelson in crosspoint-reader#1132 * fix: Update activity was missing "Back" button label by @znelson in crosspoint-reader#1128 * fix: force auto-hinting for Bookerly to fix inconsistent stem widths by @adriancaruana in crosspoint-reader#1098 * fix: image centering bleed by @martinbrook in crosspoint-reader#1096 * fix: double free WebDAVHandler by @ngxson in crosspoint-reader#1093 * fix: Consider extra quotation styles when hyphenating quoted words by @cbix in crosspoint-reader#1077 * fix: acquire power lock before sleeping by @ngxson in crosspoint-reader#1125 * fix: Unify inconsistent Wi-Fi/WiFi in Czech translation by @pepastach in crosspoint-reader#1138 * fix: sdfat warning about redefinition of macro by @ngxson in crosspoint-reader#1135 * fix: Close leaked file descriptors in SleepActivity and web server by @brbla in crosspoint-reader#869 * fix: Enable DESTRUCTOR_CLOSES_FILE flag by @daveallie in crosspoint-reader#1075 * fix: Change "UI Font Size" to "Reader Font Size" by @divinitycove in crosspoint-reader#1171 * fix: Hide unusable button hints when viewing empty directory by @Levrk in crosspoint-reader#1253 * fix: broken translations in status bar settings by @ariel-lindemann in crosspoint-reader#1188 * fix: clarity issue with ambiguous string `SET` by @ariel-lindemann in crosspoint-reader#1169 * fix: Crash (Load access fault) when indexing chapters containing characters unsupported by bold/italic font variants by @Uri-Tauber in crosspoint-reader#997 * fix: Increase PNGdec buffer size to support wide images by @osteotek in crosspoint-reader#995 * fix: Use HalPowerManager for battery percentage by @vjapolitzer in crosspoint-reader#1005 * fix: Fix dangling pointer by @Uri-Tauber in crosspoint-reader#1010 * fix: re-implementing Cover Outlines for the new Lyra Themes by @Levrk in crosspoint-reader#1017 * fix: use double FAST_REFRESH to prevent washout on large grey images by @martinbrook in crosspoint-reader#957 * fix: Fixed Image Sizing When No Width is Set by @DestinySpeaker in crosspoint-reader#1002 * fix: Strip unused CSS rules by @daveallie in crosspoint-reader#1014 * fix: continue reading card classic theme by @pablohc in crosspoint-reader#990 * fix: Destroy CSS Cache file when invalid by @daveallie in crosspoint-reader#1018 * fix: Shorten "Forget Wifi" button labels to fit on button by @lukestein in crosspoint-reader#1045 * fix: improve Spanish translations by @pablohc in crosspoint-reader#1054 * fix: Fixed book title in home screen by @DestinySpeaker in crosspoint-reader#1013 * fix: Fix hyphenation and rendering of decomposed characters by @jpirnay in crosspoint-reader#1037 * fix: Improve and add Spanish translations by @DaniPhii in crosspoint-reader#1338 * fix: improve and add Spanish translations by @DaniPhii in crosspoint-reader#1254 * fix: improve and add Swedish translations by @steka in crosspoint-reader#1317 * fix: Extend missing / amend existing German translations by @jpirnay in crosspoint-reader#1226 * fix: update french.yaml file to have a better French translation of the CFW by @Spigaw in crosspoint-reader#1130 * fix: added romanian translation to new strings by @ariel-lindemann in crosspoint-reader#1105 * fix: add missing romanian strings by @ariel-lindemann in crosspoint-reader#1187 * fix: add new Ukrainian translation line for STR_SCREENSHOT_BUTTON by @mirus-ua in crosspoint-reader#1149 * fix: Dutch translation prefix correction by @basvdploeg in crosspoint-reader#1223 * fix: Small typo in i18n.md regarding C++ identifiers by @victordomingos in crosspoint-reader#1210 * fix: typo in USER_GUIDE.md by @arnaugamez in crosspoint-reader#1036 * fix: add missing keyboard metrics to Lyra3CoversTheme by @dexif in crosspoint-reader#1101 ### Internal * perf: font-compression improvements by @adriancaruana in crosspoint-reader#1056 * perf: Improve font drawing performance by @jpirnay in crosspoint-reader#978 * perf: Replace std::list with std::vector in text layout by @znelson in crosspoint-reader#1038 * perf: Optimize HTML entities lookup to O(log(n)) by @Uri-Tauber in crosspoint-reader#1194 * perf: UITheme::getMetrics const and const-ref usage by @znelson in crosspoint-reader#1094 * perf: Avoid creating strings for file extension checks by @znelson in crosspoint-reader#1303 * perf: Eliminate per-pixel overheads in image rendering by @martinbrook in crosspoint-reader#1293 * perf: Update github actions for optimal performance with pioarduino by @Jason2866 in crosspoint-reader#1080 * style: Phase 1 - Simple light dark themes by @cdmoro in crosspoint-reader#1006 * refactor: implement ActivityManager by @ngxson in crosspoint-reader#1016 * refactor: Simplify REPLACEMENT_GLYPH fallback by @znelson in crosspoint-reader#1119 * refactor: Simplify new setting introduction by @jpirnay in crosspoint-reader#1086 * refactor: Use std binary search algorithms for font lookups by @znelson in crosspoint-reader#1202 * refactor: rename MyLibrary to FileBrowser by @osteotek in crosspoint-reader#1260 * refactor: Avoid rebuilding cache path strings by @znelson in crosspoint-reader#1300 * refactor: reader utils by @Uri-Tauber in crosspoint-reader#1329 * chore: Remove miniz and modularise inflation logic by @daveallie in crosspoint-reader#1073 * chore: Resolve several build warnings by @daveallie in crosspoint-reader#1076 * chore: Removed generated language headers by @znelson in crosspoint-reader#1156 * chore: Added generated lang headers to .gitignore by @znelson in crosspoint-reader#1158 * chore: remove redundant xTaskCreate by @ngxson in crosspoint-reader#1264 * chore: Removed unused PlatformIO include directory placeholder by @znelson in crosspoint-reader#1417 * chore: micro-optimisation: early exit on fillUncompressedSizes by @jpirnay in crosspoint-reader#1322 * chore: change label while on settings tab actions by @jpirnay in crosspoint-reader#1325 * chore: add firmware size history script by @znelson in crosspoint-reader#1235 * chore: Add powershell script for clang-formatting by @jpirnay in crosspoint-reader#1472 * chore: Removed unused ConfirmationActivity member by @znelson in crosspoint-reader#1234 * chore: Update russian.yaml by @madebyKir in crosspoint-reader#1198 * chore: new Ukrainian translation lines by @mirus-ua in crosspoint-reader#1199 * chore: new Ukrainian localization strings by @mirus-ua in crosspoint-reader#1270 * chore: Polish localization for STR_DELETE by @JonaszPotoniec in crosspoint-reader#1323 * chore: Image settings Polish localization by @znelson in crosspoint-reader#1299 * chore: add missing Catalan strings by @angeldenom in crosspoint-reader#1302 * chore: add missing translations for Romanian by @ariel-lindemann in crosspoint-reader#1265 * chore: Add Portuguese (Portugal) translator to the list by @victordomingos in crosspoint-reader#1211 * chore: Reduce flash usage by cleaning up I18n translations by @steka in crosspoint-reader#1401 * docs: Add lightweight contributor onboarding documentation by @bilalix in crosspoint-reader#894 * docs: ActivityManager migration guide by @znelson in crosspoint-reader#1222 * docs: USER_GUIDE.md update for 1.1.0 by @divinitycove in crosspoint-reader#1108 * docs: add quick KOReader sync setup guide by @wjhrdy in crosspoint-reader#1181 * docs: image support marked as completed by @ariel-lindemann in crosspoint-reader#1008 * feat: aiagent context definition by @jpirnay in crosspoint-reader#922 * chore: Update SKILL.md to reflect generated i18n files are gitignored by @znelson in crosspoint-reader#1423 * fix: ActivityManager tweaks by @znelson in crosspoint-reader#1220 * fix: Correct relative file paths in SKILL.md documentation by @pablohc in crosspoint-reader#1304 * fix: add Technically Unsupported section to SCOPE.md by @Uri-Tauber in crosspoint-reader#1295 ## New Contributors * @DestinySpeaker made their first contribution in crosspoint-reader#1002 * @arnaugamez made their first contribution in crosspoint-reader#1036 * @angeldenom made their first contribution in crosspoint-reader#1049 * @cdmoro made their first contribution in crosspoint-reader#1006 * @bilalix made their first contribution in crosspoint-reader#894 * @Jessica765 made their first contribution in crosspoint-reader#682 * @brbla made their first contribution in crosspoint-reader#869 * @dexif made their first contribution in crosspoint-reader#1047 * @mirus-ua made their first contribution in crosspoint-reader#1065 * @cbix made their first contribution in crosspoint-reader#1077 * @divinitycove made their first contribution in crosspoint-reader#1108 * @pepastach made their first contribution in crosspoint-reader#1138 * @Jason2866 made their first contribution in crosspoint-reader#1080 * @andreaturchet made their first contribution in crosspoint-reader#1144 * @Spigaw made their first contribution in crosspoint-reader#1130 * @iandchasse made their first contribution in crosspoint-reader#1141 * @th0m4sek made their first contribution in crosspoint-reader#1155 * @plahteenlahti made their first contribution in crosspoint-reader#1133 * @hajisan made their first contribution in crosspoint-reader#1146 * @madebyKir made their first contribution in crosspoint-reader#1198 * @victordomingos made their first contribution in crosspoint-reader#1210 * @basvdploeg made their first contribution in crosspoint-reader#1204 * @wjhrdy made their first contribution in crosspoint-reader#1181 * @DaniPhii made their first contribution in crosspoint-reader#1254 * @steka made their first contribution in crosspoint-reader#1317 * @barbarhan made their first contribution in crosspoint-reader#1192 * @JonaszPotoniec made their first contribution in crosspoint-reader#1323 * @Cache8063 made their first contribution in crosspoint-reader#1354 * @fsocietyipa made their first contribution in crosspoint-reader#1377 * @LSTAR1900 made their first contribution in crosspoint-reader#979 * @zgredex made their first contribution in crosspoint-reader#1224 **Full Changelog**: crosspoint-reader/crosspoint-reader@1.1.1...release/1.2.0 --------- Co-authored-by: jpirnay <jens@pirnay.com> Co-authored-by: Dani Poveda <daniphii@outlook.com> Co-authored-by: Baris Albayrak <80099286+barbarhan@users.noreply.github.com> Co-authored-by: Barış Albayrak <barisa@pop-os.lan> Co-authored-by: Stefan Blixten Karlsson <sbkarlsson@gmail.com> Co-authored-by: Àngel <153315454+angeldenom@users.noreply.github.com> Co-authored-by: Jonasz Potoniec <jonasz@potoniec.eu> Co-authored-by: Егор Мартынов <martynovegorOF@yandex.ru> Co-authored-by: Mirus <mirusim@gmail.com> Co-authored-by: Spigaw <73850535+Spigaw@users.noreply.github.com> Co-authored-by: ariel-lindemann <41641978+ariel-lindemann@users.noreply.github.com> Co-authored-by: Nima Salami <54304457+hajisan@users.noreply.github.com> Co-authored-by: Arthur Tazhitdinov <lisnake@gmail.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: Bas van der Ploeg <bas@basvanderploeg.nl> Co-authored-by: martin brook <martin.brook100@googlemail.com>
Summary
What is the goal of this PR?
This change avoids the pattern of creating a
std::stringusing.substrin order to compare against a file extension literal.The
checkFileExtensionutility has moved from StringUtils to FsHelpers, to be available to code in lib/. The signature now accepts astd::string_viewinstead ofstd::string, which makes the single implementation reusable for ArduinoString.Added utility functions for commonly repeated extensions.
These changes save about 2 KB of flash (5,999,427 to 5,997,343).
AI Usage
While CrossPoint doesn't have restrictions on AI tools in contributing, please be transparent about their usage as it
helps set the right context for reviewers.
Did you use AI tools to help write this code? NO