![]() |
#1 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 473
Karma: 15000
Join Date: Jul 2008
Device: Various and sundry
|
Remove page info from HTML when converting?
I have an HTML file that has the following page number info embedded in it for every page number:
<DIV ID="page0023" DIR="LTR"> <P><BR><BR> </P> </DIV> Is it possible to get rid of this during the conversion process to MOBI or EPUB with come Calibre setting? Also, can anyone recommend an HTML editor for the Mac (free or payware)? Thanks. Last edited by JMikeD; 04-04-2010 at 11:53 AM. |
![]() |
![]() |
![]() |
#2 |
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
The Remove header and Remove footer options allow you to specify a regular expression that will remove everything it matches.
If you want something a bit easier to work with I would recommend Sigil. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 473
Karma: 15000
Join Date: Jul 2008
Device: Various and sundry
|
Yeah, but it doesn’t seem to actually be a header of footer, just regular html text. If it would work on that, I'd need someone to tell me what the expression would be. I quit programming 20+ years ago and have lost all my smarts in that area.
Isn't Sigil an ePub editor? I don't quite see how that would work with this. Thanks Last edited by JMikeD; 04-04-2010 at 05:23 PM. |
![]() |
![]() |
![]() |
#4 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 644
Karma: 1242364
Join Date: May 2009
Location: The Right Coast
Device: PC (Calibre), Nexus 7 2013 (Moon+ Pro), HTC HD2/Leo (Freda)
|
Mike,
In your case, with the page numbering embedded in the regular html text, you will have to use an editor. You will need to do a Search & Replace with a portion of the coding and replace it with nothing. Or a space if your tool of choice doesn't allow null replacements. |
![]() |
![]() |
![]() |
#5 | ||
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
Quote:
Quote:
EPUB is just a collection of HTML files with some helper files that give metadata and ordering. When you're editing an EPUB within Sigil you are editing HTML. Sigil can open HTML files directly. |
||
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 473
Karma: 15000
Join Date: Jul 2008
Device: Various and sundry
|
OK, thanks, guys. I'll go give all that a try.
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Remove <previous next> from html | schizopolis | Calibre | 18 | 11-18-2010 09:46 PM |
Can I remove PDF author info and/or page headers? | cloudyvisions | Calibre | 0 | 03-05-2010 11:48 PM |
Any way to force page breaks when converting HTML to EPUB | Bierkonig | Calibre | 23 | 10-31-2009 01:51 PM |
converting multi-page HTML to Mobipocket | shinew | Calibre | 13 | 02-21-2009 01:33 PM |
Problem converting a webpage html to LRF, what program should I use? Long page turns | seajewel | Workshop | 1 | 08-01-2008 06:32 AM |