Subject: Re: some minor postscript fixes
From: F J Franklin (F.J.Franklin@sheffield.ac.uk)
Date: Tue Oct 31 2000 - 04:24:12 CST
On Sun, 29 Oct 2000, F J Franklin wrote:
> Dear All,
> 
> Despite the odieresis on my screen, the postscript printout insisted on a
> degree-sign (RemapGlyphsDefault),...
Okay, so the CJK patch fixed most of my problems. Thanks Vlad & everyone.
Here's two quick patches on top of that.
(1) const FontMappingTable std_enc[] = {
    add "mu" = 0x00B5
    correct spelling of "Ocircumflex"
    correct spelling of "Idieresis"
--- abi/src/af/xap/unix/xap_UnixFont.cpp	Mon Oct 30 18:31:47 2000
+++ abi/src/af/xap/unix/xap_UnixFont.cpp.fjf	Tue Oct 31 09:42:43 2000
@@ -422,7 +422,7 @@
   { 0x00DD, "Yacute" },
   { 0x00DB, "Ucircumflex" },
   { 0x00D9, "Ugrave" },
-  // HELP: What is "Zcaron"?
+  // HELP: What is "Zcaron"? ANS: Z + caron; caron = inverted circumflex
   { 0x00FF, "Ydieresis" },
   { 0x00B3, "threesuperior" },
   { 0x00DA, "Uacute" },
@@ -440,7 +440,7 @@
   { 0x00E5, "aring" },
   { 0x00E4, "adieresis" },
   { 0x00D2, "Ograve" },
-  { 0x00D4, "Ocurcumflex" },
+  { 0x00D4, "Ocircumflex" },
   { 0x00D6, "Odieresis" },
   { 0x00D1, "Ntilde" },
   { 0x00EB, "edieresis" },
@@ -450,7 +450,7 @@
   { 0x00EA, "ecircumflex" },
   { 0x00CC, "Igrave" },
   { 0x00CD, "Iacute" },
-  { 0x00CF, "Idiersis" },
+  { 0x00CF, "Idieresis" },
   { 0x00B0, "degree" },
   { 0x00CA, "Ecircumflex" },
   { 0x002D, "minus" },
@@ -500,7 +500,7 @@
   { 0x00A6, "brokenbar" },
   { 0x00DE, "Thorn" },
   { 0x00C4, "Adieresis" },
-  // HELP: What is "mu"?
+  { 0x00B5, "mu" },
   { 0x0000, NULL }
 };
 
(2) UT_Bool ps_Generate::formatComment(const char * szCommentName,
                                       const char **argv, int argc)
    UT_Bool ps_Generate::formatComment(const char * szCommentName,
                                       const UT_Vector * pVec)
    were skipping arguments at `%%+' line-wraps
--- abi/src/af/xap/unix/xap_UnixPSGenerate.cpp	Tue Oct 10 01:39:28 2000
+++ abi/src/af/xap/unix/xap_UnixPSGenerate.cpp.fjf	Tue Oct 31 10:15:09 2000
@@ -170,16 +170,14 @@
                         strcat(buf,"\n");
                         if (!writeBytes(buf))
                                 return UT_FALSE;
-			sprintf(buf,"%%%%+");
+			sprintf(buf,"%%%%+ %s",argv[k]);
                 }
         }
-	bufLen = strlen(buf);
-	if (bufLen > 3)						// 3==strlen("%%+")
-	{
-		strcat(buf,"\n");
-		if (!writeBytes(buf))
-			return UT_FALSE;
-	}
+
+	strcat(buf,"\n");
+	if (!writeBytes(buf))
+		return UT_FALSE;
+
         return UT_TRUE;
 }
 
@@ -208,16 +206,14 @@
                         strcat(buf,"\n");
                         if (!writeBytes(buf))
                                 return UT_FALSE;
-			sprintf(buf,"%%%%+");
+			sprintf(buf,"%%%%+ %s",psz);
                 }
         }
-	bufLen = strlen(buf);
-	if (bufLen > 3)						// 3==strlen("%%+")
-	{
-		strcat(buf,"\n");
-		if (!writeBytes(buf))
-			return UT_FALSE;
-	}
+
+	strcat(buf,"\n");
+	if (!writeBytes(buf))
+		return UT_FALSE;
+
         return UT_TRUE;
 }
 
Frank
<fjf@alinameridon.com>
Francis James Franklin
F.J.Franklin@shef.ac.uk
Diodorus the professor of logic died of shame because he could not at once 
solve a problem put to him in jest by Stilpo.
                                                       --- Pliny the Elder
This archive was generated by hypermail 2b25 : Tue Oct 31 2000 - 04:24:25 CST