Russian TransFig 3.2.1 (rus X transfig patch)
Ключевые слова: rus, X, transfig, patch, (найти похожие документы)
Subj : Russian TransFig 3.2.1
diff -u -N -r transfig.3.2.1/fig2dev/dev/genps.c transfig.3.2.1_/fig2dev/dev/genps.c
--- transfig.3.2.1/fig2dev/dev/genps.c Fri May 15 05:12:23 1998
+++ transfig.3.2.1_/fig2dev/dev/genps.c Sat Oct 17 17:35:09 1998
@@ -274,6 +274,9 @@
(void) strcpy (papersize, optarg);
paperspec = TRUE; /* user-specified */
break;
+ case 'i': /* turn off ISO font encoding */
+ dont_encode = TRUE;
+ break;
default:
put_msg(Err_badarg, opt, "ps");
@@ -1459,7 +1462,7 @@
fprintf(tfp, TEXT_PS, "CompositeBold", "", PSFONTMAG(t));
} else
#endif /* I18N */
- if (PSisomap[t->font+1] == TRUE)
+ if (dont_encode != TRUE && PSisomap[t->font+1] == TRUE)
fprintf(tfp, TEXT_PS, PSFONT(t), "-iso", PSFONTMAG(t));
else
fprintf(tfp, TEXT_PS, PSFONT(t), "", PSFONTMAG(t));
@@ -1934,6 +1937,9 @@
F_text *t;
unsigned char *s;
+ if (dont_encode == TRUE)
+ return(0);
+
if (ob->texts != NULL)
{
for (t = ob->texts; t != NULL; t = t->next)
@@ -1963,7 +1969,8 @@
if (ob->texts != NULL) {
for (t = ob->texts; t != NULL; t = t->next)
- if (PSisomap[t->font+1] == FALSE) {
+ if (dont_encode != TRUE && PSisomap[t->font+1] == FALSE)
+ {
fprintf(tfp, "/%s /%s-iso isovec ReEncode\n", PSFONT(t), PSFONT(t));
PSisomap[t->font+1] = TRUE;
}
diff -u -N -r transfig.3.2.1/fig2dev/fig2dev.c transfig.3.2.1_/fig2dev/fig2dev.c
--- transfig.3.2.1/fig2dev/fig2dev.c Thu Jul 2 00:38:34 1998
+++ transfig.3.2.1_/fig2dev/fig2dev.c Sat Oct 17 17:38:12 1998
@@ -69,6 +69,7 @@
Boolean magspec=FALSE; /* set if the user specifies the magnification */
Boolean multispec=FALSE; /* set if the user specifies multiple pages */
Boolean paperspec=FALSE; /* set if the user specifies the paper size */
+Boolean dont_encode=FALSE; /* set if the user specifies do not reencode
Boolean pats_used, pattern_used[NUMPATTERNS];
Boolean multi_page = FALSE; /* multiple page option for PostScript */
Boolean metric; /* true if file specifies Metric */
@@ -125,7 +126,9 @@
#ifdef I18N
while ((c = fig_getopt(argc, argv, "aAcC:d:ef:hl:L:Mm:n:q:Pp:s:S:t:vVx:X:y:Y:wWz:j?")) != EOF) {
#else
- while ((c = fig_getopt(argc, argv, "aAcC:d:ef:hl:L:Mm:n:q:Pp:s:S:t:vVx:X:y:Y:wWz:?")) != EOF) {
+// while ((c = fig_getopt(argc, argv, "aAcC:d:ef:hl:L:Mm:n:q:Pp:s:S:t:vVx:X:y:Y:wWz:?")) != EOF) {
+ while ((c = fig_getopt(argc, argv, "aAcC:d:ef:l:L:Mm:n:Pp:s:S:t:vVx:X:y:Y:wWz:i?")) != EOF) {
+
#endif
/* generic option handling */
diff -u -N -r transfig.3.2.1/fig2dev/fig2dev.h transfig.3.2.1_/fig2dev/fig2dev.h
--- transfig.3.2.1/fig2dev/fig2dev.h Thu Feb 12 04:13:01 1998
+++ transfig.3.2.1_/fig2dev/fig2dev.h Sat Oct 17 17:38:48 1998
@@ -106,6 +106,7 @@
extern Boolean multispec; /* true if the command-line args specified -M */
extern Boolean metric; /* true if the file contains Metric specifier */
extern char papersize[]; /* paper size */
+extern Boolean dont_encode; /* true if the command-line args specified -i */
extern float THICK_SCALE; /* convert line thickness from screen res. */
extern char lang[]; /* selected output language */