parameters: (self, epub_book, original_book)
return_statement: return writer_plugin
docstring: Returns the writer plugin instance with some default options already set up
docstring_summary: Returns the writer plugin instance with some default options already set up
docstring_tokens: Returns the writer plugin instance with some default options already set up
function: def _get_writer_plugin(self, epub_book, original_book):
          """Returns the writer plugin instance with some default options already set up"""
  
          writer_plugin = self._get_writer_plugin_class()()
          opts = {
              'css': self._add_css_styles(epub_book),
              'style': self.config.get('style', self.default_style),
              'lang': self._get_language(original_book),
              'preview': self.config.get('preview', True),
              'direction': self._get_dir(epub_book)
          }
  
          writer_plugin.options.update(opts)
          return writer_plugin
function_tokens: def _get_writer_plugin ( self , epub_book , original_book ) : writer_plugin = self . _get_writer_plugin_class ( ) ( ) opts = { 'css' : self . _add_css_styles ( epub_book ) , 'style' : self . config . get ( 'style' , self . default_style ) , 'lang' : self . _get_language ( original_book ) , 'preview' : self . config . get ( 'preview' , True ) , 'direction' : self . _get_dir ( epub_book ) } writer_plugin . options . update ( opts ) return writer_plugin