Skip to content

Releases

bokai-v0.2.4

Choose a tag to compare

@huangziwei huangziwei released this 15 Nov 17:35

Fix

A bug related links/footnotes in EPUB>KFX: when an EPUB doesn't label its footnotes, bokai treated any two links that point at each other as a note marker and its note. The result was a wrong pop-up footnote on Kindle. It's been fixed and let's hope the fix doesn't affect real footnotes (as far as I know).

Full Changelog: sidle-v0.1.15...bokai-v0.2.4

sidle-v0.1.15

Choose a tag to compare

@huangziwei huangziwei released this 31 Oct 15:39

Change

Metadata (such as book title, author, publisher, language, etc) that edited from Sidle will now bake into book files (EPUB, KFX, and PDF) too.

Full Changelog: bokai-v0.2.3...sidle-v0.1.15

bokai-v0.2.3

Choose a tag to compare

@huangziwei huangziwei released this 31 Oct 09:03

Fix

  • EPUB > KFX: some drop caps were lost in conversion due to nonstandard inline tags were not parsed. Now they were kept with some built-in styles for selective ones.

Full Changelog: bokai-v0.2.2...bokai-v0.2.3

bokai-v0.2.2

Choose a tag to compare

@huangziwei huangziwei released this 22 Oct 07:53

Fixed

  • KFX export: background: transparent no longer turns into a black box. Since 0.2.0 it was written as zero-alpha black (fill_color / text_background_color = 0), and Kindle devices ignore the alpha and paint it black.

Full Changelog: bokai-v0.2.1...bokai-v0.2.2

bokai-v0.2.1

Choose a tag to compare

@huangziwei huangziwei released this 19 Oct 17:48

bokai 0.2.1

New

  • bokai position <book> <start> [<end>] [--json] prints the source text at a reading position without converting the book. A position is a KFX position id, a byte offset into a MOBI or KF8 text stream, or an <element>:<offset> pair. Reads KFX, AZW3 and MOBI.
  • The same lookup in the library:
    • Book::text_at, Book::axis_slice, Importer::axis_slice (default provided) and PositionMap::resolve
    • the types Point, Coordinate, PositionText, AxisSlice and PositionError
    • formats::mobi::text_stream, the text-stream decoder the MOBI and AZW3 importers now share
  • MobiHeader::text_length, the uncompressed length of the text stream as record 0 declares it.
  • EPUB 2 page lists: a book without an EPUB 3 page list takes Book::page_list from the NCX <pageList> (formats::epub::parse_ncx_page_list).
  • Chapter::detach.

Fixed

  • White space collapses as CSS Text specifies:
    • spaces collapse across inline elements
    • spaces at the start and end of a line are trimmed
    • white space between blocks leaves no text
    • a line break between two CJK characters is removed instead of becoming a space
  • white-space, word-break, overflow-wrap, orphans, widows, border-collapse and border-spacing now inherit.
  • The default stylesheet declares em, strong, b, i, u, s, code, font, rb and the other phrasing elements display: inline; 0.2.0 computed them as block.
  • @import is honoured only at the head of a stylesheet, after any @charset, @layer statements and comments. An import inside a comment or after a rule no longer loads its sheet.
  • A rule using :link, :any-link, :visited, :hover, :active or :focus is no longer dropped whole. :link matches an <a> with an href, the state pseudo-classes match nothing, and the rule's other selectors still apply.
  • EPUB: the OPF's <item>, <itemref> and attribute-style <meta>, and the NCX's <content>, were read only when self-closing. Written with an end tag (<item …></item>) they were dropped, which could leave a book with an empty manifest and spine.
  • KFX export: a horizontal title page or colophon in a vertical b
  • KFX export: tate-chu-yoko (horizontal-in-vertical text) applies only to text that is set vertically.
  • KFX export: an id on a tate-chu-yoko run becomes an anchor.
  • SourceText::extract follows the reading axis. A span crossing a nested element, such as a tate-chu-yoko run, now includes that element's text in place; 0.2.0 skipped it, ran past the span's end, or refused the span asd comes before its start within one element returns None insteadof an empty string.

Full Changelog: sidle-v0.1.13+bokai-v0.2.0...bokai-v0.2.1

sidle-v0.1.14

Choose a tag to compare

@huangziwei huangziwei released this 18 Oct 09:17

