lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

LYNX-DEV New Latin-2 test tables; and a Lynx 2.7 bug


From: Klaus Weide
Subject: LYNX-DEV New Latin-2 test tables; and a Lynx 2.7 bug
Date: Sun, 9 Mar 1997 23:23:06 -0600 (CST)

I have created two files, modelled after Lynx's test/iso8859-1.html,
for testing how Lynx deals with Latin-2 characters.  Some other 
characters are also included.  This should be useful with or without
the chartrans code.  They are at

 <http://www.tezcat.com/~kweide/lynx-chartrans/test/iso8859-2.L2html>
 <http://www.tezcat.com/~kweide/lynx-chartrans/test/ALT-test.iso8859-2.L2html>

    -----

The first of these test files shows a bug in the parsing of &#8194;,
&#8195;, &#8201;, &#8211;, and &#8212;, which goes back at least to 
Lynx 2.6 (and was inherited by my chartrans code).  It can also be seen at
 <URL: http://ppewww.ph.gla.ac.uk/%7Eflavell/iso8859/iso8859-1.html>.

Appended is an (untested!) patch which should correct this for official
Lynx2.7.

  Klaus

*** /tmp/SGML.c.offi    Wed Nov 13 14:09:16 1996
---lynx2-7/WWW/Library/Implementation/SGML.c    Sun Mar  9 23:00:25 1997
***************
*** 847,852 ****
--- 847,856 ----
                        **  ensp, emsp or thinsp. - FM
                        */
                        PUTC(2);
+                         string->size = 0;
+                         context->state = S_text;
+                         if (c != ';')
+                             goto top;
                        break;
                    }
                    if (value == 8211 || value == 8212) {
***************
*** 854,859 ****
--- 858,867 ----
                        **  ndash or mdash. - FM
                        */
                        PUTC('-');
+                         string->size = 0;
+                         context->state = S_text;
+                         if (c != ';')
+                             goto top;
                        break;
                    }
                    /*

;
; To UNSUBSCRIBE:  Send a mail message to address@hidden
;                  with "unsubscribe lynx-dev" (without the
;                  quotation marks) on a line by itself.
;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]