# Path: bibstuff/bibadd.py
# def make_entry(choosetype='', options=False, extras=False):
# def make_entry_citekey(entry, used_citekeys,style=label_style1):
# def is_macro(s):
# def text_format(entry):
# def get_journal(entry, jrnl_lst=None): #TODO: extract fr journal list
# def get_volnum(entry):
# def get_pages(entry,dash='--',pagespref=('p. ','pp. ')):
# def html_format(entry):


import os
import sys
import shutil
import logging
from bibstuff.bibadd import (bibadd_logger, make_entry, html_format, text_format)
	from optparse import OptionParser
#! /usr/bin/env python
# -*- coding: latin-1 -*-
# File: add2bib.py
'''
Add entry/entries to .bib file.
Default format produces citekeys like:
Schwilk+Isaac:2002 and Isaac+Schwilk+etal:2006.
'''



__docformat__ = "restructuredtext en"
__authors__  =    ['Alan G. Isaac']
__version__ =    '0.3.1'
__needs__ = '2.4'


def main():
	"""Command-line tool.
	See bibsearch.py -h for help.
	"""

	output = sys.stdout
	
	
	usage = """

# Path: bibstuff/bibadd.py
# def make_entry(choosetype='', options=False, extras=False):
# def make_entry_citekey(entry, used_citekeys,style=label_style1):
# def is_macro(s):
# def text_format(entry):
# def get_journal(entry, jrnl_lst=None): #TODO: extract fr journal list
# def get_volnum(entry):
# def get_pages(entry,dash='--',pagespref=('p. ','pp. ')):
# def html_format(entry):


# Path: scripts/add2bib.py
import os
import sys
import shutil
import logging
from bibstuff.bibadd import (bibadd_logger, make_entry, html_format, text_format)
	from optparse import OptionParser

#! /usr/bin/env python
# -*- coding: latin-1 -*-
# File: add2bib.py
'''
Add entry/entries to .bib file.
Default format produces citekeys like:
Schwilk+Isaac:2002 and Isaac+Schwilk+etal:2006.
'''



__docformat__ = "restructuredtext en"
__authors__  =    ['Alan G. Isaac']
__version__ =    '0.3.1'
__needs__ = '2.4'


def main():
	"""Command-line tool.
	See bibsearch.py -h for help.
	"""

	output = sys.stdout
	
	
	usage = """

	%prog [options]