.khr file holding its pages in order. Each page is its scan and a tree of layers. Ordinary layers follow Photoshop’s; the parts of a manga page follow Clip Studio Paint’s panels and balloons.
A page’s layers
Detection builds the tree in reading order, so a page reads like this, first to last:Page: the scan as its background
Panel
Balloon
Text block
Text block
Text block: a sound effect, free in its panel
Text block: narration, free in its panel
Panel
Text block: read in no panel
Raster: your own paint
The tree’s order is the reading order. Story lists texts in it; Layers lists the tree frontmost first, as Photoshop’s layer panel does, so the last text read is the top row. Dragging a row in Layers moves it in reading order too.
A text block
A text block keeps one text’s four parts together, so each can be fixed without rebuilding the others.
The clean-up works as a Photoshop fill layer with a layer mask: painting the mask shows more of the clean-up or less, at once, with no rerun. A text’s parts behave accordingly:
- Deleting a text block deletes its clean-up, so the original lettering shows again.
- A block without a translation still shows its clean-up, so its area stays clean for new lettering.
- Each text gets its own translation in its own frame. Text never flows from one frame into another.
Every change is an edit
The editor, a pipeline run, and the Agent all change a project through the same edits. An edit applies whole or not at all, and each is one undo step; an edit that changes nothing adds no step. The last writer of a value wins, whether a model or you, and undo is the way back. Locks are the one guard: no pipeline stage writes a locked layer. View → History lists the steps, after the project as it opened, and goes back or forward to any of them at once, as Photoshop’s History panel does. It keeps the 20 most recent steps, Photoshop’s default, and clears when the project closes, as closing a Photoshop document clears its states.How a project is stored
- One file. A project is a SQLite database with the
.khrextension, the imported images inside it, as a Clip Studio Paint work is one file. Moving or deleting the originals doesn’t affect it. - No save. Each edit is written as it applies, so a project never has unsaved changes.
- Tiles. Raster pixels are stored in 64 × 64 tiles, each compressed on its own, and only tiles that hold pixels are stored. A clean-up stores only the area it covers.
- One window. An open project is locked, so a second window or a second Koharu finds it in use.
- Opening fails closed. A damaged file, or one written by a newer Koharu whose project format changed, doesn’t open, and the file is left as it was.
Back up a project
Close it, then copy its
.khr file.koharu-scene README.