![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Borkify ePUB
Current Version: "0.2.0"
This post caused a bit of derailing of the original topic (not that uncommon... ![]() Anyway, I suggested to make an output plugin for Sigil that actually 'borkified' an ePUB. That way a client could see the ePUB as it would look like without actually being useful since the text is altered. Or you could use it for fun of course... So, I stepped up to the plate and made the plugin. Install it like normal and it will appear amongst the output plugins. When you run it, you can choose the new filename and location. In the plugin directory there will be, after it has run first, a configuration file. It only has one parameter and this accepts the following values: - 0: Random choose of 'dialect' for each text element (e.g. a span inside a paragraph is a different element) - 1: text will resemble speech from the Swedish Chef - 2: text will resemble speech from Elmer Fudd - 3: text will resemble the "Olde English" speech Perhaps I will incorporate a selection screen for the option before the export at a later stage. As for now that goes beyond my Python skills. If you want more dialects, you need to provide me with the rules. Last edited by Toxaris; 01-09-2016 at 04:28 AM. |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,262
Karma: 78869092
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Hmm... Now I expect we will see a mod to make this a Bowdlerize plugin for Sigil!
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Hmm.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 124
Karma: 2016606
Join Date: Oct 2015
Device: Android 4.2 Google Play Reader
|
How about an option to convert text to Cockney?
![]() |
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
|
![]() |
![]() |
![]() |
#5 |
Hmm.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 124
Karma: 2016606
Join Date: Oct 2015
Device: Android 4.2 Google Play Reader
|
Well, I didn't find any translation tables, but I did find some fun URLS: https://www.google.com/search?num=20....0.fmocBhphY_Y. There are several web pages that do translation for you.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,434
Karma: 5702578
Join Date: Nov 2009
Device: many
|
Added to Sigil Plugin Index Sticky Thread
|
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
I have adapted the plugin. It didn't work on Python 3.4 (although I thought it did), but does now. I also added the autostart and autoclose option for the upcoming version of Sigil. I tried to add a version check, but I am not sure it works yet.
|
![]() |
![]() |
![]() |
#8 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
|
|
![]() |
![]() |
![]() |
#9 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,623
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Thank you for this work. Funny and useful.
![]() |
![]() |
![]() |
![]() |
#10 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 119
Karma: 64428
Join Date: Aug 2011
Device: none
|
Consider implementing lolcat. Detailed rules found at:
<http://lolcatbible.com/index.php?title=How_to_speak_lolcat> |
![]() |
![]() |
![]() |
#11 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Jan 2017
Device: Kindle Paperwhite
|
Would this plugin work for large amounts of replacements?
I would like to change US English to GB English but I'm struggling with Python (bit new to it I'm afraid). I have the list of rules on Pastebin: http://pastebin.com/5anfQ7Xi There's most likely a better way to do it. |
![]() |
![]() |
![]() |
#12 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,914
Karma: 143095300
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
But to be honest, it's easier to just leave it as is. When you change things to "fit in", you make it seem like the readers are stupid. |
|
![]() |
![]() |
![]() |
#13 | |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Jan 2017
Device: Kindle Paperwhite
|
Quote:
|
|
![]() |
![]() |
![]() |
#14 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,914
Karma: 143095300
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
That won't work. You might have to change some words that a dictionary won't be able to help with. Like trunk to boot. There are plenty of others. It will look sillyto have some words with UK spelling with US phrasing and other words not changed. Some words in the US mean something different in the UK. You need an editor to do it correctly. So that's why it's best to not do it. If I was reading your UK edition, I'd give it a poor rating because it would be poorly edited.
|
![]() |
![]() |
![]() |
#15 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Jan 2017
Device: Kindle Paperwhite
|
They're largely for personal use so wouldn't be sharing them, I usually go through a second time and correct them, this would just make the first stage quicker.
|
![]() |
![]() |
![]() |
Tags |
borkify, obfuscation |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
A New Epub Creator: txt to epub, word to epub | oxen | ePub | 120 | 07-22-2019 02:28 PM |
redo epub to epub - don't use original-epub | cybmole | Conversion | 8 | 02-20-2014 05:21 AM |
epub to epub conversion problem with regex spanning multiple input files | ctop | Conversion | 2 | 02-12-2012 01:56 AM |
epub, ePub, EPUB, warum blos ePub? | flowoeB | Lounge | 5 | 11-27-2009 09:37 AM |