ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Yura Zotov <yznews@hotbox.ru>
To: Yura Zotov <mandrake-russian@altlinux.ru>
Subject: [mdk-re] Патчи к xfig (было: Origin like progs...)
Date: Thu Jan 10 19:49:54 2002
Message-ID: <20020110164917.GA5213@vezyolka.home> (raw)
In-Reply-To: <24248273568.20020110145016@mtu-net.ru>

[-- Attachment #1: Type: text/plain, Size: 1022 bytes --]

On Thu, Jan 10, 2002 at 02:50:16PM +0300, Serge Skorokhodov wrote:
> Здравствуйте!
> 
> YZ> On Wed, Jan 09, 2002 at 04:20:21PM +0300, Vyacheslav Sokolov wrote:
> >> Serge Skorokhodov wrote:
> >>
> 
> YZ> <skip>
> 
> >> А вот готовые данные изобразить, да так, чтобы не стыдно было в приличный
> >> журнал послать - здесь и нужен Origin. 
> 
> YZ> Авторитетно заявляю: в ЖЭТФ все картинки перерисовываются РУКАМИ
> YZ> МОЕЙ ЖЕНЫ + gnuplot + xfig немного пропатченный. Так что
>                           ^^^^^^^^^^^^^^^^^^^^^^^^^
> Стоп, а что значит "про-пат-чен-ный"?? В смысле кирилицу делает?
> Тогда где па-т-ч такой взять?
>

Точно сказать не могу. Патч написал один умелец из ИФП по фамилии
Завьялов, никуда его не отсылал. Какие-то исправления для работы
с LaTeX плюс некая автоматизация вызовов transfig, latex, dvips
после записи для получения готовой картинки из pstex
представления. В таком виде русские буквы пишутся LaTeX-овскими
шрифтами, нам большего и не надо.

Патчи прицепил, смотрите


--
Юрий А. Зотов

[-- Attachment #2: transfig-slash.patch --]
[-- Type: text/plain, Size: 1621 bytes --]

diff -uNr transfig.3.2.3d.orig1/fig2dev/dev/genepic.c transfig.3.2.3d/fig2dev/dev/genepic.c
--- transfig.3.2.3d.orig1/fig2dev/dev/genepic.c	Wed Jul 12 01:50:28 2000
+++ transfig.3.2.3d/fig2dev/dev/genepic.c	Sat Oct  6 01:49:55 2001
@@ -1302,9 +1302,9 @@
 	      }
 	    }
 	    else
-	        if (*cp >= 0xa0)	/* we escape 8-bit char */
-	    		fprintf(tfp, "%s", ISOtoTeX[(int)*cp-0xa0]);
-		else
+//	        if (*cp >= 0xa0)	/* we escape 8-bit char */
+//	    		fprintf(tfp, "%s", ISOtoTeX[(int)*cp-0xa0]);
+//		else
 			fputc(*cp, tfp);
 	  }
     fprintf(tfp, "}}}}}\n");
diff -uNr transfig.3.2.3d.orig1/fig2dev/dev/genlatex.c transfig.3.2.3d/fig2dev/dev/genlatex.c
--- transfig.3.2.3d.orig1/fig2dev/dev/genlatex.c	Thu Jul 20 03:16:38 2000
+++ transfig.3.2.3d/fig2dev/dev/genlatex.c	Sat Oct  6 01:50:04 2001
@@ -800,9 +800,9 @@
 			fputc(*cp, tfp);
 		    else
 #endif
-		    if (*cp >= 0xa0)
-			 fprintf(tfp, "%s", ISOtoTeX[(int)*cp-0xa0]);
-		else
+//		    if (*cp >= 0xa0)
+//			 fprintf(tfp, "%s", ISOtoTeX[(int)*cp-0xa0]);
+//		else
 		    fputc(*cp, tfp);
 		}
 
diff -uNr transfig.3.2.3d.orig1/fig2dev/dev/genpictex.c transfig.3.2.3d/fig2dev/dev/genpictex.c
--- transfig.3.2.3d.orig1/fig2dev/dev/genpictex.c	Thu May  4 00:47:04 2000
+++ transfig.3.2.3d/fig2dev/dev/genpictex.c	Sat Oct  6 01:49:24 2001
@@ -639,9 +639,9 @@
 	      	}
 	else 
 		for(cp = (unsigned char*)t->cstring; *cp; cp++) {
-		    if (*cp >= 0xa0)
-		         fprintf(tfp, "%s", ISOtoTeX[(int)*cp-0xa0]);
-		else
+//		    if (*cp >= 0xa0)
+//		         fprintf(tfp, "%s", ISOtoTeX[(int)*cp-0xa0]);
+//		else
 		    fputc(*cp, tfp);
 		}
 

[-- Attachment #3: transfig-zav.patch --]
[-- Type: text/plain, Size: 1516 bytes --]

diff -uNr transfig.3.2.3d.orig/fig2dev/dev/genpstex.c transfig.3.2.3d/fig2dev/dev/genpstex.c
--- transfig.3.2.3d.orig/fig2dev/dev/genpstex.c	Wed Jul 12 01:51:27 2000
+++ transfig.3.2.3d/fig2dev/dev/genpstex.c	Mon Sep 24 17:26:18 2001
@@ -92,7 +92,8 @@
 #  if defined(EPSFIG)
 		fprintf(tfp, "\\epsfig{file=%s}%%\n",pstex_file); 
 #  else
-		fprintf(tfp, "\\includegraphics{%s}%%\n",pstex_file);
+//		fprintf(tfp, "\\includegraphics{%s}%%\n",pstex_file);
+		fprintf(tfp, "\\includegraphics*{%s}%%\n",pstex_file);
 #  endif
 #else
 		fprintf(tfp, "\\special{psfile=%s}%%\n",pstex_file);
diff -uNr transfig.3.2.3d.orig/fig2dev/dev/texfonts.c transfig.3.2.3d/fig2dev/dev/texfonts.c
--- transfig.3.2.3d.orig/fig2dev/dev/texfonts.c	Wed Nov 24 01:42:30 1999
+++ transfig.3.2.3d/fig2dev/dev/texfonts.c	Mon Sep 24 17:24:24 2001
@@ -16,12 +16,12 @@
  */
 
 static char		*texfontnames[] = {
-			"rm", "rm",		/* default */
-			"rm",			/* roman */
-			"bf",			/* bold */
-			"it",			/* italic */
-			"sf", 			/* sans serif */
-			"tt"			/* typewriter */
+                       "",                     /* default */
+                       "rmfamily",                     /* roman */
+                       "bfseries",                     /* bold */
+                       "itshape",                      /* italic */
+                       "sffamily",                     /* sans serif */
+                       "ttfamily"                      /* typewriter */
 		};
 
 /* The selection of font names may be site dependent.

[-- Attachment #4: xfig.3.2.3d-slash.patch --]
[-- Type: text/plain, Size: 3120 bytes --]

diff -uNr xfig.3.2.3d.orig/f_save.c xfig.3.2.3d/f_save.c
--- xfig.3.2.3d.orig/f_save.c	Thu Oct 18 13:56:11 2001
+++ xfig.3.2.3d/f_save.c	Thu Oct 18 13:43:17 2001
@@ -400,9 +400,10 @@
 	if (c == '\\')
 	    fprintf(fp,"\\\\");	 /* escape a '\' with another one */
 //	else if (c < 0x80)
-	    putc(c,fp);  /* normal 7-bit ASCII */
+//	    putc(c,fp);  /* normal 7-bit ASCII */
 //	else
 //	    fprintf(fp, "\\%o", c);  /* 8-bit, make \xxx (octal) */
+	else putc(c,fp);
     }
     fprintf(fp,"\\001\n");	      /* finish off with '\001' string */
 }
diff -uNr xfig.3.2.3d.orig/w_drawprim.c xfig.3.2.3d/w_drawprim.c
--- xfig.3.2.3d.orig/w_drawprim.c	Fri Feb  2 00:40:36 2001
+++ xfig.3.2.3d/w_drawprim.c	Thu Oct 18 13:43:17 2001
@@ -119,10 +119,10 @@
 	    strcpy(template,x_fontinfo[0].template);  /* nope, check for font size 0 */
 	    strcat(template,"0-0-*-*-*-*-");
 	    /* add ISO8859 (if not Symbol font or ZapfDingbats) to font name */
-	    if (strstr(template,"symbol") == NULL &&
-		strstr(template,"zapf dingbats") == NULL)
-		    strcat(template,"ISO8859-*");
-	    else
+//	    if (strstr(template,"symbol") == NULL &&
+//		strstr(template,"zapf dingbats") == NULL)
+//		    strcat(template,"ISO8859-*");
+//	    else
 		strcat(template,"*-*");
 	    if ((fontlist = XListFonts(tool_d, template, 1, &count))==0)
 		appres.scalablefonts = False;	/* none, turn off request for them */
