View Single Post
Old 08-05-2007, 10:29 PM   #4
KaiGoth
Enthusiast
KaiGoth began at the beginning.
 
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:
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl {\f0\fswiss\fcharset0 Arial;}{\f1\fmodern\fcharset0 Courier New;}{\f2\froman\fcharset0 Times New Roman;}{\f3\fswiss\fcharset0 Tahoma;}}
{\colortbl ;\red0\green0\blue0;\red255\green255\blue255;}
\viewkind4\uc1\pard\cbpat2\nowidctlpar\qc\cf1\f0\fs72 THE\cf0\par
\cf1 ROCK RATS\cf0\par
\cf1\fs51 Book II of the Asteroid Wars\par
\par
\par
\cf0\fs24\par
\cf1\b\fs20 TOR\'ae\cf0\b0\fs24\par
\cf1\f1\fs29 A TOM DOHERTY ASSOCIATES BOOK NEW YORK\cf0\f0\fs24\par
\cf1\fs56 BEN BOVA\cf0\par

Last edited by KaiGoth; 08-05-2007 at 10:32 PM.
KaiGoth is offline   Reply With Quote