Hi,

I have put a new test version of the viewer at ftp.sslug.dk.

It includes:

 - a narrow font that can be used instead of the standard font, 
   selectable from the Preferences. The font was created by
   Robert O'Connor ([EMAIL PROTECTED]).

 - handling of preformatted text (i.e. the <PRE> tag). The viewer 
   will use the fixed width font David created a long time ago and 
   spaces will be left intact when rendering the text.

To test the handling of <PRE> tags you also have to apply the 
attached parser patch.

You'll find the viewer at ftp://ftp.sslug.dk/pub/viewer_font.zip

Try it out,
/Mike
--- TextParser.py       Mon Jun 11 19:01:27 2001
+++ TextParser.py       Fri Jun 22 13:48:51 2001
@@ -126,11 +126,13 @@
     | ---
     | 0: stdFont,   1: boldFont,      2: boldFont,      3: boldFont, 
     | 4: boldFont,  5: stdFont,       6: stdFont,       7: stdFont
+    | 8: stdFont
     | 
     | OS3
     | ---
     | 0: stdFont,   1: largeBoldFont, 2: largeBoldFont, 3: largeFont, 
     | 4: largeFont, 5: boldFont,      6: boldFont,      7: boldFont
+    | 8: fixedWidthFont
     The awk parser sets:
      <B>: 7
      <Hn>: n (for n= 1, 2, 3, 4, 5, 6)
@@ -145,7 +147,8 @@
             "h3": 3,
             "h4": 4,
             "h5": 5,
-            "h6": 6 }
+            "h6": 6,
+            "pre": 8 }
         self._stack = [""]
         self._alignment = [0]
         self._left_margin = 0
@@ -1372,11 +1375,13 @@
 
 
     def start_pre (self, attr):
+        self._doc.set_style ("pre")
         self._clean_whitespace.append (0)
 
 
     def end_pre (self):
         del self._clean_whitespace[-1]
+        self._doc.unset_style ("pre")
 
 
     def start_blockquote (self, attr):

Reply via email to