# File ../../../../../lib/review/tocprinter.rb, line 163 def print_book(book) puts %Q(<?xml version="1.0" encoding="UTF-8"?>) puts %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