# Path: Pyblio/Formatter.py
# class Formatter:
# 
#     coding = 'Latin1'
#     
#     def __init__ (self, stdout = sys.stdout):
#         self.out     = stdout
#         self.counter = 1
#         return
# 
#     def start_group (self, id, table = None):
#         pass
# 
#     def end_group (self):
#         pass
# 
#     def next_key (self):
#         key = str (self.counter)
#         self.counter = self.counter + 1
# 
#         return key
#     
#     def start (self, key, entry):
#         return
#     
#     def write (self, text, style = None):
#         self.out.write (text)
#         return
# 
#     def separator (self):
#         self.write (" ")
#         return
#     
#     def end (self):
#         self.write ("\n")
#         return
# 
# Path: Pyblio/Autoload.py
# class Loader:
#     def __init__ (self, name, regexp, module,
#                   info = None, data = None):
#     def load (self, key = None):
#     def is_loaded (self):
# def preregister (group, name, module, regexp = None, info = None):
# def register (group, name, data = None):
# def get_by_regexp (group, key):
# def get_by_name (group, name, load = 1):
# def available (group):
# def groups ():


from Pyblio import Formatter, Autoload
            self.out.write ('<b>%s</b>' % text)
        elif style == 'italic' or style == 'slanted':
            self.out.write ('<i>%s</i>' % text)
        elif style == 'emph':
            self.out.write ('<em>%s</em>' % text)
        else:
            self.out.write (text)

    def start_group (self, id, table = None):
        self.out.write ('<dl>\n')
        return
    
    def end_group (self):
        self.out.write ('</dl>\n')
        self.out.write ('<p align="right"><small>')
        self.out.write ('Generated by Pybliographer')
        self.out.write ('</small></p>\n')
        return

    def start (self, key, entry):
        if key is None: key = self.next_key ()
        
        self.out.write ('<dt>[%s]<dd>' % key)
        return

    def separator (self):
        self.out.write (" ")
        return

    

# Path: Pyblio/Formatter.py
# class Formatter:
# 
#     coding = 'Latin1'
#     
#     def __init__ (self, stdout = sys.stdout):
#         self.out     = stdout
#         self.counter = 1
#         return
# 
#     def start_group (self, id, table = None):
#         pass
# 
#     def end_group (self):
#         pass
# 
#     def next_key (self):
#         key = str (self.counter)
#         self.counter = self.counter + 1
# 
#         return key
#     
#     def start (self, key, entry):
#         return
#     
#     def write (self, text, style = None):
#         self.out.write (text)
#         return
# 
#     def separator (self):
#         self.write (" ")
#         return
#     
#     def end (self):
#         self.write ("\n")
#         return
# 
# Path: Pyblio/Autoload.py
# class Loader:
#     def __init__ (self, name, regexp, module,
#                   info = None, data = None):
#     def load (self, key = None):
#     def is_loaded (self):
# def preregister (group, name, module, regexp = None, info = None):
# def register (group, name, data = None):
# def get_by_regexp (group, key):
# def get_by_name (group, name, load = 1):
# def available (group):
# def groups ():


# Path: Pyblio/Output/html.py
from Pyblio import Formatter, Autoload

            self.out.write ('<b>%s</b>' % text)
        elif style == 'italic' or style == 'slanted':
            self.out.write ('<i>%s</i>' % text)
        elif style == 'emph':
            self.out.write ('<em>%s</em>' % text)
        else:
            self.out.write (text)

    def start_group (self, id, table = None):
        self.out.write ('<dl>\n')
        return
    
    def end_group (self):
        self.out.write ('</dl>\n')
        self.out.write ('<p align="right"><small>')
        self.out.write ('Generated by Pybliographer')
        self.out.write ('</small></p>\n')
        return

    def start (self, key, entry):
        if key is None: key = self.next_key ()
        
        self.out.write ('<dt>[%s]<dd>' % key)
        return

    def separator (self):
        self.out.write (" ")
        return

    

Autoload.register ('output', 'HTML', HTML)