Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 09-29-2024, 10:14 AM   #1
foosion
Evangelist
foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.
 
Posts: 430
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
Move text from prior file

I'm tweaking an ebook which is arranged as:

Code:
part1.xhtml /* contains chapter title */
chapter1.xhtml /* chapter text */
part2.xhtml /* contains chapter title */
chapter2.xhtml /* chapter text */
...
Is there an easy way to extract the title from its file and put it into the next file (the text file)? Search/replace does not appear to work across file boundaries.

It would be simple but not easy to do this manually.
foosion is offline   Reply With Quote
Old 09-29-2024, 03:17 PM   #2
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,351
Karma: 6794938
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Select both files
From the context menu, select "Merge selected text files".
Then perform your S&R operation if still needed.
Karellen is offline   Reply With Quote
Advert
Old 09-29-2024, 03:20 PM   #3
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,439
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Why are they separate?
Are you still using H tags for styling?
(and Calibre tends to split on those during conversion)

A P tag with the same CLASS, looks the same
theducks is offline   Reply With Quote
Old 09-29-2024, 03:38 PM   #4
foosion
Evangelist
foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.
 
Posts: 430
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
Quote:
Originally Posted by Karellen View Post
Select both files
From the context menu, select "Merge selected text files".
Then perform your S&R operation if still needed.
That works.

foosion is offline   Reply With Quote
Old 09-29-2024, 03:42 PM   #5
foosion
Evangelist
foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.
 
Posts: 430
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
Quote:
Originally Posted by theducks View Post
Why are they separate?
Are you still using H tags for styling?
(and Calibre tends to split on those during conversion)

A P tag with the same CLASS, looks the same
I have no idea why they are separate. I'm tweaking a published book. The part page also includes a large publisher logo. It's all a waste of space and an extra page turn, upsetting my aesthetics.

A P rather than H tag for a heading means I can't alter how the line-spacing appears on my Kobo, resulting in too much blank space between lines of large heading text, at least too much for my taste. IOW, the don't look the same due to rendering oddities, even if they should look the same. See https://www.mobileread.com/forums/sh...d.php?t=363801

And what's wrong with
foosion is offline   Reply With Quote
Advert
Old 09-29-2024, 04:09 PM   #6
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 40,363
Karma: 156982136
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by theducks View Post
A P tag with the same CLASS, looks the same
Unless the book creators decided to have multiple classes with the same name differentiated by the tag type.

One ebook I recently cleaned up had div.chapter-title, p.chapter-title and h3.chapter-title classes, all of which had different styles.
DNSB is offline   Reply With Quote
Old 09-29-2024, 04:20 PM   #7
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,439
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by DNSB View Post
Unless the book creators decided to have multiple classes with the same name differentiated by the tag type.

One ebook I recently cleaned up had div.chapter-title, p.chapter-title and h3.chapter-title classes, all of which had different styles.
There are always 'edge cases'
The the surgery just gets a bit trickier.
theducks is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
File Move Huskey Library Management 3 06-13-2024 07:03 PM
How To Move Text To The Right. Gibbo Editor 4 04-23-2022 06:51 PM
.MOBI file not readying properly in Calibre (prior to conversion) Saylan Library Management 2 02-01-2021 08:25 PM
Move Footnote text above Footnotes after Conversion hidden.platypus Conversion 2 10-16-2016 09:12 AM
Move file to root woodnboats enTourage Archive 1 05-15-2011 10:08 PM


All times are GMT -4. The time now is 04:48 PM.


MobileRead.com is a privately owned, operated and funded community.