Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-17-2010, 06:36 AM   #1
gtshadow
Junior Member
gtshadow can teach chickens to fly.gtshadow can teach chickens to fly.gtshadow can teach chickens to fly.gtshadow can teach chickens to fly.gtshadow can teach chickens to fly.gtshadow can teach chickens to fly.gtshadow can teach chickens to fly.gtshadow can teach chickens to fly.gtshadow can teach chickens to fly.gtshadow can teach chickens to fly.gtshadow can teach chickens to fly.
 
Posts: 5
Karma: 3872
Join Date: Jun 2009
Device: Sony prs-505
Best Way To Delete Page Numbers?

This isn't specifically a calibre question (although there may be some way of doing what I want with calibre that I don't know of) so I hope it is okay to post this here.

I have a lot of books (mostly pdf files) that have page numbers that I want to get rid of. Going through each book and manually deleting all the page numbers would obviously be way too time consuming, but I have been unable to think up any other way of doing it. Right now, the fastest method I have come up with is using a search and replace feature, but I still would have to manually enter each page number and leave the replace text blank, which isn't very fast at all. I understand that regular expressions can sometimes be used in these situations, but I don't know anything about regular expressions, so I don't know where they would be used or how to make the regex anyway.

So... I am hoping that some people here can tell me the method or methods that they use to accomplish this feat...

Thanks in advance for any help you can give.
gtshadow is offline   Reply With Quote
Old 11-17-2010, 07:09 AM   #2
janvanmaar
Addict
janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.
 
Posts: 219
Karma: 404
Join Date: Nov 2010
Device: Kindle 3G, Samsung SIII
Have a look at header/footer removal in calibre.
janvanmaar is offline   Reply With Quote
Advert
Old 11-17-2010, 01:26 PM   #3
gtshadow
Junior Member
gtshadow can teach chickens to fly.gtshadow can teach chickens to fly.gtshadow can teach chickens to fly.gtshadow can teach chickens to fly.gtshadow can teach chickens to fly.gtshadow can teach chickens to fly.gtshadow can teach chickens to fly.gtshadow can teach chickens to fly.gtshadow can teach chickens to fly.gtshadow can teach chickens to fly.gtshadow can teach chickens to fly.
 
Posts: 5
Karma: 3872
Join Date: Jun 2009
Device: Sony prs-505
Thanks for the reply. I will look into that.
gtshadow is offline   Reply With Quote
Old 11-17-2010, 05:30 PM   #4
Manichean
Wizard
Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.
 
Manichean's Avatar
 
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
The manual has a regex tutorial that might be of interest to you.
Manichean is offline   Reply With Quote
Old 11-17-2010, 09:48 PM   #5
gtshadow
Junior Member
gtshadow can teach chickens to fly.gtshadow can teach chickens to fly.gtshadow can teach chickens to fly.gtshadow can teach chickens to fly.gtshadow can teach chickens to fly.gtshadow can teach chickens to fly.gtshadow can teach chickens to fly.gtshadow can teach chickens to fly.gtshadow can teach chickens to fly.gtshadow can teach chickens to fly.gtshadow can teach chickens to fly.
 
Posts: 5
Karma: 3872
Join Date: Jun 2009
Device: Sony prs-505
Thanks for the regex tutorial. After looking at that and other sources I finally have something that does what I want. In case others may see this post and wonder, the regex I came up with is:

Page\s*\d+

This gets rid of the word "Page" and the page numbers after. The only thing it doesn't do is repair breaks in the text where the page numbers were inserted. Still not sure how to do that, but this is a start.

Thanks again for setting me in the right direction.
gtshadow is offline   Reply With Quote
Advert
Old 11-18-2010, 04:53 AM   #6
Manichean
Wizard
Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.
 
Manichean's Avatar
 
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
Try looking at the XHTML- markup (use the magic wand symbol) and removing relevant parts of it as well. That might repair the breaks you see.
Manichean is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Page numbers Fincary Astak EZReader 4 02-18-2010 03:06 PM
page numbers nenad Amazon Kindle 2 12-19-2009 09:01 AM
DX, PDF, and Page Numbers tklaus Amazon Kindle 1 06-28-2009 08:20 PM
Page numbers, AGAIN orlincho Bookeen 92 08-19-2008 07:15 AM
Page numbers (again) Prospect Workshop 50 04-10-2008 02:19 AM


All times are GMT -4. The time now is 04:49 AM.


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