Lines Matching refs:translator
202 def convert_image(img_node, translator, src_fname=None): argument
211 app = translator.builder.app
215 src_fname = path.join(translator.builder.srcdir, img_node['uri'])
217 src_fname = path.join(translator.builder.outdir, img_node['uri'])
231 elif translator.builder.format == 'latex':
232 dst_fname = path.join(translator.builder.outdir, fname + '.pdf')
237 elif translator.builder.format == 'html':
239 translator.builder.outdir,
240 translator.builder.imagedir,
243 translator.builder.imgpath, fname + '.svg')
245 '*': path.join(translator.builder.imgpath, fname + '.svg')}
253 if translator.builder.format == 'latex':
258 dst_fname = path.join(translator.builder.outdir, fname + '.pdf')
264 translator.builder.images.pop(img_node['uri'], None)
265 _name = dst_fname[len(translator.builder.outdir) + 1:]