gate.wiki.antlr
Class LaTeXTarget

java.lang.Object
  extended by gate.wiki.antlr.NOPTarget
      extended by gate.wiki.antlr.LaTeXTarget
All Implemented Interfaces:
YAMTarget

public class LaTeXTarget
extends NOPTarget


Field Summary
 
Fields inherited from class gate.wiki.antlr.NOPTarget
lastCommand, out
 
Constructor Summary
LaTeXTarget()
           
LaTeXTarget(Writer out)
           
 
Method Summary
 void anchor(String name)
           
protected  String angleBracketsEscape(String q)
           
 void begin_ol(int level)
           
 void begin_table()
           
 void begin_ul(int level)
           
 void begin()
          insert head.html if found
 String beginBF()
           
 String beginEM()
           
 void beginListItem(int level)
           
 void beginSection(String title, int level)
           
 String beginTT()
           
 void blankline()
          They want a blank line without signaling a new paragraph.
 void blockquote(String q)
           
 void bold(String t)
           
 void box(YAMContext context, Vector args)
           
 void cite(YAMContext context, Vector args)
          Former plugins
 void code(String c)
           
 void col()
           
 void contents()
           
 void end_ol(int level)
           
 void end_table()
           
 void end_ul(int level)
           
 void end()
          insert tail.html if found
 String endBF()
           
 String endEM()
           
 void endListItem(int level)
           
 String endTT()
           
 void eps(YAMContext context, Vector args)
           
protected  String extractLastCommand(String text)
          Subclasses should implement this; i.e., pull out <...
 void footnote(YAMContext context, Vector args)
           
 String getTargetLanguage()
          Typically "HTML", or "Lout"
 void hr()
           
 void image(YAMContext context, Vector args)
          Former plugins were turned into methods
 void italic(String t)
           
 void linebreak()
          They want a new line in a paragraph
 void link(String url, String title)
           
 void longdash()
           
 void notes(YAMContext context, Vector args)
           
 void paragraph()
           
 void row()
           
 void syndiag(YAMContext context, Vector args)
           
 void text(String t)
           
 void title(String title)
           
 void tree(YAMContext context, Vector args)
           
 void tt(String t)
           
 void verbatim(String rawOutput)
          Assume rawOutput is in output language and just dump
protected  void write(String s)
           
 
Methods inherited from class gate.wiki.antlr.NOPTarget
beginSectionList, c, date, delete, endSection, endSectionList, getLastOutputCommand, include, wikilink, writeln
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LaTeXTarget

public LaTeXTarget()

LaTeXTarget

public LaTeXTarget(Writer out)
Method Detail

getTargetLanguage

public String getTargetLanguage()
Description copied from interface: YAMTarget
Typically "HTML", or "Lout"

Specified by:
getTargetLanguage in interface YAMTarget
Overrides:
getTargetLanguage in class NOPTarget

write

protected void write(String s)
Overrides:
write in class NOPTarget

begin

public void begin()
insert head.html if found

Specified by:
begin in interface YAMTarget
Overrides:
begin in class NOPTarget

end

public void end()
insert tail.html if found

Specified by:
end in interface YAMTarget
Overrides:
end in class NOPTarget

extractLastCommand

protected String extractLastCommand(String text)
Description copied from class: NOPTarget
Subclasses should implement this; i.e., pull out <...>or ID. Groovy because you get a list like this when you from say paragraph(): last cmd=[@Heading] last cmd=[@LP] last cmd=[@EndList] last cmd=[@Begin]

Overrides:
extractLastCommand in class NOPTarget

text

public void text(String t)
Specified by:
text in interface YAMTarget
Overrides:
text in class NOPTarget

bold

public void bold(String t)
Specified by:
bold in interface YAMTarget
Overrides:
bold in class NOPTarget

italic

public void italic(String t)
Specified by:
italic in interface YAMTarget
Overrides:
italic in class NOPTarget

tt

public void tt(String t)
Specified by:
tt in interface YAMTarget
Overrides:
tt in class NOPTarget

beginListItem

public void beginListItem(int level)
Specified by:
beginListItem in interface YAMTarget
Overrides:
beginListItem in class NOPTarget

endListItem

public void endListItem(int level)
Specified by:
endListItem in interface YAMTarget
Overrides:
endListItem in class NOPTarget

begin_ul

public void begin_ul(int level)
Specified by:
begin_ul in interface YAMTarget
Overrides:
begin_ul in class NOPTarget

end_ul

public void end_ul(int level)
Specified by:
end_ul in interface YAMTarget
Overrides:
end_ul in class NOPTarget

begin_ol

