On Fri, Aug 11, 2000 at 09:25:18AM +1000, Martin Sevior wrote:
> 
> 
> On Thu, 10 Aug 2000, Martin Vermeer wrote:
> 

[...]
 
> Don't cater for old browers. Create legitimate HTML that best represents
> an abiword document./
> 
> 
> > > What I've written here goes for *all* Unicode characters. There's no need
> > > "reduce" them to similar-looking characters.
> > 
> > Unfortunately wv/text.c contains _already_ some examples of that. If we 
> > follow your policy, that should be fixed too. 
> > 
> > So what to do? I am happy either way.
> > 
> 
> Fix what you can now. Fix the rest later.

[...]

So done, and tested on lynx and mozilla (netscape is the villain, 4.61). 
Find attached a revised version of the first patch. There is still some 
work left on the HTML side but this at least improves things.

This whole gory tale really illustrates the evil of web standards perversion.
Caolan did his wv work when Netscape was still the only browser realistically
available on all platforms, and he bent over backwards to make wv produce
code that it could somewhat handle. But times are changing, luckily.

Martin


-- 
Martin Vermeer [EMAIL PROTECTED]   Phone +358 9 295 55 215   Fax +358 9 295 55 200
Finnish Geodetic Institute    Geodeetinrinne 2    FIN-02430 Masala FINLAND
:wq
Index: text.c
===================================================================
RCS file: /cvsroot/wv/text.c,v
retrieving revision 1.43
diff -u -r1.43 text.c
--- text.c      2000/07/14 14:16:47     1.43
+++ text.c      2000/08/11 07:46:34
@@ -601,6 +601,9 @@
                case 0x2019:
                        printf("'");  /* Right single quote, Win */
                        return(1);
+               case 0x2026:
+                       printf("\\ldots"); /* ellipsis */
+                       return(1);
                case 0x2215:
                        printf("/");
                        return(1);
@@ -631,14 +634,17 @@
                case 0x201d:
                        printf("''");  /* double q.m. */
                        return(1);
+               case 0x201e:
+                       printf("\\hbox{,,}");  /* below double q.m. */
+                       return(1);
                case 0x2020:
-                       printf("\\dagger");  
+                       printf("$\\dagger$");  
                        return(1);
                case 0x2021:
-                       printf("\\ddagger");  
+                       printf("$\\ddagger$");  
                        return(1);
                case 0x2022:
-                       printf("\\bullet");  
+                       printf("$\\bullet$");  
                        return(1);
                case 0x0152:
                        printf("\\OE{}");  /* OE ligature */
@@ -715,7 +721,7 @@
                        printf("…");       
 /*is there a proper html name for ... &ellipse;? Yes, … -- MV */
 #endif
-                       printf("...");  
+                       printf("…");     
                        return(1);
                case 0x2019:
                        printf("'");
@@ -746,6 +752,9 @@
                case 0x201d:
                        printf("”");  /* double q.m. */
                        return(1);
+               case 0x201e:
+                       printf("„");  /* below double q.m. */
+                       return(1);
                case 0x2020:
                        printf("†");  
                        return(1);
@@ -772,6 +781,8 @@
                        return(1);
 
                }
+       /* Debugging aid: */
+       /* if (char16 >= 0x100) printf("[%x]", char16); */
        return(0);
        }
 

Reply via email to