Class: ReVIEW::IndexBuilder

Inherits:
Builder show all
Defined in:
lib/review/index_builder.rb

Constant Summary

Constants inherited from Builder

Builder::CAPTION_TITLES

Instance Attribute Summary collapse

Attributes inherited from Builder

#doc_status, #previous_list_type

Instance Method Summary collapse

Methods inherited from Builder

#beginchild, #caption_top?, #check_nest, #check_nested_minicolumn, #detab, #endchild, #escape, #graph, #graph_aafigure, #graph_blockdiag, #graph_gnuplot, #graph_graphviz, #graph_plantuml, #handle_metric, #image_ext, #in_minicolumn?, #inline_include, #line_num, #load_words, #minicolumn_block_name?, #over_secnolevel?, #parse_metric, #parse_table_rows, #print, #puts, #result_metric, #solve_nest, #system_graph, #table_row_separator_regexp, #table_rows

Methods included from TextUtils

#add_space?, #defer_math_image, #detab, #join_lines_to_paragraph, #split_paragraph

Constructor Details

#initialize(strict = false, *args) ⇒ IndexBuilder

Returns a new instance of IndexBuilder.



20
21
22
# File 'lib/review/index_builder.rb', line 20

def initialize(strict = false, *args)
  super
end

Instance Attribute Details

#bibpaper_indexObject (readonly)

Returns the value of attribute bibpaper_index.



16
17
18
# File 'lib/review/index_builder.rb', line 16

def bibpaper_index
  @bibpaper_index
end

#column_indexObject (readonly)

Returns the value of attribute column_index.



16
17
18
# File 'lib/review/index_builder.rb', line 16

def column_index
  @column_index
end

#equation_indexObject (readonly)

Returns the value of attribute equation_index.



16
17
18
# File 'lib/review/index_builder.rb', line 16

def equation_index
  @equation_index
end

#footnote_indexObject (readonly)

Returns the value of attribute footnote_index.



16
17
18
# File 'lib/review/index_builder.rb', line 16

def footnote_index
  @footnote_index
end

#headline_indexObject (readonly)

Returns the value of attribute headline_index.



16
17
18
# File 'lib/review/index_builder.rb', line 16

def headline_index
  @headline_index
end

#icon_indexObject (readonly)

Returns the value of attribute icon_index.



16
17
18
# File 'lib/review/index_builder.rb', line 16

def icon_index
  @icon_index
end

#image_indexObject (readonly)

Returns the value of attribute image_index.



16
17
18
# File 'lib/review/index_builder.rb', line 16

def image_index
  @image_index
end

#indepimage_indexObject (readonly)

Returns the value of attribute indepimage_index.



16
17
18
# File 'lib/review/index_builder.rb', line 16

def indepimage_index
  @indepimage_index
end

#list_indexObject (readonly)

Returns the value of attribute list_index.



16
17
18
# File 'lib/review/index_builder.rb', line 16

def list_index
  @list_index
end

#numberless_image_indexObject (readonly)

Returns the value of attribute numberless_image_index.



16
17
18
# File 'lib/review/index_builder.rb', line 16

def numberless_image_index
  @numberless_image_index
end

#table_indexObject (readonly)

Returns the value of attribute table_index.



16
17
18
# File 'lib/review/index_builder.rb', line 16

def table_index
  @table_index
end

Instance Method Details

#bibpaper(_lines, id, caption) ⇒ Object



468
469
470
471
472
# File 'lib/review/index_builder.rb', line 468

def bibpaper(_lines, id, caption)
  check_id(id)
  item = ReVIEW::Book::Index::Item.new(id, @bibpaper_index.size + 1, caption)
  @bibpaper_index.add_item(item)
end

#bind(compiler, chapter, location) ⇒ Object



42
43
44
45
46
47
48
49
50
51
# File 'lib/review/index_builder.rb', line 42

def bind(compiler, chapter, location)
  @compiler = compiler
  @chapter = chapter
  @location = location
  @output = StringIO.new
  if @chapter.present?
    @book = @chapter.book
  end
  builder_init_file
