/* * [LglossCustomiser.java] * * Summary: Search living love glossary for
anchors and terms. * * Copyright: (c) 2007-2017 Roedy Green, Canadian Mind Products, http://mindprod.com * * Licence: This software may be copied and used freely for any purpose but military. * http://mindprod.com/contact/nonmil.html * * Requires: JDK 1.8+ * * Created with: JetBrains IntelliJ IDEA IDE http://www.jetbrains.com/idea/ * * Version History: * 2.2 2007-04-27 use enum for each embellishment letter. use CSS for single icons. */ package com.mindprod.qf; import static com.mindprod.htmlmacros.macro.Global.configuration; /** * Search living love glossary for
anchors and terms. * * @author Roedy Green, Canadian Mind Products * @version 2.2 2007-04-27 use enum for each embellishment letter. use CSS for single icons. * @since 2007 */ public final class LglossCustomiser extends AbstractGlossCustomiser { /** * directory where we put the generated indexes. */ private static final String includeDirName; /** * directory where the bgloss is kept */ private static final String inputDirName; /** * root directory of website */ private static final String webrootDirname; static { // combine dirsWithMacros and dirsWithIncludes into dirsToProcess; webrootDirname = configuration.getLocalWebrootWithSlashes(); // E:/mindprod includeDirName = webrootDirname + "/livinglove/include/"; // E:/mindprod/livinglove/include/ inputDirName = webrootDirname + "/livinglove/methods/"; // E:/mindprod/livinglove/methods/ } /** * base name of glossary, e.g. lgloss jgloss used to build other names. * * @return name of glossary */ public String getBaseName() { return "lgloss"; } /** * estimate of how many entries in the index. Will be a bit larger than the number of files. * * @return estimated number of index entires in this glossary */ public int getEstimatedIndexEntries() { return ( 50 ); } /** * get glossary enum associated with this embellisher * * @return glossary */ public Gloss getGlossEnum() { return Gloss.LGLOSS; } /** * directory where we put the generated indexes. Also where embellishments live * * @return directory when output files go files are, WITH TRAILING /. * E:/mindprod/livinglove/include/ */ public String getIncludeDirName() { return includeDirName; } /** * Get directory where input files to be indexed are, * * @return directory when input files are, with trailing /. * E:/mindprod/livinglove/include/ */ public String getInputDirName() { return inputDirName; } /** * Get unqualified name of the next input file when scanning for archors/terms * * @return unqualified filename. Watch \ which must be doubled in Java Strings. Indicates has no more files to * process either by repeating the last filename, or by returning null. */ public String getNextInFilename() { return "lgloss.html"; } } // end LglossCustomiser