Class: ReVIEW::IDGTOCPrinter
- Inherits:
-
TOCPrinter
- Object
- TOCPrinter
- ReVIEW::IDGTOCPrinter
- Defined in:
- lib/review/tocprinter.rb
Instance Method Summary collapse
Methods inherited from TOCPrinter
default_upper_level, #initialize, #nkffilter, #print?
Constructor Details
This class inherits a constructor from ReVIEW::TOCPrinter
Instance Method Details
#print_book(book) ⇒ Object
180 181 182 183 184 185 186 |
# File 'lib/review/tocprinter.rb', line 180 def print_book(book) puts %Q(<?xml version="1.0" encoding="UTF-8"?>) puts nkffilter(%Q(<doc xmlns:aid='http://ns.adobe.com/AdobeInDesign/4.0/'><title aid:pstyle="h0">1 パート1</title><?dtp level="0" section="第1部 パート1"?>)) # FIXME: 部タイトルを取るには? & 部ごとに結果を分けるには? puts %Q(<ul aid:pstyle='ul-partblock'>) print_children book puts %Q(</ul></doc>) end |