This tutorial details how to add an additional text speed option. As an example we'll implement an option for instant text.
This file contains hidden or 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
# made for people modifying pret/pokecrystal who want to | |
# check what pokemon need changes in their wild encounter | |
# rates. prints 2 tables, one containing a list of all | |
# pokemon without encounters, one containing all | |
# encounters sorted by their total overall probability | |
# | |
# 1. place this file in your ./tools folder | |
# 2. make sure the paths and encounter rates below are accurate (only if you changed them) | |
# 3. if you don't want to incorporate water encounters comment out the last 2 'parse_encounters' lines |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
namespace TextGeneration | |
{ | |
public static class TextGenerator | |
{ | |
private static Random rand = new Random(); |
This file contains hidden or 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
from ebooklib import epub | |
# HOW TO: | |
# 1. create instance of the class | |
# 2. set important metadata | |
# 3. add chapter files and give them a title | |
# 4. write the finished epub file to disc | |
class EbookGenerator(): | |
def __init__(self): |
This file contains hidden or 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
from ebooklib import epub | |
import ebooklib | |
import re | |
import html | |
import os | |
#folder to epub files | |
dir_to_epubs = '' | |
#generate list of epub-files in specified directory |
NewerOlder