@@ -139,10 +139,10 @@
 	    strcpy(template,x_fontinfo[f].template);
 	    strcat(template,"*-*-*-*-*-*-");
 	    /* add ISO8859 (if not Symbol font or ZapfDingbats) to font name */
-	    if (strstr(template,"symbol") == NULL &&
-		strstr(template,"zapf dingbats") == NULL)
-		    strcat(template,"ISO8859-*");
-	    else
+//	    if (strstr(template,"symbol") == NULL &&
+//		strstr(template,"zapf dingbats") == NULL)
+//		    strcat(template,"ISO8859-*");
+//	    else
 		strcat(template,"*-*");
 	    /* don't free the Fontlist because we keep pointers into it */
 	    p = 0;
@@ -283,10 +283,10 @@
 		/* attach pointsize to font name */
 		strcat(template,"%d-*-*-*-*-*-");
 		/* add ISO8859 (if not Symbol font or ZapfDingbats) to font name */
-		if (strstr(template,"symbol") == NULL &&
-		    strstr(template,"zapf dingbats") == NULL)
-			strcat(template,"ISO8859-*");
-	        else
+//		if (strstr(template,"symbol") == NULL &&
+//		    strstr(template,"zapf dingbats") == NULL)
+//			strcat(template,"ISO8859-*");
+//	        else
 			strcat(template,"*-*");
 		/* use the pixel field instead of points in the fontname so that the
 		font scales with screen size */
@@ -295,10 +295,10 @@
 		strcpy(template,x_backup_fontinfo[fnum].template);
 		strcat(template,"%d-*-*-*-*-*-");
 		/* add ISO8859 (if not Symbol font or ZapfDingbats) to font name */
-		if (strstr(template,"symbol") == NULL &&
-		    strstr(template,"zapf dingbats") == NULL)
-			strcat(template,"ISO8859-*");
-	        else
+//		if (strstr(template,"symbol") == NULL &&
+//		    strstr(template,"zapf dingbats") == NULL)
+//			strcat(template,"ISO8859-*");
+//	        else
 			strcat(template,"*-*");
 		sprintf(back_fn, template, size);
 	    }

[-- Attachment #5: xfig.3.2.3d.zav.patch --]
[-- Type: text/plain, Size: 1428 bytes --]

diff -uNr xfig.3.2.3d.orig/f_save.c xfig.3.2.3d/f_save.c
--- xfig.3.2.3d.orig/f_save.c	Tue Jul  4 01:37:21 2000
+++ xfig.3.2.3d/f_save.c	Mon Sep 17 15:59:28 2001
@@ -25,6 +25,12 @@
 #include "w_setup.h"
 #include "w_zoom.h"
 
+#include "f_util.h"
+ char *mycommand;
+ char *mycommandstring="xfig_at_save_batch";
+//-----------------------------
+
+
 static int write_tmpfile=0;
 
 init_write_tmpfile()
@@ -59,7 +65,13 @@
 	return (-1);
     }
     if (!update_figs)
-	put_msg("%d object(s) saved in \"%s\"", num_object, file_name);
+//	put_msg("%d object(s) saved in \"%s\"", num_object, file_name);
+     mycommand = build_command(mycommandstring, file_name);
+         put_msg("%d object(s) saved in \"%s\"       Launching \"xfig_at_save_batch %s\"",\
+                         num_object, file_name, file_name);
+              system(mycommand);
+               free(mycommand);
+//-------------------------------
 
     /* update the recent list if caller desires */
     if (update_recent)
@@ -387,10 +399,10 @@
 	c = t->cstring[l];
 	if (c == '\\')
 	    fprintf(fp,"\\\\");	 /* escape a '\' with another one */
-	else if (c < 0x80)
+//	else if (c < 0x80)
 	    putc(c,fp);  /* normal 7-bit ASCII */
-	else
-	    fprintf(fp, "\\%o", c);  /* 8-bit, make \xxx (octal) */
+//	else
+//	    fprintf(fp, "\\%o", c);  /* 8-bit, make \xxx (octal) */
     }
     fprintf(fp,"\\001\n");	      /* finish off with '\001' string */
 }

  reply	other threads:[~2002-01-10 19:49 UTC|newest]

