Class: ReVIEW::IndexBuilder
Constant Summary
Constants inherited
from Builder
Builder::CAPTION_TITLES
Instance Attribute Summary collapse
Attributes inherited from Builder
#doc_status, #location
Attributes included from Loggable
#logger
Instance Method Summary
collapse
-
#bibpaper(_lines, id, caption) ⇒ Object
-
#bind(compiler, chapter, location) ⇒ Object
-
#blankline ⇒ Object
-
#bpo(_lines) ⇒ Object
-
#captionblock(_type, _lines, _caption, _specialstyle = nil) ⇒ Object
-
#centering(lines) ⇒ Object
-
#check_id(id) ⇒ Object
-
#cmd(lines, caption = nil) ⇒ Object
-
#column_begin(_level, label, caption) ⇒ Object
-
#column_end(_level) ⇒ Object
-
#comment(lines, comment = nil) ⇒ Object
-
#compile_inline(s) ⇒ Object
-
#dd(lines) ⇒ Object
-
#dl_begin ⇒ Object
-
#dl_end ⇒ Object
-
#dt(line) ⇒ Object
-
#embed(_lines, _arg = nil) ⇒ Object
-
#emlist(lines, caption = nil, lang = nil) ⇒ Object
-
#emlistnum(lines, caption = nil, lang = nil) ⇒ Object
-
#emtable(_lines, _caption = nil) ⇒ Object
-
#error(msg = nil) ⇒ Object
-
#extract_chapter_id(_chap_ref) ⇒ Object
-
#firstlinenum(_num) ⇒ Object
-
#flushright(_lines) ⇒ Object
-
#footnote(id, str) ⇒ Object
-
#get_chap(_chapter = nil) ⇒ Object
-
#headline(level, label, caption) ⇒ Object
-
#highlight? ⇒ Boolean
-
#hr ⇒ Object
-
#image(_lines, id, caption, _metric = nil) ⇒ Object
-
#imgtable(_lines, id, _caption = nil, _metric = nil) ⇒ Object
-
#indepimage(_lines, id, _caption = '', _metric = nil) ⇒ Object
-
#initialize(strict = false, *args) ⇒ IndexBuilder
constructor
A new instance of IndexBuilder.
-
#inline_abbr(_str) ⇒ Object
-
#inline_acronym(_str) ⇒ Object
-
#inline_ami(_str) ⇒ Object
-
#inline_b(_str) ⇒ Object
-
#inline_balloon(_arg) ⇒ Object
-
#inline_bib(_id) ⇒ Object
-
#inline_big(_str) ⇒ Object
-
#inline_bou(str) ⇒ Object
-
#inline_br(_str) ⇒ Object
-
#inline_chap(_id) ⇒ Object
-
#inline_chapref(_id) ⇒ Object
-
#inline_cite(_str) ⇒ Object
-
#inline_code(_str) ⇒ Object
-
#inline_column(_id) ⇒ Object
-
#inline_column_chap(_chapter, _id) ⇒ Object
-
#inline_del(_str) ⇒ Object
-
#inline_dfn(_str) ⇒ Object
-
#inline_dtp(_str) ⇒ Object
-
#inline_em(_str) ⇒ Object
-
#inline_embed(_args) ⇒ Object
-
#inline_eq(_id) ⇒ Object
-
#inline_fn(_id) ⇒ Object
-
#inline_hd(_id) ⇒ Object
-
#inline_hidx(_str) ⇒ Object
-
#inline_hr(_arg) ⇒ Object
-
#inline_href(_arg) ⇒ Object
-
#inline_i(_str) ⇒ Object
-
#inline_icon(id) ⇒ Object
-
#inline_idx(_str) ⇒ Object
-
#inline_img(_id) ⇒ Object
-
#inline_imgref(_id) ⇒ Object
-
#inline_ins(_str) ⇒ Object
-
#inline_kbd(_str) ⇒ Object
-
#inline_kw(_arg) ⇒ Object
-
#inline_list(_id) ⇒ Object
-
#inline_m(_str) ⇒ Object
-
#inline_pageref(_id) ⇒ Object
-
#inline_raw(_args) ⇒ Object
-
#inline_recipe(_str) ⇒ Object
-
#inline_ruby(_arg) ⇒ Object
-
#inline_samp(_str) ⇒ Object
-
#inline_small(_str) ⇒ Object
-
#inline_strong(_str) ⇒ Object
-
#inline_sub(_str) ⇒ Object
-
#inline_sup(_str) ⇒ Object
-
#inline_table(_id) ⇒ Object
-
#inline_tcy(_arg) ⇒ Object
-
#inline_title(_id) ⇒ Object
-
#inline_tt(_str) ⇒ Object
-
#inline_ttb(_str) ⇒ Object
-
#inline_tti(_str) ⇒ Object
-
#inline_u(_str) ⇒ Object
-
#inline_uchar(_str) ⇒ Object
-
#inline_var(_str) ⇒ Object
-
#inline_w(_s) ⇒ Object
-
#inline_wb(_s) ⇒ Object
-
#label(id) ⇒ Object
-
#list(_lines, id, _caption, _lang = nil) ⇒ Object
-
#listnum(_lines, id, _caption, _lang = nil) ⇒ Object
-
#nodisp_begin(level, label, caption) ⇒ Object
-
#nodisp_end(_level) ⇒ Object
-
#nofunc_text(_str) ⇒ Object
-
#noindent ⇒ Object
-
#nonum_begin(level, label, caption) ⇒ Object
-
#nonum_end(_level) ⇒ Object
-
#notoc_begin(level, label, caption) ⇒ Object
-
#notoc_end(_level) ⇒ Object
-
#numberlessimage(_lines, id, _caption = '', _metric = nil) ⇒ Object
-
#ol_begin ⇒ Object
-
#ol_end ⇒ Object
-
#ol_item(lines, _num) ⇒ Object
-
#olnum(_num) ⇒ Object
-
#pagebreak ⇒ Object
-
#paragraph(lines) ⇒ Object
-
#parasep ⇒ Object
-
#post_paragraph ⇒ Object
-
#pre_paragraph ⇒ Object
-
#quote(lines) ⇒ Object
-
#raw(_str) ⇒ Object
-
#read(_lines) ⇒ Object
(also: #lead)
-
#result ⇒ Object
-
#source(_lines, _caption = nil, _lang = nil) ⇒ Object
-
#sup_begin(_level, label, _caption) ⇒ Object
-
#sup_end(_level) ⇒ Object
-
#table(_lines, id = nil, caption = nil) ⇒ Object
-
#target_name ⇒ Object
-
#texequation(_lines, id = nil, _caption = '') ⇒ Object
-
#text(_str) ⇒ Object
-
#tsize(_str) ⇒ Object
-
#ul_begin ⇒ Object
-
#ul_end ⇒ Object
-
#ul_item_begin(lines) ⇒ Object
-
#ul_item_end ⇒ Object
-
#unknown_command(*_args) ⇒ Object
-
#xcolumn_begin(_level, label, _caption) ⇒ Object
-
#xcolumn_end(_level) ⇒ Object
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, #previous_list_type, #print, #puts, #result_metric, #solve_nest, #system_graph, #table_row_separator_regexp, #table_rows
Methods included from Loggable
#app_error, #debug, #error!, #warn
Methods included from TextUtils
#add_space?, #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_index ⇒ Object
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_index ⇒ Object
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_index ⇒ Object
Returns the value of attribute equation_index.
16
17
18
|
# File 'lib/review/index_builder.rb', line 16
def equation_index
@equation_index
end
|
Returns the value of attribute footnote_index.
16
17
18
|
# File 'lib/review/index_builder.rb', line 16
def
@footnote_index
end
|
#headline_index ⇒ Object
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_index ⇒ Object
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_index ⇒ Object
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_index ⇒ Object
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_index ⇒ Object
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_index ⇒ Object
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_index ⇒ Object
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
467
468
469
470
471
|
# File 'lib/review/index_builder.rb', line 467
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
|
#blankline ⇒ Object
334
335
|
# File 'lib/review/index_builder.rb', line 334
def blankline
end
|
#bpo(_lines) ⇒ Object
349
350
|
# File 'lib/review/index_builder.rb', line 349
def bpo(_lines)
end
|
#captionblock(_type, _lines, _caption, _specialstyle = nil) ⇒ Object
621
622
623
|
# File 'lib/review/index_builder.rb', line 621
def captionblock(_type, _lines, _caption, _specialstyle = nil)
''
end
|
#centering(lines) ⇒ Object
340
341
|
# File 'lib/review/index_builder.rb', line 340
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}`", location: location
elsif id.start_with?('.')
warn "deprecated ID: `#{id}` begins from `.`", location: location
end
end
end
|
#cmd(lines, caption = nil) ⇒ Object
271
272
|
# File 'lib/review/index_builder.rb', line 271
def cmd(lines, caption = nil)
end
|
#column_begin(_level, label, caption) ⇒ Object
177
178
179
180
181
182
|
# File 'lib/review/index_builder.rb', line 177
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
184
185
|
# File 'lib/review/index_builder.rb', line 184
def column_end(_level)
end
|
296
297
|
# File 'lib/review/index_builder.rb', line 296
def (lines, = nil)
end
|
#compile_inline(s) ⇒ Object
355
356
357
|
# File 'lib/review/index_builder.rb', line 355
def compile_inline(s)
@compiler.text(s)
end
|
#dd(lines) ⇒ Object
228
229
|
# File 'lib/review/index_builder.rb', line 228
def dd(lines)
end
|
222
223
|
# File 'lib/review/index_builder.rb', line 222
def dl_begin
end
|
231
232
|
# File 'lib/review/index_builder.rb', line 231
def dl_end
end
|
225
226
|
# File 'lib/review/index_builder.rb', line 225
def dt(line)
end
|
#embed(_lines, _arg = nil) ⇒ Object
596
597
598
|
# File 'lib/review/index_builder.rb', line 596
def embed(_lines, _arg = nil)
''
end
|
#emlist(lines, caption = nil, lang = nil) ⇒ Object
265
266
|
# File 'lib/review/index_builder.rb', line 265
def emlist(lines, caption = nil, lang = nil)
end
|
#emlistnum(lines, caption = nil, lang = nil) ⇒ Object
268
269
|
# File 'lib/review/index_builder.rb', line 268
def emlistnum(lines, caption = nil, lang = nil)
end
|
#emtable(_lines, _caption = nil) ⇒ Object
291
292
293
294
|
# File 'lib/review/index_builder.rb', line 291
def emtable(_lines, _caption = nil)
end
|
#error(msg = nil) ⇒ Object
601
602
603
|
# File 'lib/review/index_builder.rb', line 601
def error(msg = nil)
end
|
617
618
619
|
# File 'lib/review/index_builder.rb', line 617
def (_chap_ref)
''
end
|
#firstlinenum(_num) ⇒ Object
443
444
445
|
# File 'lib/review/index_builder.rb', line 443
def firstlinenum(_num)
''
end
|
#flushright(_lines) ⇒ Object
337
338
|
# File 'lib/review/index_builder.rb', line 337
def flushright(_lines)
end
|
309
310
311
312
313
|
# File 'lib/review/index_builder.rb', line 309
def (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
613
614
615
|
# File 'lib/review/index_builder.rb', line 613
def get_chap(_chapter = nil)
''
end
|
#headline(level, label, caption) ⇒ Object
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
# File 'lib/review/index_builder.rb', line 83
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
637
638
639
|
# File 'lib/review/index_builder.rb', line 637
def highlight?
false
end
|
327
328
|
# File 'lib/review/index_builder.rb', line 327
def hr
end
|
#image(_lines, id, caption, _metric = nil) ⇒ Object
277
278
279
280
281
|
# File 'lib/review/index_builder.rb', line 277
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
299
300
301
302
303
304
305
306
307
|
# File 'lib/review/index_builder.rb', line 299
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)
item = ReVIEW::Book::Index::Item.new(id, @indepimage_index.size + 1)
@indepimage_index.add_item(item)
end
|
#indepimage(_lines, id, _caption = '', _metric = nil) ⇒ Object
315
316
317
318
319
|
# File 'lib/review/index_builder.rb', line 315
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
509
510
511
|
# File 'lib/review/index_builder.rb', line 509
def inline_abbr(_str)
''
end
|
#inline_acronym(_str) ⇒ Object
513
514
515
|
# File 'lib/review/index_builder.rb', line 513
def inline_acronym(_str)
''
end
|
#inline_ami(_str) ⇒ Object
403
404
405
|
# File 'lib/review/index_builder.rb', line 403
def inline_ami(_str)
''
end
|
#inline_b(_str) ⇒ Object
399
400
401
|
# File 'lib/review/index_builder.rb', line 399
def inline_b(_str)
''
end
|
#inline_balloon(_arg) ⇒ Object
497
498
499
|
# File 'lib/review/index_builder.rb', line 497
def inline_balloon(_arg)
''
end
|
#inline_bib(_id) ⇒ Object
477
478
479
|
# File 'lib/review/index_builder.rb', line 477
def inline_bib(_id)
''
end
|
#inline_big(_str) ⇒ Object
545
546
547
|
# File 'lib/review/index_builder.rb', line 545
def inline_big(_str)
''
end
|
#inline_bou(str) ⇒ Object
407
408
409
|
# File 'lib/review/index_builder.rb', line 407
def inline_bou(str)
str
end
|
#inline_br(_str) ⇒ Object
435
436
437
|
# File 'lib/review/index_builder.rb', line 435
def inline_br(_str)
''
end
|
#inline_chap(_id) ⇒ Object
363
364
365
|
# File 'lib/review/index_builder.rb', line 363
def inline_chap(_id)
''
end
|
#inline_chapref(_id) ⇒ Object
359
360
361
|
# File 'lib/review/index_builder.rb', line 359
def inline_chapref(_id)
''
end
|
#inline_cite(_str) ⇒ Object
517
518
519
|
# File 'lib/review/index_builder.rb', line 517
def inline_cite(_str)
''
end
|
#inline_code(_str) ⇒ Object
423
424
425
|
# File 'lib/review/index_builder.rb', line 423
def inline_code(_str)
''
end
|
#inline_column(_id) ⇒ Object
481
482
483
|
# File 'lib/review/index_builder.rb', line 481
def inline_column(_id)
''
end
|
#inline_column_chap(_chapter, _id) ⇒ Object
485
486
487
|
# File 'lib/review/index_builder.rb', line 485
def inline_column_chap(_chapter, _id)
''
end
|
#inline_del(_str) ⇒ Object
565
566
567
|
# File 'lib/review/index_builder.rb', line 565
def inline_del(_str)
''
end
|
#inline_dfn(_str) ⇒ Object
521
522
523
|
# File 'lib/review/index_builder.rb', line 521
def inline_dfn(_str)
''
end
|
#inline_dtp(_str) ⇒ Object
419
420
421
|
# File 'lib/review/index_builder.rb', line 419
def inline_dtp(_str)
''
end
|
#inline_em(_str) ⇒ Object
525
526
527
|
# File 'lib/review/index_builder.rb', line 525
def inline_em(_str)
''
end
|
#inline_embed(_args) ⇒ Object
633
634
635
|
# File 'lib/review/index_builder.rb', line 633
def inline_embed(_args)
''
end
|
#inline_eq(_id) ⇒ Object
387
388
389
|
# File 'lib/review/index_builder.rb', line 387
def inline_eq(_id)
''
end
|
#inline_fn(_id) ⇒ Object
391
392
393
|
# File 'lib/review/index_builder.rb', line 391
def inline_fn(_id)
''
end
|
#inline_hd(_id) ⇒ Object
473
474
475
|
# File 'lib/review/index_builder.rb', line 473
def inline_hd(_id)
''
end
|
#inline_hidx(_str) ⇒ Object
431
432
433
|
# File 'lib/review/index_builder.rb', line 431
def inline_hidx(_str)
''
end
|
#inline_hr(_arg) ⇒ Object
459
460
461
|
# File 'lib/review/index_builder.rb', line 459
def inline_hr(_arg)
''
end
|
#inline_href(_arg) ⇒ Object
455
456
457
|
# File 'lib/review/index_builder.rb', line 455
def inline_href(_arg)
''
end
|
#inline_i(_str) ⇒ Object
395
396
397
|
# File 'lib/review/index_builder.rb', line 395
def inline_i(_str)
''
end
|
#inline_icon(id) ⇒ Object
581
582
583
584
585
586
|
# File 'lib/review/index_builder.rb', line 581
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
427
428
429
|
# File 'lib/review/index_builder.rb', line 427
def inline_idx(_str)
''
end
|
#inline_img(_id) ⇒ Object
375
376
377
|
# File 'lib/review/index_builder.rb', line 375
def inline_img(_id)
''
end
|
#inline_imgref(_id) ⇒ Object
379
380
381
|
# File 'lib/review/index_builder.rb', line 379
def inline_imgref(_id)
''
end
|
#inline_ins(_str) ⇒ Object
569
570
571
|
# File 'lib/review/index_builder.rb', line 569
def inline_ins(_str)
''
end
|
#inline_kbd(_str) ⇒ Object
529
530
531
|
# File 'lib/review/index_builder.rb', line 529
def inline_kbd(_str)
''
end
|
#inline_kw(_arg) ⇒ Object
451
452
453
|
# File 'lib/review/index_builder.rb', line 451
def inline_kw(_arg)
''
end
|
#inline_list(_id) ⇒ Object
371
372
373
|
# File 'lib/review/index_builder.rb', line 371
def inline_list(_id)
''
end
|
#inline_m(_str) ⇒ Object
439
440
441
|
# File 'lib/review/index_builder.rb', line 439
def inline_m(_str)
''
end
|
489
490
491
|
# File 'lib/review/index_builder.rb', line 489
def (_id)
''
end
|
#inline_raw(_args) ⇒ Object
629
630
631
|
# File 'lib/review/index_builder.rb', line 629
def inline_raw(_args)
''
end
|
#inline_recipe(_str) ⇒ Object
577
578
579
|
# File 'lib/review/index_builder.rb', line 577
def inline_recipe(_str)
''
end
|
#inline_ruby(_arg) ⇒ Object
447
448
449
|
# File 'lib/review/index_builder.rb', line 447
def inline_ruby(_arg)
''
end
|
#inline_samp(_str) ⇒ Object
533
534
535
|
# File 'lib/review/index_builder.rb', line 533
def inline_samp(_str)
''
end
|
#inline_small(_str) ⇒ Object
549
550
551
|
# File 'lib/review/index_builder.rb', line 549
def inline_small(_str)
''
end
|
#inline_strong(_str) ⇒ Object
537
538
539
|
# File 'lib/review/index_builder.rb', line 537
def inline_strong(_str)
''
end
|
#inline_sub(_str) ⇒ Object
553
554
555
|
# File 'lib/review/index_builder.rb', line 553
def inline_sub(_str)
''
end
|
#inline_sup(_str) ⇒ Object
557
558
559
|
# File 'lib/review/index_builder.rb', line 557
def inline_sup(_str)
''
end
|
#inline_table(_id) ⇒ Object
383
384
385
|
# File 'lib/review/index_builder.rb', line 383
def inline_table(_id)
''
end
|
#inline_tcy(_arg) ⇒ Object
493
494
495
|
# File 'lib/review/index_builder.rb', line 493
def inline_tcy(_arg)
''
end
|
#inline_title(_id) ⇒ Object
367
368
369
|
# File 'lib/review/index_builder.rb', line 367
def inline_title(_id)
''
end
|
#inline_tt(_str) ⇒ Object
561
562
563
|
# File 'lib/review/index_builder.rb', line 561
def inline_tt(_str)
''
end
|
#inline_ttb(_str) ⇒ Object
415
416
417
|
# File 'lib/review/index_builder.rb', line 415
def inline_ttb(_str)
''
end
|
#inline_tti(_str) ⇒ Object
411
412
413
|
# File 'lib/review/index_builder.rb', line 411
def inline_tti(_str)
''
end
|
#inline_u(_str) ⇒ Object
573
574
575
|
# File 'lib/review/index_builder.rb', line 573
def inline_u(_str)
''
end
|
#inline_uchar(_str) ⇒ Object
588
589
590
|
# File 'lib/review/index_builder.rb', line 588
def inline_uchar(_str)
''
end
|
#inline_var(_str) ⇒ Object
541
542
543
|
# File 'lib/review/index_builder.rb', line 541
def inline_var(_str)
''
end
|
#inline_w(_s) ⇒ Object
501
502
503
|
# File 'lib/review/index_builder.rb', line 501
def inline_w(_s)
''
end
|
#inline_wb(_s) ⇒ Object
505
506
507
|
# File 'lib/review/index_builder.rb', line 505
def inline_wb(_s)
''
end
|
#label(id) ⇒ Object
330
331
332
|
# File 'lib/review/index_builder.rb', line 330
def label(id)
check_id(id)
end
|
#list(_lines, id, _caption, _lang = nil) ⇒ Object
250
251
252
253
254
|
# File 'lib/review/index_builder.rb', line 250
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
259
260
261
262
263
|
# File 'lib/review/index_builder.rb', line 259
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
|
# File 'lib/review/index_builder.rb', line 153
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
174
175
|
# File 'lib/review/index_builder.rb', line 174
def nodisp_end(_level)
end
|
#nofunc_text(_str) ⇒ Object
241
242
243
|
# File 'lib/review/index_builder.rb', line 241
def nofunc_text(_str)
''
end
|
352
353
|
# File 'lib/review/index_builder.rb', line 352
def noindent
end
|
#nonum_begin(level, label, caption) ⇒ Object
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
|
# File 'lib/review/index_builder.rb', line 105
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
126
127
|
# File 'lib/review/index_builder.rb', line 126
def nonum_end(_level)
end
|
#notoc_begin(level, label, caption) ⇒ Object
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
|
# File 'lib/review/index_builder.rb', line 129
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
150
151
|
# File 'lib/review/index_builder.rb', line 150
def notoc_end(_level)
end
|
#numberlessimage(_lines, id, _caption = '', _metric = nil) ⇒ Object
321
322
323
324
325
|
# File 'lib/review/index_builder.rb', line 321
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
|
213
214
|
# File 'lib/review/index_builder.rb', line 213
def ol_begin
end
|
219
220
|
# File 'lib/review/index_builder.rb', line 219
def ol_end
end
|
#ol_item(lines, _num) ⇒ Object
216
217
|
# File 'lib/review/index_builder.rb', line 216
def ol_item(lines, _num)
end
|
#olnum(_num) ⇒ Object
343
344
|
# File 'lib/review/index_builder.rb', line 343
def olnum(_num)
end
|
#pagebreak ⇒ Object
346
347
|
# File 'lib/review/index_builder.rb', line 346
def pagebreak
end
|
#paragraph(lines) ⇒ Object
234
235
|
# File 'lib/review/index_builder.rb', line 234
def paragraph(lines)
end
|
237
238
239
|
# File 'lib/review/index_builder.rb', line 237
def parasep
''
end
|
#post_paragraph ⇒ Object
38
39
40
|
# File 'lib/review/index_builder.rb', line 38
def post_paragraph
''
end
|
#pre_paragraph ⇒ Object
34
35
36
|
# File 'lib/review/index_builder.rb', line 34
def pre_paragraph
''
end
|
#quote(lines) ⇒ Object
274
275
|
# File 'lib/review/index_builder.rb', line 274
def quote(lines)
end
|
#raw(_str) ⇒ Object
592
593
594
|
# File 'lib/review/index_builder.rb', line 592
def raw(_str)
''
end
|
#read(_lines) ⇒ Object
Also known as:
lead
245
246
|
# File 'lib/review/index_builder.rb', line 245
def read(_lines)
end
|
75
76
77
|
# File 'lib/review/index_builder.rb', line 75
def result
nil
end
|
#source(_lines, _caption = nil, _lang = nil) ⇒ Object
256
257
|
# File 'lib/review/index_builder.rb', line 256
def source(_lines, _caption = nil, _lang = nil)
end
|
#sup_begin(_level, label, _caption) ⇒ Object
194
195
196
|
# File 'lib/review/index_builder.rb', line 194
def sup_begin(_level, label, _caption)
check_id(label)
end
|
#sup_end(_level) ⇒ Object
198
199
|
# File 'lib/review/index_builder.rb', line 198
def sup_end(_level)
end
|
#table(_lines, id = nil, caption = nil) ⇒ Object
283
284
285
286
287
288
289
|
# File 'lib/review/index_builder.rb', line 283
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_name ⇒ Object
79
80
81
|
# File 'lib/review/index_builder.rb', line 79
def target_name
'index'
end
|
#texequation(_lines, id = nil, _caption = '') ⇒ Object
605
606
607
608
609
610
611
|
# File 'lib/review/index_builder.rb', line 605
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
463
464
465
|
# File 'lib/review/index_builder.rb', line 463
def text(_str)
''
end
|
#tsize(_str) ⇒ Object
625
626
627
|
# File 'lib/review/index_builder.rb', line 625
def tsize(_str)
''
end
|
201
202
|
# File 'lib/review/index_builder.rb', line 201
def ul_begin
end
|
210
211
|
# File 'lib/review/index_builder.rb', line 210
def ul_end
end
|
#ul_item_begin(lines) ⇒ Object
204
205
|
# File 'lib/review/index_builder.rb', line 204
def ul_item_begin(lines)
end
|
#ul_item_end ⇒ Object
207
208
|
# File 'lib/review/index_builder.rb', line 207
def ul_item_end
end
|
#unknown_command(*_args) ⇒ Object
641
642
643
|
# File 'lib/review/index_builder.rb', line 641
def unknown_command(*_args)
end
|
#xcolumn_begin(_level, label, _caption) ⇒ Object
187
188
189
|
# File 'lib/review/index_builder.rb', line 187
def xcolumn_begin(_level, label, _caption)
check_id(label)
end
|
#xcolumn_end(_level) ⇒ Object
191
192
|
# File 'lib/review/index_builder.rb', line 191
def xcolumn_end(_level)
end
|