/* * [EsperantoHead.java] * * Summary: Produce the header for an Esperanto essay. * * Copyright: (c) 2004-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.8 2009-02-06 include go package in ZIP bundle. */ 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 an Esperanto essay. * * @author Roedy Green, Canadian Mind Products * @version 1.8 2009-02-06 include go package in ZIP bundle. * @since 2004 */ public final class EsperantoHead extends Head { /** * how to use the macro */ private static final String USAGE = "\nEsperantoHead macro needs title description"; /** * Generate the header for an Esperanto essay. * * @param parms parameters from macro command line. parms[0] = title description of fragment. parms[1] * = description * @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( "E" ); } if ( parms.length != 2 ) { throw new IllegalArgumentException( USAGE ); } // unqualified e.g. bio.html String title = parms[ 0 ]; String description = parms[ 1 ]; String keywords = "Roedy Green, Esperanto, Esperanto in Browsers, Acquiring Esperanto Fonts, " + "Creating Esperanto HTML Documents, Esperanto accented letters, what's wrong with Esperanto, " + "Esperanto Fonts, vortaro, ISO 8859-3, browser, Opera, Netscape, Internet Explorer, IE, correlatives," + " Esperanto correlatives"; String image = "icon64/esper.png"; String icon = "icon16/esper.png"; String sectionFile = "esperanto/esperanto.html"; String sectionTitle = "Esperanto"; return generalHead( title, null, description, title, "titlesubsection", keywords, icon, null, image, null, null, sectionFile, sectionTitle, null, null, null, null, null, null, Indexing.NONE, GoogleAdSense.MEDIUM_RECTANGLE, null, null ); } }