What's Changed?

Previously in v0.1.8, we introduced a "reading log" feature. The problem with Sidle's reading log is that it will only work for books loaded from Sidle, books from the Kindle store or other sources will not be recorded at all. This problem has been solved by the standalone Reading Log extension, which was started as a spin-off from Sidle's, and has been improved in terms of accuracy and coverage and many other aspects. So now it's the time to retire the inferior version from Sidle.

Full Changelog: sidle-v0.1.13+bokai-v0.2.0...sidle-v0.1.14

sidle-v0.1.13+bokai-v0.2.0

Choose a tag to compare

Sidle v0.1.3 EPUB Editor

Screenshot 2026-09-06 at 13 05 50

I was debating whether or not an eBook editor is truly necessary if we stick with official published books, but then there are fan-made ones from scans, containing typos and bad formatting. So yes, at least an EPUB editor is worthwhile. KFX Editor, on the other hand, doesn't seem worth doing (there's no fan-made kfx in the wild to be fixed to begin with, and it's also difficult to surgically fix a kfx while keeping every data in file unaffected; even though I started working but not finished yet).

Bokai v0.2.0

As always, working on Sidle reveals some bugs in bokai (mostly related to CJK, mostly related to EPUB to KFX). And as we have been releasing the kindle build for a while, I think it's also worth releasing it to crates.io, so that one can install and use it via cargo.

Full Changelog: sidle-v0.1.12+bokai-v0.1.8...sidle-v0.1.13+bokai-v.2.0

sidle-v0.1.12+bokai-v0.1.8

Choose a tag to compare

At first I was making a kfxreader emulator directly running files dumped from the devices, then moved on to build a native clone instead because emulation is not very efficient. And now we have a native KFX renderer in Rust.

Screenshot 2026-09-02 at 21 37 11 Screenshot 2026-09-02 at 21 37 46

But I actually have no use of it, as we already have a web-based viewer on Sidle. They serve different purposes. One is to view KFX as close as to the one painted on device, the other is for previewing how the EPUB converted from KFX. The latter is more useful than the former. So the native renderer is built for fun only (thus not even bundled in the sidle's build script and requires manual cargo build). That said, the web-based viewer is not perfect, and building this native kfxreader helps identified a handful of bugs in how certain style should be rendered so that it can be closer to the on-device rendering, and in that process another handful of bugs has been found in bokai's CJK mixed writing mode conversion. We also learned a few facts about how JXR should be encoded for Kindles, and how Kindles actually decode JXR, and we brought the same improvement to the jxr to make it more efficient.

In short, Sidle v0.1.12 gets some refactoring for the web viewer; bokai v0.1.8 gets some bug fixes mostly for CJK rendering for EPUB to KFX; jxr v0.1.1 is now 1.8x faster than before.

Full Changelog: sidle-v0.1.11...sidle-v0.1.12+bokai-v0.1.8

sidle-v0.1.11

Choose a tag to compare

@huangziwei huangziwei released this 30 Aug 09:19

improved reading logs stats extraction accuracy and also displays them in somewhat fancier ways.

Screenshot 2026-08-30 at 11 15 59 Screenshot 2026-08-30 at 11 17 00

honestly, with the tracking works well enough now, I don't think I'd like to read paper books anymore... what a sucker of life quantification....

There's also an experimental standalone scriptlet version of the reading log that doesn't require sidle and run purely on-device 1:

https://github.com/huangziwei/readinglog

but the shortcoming (?) is 1) backlog only goes back 30 days (that's how far back the on-device logs a Kindle would dump, and there can be missing data if one read a lot, as each dump has size limit) and 2) it won't be able to find a book's meta data and cover if it's been removed before opening the app (but, like, of course it should be like that, what else should one expect?).

Full Changelog: bokai-v0.1.7...sidle-v0.1.11

  1. I wonder why I keep building things I myself won't use, as Sidle already covers all my own use cases. I guess I just need to dopamine from releasing something. ↩

bokai-v0.1.7

Choose a tag to compare

@huangziwei huangziwei released this 26 Aug 00:11

Fixed footnotes in KFX not showing up as popup on device. It happened to all EPUB2 to KFX. Similar defect was found in KFX to EPUB, also fixed.

Full Changelog: bokai-v0.1.6...bokai-v0.1.7

⌂ 换网址