
: How insert the outline (the bookmarks) into DjVu How insert the outline (the bookmarks) into DjVu file for easier browsing in a document using the DjVuLibre library? With such a structure: "TOC"
How insert the outline (the bookmarks) into DjVu file for easier browsing in a document using the DjVuLibre library?
With such a structure:
"TOC" level 1 => link to pageNumber
"Chapter name" level 1 => link to pageNumber
"Chapter name" level 2 => link to pageNumber
"Chapter name" level 1 => link to pageNumber
"Chapter name" level 2 => link to pageNumber
"Chapter name" level 3 => link to pageNumber
"Chapter name" level 1 => link to pageNumber
...
Free books android app tbrJar TBR JAR Read Free books online gutenberg
More posts by @Carla

: How to put downloaded Kindle e-books on to a Kindle device that cannot access the internet I have a Kindle device, but it cannot connect to the internet because the only internet I can access

: Keeping a subheading with its first line of text in an epub I'm converting an InDesign document to Epub. I'm using Microsoft Edge as the epub reader (that might be a mistake...). Edge is
2 Comments
Sorted by latest first Latest Oldest Best
Although the following method does not explicitly use the DjVuLibre library (it does implicitly), the following method might save some of your precious time...
Use some tool to extract the contents from the djvu file. I recommend pdf_contents_extractor for python3 which can be easily installed with pip(pip3) (only tested on linux, but works for djvu too)
Fine-tune the contents.txt or contents_ocr.txt file with your favorite text editor
Use HandyOutliner to insert the bookmarks in your djvu file
Free books android app tbrJar TBR JAR Read Free books online gutenberg
First, create your desired structure in a text editor.
On the first line will be placed keyword bookmarks in round brackets as a root.
Behind the chapter titles are located page numbers or page names (with a suffix .djvu). Before the number must be symbol sharp #. All parameters are enclosed in quotation marks "".
Lower order chapters are created by embedding additional round brackets behind higher order chapter.
Sample with page numbers:
(bookmarks
("TOC" "#3")
("Chapter 1 - Blabla" "#7"
("Subchapter 1.1 - Blabla" "#11")
)
("Chapter 2 - Blabla" "#15"
("Subchapter 2.1 - Blabla" "#17"
("Subchapter 2.1.1 - Blabla" "#20")
)
)
("Chapter 3 - Blabla" "#25")
)
Sample with page names (with a suffix .djvu):
(bookmarks
("TOC" "#page_0003.djvu")
("Chapter 1 - Blabla" "#page_0007.djvu"
("Subchapter 1.1 - Blabla" "#page_00011.djvu")
)
("Chapter 2 - Blabla" "#page_00015.djvu"
("Subchapter 2.1 - Blabla" "#page_00017.djvu"
("Subchapter 2.1.1 - Blabla" "#page_00020.djvu")
)
)
("Chapter 3 - Blabla" "#page_00025.djvu")
)
Caution: Save the file in UTF-8.
Second, paste the created outline text file into the selected DjVu file.
Install the DjVuLibre library (if you do not already have it).
From the library we use djvused tool.
At the command prompt, type:
pathdjvused pathbook.djvu -e "set-outline pathoutline.txt" -s
Instead path parameter substitute your location on the disk.
Parameter -e is the exec (system call) of the set-outline command with the filename parameter.
Parameter -s is save command.
Press Enter...
Free books android app tbrJar TBR JAR Read Free books online gutenberg