I get the following when I try to extract bookmarks from my djvu book:
line ' "#f003.djvu"
' in djvused output does not match.
Here's the print-outline output from djvused:
(bookmarks
("Preface iii"
"#f003.djvu" )
("Contents vii"
"#f007.djvu" )
("1 An AWK Tutorial 1"
"#p001.djvu"
("1.1 Getting Started 1"
"#p001.djvu"
("The Structure of an AWK Program 2"
"#p002.djvu" )
("Running an AWK Program 3"
"#p003.djvu" )
("Errors 4"
"#p004.djvu" ) )
("1.2 Simple Output 5"
"#p005.djvu"
("Printing Every Line 5"
"#p005.djvu" )
("Printing Certain Fields 5"
"#p005.djvu" )
("NF, the Number of Fields 6"
"#p006.djvu" )
("Computing and Printing 6"
"#p006.djvu" )
("Printing Line Numbers 6"
"#p006.djvu" )
("Putting Text in the Output 7"
"#p007.djvu" ) )
("1.3 Fancier Output 7"
"#p007.djvu"
("Lining Up Fields 7"
"#p007.djvu" )
("Sorting the Output 8"
"#p008.djvu" ) )
("1.4 Selection 9"
"#p009.djvu"
("Selection by Comparison 9"
"#p009.djvu" )
("Selection by Computation 9"
"#p009.djvu" )
("Selection by Text Content 9"
"#p009.djvu" )
("Combinations of Patterns 10"
"#p010.djvu" )
("Data Validation 10"
"#p010.djvu" )
("BEGIN and END 11"
"#p011.djvu" ) )
("1.5 Computing with AWK 11"
"#p011.djvu"
("Counting 11"
"#p011.djvu" )
("Computing Sums and Averages 12"
"#p012.djvu" )
("Handling Text 12"
"#p012.djvu" )
("String Concatenation 13"
"#p013.djvu" )
("Printing the Last Input Line 13"
"#p013.djvu" )
("Built-in Functions 13"
"#p013.djvu" )
("Counting Lines, Words, and Characters 14"
"#p014.djvu" ) )
("1.6 Control-Flow Statements 14"
"#p014.djvu"
("If-Else Statement 14"
"#p014.djvu" )
("While Statement 15"
"#p015.djvu" )
("For Statement 16"
"#p016.djvu" ) )
("1.7 Arrays 16"
"#p016.djvu" )
("1.8 A Handful of Useful \"One-liners\" 17"
"#p017.djvu" )
("1.9 What Next? 19"
"#p019.djvu" ) )
("2 The AWK Language 21"
"#p021.djvu"
("The Input File countries 21"
"#p021.djvu" )
("Program Format 22"
"#p022.djvu" )
("2.1 Patterns 23"
"#p023.djvu"
("BEGIN and END 23"
"#p023.djvu" )
("Expressions as Patterns 24"
"#p024.djvu" )
("String-Matching Patterns 26"
"#p026.djvu" )
("Regular Expressions 28"
"#p028.djvu" )
("Compound Patterns 31"
"#p031.djvu" )
("Range Patterns 32"
"#p032.djvu" )
("Summary of Patterns 33"
"#p033.djvu" ) )
("2.2 Actions 34"
"#p034.djvu"
("Expressions 34"
"#p034.djvu" )
("Control-Flow Statements 47"
"#p047.djvu" )
("Empty Statement 50"
"#p050.djvu" )
("Arrays 50"
"#p050.djvu" ) )
("2.3 User-Defined Functions 53"
"#p053.djvu" )
("2.4 Output 54"
"#p054.djvu"
("The print Statement 55"
"#p055.djvu" )
("Output Separators 56"
"#p056.djvu" )
("The print Statement 56"
"#p056.djvu" )
("Output into Files 56"
"#p056.djvu" )
("Output into Pipes 58"
"#p058.djvu" )
("Closing Files and Pipes 59"
"#p059.djvu" ) )
("2.5 Input 59"
"#p059.djvu"
("Input Separators 60"
"#p060.djvu" )
("Multiline Records 60"
"#p060.djvu" )
("The getline Function 61"
"#p061.djvu" )
("Command-Line Variable Assignments 63"
"#p063.djvu" )
("Command-Line Arguments 63"
"#p063.djvu" ) )
("2.6 Interaction with Other Programs 64"
"#p064.djvu"
("The system Function 64"
"#p064.djvu" )
("Making a Shell Command from an AWK Program 65"
"#p065.djvu" ) )
("2.7 Summary 66"
"#p066.djvu" ) )
("3 Data Processing 67"
"#p067.djvu"
("3.1 Data Transformation and Reduction 67"
"#p067.djvu"
("Summing Columns 67"
"#p067.djvu" )
("Computing Percentages and Quantiles 69"
"#p069.djvu" )
("Numbers with Commas 71"
"#p071.djvu" )
("Fixed-Field Input 72"
"#p072.djvu" )
("Program Cross-Reference Checking 73"
"#p073.djvu" )
("Formatted Output 74"
"#p074.djvu" ) )
("3.2 Data Validation 76"
"#p076.djvu"
("Balanced Delimiters 77"
"#p077.djvu" )
("Password-File Checking 78"
"#p078.djvu" )
("Generating Data-Validation Programs 79"
"#p079.djvu" )
("Which Version of AWK? 79"
"#p079.djvu" ) )
("3.3 Bundle and Unbundle 81"
"#p081.djvu" )
("3.4 Multiline Records 82"
"#p082.djvu"
("Records Separated by Blank Lines 82"
"#p082.djvu" )
("Processing Multiline Records 84"
"#p084.djvu" )
("Records with Headers and Trailers 85"
"#p085.djvu" )
("Name-Value Data 86"
"#p086.djvu" ) )
("3.5 Summary 88"
"#p088.djvu" ) )
("4 Reports and Databases 89"
"#p089.djvu"
("4.1 Generating Reports 89"
"#p089.djvu"
("A Simple Report 89"
"#p089.djvu" )
("A More Complex Report 92"
"#p092.djvu" ) )
("4.2 Packaged Queries and Reports 99"
"#p099.djvu"
("Form Letters 100"
"#p100.djvu" ) )
("4.3 A Relational Database System 102"
"#p102.djvu"
("Natural Joins 103"
"#p103.djvu" )
("The relfile 106"
"#p106.djvu" )
("q, an awk-like query language 107"
"#p107.djvu" )
("qawk, a q-to-awk translator 108"
"#p108.djvu" ) )
("4.4 Summary 110"
"#p110.djvu" ) )
("5 Processing Words 111"
"#p111.djvu"
("5.1 Random Text Generation 111"
"#p111.djvu"
("Random Choices 111"
"#p111.djvu" )
("Cliche Generation 112"
"#p112.djvu" )
("Random Sentences 113"
"#p113.djvu" ) )
("5.2 Interactive Text-Manipulation 116"
"#p116.djvu"
("Skills Testing: Arithmetic 116"
"#p116.djvu" )
("Skills Testing: Quiz 1175.3 Text Processing 119"
"#p119.djvu" )
("Word Counts 119"
"#p119.djvu" )
("Text Formatting 120"
"#p120.djvu" )
("Maintaining Cross-References in Manuscripts 120"
"#p120.djvu" )
("Making a KWIC Index 122"
"#p122.djvu" )
("Making Indexes 124"
"#p124.djvu" ) )
("5.4 Summary 130"
"#p130.djvu" ) )
("6 Little Languages 131"
"#p131.djvu"
("6.1 An Assembler and Interpreter 132"
"#p132.djvu" )
("6.2 A Language for Drawing Graphs 135"
"#p135.djvu" )
("6.3 A Sort Generator 140"
"#p140.djvu" )
("6.4 A Reverse-Polish Calculator 142"
"#p142.djvu" )
("6.5 An Infix Calculator 145"
"#p145.djvu" )
("6.6 Recursive-Descent Parsing 147"
"#p147.djvu" )
("6.7 Summary 152"
"#p152.djvu" ) )
("7 Experiments with Algorithms 153"
"#p153.djvu"
("7.1 Sorting 153"
"#p153.djvu"
("Insertion Sort 153"
"#p153.djvu" )
("Quicksort 160"
"#p160.djvu" )
("Heapsort 162"
"#p162.djvu" ) )
("7.2 Profiling 167"
"#p167.djvu" )
("7.3 Topological Sorting 170"
"#p170.djvu"
("Breadth-First Topological Sort 171"
"#p171.djvu" )
("Depth-First Search 172"
"#p172.djvu" )
("Depth-First Topological Sort 173"
"#p173.djvu" ) )
("7.4 Make: A File Updating Program 175"
"#p175.djvu" )
("7.5 Summary 179"
"#p179.djvu" ) )
("8 Epilog 181"
"#p181.djvu"
("8.1 AWK as a Language 181"
"#p181.djvu" )
("8.2 Performance 183"
"#p183.djvu" )
("8.3 Conclusion 185"
"#p185.djvu" ) )
("A AWK Summary 187"
"#p187.djvu" )
("B Answers to Selected Exercises 193"
"#p193.djvu" )
("Index 205"
"#p205.djvu" ) )
I get the following when I try to extract bookmarks from my djvu book:
Here's the
print-outlineoutput from djvused: