the kindle should have name-replacement built in.

I keep having to pirate books, hacking them to remote certain triggering names, and reuploading them.

maybe I should just write a script to automate this

I wouldn't have to pirate it but amazon wants to DRM all their books, even when I'm just here to rename one guy
It is pretty hilarious that I can't edit the book I own because the DRM thinks I'm trying to steal it, and the fix for this is simply to steal it and edit the stolen copy instead
Don't buy DRMed content, kids: just steal it instead, you'll have more ability to fold, spindle, and mutilate it, and you'll have it forever.
epubs are zips, btw. unzip them and you can easily edit their contents
@foone same as OpenDocument formats.

@root42 @foone

...and Microsoft Office Open XML files.

Don't tell it to Microsoft fans. They get visibly upset.

@bayindirh @foone …and Python wheels and Java JARs.
@bayindirh @root42 @foone and Keynote, Pages, and Numbers files on the Apple side…
@juandesant @root42 @foone
They were traditionally folders (Apple still uses tons of folders disguised as files). They started to zip them to make them easier to move to cloud and upload them.
@bayindirh @root42 @foone I wrote my own tooling to convert docx files to epub. It produces *very* clean HTML.
@kawa @bayindirh @root42 @foone OMG, can i have it? Is it open source? I would get a lot of use out of that shit.
@adrienne It is garbage that's not fit for release. You wouldn't want it.
@adrienne The output doesn't even pass epubcheck.
@kawa @adrienne it doesn't have to, it just has to be viewable in whatever software i use :p

@wyatt @adrienne It works in Moon Reader+ on Android. I haven't tried my mom's ereader but she regularly finds pirated books with absolute font sizes that I then rip all the CSS out of and it too accepts the resulting repacks so compatibility is indeed not a likely issue.

No, the real issue is the code quality and ease of use.

@kawa Yeah, i don't give a shit about that; i don't plan to use the output as an endpoint. But getting consistently clean HTML out of docx would save me a ton of irritation.
@kawa i would though! i can work with weird garbage!
@foone If you're a worshipper at the Church of Emacs, it'll just treat the epub as a directory and you can edit the XHTML files within and it'll deal with the unzipping and rezipping automagically.
@foone trying to load all my digital books/comics into my ereader also taught me .cbz files are archives, and very straightforward ones. been fun making patreon comic releases into files I can view on my kobo (though some of them are Funky and need proper covers/metadata)
@lunemercove and .cbr are rar files! I remember when these formats were being hashed out and it was like, honestly just zipping it compresses it enough and if you change the extension it can be associated with the reader software easily. So that's what they went with.
@neckspike oh yeah I did a lot of learning about the variants! iirc the Kobo I have only supports cbz/cbr, or maybe even just cbz, so I ended up going with that. but it was a fun thing to learn about.

@lunemercove @foone Yes, cbz is zip, cbr is rar and cb7 is 7zip.

Wikipedia lists a few other ones like cba but I've never seen those in the wild

@foone
Be careful rezipping them though. There's a particular way to do it and some ereaders are more anal about it than others.

@kirtai @foone

If you fumble, there's a checker that may be able to help https://www.w3.org/publishing/epubcheck/

EPUBCheck

The website of the official conformance checker for EPUB publications

EPUBCheck
@stuartyeates @kirtai @foone and it's also why I prefer to use Sigil, so helpful to edit post-packing
@kirtai @foone yeah, when I tried to change the title of an epub book on my phone and ended up with a file my ebook reader (app) didn't want to open :(
(Thankfully it wasn't really important, just a bit disappointing after I remembered the whole thing about them being zip archives and felt really clever)

@Larymir @foone
If I remember right, there's one particular file that has to be the first one in the zip and it has to be uncompressed.

Don't worry though, it's one of those subtle gotcha's.

@foone Calvin's dad explaining that every file type is either zip or plaintext
(I'm too lazy to edit the image myself right now)
@foone basically a website in a container. I wonder if there is a centralized list of file formats/extensions that are just a renamed zip file. I use .3mf, .FCStd, .epub, and .cbz pretty frequently.
@Argonel @foone .pk3 (Quake 3), .jar (java)

@foone This is game-changing information

I have a bunch of ebooks from Haymarket that I would love to distribute to people who want to read them but they have my legal name and email address plastered all over them as "Licensed to..." text

If I could scrub that I could give these out no problem

@foone

That's right, it goes in the zip hole.

@foone The funny thing is, if the file I get has no DRM, I have more respect to the whole chain providing it to me, from the creator to the platform facilitating to buy it.

I mean, if you trust me with your distillation of blood, sweat and tears, I'll respect you and don't make you regret for trusting me.

It's ethics. It's simple.

@foone I’ll still buy DRM’d content for authors I really want to support and it’s the only way, but if I know its trivial to remove the DRM(like the Adept DRM kobo uses)

@bridget @foone

100% this; buy it with DRM, remove DRM, archive the thing I bought!

@foone if buying isn't owning, and/or that which I own isn't modifyable, then piracy and hacking are NOT stealing.