This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; variant of dtk-bible--insert-using-diatheke which returns parsed diatheke output | |
(defun dtk-bible--parse-diatheke (book chapter-verse &optional module diatheke-output-format) | |
"Insert content specified by BOOK and CHAPTER-VERSE into the current buffer. CHAPTER-VERSE is a string of the form CC:VV (chapter number and verse number separated by the colon character). | |
Optional argument MODULE specifies the module to use." | |
(unless diatheke-output-format | |
(setq diatheke-output-format :plain)) | |
(let ((module (or module dtk-module))) | |
(with-temp-buffer | |
(dtk-diatheke (list book chapter-verse) module t diatheke-output-format nil) | |
(cond ((dtk-check-for-text-obesity) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# A simple script to suck up HTML, convert any images to inline Base64 | |
# encoded format and write out the converted file. | |
# | |
# Usage: python standalone_html.py <input_file.html> <output_file.html> | |
# | |
# TODO: Consider MHTML format: https://en.wikipedia.org/wiki/MHTML | |
import os | |
from bs4 import BeautifulSoup |
NewerOlder