public void begin_ol(int level)
Specified by:
begin_ol in interface YAMTarget
Overrides:
begin_ol in class NOPTarget

end_ol

public void end_ol(int level)
Specified by:
end_ol in interface YAMTarget
Overrides:
end_ol in class NOPTarget

paragraph

public void paragraph()
Specified by:
paragraph in interface YAMTarget
Overrides:
paragraph in class NOPTarget

linebreak

public void linebreak()
Description copied from interface: YAMTarget
They want a new line in a paragraph

Specified by:
linebreak in interface YAMTarget
Overrides:
linebreak in class NOPTarget

blankline

public void blankline()
Description copied from interface: YAMTarget
They want a blank line without signaling a new paragraph. Useful for new "paragraphs" within a single bullet.

Specified by:
blankline in interface YAMTarget
Overrides:
blankline in class NOPTarget

code

public void code(String c)
Specified by:
code in interface YAMTarget
Overrides:
code in class NOPTarget

verbatim

public void verbatim(String rawOutput)
Description copied from interface: YAMTarget
Assume rawOutput is in output language and just dump

Specified by:
verbatim in interface YAMTarget
Overrides:
verbatim in class NOPTarget

blockquote

public void blockquote(String q)
Specified by:
blockquote in interface YAMTarget
Overrides:
blockquote in class NOPTarget

link

public void link(String url,
                 String title)
Specified by:
link in interface YAMTarget
Overrides:
link in class NOPTarget

anchor

public void anchor(String name)
Specified by:
anchor in interface YAMTarget
Overrides:
anchor in class NOPTarget

title

public void title(String title)
Specified by:
title in interface YAMTarget
Overrides:
title in class NOPTarget

beginSection

public void beginSection(String title,
                         int level)
Specified by:
beginSection in interface YAMTarget
Overrides:
beginSection in class NOPTarget

begin_table

public void begin_table()
Specified by:
begin_table in interface YAMTarget
Overrides:
begin_table in class NOPTarget

end_table

public void end_table()
Specified by:
end_table in interface YAMTarget
Overrides:
end_table in class NOPTarget

col

public void col()
Specified by:
col in interface YAMTarget
Overrides:
col in class NOPTarget

row

public void row()
Specified by:
row in interface YAMTarget
Overrides:
row in class NOPTarget

angleBracketsEscape

protected String angleBracketsEscape(String q)

hr

public void hr()
Specified by:
hr in interface YAMTarget
Overrides:
hr in class NOPTarget

beginEM

public String beginEM()
Specified by:
beginEM in interface YAMTarget
Overrides:
beginEM in class NOPTarget

endEM

public String endEM()
Specified by:
endEM in interface YAMTarget
Overrides:
endEM in class NOPTarget

beginTT

public String beginTT()
Specified by:
beginTT in interface YAMTarget
Overrides:
beginTT in class NOPTarget

endTT

public String endTT()
Specified by:
endTT in interface YAMTarget
Overrides:
endTT in class NOPTarget

beginBF

public String beginBF()
Specified by:
beginBF in interface YAMTarget
Overrides:
beginBF in class NOPTarget

endBF

public String endBF()
Specified by:
endBF in interface YAMTarget
Overrides:
endBF in class NOPTarget

longdash

public void longdash()
Specified by:
longdash in interface YAMTarget
Overrides:
longdash in class NOPTarget

contents

public void contents()
Specified by:
contents in interface YAMTarget
Overrides:
contents in class NOPTarget

image

public void image(YAMContext context,
                  Vector args)
Former plugins were turned into methods

Specified by:
image in interface YAMTarget
Overrides:
image in class NOPTarget

cite

public void cite(YAMContext context,
                 Vector args)
Description copied from interface: YAMTarget
Former plugins

Specified by:
cite in interface YAMTarget
Overrides:
cite in class NOPTarget

box

public void box(YAMContext context,
                Vector args)
Specified by:
box in interface YAMTarget
Overrides:
box in class NOPTarget

eps

public void eps(YAMContext context,
                Vector args)
Specified by:
eps in interface YAMTarget
Overrides:
eps in class NOPTarget

footnote

public void footnote(YAMContext context,
                     Vector args)
Specified by:
footnote in interface YAMTarget
Overrides:
footnote in class NOPTarget

notes

public void notes(YAMContext context,
                  Vector args)
Specified by:
notes in interface YAMTarget
Overrides:
notes in class NOPTarget

syndiag

public void syndiag(YAMContext context,
                    Vector args)
Specified by:
syndiag in interface YAMTarget
Overrides:
syndiag in class NOPTarget

tree

public void tree(YAMContext context,
                 Vector args)
Specified by:
tree in interface YAMTarget
Overrides:
tree in class NOPTarget