bibble.io.rst_writer

Type Aliases

Block

Classes

RstWriter

Write bibtex entries as Rst.

Module Contents

bibble.io.rst_writer.Block: TypeAlias = model.Block
class bibble.io.rst_writer.RstWriter(
stack,
*,
format=None,
logger=None,
active_blocks=None,
)[source]

Bases: bibble.io.writer.BibbleWriter

Write bibtex entries as Rst.

Parameters:
  • stack (bibble.util.PairStack | list[Middleware])

  • format (jgdv.Maybe[bibtexparser.writer.BibtexFormat])

  • logger (jgdv.Maybe[logmod.Logger])

  • active_blocks (jgdv.Maybe[collections.abc.Iterable[type[bibtexparser.model.Block]]])

_build_debug_info(block) <Unknown>[source]
Parameters:

block (Block)

Return type:

list[str]

_build_legal_entry(block) <Unknown>[source]
Parameters:

block (Block)

Return type:

list[str]

_build_online_entry(block) <Unknown>[source]
Parameters:

block (Block)

Return type:

list[str]

_build_simple_entry(block) <Unknown>[source]
Parameters:

block (Block)

Return type:

list[str]

_build_social_media_entry(block) <Unknown>[source]
Parameters:

block (Block)

Return type:

list[str]

_can_add(block, *keys) <Unknown>[source]
Parameters:
  • block (Block)

  • keys (str)

Return type:

list[str]

_must_add(block, field) <Unknown>[source]
Parameters:
  • block (Block)

  • field (str)

Return type:

list[str]

_title_add(block) <Unknown>[source]

Format and return the title

Parameters:

block (Block)

Return type:

list[str]

make_header(library, title=None) <Unknown>[source]
Parameters:
  • library (bibtexparser.library.Library)

  • title (jgdv.Maybe[str])

Return type:

list[str]

visit_entry(block) <Unknown>[source]
Parameters:

block (Block)

Return type:

list[str]

_entry: ClassVar[str] = '.. bibtex:entry:: {}'
_entry_args: ClassVar[list[str]] = ['title', 'author', 'editor', 'year', 'tags', 'journal', 'booktitle', 'within', 'platform',...
_indent: ClassVar[str] = '   '
_label: ClassVar[str] = '.. _{}:'