In djvused bookmark format, to disable characters that have special meaning in djvused bookmark format:
The format of
djvusedbookmark of a djvu file is for example:(bookmarks ("1 first chapter" "#10" ("1.1 first section" "#11" ("1.1.1 first subsection" "#12" )) ("1.2 second section" "#13" )) ("2 second chapter" "#14" ("2.1 first section" "#16" ) ("2.2 second section" "#13" )) )...where the main points are the paring of left and right parenthesis for tree-like organization of sections and chapters, double quote for each bookmark item and each page number is preceded by a
#.How can I escape characters like
",(and)to not be interpreted as control characters in the titles of chapters and sections?e.g. The following examples will not be accepted by
djvused:("2.2 "Hello!" " "#13" ) ("2.2 f(g)" "#13" )The command I use to embed bookmarks into a djvu file is
djvused in.djvu -e 'set-outline bmks' -s, wherebmksis the text file for bookmarks.In djvused bookmark format, to enable characters that have special meaning in general text files:
The character
\nmeans new line. But if using it directly in djvu bookmark format, it will be shown as it is, not be interpreted as new line.For example:
(bookmarks ("long title part 1 \n long title part 2" "#10" )The long title will not be broken into two lines where
\nis specified.
|
|
||||
|
|
|
Quoting http://djvu.sourceforge.net/doc/man/djvused.html
|
|||
|
|
