07-27-2007, 11:19 AM | #1 |
Junior Member
Posts: 3
Karma: 10
Join Date: Jul 2007
Device: Sony Reader
|
Bulk file font size conversion
Hi, is there any way to convert around 200+ .rtf files from one font size to another?
I'd rather do this in bulk than file by file. Thanks, Greg |
08-05-2007, 11:02 PM | #2 |
Resident Curmudgeon
Posts: 76,446
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Not that I know of. Good luck hand converting.
|
Advert | |
|
08-05-2007, 11:11 PM | #3 | |
Enthusiast
Posts: 48
Karma: 22
Join Date: Aug 2007
Device: Sony PRS500 & PRS700
|
Quote:
OOPS. The below only works for converting from RTF, not leaving in that format. Use the "delta-font" option in libprs500. I used it for a few hundred lit conversions using lit2rtf and it worked great (went smaller "--delta-font=-1.25"). Don't do windows shell scripting, but if you are using Mac OS X or some form of Linux you can use the shell script I put in another thread to quickly run a large batch. I'm "assuming" that the delta-font option works as well in rtf2lrf as it does in lit2lrf though, as I haven't tested it. Last edited by KaiGoth; 08-05-2007 at 11:13 PM. |
|
08-05-2007, 11:29 PM | #4 | |
Enthusiast
Posts: 48
Karma: 22
Join Date: Aug 2007
Device: Sony PRS500 & PRS700
|
Just opened up an RTF, and you should easily be able to create a shell that will do what you want. I've never played with the RTF tags before, but they look pretty simple. I'm attaching a small section on an RTF with the font size bolded. You should then be able to open up yours, find the original font size for the text sections you want to adjust, and write a quick find/replace script. A simple sed 's/fs12/fs14/g' file.rtf command should change all the size 12 font to size 14 in the file. Create a script that reads in all the file names and performs that command and you are done.
Quote:
Last edited by KaiGoth; 08-05-2007 at 11:32 PM. |
|
08-06-2007, 06:49 PM | #5 |
Enthusiast
Posts: 48
Karma: 22
Join Date: Aug 2007
Device: Sony PRS500 & PRS700
|
Actually, after just reading up on RTF (check out http://search.cpan.org/~sburke/RTF-W...F/Cookbook.pod), it looks like the font size command is doubled, so fs24 would equal 12 point font.
Doing a bulk modification on RTF docs should be incredibly easy, as long as each document follows the standard. I'd read up on the prior link and it shouldn't take more than a few minutes to throw together a script. I had no idea how simple RTF was as I never use it for anything. |
Advert | |
|
08-07-2007, 08:57 AM | #6 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can't change font or font size in ereaders | jmacg | Sigil | 30 | 10-23-2010 10:21 PM |
Font size after conversion | draghetto | Calibre | 1 | 06-30-2010 12:57 PM |
PRS-300 Med font size too big, but small font size too small | eli2k | Sony Reader | 4 | 05-28-2010 10:47 AM |
LIT->LRF Conversion - Quirky Base Font Size Setting | orion2001 | Calibre | 6 | 09-27-2009 01:10 AM |
DOC to PDF conversion - font size issues | icebattle | 4 | 02-15-2009 04:32 AM |