Forum Replies Created
-
AuthorPosts
-
Mikey
MemberA Python script for finding changes between Astlan EPUB editions:
[code=python]
#!/usr/bin/python3
# -*- coding: utf-8 -*-import difflib
import epub
from bs4 import BeautifulSoupdef text_paras(book, href):
soup = BeautifulSoup(book.read_item(href), ‘lxml’)
return [x.get_text() for x in soup.find_all(‘p’)]book1 = epub.open_epub(‘Apostles of Doom Alpha 1 – J. L. Langland.epub’)
book2 = epub.open_epub(‘Apostles of Doom Alpha 2 – J. L. Langland.epub’)for item in book1.opf.manifest.values():
print(item.href)
if item and item.media_type == ‘application/xhtml+xml’:
paras1 = text_paras(book1, item.href)
paras2 = text_paras(book2, item.href)s = difflib.SequenceMatcher(None, paras1, paras2)
for opcode in s.get_opcodes():
print(“%6s a[%d:%d] b[%d:%d]” % opcode)if opcode[0] == ‘insert’:
print(‘B: ‘, paras2[opcode[3]:opcode[4]])elif opcode[0] == ‘replace’:
print(‘A: ‘, paras1[opcode[1]:opcode[2]])
print(‘B: ‘, paras2[opcode[3]:opcode[4]])elif opcode[0] == ‘delete’:
print(‘A: ‘, paras1[opcode[1]:opcode[2]])[/code]
Mikey
MemberI was also looking at using either NLTK or Google’s Tensor Flow language models to pull out all of the character and place names for spell checking, but that will have to wait until later.
Mikey
MemberIt should be reasonably straightforward to modify this diff tool to produce a EPUB with diff highlights, and bookmarks to changes.
Mikey
MemberAlpha 1
flow threw him
Sentir Falcon
It’s most complicated spells -> Its
naval gazing
splender
Mikey
MemberAedesin, Mount Ehiron: DOA + 8, First Period (Courts), Dawn Local Time
The scoop of the conversation between Nét and Danu is hidden at the very end of the chapter, and is easy to overlook. If you miss it, you might miss a great deal in the future.
[youtube]https://www.youtube.com/watch?v=s_E4haW1upw[/youtube]
Mikey
MemberIn the hook (first few pages), this sentence needs more polishing:
“Well, not name, insult name.”
Mikey
MemberRelated observation: while on other hand it’s credible that they’d use Fahrenheit in hell, the forces of order would probably rather use Celsius.
Mikey
MemberCounter parts are something a kitchen builder would express an interest in, while orcs might be searching for their counterparts.
“No he hates Exador more than Lenamare.” -> “No, he hates Exador more than Lenamare does.”
reign in / rein in
seamed to / seemed to
caret / carat
palette / palate
Mikey
Member[quote=Gelcube;3771]I haven’t seen it, but really the opposite would be the Native American Nations invading Europe.[/quote]
Mikey
Member[quote=Tizzy;3691][SPOILER]you can only imagine what something the Denubians find frightening must look like. 8-[ [/SPOILER][/quote]
What’s a [spoiler]Denubian[/spoiler]?
[youtube]https://www.youtube.com/watch?v=vHLJfxfXHBg[/youtube]Mikey
MemberIf a demon shape is a function of the expectations of those linked to the demon, how long until Tom starts growing a lantern jaw?
Mikey
Member[quote=Puck;3648]He might even get summoned to the lands of the Mythical Ponies..[/quote]
[youtube]https://www.youtube.com/watch?v=NVGI6mhfJyA[/youtube]
D’Ponies.Mikey
MemberOh, so doing it “by commander” didn’t actually mean he was linking through the commander as one would have assumed?
Mikey
Member[quote=Gelcube;3608]all of his minions have free will[/quote]
D’Hitchens has this to say about Tiernon’s minions’ free will:
[youtube]https://www.youtube.com/watch?v=BH2G7fkXAc8[/youtube]Mikey
Member[quote=Puck;3610]his platform does.[/quote]
“Make Mt. Doom great again” vs. “make Tierhallon great again?”
-
AuthorPosts