|
|
Thread Tools | Search this Thread |
12-02-2020, 03:19 PM | #1 |
Junior Member
Posts: 3
Karma: 10
Join Date: Dec 2020
Device: paperback
|
Is there a way to edit EPUB or Mobi files such that the Quotes are in BOLD?
i dont know if theres a program or calibre related script where i can simply edit my epub files or mobi files (i will convert anyway) so when characters in the novel are talking: "insert talking here" it shows as "insert talking here"
|
12-02-2020, 04:29 PM | #2 | |
Resident Curmudgeon
Posts: 75,862
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
“Insert talking here.” would become <b>“Insert Talking here.”</b>. As for editing Mobi, forget it. It's too much of a hassle. You can use Calibre to edit DRM free KF8. If you need to know how to remove DRM, go to https://apprenticealf.wordpress.com to get the DeDRM plugin for Calibre and ask for any help you need with it. Last edited by JSWolf; 12-02-2020 at 04:32 PM. |
|
Advert | |
|
12-02-2020, 09:32 PM | #3 | |
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
This is a very rough Regex to do what you want: Search: (“[^”<]+”) Replace: <b>\1</b> which turns this: Code:
<p>This is a “test and a test” and some “more.”</p> <p>“Wow,” Alice said, “that works!”</p> Code:
<p>This is a <b>“test and a test”</b> and some <b>“more.”</b></p> <p><b>“Wow,”</b> Alice said, <b>“that works!”</b></p> If your book has "Dumb Quotes", you have to run it through a punctuation smartener first. In Calibre, it can be found under Convert Books > Convert Individually > Look & Feel > Text > Smarten punctuation. In Sigil, you could use DiapDealer's fantastic plugin, "PunctuationSmarten". Alternate #1: Instead of using <b> for bold, you could always use a normal span: Search: (“[^”<]+”) Replace: <span class="dialogue">\1</span> with this CSS: Code:
span.dialogue { font-weight: bold; } Search: (“[^”<]+”) Replace: <mark class="dialogue">\1</mark> You can change the highlighted color (default yellow) with this CSS: Code:
mark.dialogue { background-color: orange; } Last edited by Tex2002ans; 12-02-2020 at 09:35 PM. |
|
12-03-2020, 08:53 AM | #4 | |
Bookmaker & Cat Slave
Posts: 11,482
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
If someone is making a book for the visually impaired, or there's some compelling reason to do this, for a SINGLE reader (person), great. But for commercial consumption? Man, to me, WORST IDEA EVER. It's right up there with these (insert derogatory term here) who think that narrative paragraphs and dialogue paragraphs should somehow be formatted differently, with dialogue block-style and narrative first-line indent. The point of formatting, in a book/eBook, for fiction, is that it allows the reader to forget they're reading, to allow them to be lost in the suspension of disbelief. Not to remind them every other goddamned line that they're reading a book. How distracting that would be, I should think! My vote? NO. May I ask, snookums, what you're thinking, in terms of use case? Hitch |
|
12-03-2020, 11:00 AM | #5 |
Guru
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
|
I'm quite content to see the rule about a new paragraph for every quoted speech dying out though. White space is over-rated in an eBook.
|
Advert | |
|
12-03-2020, 04:17 PM | #6 |
Bookmaker & Cat Slave
Posts: 11,482
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
|
12-03-2020, 04:23 PM | #7 |
Resident Curmudgeon
Posts: 75,862
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I'd like to see the OP try to bold the speech in a Cormac McCarthy eBook.
|
12-03-2020, 04:46 PM | #8 |
Guru
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
|
Different. You never had to do it for the same speaker, did you?
I'm seeing a trend to group by conversation, not by person. Yes, I know it's 'wrong'. My grandfather, with his life 'in the print' is probably turning in his grave (Hi! Dad!). But I'm quite in favour. Apparently the rule about whether the full stop goes inside or outside a closing parenthesis (when the clause in parentheses isn't the entire sentence) has changed too. Last edited by exaltedwombat; 12-03-2020 at 04:49 PM. |
12-03-2020, 05:47 PM | #9 | |||
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Quote:
I probably should've put warnings or more NOTES all up in my post... but I thought it was pretty noted up already! Which is why I asked the question in my first post. I'd be interested in what exactly lidao is intending to use bold dialogue for. Complete Side Note: I have my own similar use-cases, but I don't want to derail this entire topic though. My use-cases have to do with:
Anyone who's interested, PM me. Quote:
To my knowledge: Logical Punctuation (punctuation sometimes outside) is used in British-style + technical writing. American-style (punctuation always inside) is used across the board, with rare edge cases of punctuation outside (such as bibliographies or article titles). Note: I wrote a little bit about this in my Post #16 "Punctuation rules of thumb?". Last edited by Tex2002ans; 12-03-2020 at 06:06 PM. |
|||
12-03-2020, 06:47 PM | #10 | |
Guru
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
|
Quote:
|
|
12-03-2020, 06:55 PM | #11 |
Resident Curmudgeon
Posts: 75,862
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Actually, a bunch of your people came over to America and brought the language with them and then they decided it needed improving so they improved it. Leaving the language not nearly as good back home.
|
12-04-2020, 12:48 AM | #12 | |
Bookmaker & Cat Slave
Posts: 11,482
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Been that way for dog's years. Hitch |
|
12-04-2020, 08:55 AM | #13 | |
Guru
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
|
Quote:
I'm always amused by a culture that can't tolerate the silent e in 'Theatre' but completely changes the sound of 'Kansas' by putting 'Ar' in front of it :-) (Yes, I know the justification. But wouldn't the American way be to rationalise it over time?) |
|
12-04-2020, 09:30 AM | #14 | |
Bookmaker & Cat Slave
Posts: 11,482
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hitch |
|
12-04-2020, 12:32 PM | #15 |
Bibliophagist
Posts: 39,429
Karma: 154108302
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Not sure about AUS but Canadian usage tends to allow using either. Just be consistent.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Best method to edit body of .prc/.mobi files? | Skydog | Kindle Formats | 0 | 12-25-2009 04:29 PM |