Thread overview: 65+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-09  9:00 [mdk-re] Chemistry soft Foh
2002-01-09  9:30 ` Yura Zotov
2002-01-09 10:57   ` Re[2]: " Denis G. Samsonenko
2002-01-09 12:07 ` Michael Shigorin
2002-01-09 12:50   ` AVL
2002-01-09 14:09     ` Alexandr Zhegallo
2002-01-09 14:25     ` Re[2]: " Maksim Otstavnov
2002-01-09 17:18     ` Alexandre Prokoudine
2002-01-09 13:24   ` [mdk-re] Origin like progs Denis G. Samsonenko
2002-01-09 13:41     ` Andriy Dobrovol's'kii
2002-01-09 15:40       ` Re[2]: " Sergey Krivulja
2002-01-09 13:50     ` Serge Skorokhodov
2002-01-09 14:13       ` Vyacheslav Sokolov
2002-01-09 14:50         ` Re[2]: " Serge Skorokhodov
2002-01-09 16:21           ` Vyacheslav Sokolov
2002-01-09 17:37             ` Re[2]: " Serge Skorokhodov
2002-01-09 19:18               ` Michael Shigorin
2002-01-09 19:29             ` [mdk-re] [JT] " Yura Zotov
2002-01-09 19:29               ` Yura Zotov
2002-01-09 19:29               ` Yura Zotov
2002-01-09 20:53               ` AVL
2002-01-09 21:36                 ` Re[2]: " Vladimir Karpinsky
2002-01-10 12:45               ` Andriy Dobrovol's'kii
2002-01-10 14:02                 ` Yura Zotov
2002-01-10 15:12                   ` Dmitri Drozdov
2002-01-10 17:50                   ` Andriy Dobrovol's'kii
2002-01-10 20:39                     ` [mdk-re] [JT] Origin like progs... (уже оффтопик про ЖЭТФ) Yura Zotov
2002-01-11  7:11                     ` Re[2]: [mdk-re] [JT] Origin like progs Denis G. Samsonenko
2002-01-11  8:42                       ` Yura Zotov
2002-01-10 18:22                 ` Re[2]: " Alexandre Prokoudine
2002-01-10 18:38                   ` Aleksey Novodvorsky
2002-01-10 19:24                     ` Re[2]: " Alexandre Prokoudine
2002-01-10 21:38                 ` Alexandre Prokoudine
2002-01-11 12:41                   ` Andriy Dobrovol's'kii
2002-01-10 22:25                 ` Re[2]: " Alexandre Prokoudine
2002-01-11 12:41                   ` Andriy Dobrovol's'kii
2002-01-10 16:06               ` Re[2]: " Serge Skorokhodov
2002-01-10 19:49                 ` Yura Zotov [this message]
2002-01-10 22:54                   ` [mdk-re] ðÁÔÞÉ Ë xfig (ÂÙÌÏ: Origin like progs...) Serge Skorokhodov
2002-01-09 16:02         ` [mdk-re] Origin like progs Michael Shigorin
2002-01-09 18:34           ` Vyacheslav Sokolov
2002-01-09 14:27       ` Re[2]: " Denis G. Samsonenko
2002-01-09 15:57         ` Re[3]: " Serge Skorokhodov
2002-01-09 17:33           ` Michael Shigorin
2002-01-09 14:33       ` [mdk-re] logs Denis G. Samsonenko
2002-01-09 15:38         ` [mdk-re] Kde Headers Phoenix
2002-01-09 15:42           ` cornet
2002-01-09 16:29             ` Korshunov Ilya
2002-01-09 17:42               ` Re[2]: " Phoenix
2002-01-09 18:09                 ` Vyt
2002-01-09 14:35       ` [mdk-re] md5sum Denis G. Samsonenko
2002-01-09 15:20         ` "Баталов Григорий"
2002-01-09 15:23         ` Vyt
2002-01-10 12:41           ` Re[2]: " Denis G. Samsonenko
2002-01-10 12:56             ` Peter V.Saveliev
2002-01-10 13:34               ` Andriy Dobrovol's'kii
2002-01-10 14:30                 ` Peter V.Saveliev
2002-01-10 13:50               ` Re[2]: " Andrew Borodin
2002-01-09 17:33         ` Michael Shigorin
2002-01-10 11:53           ` Re[2]: " Denis G. Samsonenko
2002-01-09 13:59     ` [mdk-re] Origin like progs Vyacheslav Sokolov
2002-01-09 14:36       ` Re[2]: " Serge Skorokhodov
2002-01-09 16:02     ` Michael Shigorin
2002-01-09 13:51 ` [mdk-re] Chemistry soft Vyacheslav Sokolov
2002-01-09 14:17   ` Vyacheslav Sokolov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020110164917.GA5213@vezyolka.home \
    --to=yznews@hotbox.ru \
    --cc=mandrake-russian@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git