Package br.com.caelum.tubaina.io

Examples of br.com.caelum.tubaina.io.TubainaHtmlDir.writeIndex()


        }

        String htmlBibliography = generateHtmlBibliography(outputDir);
        bookContent.append(htmlBibliography);
        bookContent = resolveReferencesOf(bookContent);
        bookRoot.writeIndex(bookContent);
    }

    private String generateIntroductionParts(Book book, TubainaHtmlDir bookRoot) {
        return new IntroductionChaptersToKindle(parser, freeMarkerConfig, bookRoot)
                .generateIntroductionChapters(book.getIntroductionChapters());
View Full Code Here


        ResourceManipulatorFactory htmlResourceManipulatorFactory = new HtmlResourceManipulatorFactory();
        TubainaHtmlDir bookRoot = new TubainaHtmlIO(templateDir, htmlResourceManipulatorFactory)
                .createTubainaDir(directory, book);
        List<String> dirTree = createDirTree(book, directory);
        StringBuffer toc = new BookToTOC().generateTOC(book, cfg, dirTree, parser);
        bookRoot.writeIndex(fixPaths(toc));

        int chapterIndex = 1;
        int currentDir = 1;
        for (Chapter chapter : book.getChapters()) {
            int curdir = currentDir++;
View Full Code Here

   
    bookContent = resolveReferencesOf(bookContent);
   
    bookContent.append(generateFooter());

    bookRoot.writeIndex(bookContent);
  }
 
    private StringBuffer resolveReferencesOf(StringBuffer bookContent) {
        List<ReferenceReplacer> replacers = new ArrayList<ReferenceReplacer>();
       
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.