Forum Replies Created

Viewing 15 posts - 196 through 210 (of 403 total)
  • Author
    Posts
  • in reply to: astlan-diff.py #6413
    Mikey
    Member

    A Python script for finding changes between Astlan EPUB editions:

    [code=python]
    #!/usr/bin/python3
    # -*- coding: utf-8 -*-

    import difflib
    import epub
    from bs4 import BeautifulSoup

    def 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]

    in reply to: astlan-diff.py #6415
    Mikey
    Member

    I 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.

    in reply to: astlan-diff.py #6417
    Mikey
    Member

    It should be reasonably straightforward to modify this diff tool to produce a EPUB with diff highlights, and bookmarks to changes.

    in reply to: General spelling & spelling #5692
    Mikey
    Member

    Alpha 1

    flow threw him

    Sentir Falcon

    It’s most complicated spells -> Its

    naval gazing

    splender

    in reply to: Alpha 1 – Chapter 129 #6319
    Mikey
    Member

    Aedesin, 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]

    in reply to: Start of book #5658
    Mikey
    Member

    In the hook (first few pages), this sentence needs more polishing:

    “Well, not name, insult name.”

    in reply to: General spelling & spelling #5668
    Mikey
    Member

    Related observation: while on other hand it’s credible that they’d use Fahrenheit in hell, the forces of order would probably rather use Celsius.

    in reply to: General spelling & spelling #5669
    Mikey
    Member

    Counter 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

    in reply to: Rambles and Speculations #4981
    Mikey
    Member

    [quote=Gelcube;3771]I haven’t seen it, but really the opposite would be the Native American Nations invading Europe.[/quote]

    https://en.wikipedia.org/wiki/Mongol_invasion_of_Europe

    in reply to: Rambles and Speculations #4965
    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]

    in reply to: Rambles and Speculations #4950
    Mikey
    Member

    If a demon shape is a function of the expectations of those linked to the demon, how long until Tom starts growing a lantern jaw?

    in reply to: Countdown Beta? #5290
    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.

    in reply to: Rambles and Speculations #4906
    Mikey
    Member

    Oh, so doing it “by commander” didn’t actually mean he was linking through the commander as one would have assumed?

    in reply to: Rambles and Speculations #4910
    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]

    in reply to: Rambles and Speculations #4912
    Mikey
    Member

    [quote=Puck;3610]his platform does.[/quote]

    “Make Mt. Doom great again” vs. “make Tierhallon great again?”

Viewing 15 posts - 196 through 210 (of 403 total)