Author Topic: Change small fonts - probably simple question  (Read 1930 times)

arfirebird

  • Newbie
  • *
  • Posts: 9
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • Email
Change small fonts - probably simple question
« on: May 13, 2002, 07:46:48 PM »
OK, I have made a filter to increase small font size on some pages
and it works but I want to add a restriction.  Here is the matching
expression:
size=-1|size="-1"|size=-2|size="-2"|size=1|size=2|size="1"|size="2"
(and there is probably a simplier way of inputting that)
and the replacement text:
size="3"
Now, my question is - this works for changing small text size, but it also
works to change things like the default size for dropdown boxes which I
don't want it to do.  I don't want to restrict it by changing the matching expression to "font size=-1" for example because I still want it to match
if it encounters something in the webpage like "font face=xxxx size=xxx".
So I was trying to get it to match using a bounds limitation with something like <font*>*</font>... I would like for it to only match a
"size=xxx" statement if it was between a <font> and </font>.  
I'm sure there's a simple way to do this but I haven't figured it out yet.
Thanks


 
 

Jor

  • Sr. Member
  • ****
  • Posts: 421
    • ICQ Messenger - 10401286
    • AOL Instant Messenger - jor otf
    • Yahoo Instant Messenger - jor_otf
    • View Profile
    • http://members.outpost10f.com/~jor/
    • Email
Change small fonts - probably simple question
« Reply #1 on: May 13, 2002, 08:10:08 PM »
Try this filter:

Name = "Kill small fonts"
Active = TRUE
Multi = TRUE
Bounds = "<font*>"
Limit = 256
Match = "1 size=$AV(-1|-2|1|2) 2"
Replace = "1 size="3" 2"


By the way, the Opera browser can also enlarge too small fonts.

 
 

arfirebird

  • Newbie
  • *
  • Posts: 9
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • Email
Change small fonts - probably simple question
« Reply #2 on: May 13, 2002, 09:23:06 PM »
Thanks a lot for the help.  That did the trick nicely.
Appreciate it