Map<String, Integer> indexes = new TreeMap<String, Integer>(String.CASE_INSENSITIVE_ORDER);
StringBuffer index = new IndexToString(dirTree, cfg).createFlatIndex(indexes, book);
List<Chapter> introductionChapters = book.getIntroductionChapters();
for (Chapter chapter : introductionChapters) {
bookRoot.cd(".").writeResources(chapter.getResources());
}
}
private StringBuffer fixPaths(StringBuffer chFullText) {
return new StringBuffer(chFullText.toString().replace("$$RELATIVE$$", "."));