/*
* [HandbookHead.java]
*
* Summary: Produce the header for a chapter of Handbook to Higher Consciousness.
*
* Copyright: (c) 2013-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:
* 1.0 2013-02-28 initial version. cloned from MethodsHead.
*/
package com.mindprod.htmlmacros.macro;
import com.mindprod.htmlmacros.support.GoogleAdSense;
import com.mindprod.htmlmacros.support.Indexing;
import static java.lang.System.*;
/**
* Produce the header for a chapter of Handbook to Higher Consciousness.
*
* @author Roedy Green, Canadian Mind Products
* @version 1.0 2013-02-28 initial version. cloned from MethodsHead.
* @since 2013
*/
public final class HandbookHead extends Head
{
/** how to use the macro */
/**
* how to use the macro
*/
private static final String USAGE = "\nHandbookHead macro needs chapterName (e.g. chapter 1, Foreword) chapterTopic";
/**
* Generate the header for a Living Love Methods essay.
*
* @param parms parameters from macro command line. parms[0] = title description of fragment. parms[1]
* = description parms[2] = keywords
* @param quiet true if want output suppressed.
* @param verbose @return expanded macro HTML
*/
public String expandMacro( String[] parms,
final boolean quiet, final boolean verbose )
{
if ( !quiet )
{
out.print( "H" );
}
if ( parms.length != 2 )
{
throw new IllegalArgumentException( USAGE );
}
final String chapterName = parms[ 0 ];
final String chapterTopic = parms[ 1 ];
final String longTitle = "Handbook To Higher Consciousness
" + chapterName + "
" + chapterTopic;
final String shortTitle = chapterName;
final String metaDesc = "Handbook To Higher Consciousness: " + chapterTopic;
final String keywords =
"addictions," +
"biocomputer," +
"centers of consciousness," +
"centres of consciousness," +
"consciousness focusing," +
"Handbook to Higher Consciousness," +
"higher consciousness," +
"instant consciousness doubler," +
"Ken Keyes Jr.," +
"link the suffering" +
"living love catalyst," +
"living love," +
"living lovers," +
"methods," +
"reprogramming addictions," +
"reprogramming," +
"science of happiness," +
"suffering," +
"twelve pathways";
final String image = null;
final String icon = "icon16/seagull.png";
final String sectionFile = "livinglove/livinglove.html";
final String sectionTitle = "Living Love";
final String subSectionFile = "livinglove/handbook/toc.html";
final String subSectionTitle = "Handbook: Table of Contents";
return generalHead( longTitle,
shortTitle,
metaDesc,
shortTitle,
"handbooktitlesubsubsection",
keywords,
icon,
null,
image,
null,
null,
sectionFile,
sectionTitle,
subSectionFile,
subSectionTitle,
null,
null,
null,
null,
Indexing.NONE,
GoogleAdSense.NONE,
null,
"umclnfvjirc" );
}
}