Class Japanese

java.lang.Object
  extended byLanguageHandler
      extended byJapanese

public class Japanese
extends LanguageHandler

The methods of this class return values unique to the Japanese language. See LanguageHandler.


Field Summary
 
Fields inherited from class LanguageHandler
and, baseOutDir, contr, me, mine, subs, toMe
 
Constructor Summary
Japanese()
           
 
Method Summary
 int charProportion(int englishWidth)
          Returns the number of characters that can fit in the same space as 'englishWidth' number of English characters.
 java.lang.String getCredits(PicLink picLink)
          Returns an expression representing thanks to the subject(s) and contributor.
 prog.utils.HTMLWordWrap getHTMLWordWrap()
          Returns a text formatter appropriate for the language.
 java.lang.String getPathToHtmlOutput()
          Provides path information unique to this language.
 java.lang.String getPathToIndexFromRoot()
          Provides path information unique to this language.
 java.lang.String getPathToRoot()
          Provides path information unique to this language.
 java.lang.String getSubcatTitleSeparator()
          Returns the HTML characters to be used between titles of subcategories.
 java.lang.String getSubjectsLinks(PicLink picLink)
          Returns comma-separated HTML links to the pages of subjects.
static void main(java.lang.String[] args)
           
 java.lang.String processVisText(java.lang.String name)
          Processes the name based on the language.
 
Methods inherited from class LanguageHandler
getContributorLink, getHref, getPathToImages, testCredits
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Japanese

public Japanese()
Method Detail

getCredits

public java.lang.String getCredits(PicLink picLink)
Returns an expression representing thanks to the subject(s) and contributor.

Specified by:
getCredits in class LanguageHandler

getPathToRoot

public java.lang.String getPathToRoot()
Description copied from class: LanguageHandler
Provides path information unique to this language.

Overrides:
getPathToRoot in class LanguageHandler

getPathToHtmlOutput

public java.lang.String getPathToHtmlOutput()
Description copied from class: LanguageHandler
Provides path information unique to this language.

Overrides:
getPathToHtmlOutput in class LanguageHandler

getPathToIndexFromRoot

public java.lang.String getPathToIndexFromRoot()
Description copied from class: LanguageHandler
Provides path information unique to this language.

Overrides:
getPathToIndexFromRoot in class LanguageHandler

getHTMLWordWrap

public prog.utils.HTMLWordWrap getHTMLWordWrap()
Returns a text formatter appropriate for the language. Intended to be overridden by a subclass which returns false from useDefaultWrap().

Overrides:
getHTMLWordWrap in class LanguageHandler

charProportion

public int charProportion(int englishWidth)
Returns the number of characters that can fit in the same space as 'englishWidth' number of English characters.

Overrides:
charProportion in class LanguageHandler

getSubcatTitleSeparator

public java.lang.String getSubcatTitleSeparator()
Returns the HTML characters to be used between titles of subcategories.

Overrides:
getSubcatTitleSeparator in class LanguageHandler

processVisText

public java.lang.String processVisText(java.lang.String name)
Processes the name based on the language. For example, Japanese adds "-san" after the name.

Overrides:
processVisText in class LanguageHandler

getSubjectsLinks

public java.lang.String getSubjectsLinks(PicLink picLink)
Returns comma-separated HTML links to the pages of subjects. Japanese use no 'and' and no spaces.

Overrides:
getSubjectsLinks in class LanguageHandler

main

public static void main(java.lang.String[] args)