end

#blanklineObject



335
336
# File 'lib/review/index_builder.rb', line 335

def blankline
end

#bpo(_lines) ⇒ Object



350
351
# File 'lib/review/index_builder.rb', line 350

def bpo(_lines)
end

#captionblock(_type, _lines, _caption, _specialstyle = nil) ⇒ Object



629
630
631
# File 'lib/review/index_builder.rb', line 629

def captionblock(_type, _lines, _caption, _specialstyle = nil)
  ''
end

#centering(lines) ⇒ Object



341
342
# File 'lib/review/index_builder.rb', line 341

def centering(lines)
end

#check_id(id) ⇒ Object



24
25
26
27
28
29
30
31
32
# File 'lib/review/index_builder.rb', line 24

def check_id(id)
  if id
    if id =~ %r![#%\\{}\[\]~/$'"|*?&<>`\s]!
      warn "deprecated ID: `#{$&}` in `#{id}`"
    elsif id.start_with?('.')
      warn "deprecated ID: `#{id}` begins from `.`"
    end
  end
end

#cmd(lines, caption = nil) ⇒ Object



272
273
# File 'lib/review/index_builder.rb', line 272

def cmd(lines, caption = nil)
end

#column_begin(_level, label, caption) ⇒ Object



178
179
180
181
182
183
# File 'lib/review/index_builder.rb', line 178

def column_begin(_level, label, caption)
  check_id(label)
  item_id = label || caption
  item = ReVIEW::Book::Index::Item.new(item_id, @column_index.size + 1, caption)
  @column_index.add_item(item)
end

#column_end(_level) ⇒ Object



185
186
# File 'lib/review/index_builder.rb', line 185

def column_end(_level)
end

#comment(lines, comment = nil) ⇒ Object



297
298
# File 'lib/review/index_builder.rb', line 297

def comment(lines, comment = nil)
end

#compile_inline(s) ⇒ Object



356
357
358
# File 'lib/review/index_builder.rb', line 356

def compile_inline(s)
  @compiler.text(s)
end

#dd(lines) ⇒ Object



229
230
# File 'lib/review/index_builder.rb', line 229

def dd(lines)
end

#dl_beginObject



223
224
# File 'lib/review/index_builder.rb', line 223

def dl_begin
end

#dl_endObject



232
233
# File 'lib/review/index_builder.rb', line 232

def dl_end
end

#dt(line) ⇒ Object



226
227
# File 'lib/review/index_builder.rb', line 226

def dt(line)
end

#embed(_lines, _arg = nil) ⇒ Object



597
598
599
# File 'lib/review/index_builder.rb', line 597

def embed(_lines, _arg = nil)
  ''
end

#emlist(lines, caption = nil, lang = nil) ⇒ Object



266
267
# File 'lib/review/index_builder.rb', line 266

def emlist(lines, caption = nil, lang = nil)
end

#emlistnum(lines, caption = nil, lang = nil) ⇒ Object



269
270
# File 'lib/review/index_builder.rb', line 269

def emlistnum(lines, caption = nil, lang = nil)
end

#emtable(_lines, _caption = nil) ⇒ Object



292
293
294
295
# File 'lib/review/index_builder.rb', line 292

def emtable(_lines, _caption = nil)
  # item = ReVIEW::Book::TableIndex::Item.new(id, @table_index.size + 1)
  # @table_index << item
end

#error(msg = '(no message)') ⇒ Object



605
606
607
608
609
610
611
# File 'lib/review/index_builder.rb', line 605

def error(msg = '(no message)')
  if msg =~ /builder does not support command/
    # ignore
    return
  end
  super
end

#extract_chapter_id(_chap_ref) ⇒ Object



625
626
627
# File 'lib/review/index_builder.rb', line 625

def extract_chapter_id(_chap_ref)
  ''
end

#firstlinenum(_num) ⇒ Object



444
445
446
# File 'lib/review/index_builder.rb', line 444

def firstlinenum(_num)
  ''
end

#flushright(_lines) ⇒ Object



338
339
# File 'lib/review/index_builder.rb', line 338

def flushright(_lines)
end

#footnote(id, str) ⇒ Object



310
311
312
313
314
# File 'lib/review/index_builder.rb', line 310

def footnote(id, str)
  check_id(id)
  item = ReVIEW::Book::Index::Item.new(id, @footnote_index.size + 1, str)
  @footnote_index.add_item(item)
end

#get_chap(_chapter = nil) ⇒ Object



621
622
623
# File 'lib/review/index_builder.rb', line 621

def get_chap(_chapter = nil)
  ''
end

#headline(level, label, caption) ⇒ Object



84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# File 'lib/review/index_builder.rb', line 84

def headline(level, label, caption)
  check_id(label)
  @sec_counter.inc(level)
  return if level < 2

  cursor = level - 2

  if label
    @headline_stack[cursor] = label
  else
    @headline_stack[cursor] = caption
  end
  if @headline_stack.size > cursor + 1
    @headline_stack = @headline_stack.take(cursor + 1)
  end

  item_id = @headline_stack.join('|')

  item = ReVIEW::Book::Index::Item.new(item_id, @sec_counter.number_list, caption)
  @headline_index.add_item(item)
end

#highlight?Boolean

Returns:

  • (Boolean)


645
646
647
# File 'lib/review/index_builder.rb', line 645

def highlight?
  false
end

#hrObject



328
329
# File 'lib/review/index_builder.rb', line 328

def hr
end

#image(_lines, id, caption, _metric = nil) ⇒ Object



278
279
280
281
282
# File 'lib/review/index_builder.rb', line 278

def image(_lines, id, caption, _metric = nil)
  check_id(id)
  item = ReVIEW::Book::Index::Item.new(id, @image_index.size + 1, caption)
  @image_index.add_item(item)
end

#imgtable(_lines, id, _caption = nil, _metric = nil) ⇒ Object



300
301
302
303
304
305
306
307
308
# File 'lib/review/index_builder.rb', line 300

def imgtable(_lines, id, _caption = nil, _metric = nil)
  check_id(id)
  item = ReVIEW::Book::Index::Item.new(id, @table_index.size + 1)
  @table_index.add_item(item)

  ## to find image path
  item = ReVIEW::Book::Index::Item.new(id, @indepimage_index.size + 1)
  @indepimage_index.add_item(item)
end

#indepimage(_lines, id, _caption = '', _metric = nil) ⇒ Object



316
317
318
319
320
# File 'lib/review/index_builder.rb', line 316

def indepimage(_lines, id, _caption = '', _metric = nil)
  check_id(id)
  item = ReVIEW::Book::Index::Item.new(id, @indepimage_index.size + 1)
  @indepimage_index.add_item(item)
end

#inline_abbr(_str) ⇒ Object



510
511
512
# File 'lib/review/index_builder.rb', line 510

def inline_abbr(_str)
  ''
end

#inline_acronym(_str) ⇒ Object



514
515
516
# File 'lib/review/index_builder.rb', line 514

def inline_acronym(_str)
  ''
end

#inline_ami(_str) ⇒ Object



404
405
406
# File 'lib/review/index_builder.rb', line 404

def inline_ami(_str)
  ''
end

#inline_b(_str) ⇒ Object



400
401
402
# File 'lib/review/index_builder.rb', line 400

def inline_b(_str)
  ''
end

#inline_balloon(_arg) ⇒ Object



498
499
500
# File 'lib/review/index_builder.rb', line 498

def inline_balloon(_arg)
  ''
end

#inline_bib(_id) ⇒ Object



478
479
480
# File 'lib/review/index_builder.rb', line 478

def inline_bib(_id)
  ''
end

#inline_big(_str) ⇒ Object



546
547
548
# File 'lib/review/index_builder.rb', line 546

def inline_big(_str)
  ''
end

#inline_bou(str) ⇒ Object



408
409
410
# File 'lib/review/index_builder.rb', line 408

def inline_bou(str)
  str
end

#inline_br(_str) ⇒ Object



436
437
438
# File 'lib/review/index_builder.rb', line 436

def inline_br(_str)
  ''
end

#inline_chap(_id) ⇒ Object



364
365
366
# File 'lib/review/index_builder.rb', line 364

def inline_chap(_id)
  ''
end

#inline_chapref(_id) ⇒ Object



360
361
362
# File 'lib/review/index_builder.rb', line 360

def inline_chapref(_id)
  ''
end

#inline_cite(_str) ⇒ Object



518
519
520
# File 'lib/review/index_builder.rb', line 518

def inline_cite(_str)
  ''
end

#inline_code(_str) ⇒ Object



424
425
426
# File 'lib/review/index_builder.rb', line 424

def inline_code(_str)
  ''
end

#inline_column(_id) ⇒ Object



482
483
484
# File 'lib/review/index_builder.rb', line 482

def inline_column(_id)
  ''
end

#inline_column_chap(_chapter, _id) ⇒ Object



486
487
488
# File 'lib/review/index_builder.rb', line 486

def inline_column_chap(_chapter, _id)
  ''
end

#inline_del(_str) ⇒ Object



566
567
568
# File 'lib/review/index_builder.rb', line 566

def inline_del(_str)
  ''
end

#inline_dfn(_str) ⇒ Object



522
523
524
# File 'lib/review/index_builder.rb', line 522

def inline_dfn(_str)
  ''
end

#inline_dtp(_str) ⇒ Object



420
421
422
# File 'lib/review/index_builder.rb', line 420

def inline_dtp(_str)
  ''
end

#inline_em(_str) ⇒ Object



526
527
528
# File 'lib/review/index_builder.rb', line 526

def inline_em(_str)
  ''
end

#inline_embed(_args) ⇒ Object



641
642
643
# File 'lib/review/index_builder.rb', line 641

def inline_embed(_args)
  ''
end

#inline_eq(_id) ⇒ Object



388
389
390
# File 'lib/review/index_builder.rb', line 388

def inline_eq(_id)
  ''
end

#inline_fn(_id) ⇒ Object



392
393
394
# File 'lib/review/index_builder.rb', line 392

def inline_fn(_id)
  ''
end

#inline_hd(_id) ⇒ Object



474
475
476
# File 'lib/review/index_builder.rb', line 474

def inline_hd(_id)
  ''
end

#inline_hidx(_str) ⇒ Object



432
433
434
# File 'lib/review/index_builder.rb', line 432

def inline_hidx(_str)
  ''
end

#inline_hr(_arg) ⇒ Object



460
461
462
# File 'lib/review/index_builder.rb', line 460

def inline_hr(_arg)
  ''
end

#inline_href(_arg) ⇒ Object



456
457
458
# File 'lib/review/index_builder.rb', line 456

def inline_href(_arg)
  ''
end

#inline_i(_str) ⇒ Object



396
397
398
# File 'lib/review/index_builder.rb', line 396

def inline_i(_str)
  ''
end

#inline_icon(id) ⇒ Object



582
583
584
585
586
587
# File 'lib/review/index_builder.rb', line 582

def inline_icon(id)
  check_id(id)
  item = ReVIEW::Book::Index::Item.new(id, @icon_index.size + 1)
  @icon_index.add_item(item)
  ''
end

#inline_idx(_str) ⇒ Object



428
429
430
# File 'lib/review/index_builder.rb', line 428

def inline_idx(_str)
  ''
end

#inline_img(_id) ⇒ Object



376
377
378
# File 'lib/review/index_builder.rb', line 376

def inline_img(_id)
  ''
end

#inline_imgref(_id) ⇒ Object



380
381
382
# File 'lib/review/index_builder.rb', line 380

def inline_imgref(_id)
  ''
end

#inline_ins(_str) ⇒ Object



570
571
572
# File 'lib/review/index_builder.rb', line 570

def inline_ins(_str)
  ''
end

#inline_kbd(_str) ⇒ Object



530
531
532
# File 'lib/review/index_builder.rb', line 530

def inline_kbd(_str)
  ''
end

#inline_kw(_arg) ⇒ Object



452
453
454
# File 'lib/review/index_builder.rb', line 452

def inline_kw(_arg)
  ''
end

#inline_list(_id) ⇒ Object



372
373
374
# File 'lib/review/index_builder.rb', line 372

def inline_list(_id)
  ''
end

#inline_m(_str) ⇒ Object



440
441
442
# File 'lib/review/index_builder.rb', line 440

def inline_m(_str)
  ''
end

#inline_pageref(_id) ⇒ Object



490
491
492
# File 'lib/review/index_builder.rb', line 490

def inline_pageref(_id)
  ''
end

#inline_raw(_args) ⇒ Object



637
638
639
# File 'lib/review/index_builder.rb', line 637

def inline_raw(_args)
  ''
end

#inline_recipe(_str) ⇒ Object



578
579
580
# File 'lib/review/index_builder.rb', line 578

def inline_recipe(_str)
  ''
end

#inline_ruby(_arg) ⇒ Object



448
449
450
# File 'lib/review/index_builder.rb', line 448

def inline_ruby(_arg)
  ''
end

#inline_samp(_str) ⇒ Object



534
535
536
# File 'lib/review/index_builder.rb', line 534

def inline_samp(_str)
  ''
end

#inline_small(_str) ⇒ Object



550
551
552
# File 'lib/review/index_builder.rb', line 550

def inline_small(_str)
  ''
end

#inline_strong(_str) ⇒ Object



538
539
540
# File 'lib/review/index_builder.rb', line 538

def inline_strong(_str)
  ''
end

#inline_sub(_str) ⇒ Object



554
555
556
# File 'lib/review/index_builder.rb', line 554

def inline_sub(_str)
  ''
end

#inline_sup(_str) ⇒ Object



558
559
560
# File 'lib/review/index_builder.rb', line 558

def inline_sup(_str)
  ''
end

#inline_table(_id) ⇒ Object



384
385
386
# File 'lib/review/index_builder.rb', line 384

def inline_table(_id)
  ''
end

#inline_tcy(_arg) ⇒ Object



494
495
496
# File 'lib/review/index_builder.rb', line 494

def inline_tcy(_arg)
  ''
end

#inline_title(_id) ⇒ Object



368
369
370
# File 'lib/review/index_builder.rb', line 368

def inline_title(_id)
  ''
end

#inline_tt(_str) ⇒ Object



562
563
564
# File 'lib/review/index_builder.rb', line 562

def inline_tt(_str)
  ''
end

#inline_ttb(_str) ⇒ Object



416
417
418
# File 'lib/review/index_builder.rb', line 416

def inline_ttb(_str)
  ''
end

#inline_tti(_str) ⇒ Object



412
413
414
# File 'lib/review/index_builder.rb', line 412

def inline_tti(_str)
  ''
end

#inline_u(_str) ⇒ Object



574
575
576
# File 'lib/review/index_builder.rb', line 574

def inline_u(_str)
  ''
end

#inline_uchar(_str) ⇒ Object



589
590
591
# File 'lib/review/index_builder.rb', line 589

def inline_uchar(_str)
  ''
end

#inline_var(_str) ⇒ Object



542
543
544
# File 'lib/review/index_builder.rb', line 542

def inline_var(_str)
  ''
end

#inline_w(_s) ⇒ Object



502
503
504
# File 'lib/review/index_builder.rb', line 502

def inline_w(_s)
  ''
end

#inline_wb(_s) ⇒ Object



506
507
508
# File 'lib/review/index_builder.rb', line 506

def inline_wb(_s)
  ''
end

#label(id) ⇒ Object



331
332
333
# File 'lib/review/index_builder.rb', line 331

def label(id)
  check_id(id)
end

#list(_lines, id, _caption, _lang = nil) ⇒ Object



251
252
253
254
255
# File 'lib/review/index_builder.rb', line 251

def list(_lines, id, _caption, _lang = nil)
  check_id(id)
  item = ReVIEW::Book::Index::Item.new(id, @list_index.size + 1)
  @list_index.add_item(item)
end

#listnum(_lines, id, _caption, _lang = nil) ⇒ Object



260
261
262
263
264
# File 'lib/review/index_builder.rb', line 260

def listnum(_lines, id, _caption, _lang = nil)
  check_id(id)
  item = ReVIEW::Book::Index::Item.new(id, @list_index.size + 1)
  @list_index.add_item(item)
end

#nodisp_begin(level, label, caption) ⇒ Object



154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
# File 'lib/review/index_builder.rb', line 154

def nodisp_begin(level, label, caption)
  check_id(label)
  return if level < 2

  cursor = level - 2

  if label
    @headline_stack[cursor] = label
  else
    @headline_stack[cursor] = caption
  end
  if @headline_stack.size > cursor + 1
    @headline_stack = @headline_stack.take(cursor + 1)
  end

  item_id = @headline_stack.join('|')

  item = ReVIEW::Book::Index::Item.new(item_id, nil, caption)
  @headline_index.add_item(item)
end

#nodisp_end(_level) ⇒ Object



175
176
# File 'lib/review/index_builder.rb', line 175

def nodisp_end(_level)
end

#nofunc_text(_str) ⇒ Object



242
243
244
# File 'lib/review/index_builder.rb', line 242

def nofunc_text(_str)
  ''
end

#noindentObject



353
354
# File 'lib/review/index_builder.rb', line 353

def noindent
end

#nonum_begin(level, label, caption) ⇒ Object



106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
# File 'lib/review/index_builder.rb', line 106

def nonum_begin(level, label, caption)
  check_id(label)
  return if level < 2

  cursor = level - 2

  if label
    @headline_stack[cursor] = label
  else
    @headline_stack[cursor] = caption
  end
  if @headline_stack.size > cursor + 1
    @headline_stack = @headline_stack.take(cursor + 1)
  end

  item_id = @headline_stack.join('|')

  item = ReVIEW::Book::Index::Item.new(item_id, nil, caption)
  @headline_index.add_item(item)
end

#nonum_end(_level) ⇒ Object



127
128
# File 'lib/review/index_builder.rb', line 127

def nonum_end(_level)
end

#notoc_begin(level, label, caption) ⇒ Object



130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
# File 'lib/review/index_builder.rb', line 130

def notoc_begin(level, label, caption)
  check_id(label)
  return if level < 2

  cursor = level - 2

  if label
    @headline_stack[cursor] = label
  else
    @headline_stack[cursor] = caption
  end
  if @headline_stack.size > cursor + 1
    @headline_stack = @headline_stack.take(cursor + 1)
  end

  item_id = @headline_stack.join('|')

  item = ReVIEW::Book::Index::Item.new(item_id, nil, caption)
  @headline_index.add_item(item)
end

#notoc_end(_level) ⇒ Object



151
152
# File 'lib/review/index_builder.rb', line 151

def notoc_end(_level)
end

#numberlessimage(_lines, id, _caption = '', _metric = nil) ⇒ Object



322
323
324
325
326
# File 'lib/review/index_builder.rb', line 322

def numberlessimage(_lines, id, _caption = '', _metric = nil)
  check_id(id)
  item = ReVIEW::Book::Index::Item.new(id, @indepimage_index.size + 1)
  @indepimage_index.add_item(item)
end

#ol_beginObject



214
215
# File 'lib/review/index_builder.rb', line 214

def ol_begin
end

#ol_endObject



220
221
# File 'lib/review/index_builder.rb', line 220

def ol_end
end

#ol_item(lines, _num) ⇒ Object



217
218
# File 'lib/review/index_builder.rb', line 217

def ol_item(lines, _num)
end

#olnum(_num) ⇒ Object



344
345
# File 'lib/review/index_builder.rb', line 344

def olnum(_num)
end

#pagebreakObject



347
348
# File 'lib/review/index_builder.rb', line 347

def pagebreak
end

#paragraph(lines) ⇒ Object



235
236
# File 'lib/review/index_builder.rb', line 235

def paragraph(lines)
end

#parasepObject



238
239
240
# File 'lib/review/index_builder.rb', line 238

def parasep
  ''
end

#post_paragraphObject



38
39
40
# File 'lib/review/index_builder.rb', line 38

def post_paragraph
  ''
end

#pre_paragraphObject



34
35
36
# File 'lib/review/index_builder.rb', line 34

def pre_paragraph
  ''
end

#quote(lines) ⇒ Object



275
276
# File 'lib/review/index_builder.rb', line 275

def quote(lines)
end

#raw(_str) ⇒ Object



593
594
595
# File 'lib/review/index_builder.rb', line 593

def raw(_str)
  ''
end

#read(_lines) ⇒ Object Also known as: lead



246
247
# File 'lib/review/index_builder.rb', line 246

def read(_lines)
end

#resultObject



76
77
78
# File 'lib/review/index_builder.rb', line 76

def result
  nil
end

#source(_lines, _caption = nil, _lang = nil) ⇒ Object



257
258
# File 'lib/review/index_builder.rb', line 257

def source(_lines, _caption = nil, _lang = nil)
end

#sup_begin(_level, label, _caption) ⇒ Object



195
196
197
# File 'lib/review/index_builder.rb', line 195

def sup_begin(_level, label, _caption)
  check_id(label)
end

#sup_end(_level) ⇒ Object



199
200
# File 'lib/review/index_builder.rb', line 199

def sup_end(_level)
end

#table(_lines, id = nil, caption = nil) ⇒ Object



284
285
286
287
288
289
290
# File 'lib/review/index_builder.rb', line 284

def table(_lines, id = nil, caption = nil)
  check_id(id)
  if id
    item = ReVIEW::Book::Index::Item.new(id, @table_index.size + 1, caption)
    @table_index.add_item(item)
  end
end

#target_nameObject



80
81
82
# File 'lib/review/index_builder.rb', line 80

def target_name
  'index'
end

#texequation(_lines, id = nil, _caption = '') ⇒ Object



613
614
615
616
617
618
619
# File 'lib/review/index_builder.rb', line 613

def texequation(_lines, id = nil, _caption = '')
  check_id(id)
  if id
    item = ReVIEW::Book::Index::Item.new(id, @equation_index.size + 1)
    @equation_index.add_item(item)
  end
end

#text(_str) ⇒ Object



464
465
466
# File 'lib/review/index_builder.rb', line 464

def text(_str)
  ''
end

#tsize(_str) ⇒ Object



633
634
635
# File 'lib/review/index_builder.rb', line 633

def tsize(_str)
  ''
end

#ul_beginObject



202
203
# File 'lib/review/index_builder.rb', line 202

def ul_begin
end

#ul_endObject



211
212
# File 'lib/review/index_builder.rb', line 211

def ul_end
end

#ul_item_begin(lines) ⇒ Object



205
206
# File 'lib/review/index_builder.rb', line 205

def ul_item_begin(lines)
end

#ul_item_endObject



208
209
# File 'lib/review/index_builder.rb', line 208

def ul_item_end
end

#unknown_command(*_args) ⇒ Object



649
650
651
# File 'lib/review/index_builder.rb', line 649

def unknown_command(*_args)
  # ignore
end

#warn(msg) ⇒ Object



601
602
603
# File 'lib/review/index_builder.rb', line 601

def warn(msg)
  @logger.warn "#{@location}: #{msg}"
end

#xcolumn_begin(_level, label, _caption) ⇒ Object



188
189
190
# File 'lib/review/index_builder.rb', line 188

def xcolumn_begin(_level, label, _caption)
  check_id(label)
end

#xcolumn_end(_level) ⇒ Object



192
193
# File 'lib/review/index_builder.rb', line 192

def xcolumn_end(_level)
end