Author Topic: NormalizeSmallFonts.cfg  (Read 3415 times)

Admin

  • Forum Admin
  • Administrator
  • Jr. Member
  • *****
  • Posts: 62
    • ICQ Messenger - 1448105
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • Email
NormalizeSmallFonts.cfg
« on: July 30, 2001, 09:18:18 PM »
# Name:    Normalize Small Fonts 1.02
# Author:  ScoJo <ScoJo_at_netzero_dot_net>
# Created: 11-13-2000
# Requires Proxomitron Naoko 4 beta 2+
#
# Description:
#
#   Resets small fonts to the "normal" size set in the user's browser
#   preferences.  Also line height is disabled to avoid text overlapping.
#   Large fonts are left alone.
#
# What's the big deal?
#
#   Too many web sites have their font sizes set way too small, causing
#   many web surfers to increase their browser's font size defeating
#   whatever purpose the small fonts have.  Maybe webmasters can read
#   their web pages just fine on their 21" monitors, but have they ever
#   looked at their pages on a fuzzy 15" monitor?  I've seen text in
#   listboxes look smaller than the fine print in car lease ads.
#
# Notes:
#
#   Cascading Style Sheet help sites will be affected since the CSS filters
#   aren't bound to <style> elements and style attributes.  That is, examples
#   of CSS usage will be filtered.  As of this writing, the font: property
#   doesn't have a nosize value. :)
#
# Test URLs:
#
#   http://web.icq.com/index
#   http://www.cnn.com/
#   http://abcnews.go.com/
#   http://www.htmlhelp.com/reference/css/font/font.html
#   http://www.htmlhelp.com/reference/css/font/font-size.html
#   http://www.cusl2.com/bios.html - JavaScript with escaped quotes
#
# What's New:
#
#   1.02 - Dec 22, 2000 - Merry Christmas!
#     - Now filters escaped quotes in JavaScript (<font size="-1">).
#     - Now filters <font size= >.  Netscape 4.7 renders it as really tiny text.
#     - CSS font: is now bounded to its size value.
#   1.01 - Nov 29, 2000
#     - Added filter for disabling line-height: in CSS.
#   1.0  - Nov 13, 2000
#     - First release.
#
[Patterns]

Name = "Normalize Small Fonts <SMALL>"
Active = TRUE
Bounds = "<(/|)small>"
Limit = 9
Match = "*"

Name = "Normalize Small Fonts <FONT>"
Active = TRUE
Multi = TRUE
Bounds = "<(base|)fonts*>"
Limit = 256
Match = "1 (size=("|\"|)([#-9:3])("|\"|)|size =s)23"
Replace = "1 no23"

Name = "Normalize Small Fonts & Line Height - CSS {font:}"
Active = TRUE
Limit = 256
Match = "font : ([^}"']++)1 (xx-small|x-small|small|smaller|[#0-100]%|w(em|ex)|[#0-12](.[#0-*]|)pt|[#0-14](.[#0-*]|)px|[#0-1](.[#0-*]|)pc|[#0-5](.[#0-*]|)mm)(/w$SET(9=/line-noheight)|)s"
Replace = "font: 1 nosize9 "

Name = "Normalize Small Fonts - CSS {font-size:}"
Active = TRUE
Limit = 32
Match = "font-size : (xx-small|x-small|small|smaller|[#0-100]%|w(em|ex)|[#0-12](.[#0-*]|)pt|[#0-14](.[#0-*]|)px|[#0-1](.[#0-*]|)pc|[#0-5](.[#0-*]|)mm)1"
Replace = "font-nosize: 1"

Name = "CSS - Disable line-height"
Active = TRUE
Limit = 32
Match = "line-height : ([#0-*](.[#0-*]|)(%|em|ex|px|pc|pt|mm|cm|in))1"
Replace = "line-noheight: 1"



With regards from
Admin
With regards from
Admin

Arne

  • Administrator
  • Hero Member
  • *****
  • Posts: 778
    • ICQ Messenger - 1448105
    • AOL Instant Messenger - aflaaten
    • Yahoo Instant Messenger - arneflaa
    • View Profile
    • http://
    • Email
NormalizeSmallFonts.cfg
« Reply #1 on: August 23, 2001, 07:22:02 AM »
Another approach by MJK is this set of 2 filters

[Patterns]
Name = "Ignore smalling font"
Active = TRUE
Limit = 256
Bounds = "<fonts*>"
Match = "<font 1 size=([#1-3]|("-?"|-?)) 2>"
Replace = "<font 1 size=4 2>"

Name = "Igonre smalling font 2(stylesheet)"
Active = TRUE
Limit = 128
Match = "font-size:wpt(;|)"


Best wishes
Arne
Imici username: Arne
Best wishes
Arne
Imici username= Arne