if ((len = cupsFileGetLine(fp, line, sizeof(line))) == 0)
{
- _cupsLangPuts(stderr, _("ERROR: Empty print file!\n"));
+ _cupsLangPuts(stderr, _("ERROR: Empty print file\n"));
return (1);
}
if (saw_pages)
- _cupsLangPuts(stderr, _("ERROR: Duplicate %%Pages: comment seen!\n"));
+ _cupsLangPuts(stderr, _("ERROR: Duplicate %%Pages: comment seen\n"));
saw_pages = 1;
{
if (saw_bounding_box)
_cupsLangPuts(stderr,
- _("ERROR: Duplicate %%BoundingBox: comment seen!\n"));
+ _("ERROR: Duplicate %%BoundingBox: comment seen\n"));
else if (strstr(line + 14, "(atend)"))
{
/*
doc->bounding_box + 1, doc->bounding_box + 2,
doc->bounding_box + 3) != 4)
{
- _cupsLangPuts(stderr, _("ERROR: Bad %%BoundingBox: comment seen!\n"));
+ _cupsLangPuts(stderr, _("ERROR: Bad %%BoundingBox: comment seen\n"));
doc->bounding_box[0] = (int)PageLeft;
doc->bounding_box[1] = (int)PageBottom;
}
if (!saw_bounding_box)
- _cupsLangPuts(stderr, _("ERROR: No %%BoundingBox: comment in header!\n"));
+ _cupsLangPuts(stderr, _("ERROR: No %%BoundingBox: comment in header\n"));
if (!saw_pages)
- _cupsLangPuts(stderr, _("ERROR: No %%Pages: comment in header!\n"));
+ _cupsLangPuts(stderr, _("ERROR: No %%Pages: comment in header\n"));
if (!saw_for)
WriteTextComment("For", doc->user);
_cupsLangPuts(stderr,
_("WARNING: This document does not conform to the Adobe "
"Document Structuring Conventions and may not print "
- "correctly!\n"));
+ "correctly\n"));
/*
* Then write a standard DSC comment section...
if (!parse_text(line + 7, &ptr, label, sizeof(label)))
{
- _cupsLangPuts(stderr, _("ERROR: Bad %%Page: comment in file!\n"));
+ _cupsLangPuts(stderr, _("ERROR: Bad %%Page: comment in file\n"));
label[0] = '\0';
number = doc->page;
}
else if (strtol(ptr, &ptr, 10) == LONG_MAX || !isspace(*ptr & 255))
{
- _cupsLangPuts(stderr, _("ERROR: Bad %%Page: comment in file!\n"));
+ _cupsLangPuts(stderr, _("ERROR: Bad %%Page: comment in file\n"));
number = doc->page;
}
bounding_box + 3) != 4)
{
_cupsLangPuts(stderr,
- _("ERROR: Bad %%PageBoundingBox: comment in file!\n"));
+ _("ERROR: Bad %%PageBoundingBox: comment in file\n"));
memcpy(bounding_box, doc->bounding_box,
sizeof(bounding_box));
}
if (!strncmp(line, "%%EndProlog", 11))
linelen = cupsFileGetLine(fp, line, linesize);
else
- _cupsLangPuts(stderr, _("ERROR: Missing %%EndProlog!\n"));
+ _cupsLangPuts(stderr, _("ERROR: Missing %%EndProlog\n"));
}
doc_puts(doc, "%%EndProlog\n");
if (!strncmp(line, "%%EndSetup", 10))
linelen = cupsFileGetLine(fp, line, linesize);
else
- _cupsLangPuts(stderr, _("ERROR: Missing %%EndSetup!\n"));
+ _cupsLangPuts(stderr, _("ERROR: Missing %%EndSetup\n"));
}
if (num_options > 0)
{
_cupsLangPrintf(stderr,
_("ERROR: doc_printf overflow (%d bytes) detected, "
- "aborting!\n"), (int)bytes);
+ "aborting\n"), (int)bytes);
exit(1);
}
if (sscanf(line + 17, "%254s%254s", name, value) != 2)
{
- _cupsLangPuts(stderr, _("ERROR: Bad %%IncludeFeature: comment!\n"));
+ _cupsLangPuts(stderr, _("ERROR: Bad %%IncludeFeature: comment\n"));
return (num_options);
}
if ((option = ppdFindOption(ppd, name + 1)) == NULL)
{
- _cupsLangPrintf(stderr, _("WARNING: Unknown option \"%s\"!\n"), name + 1);
+ _cupsLangPrintf(stderr, _("WARNING: Unknown option \"%s\"\n"), name + 1);
return (num_options);
}
option->section == PPD_ORDER_JCL)
{
_cupsLangPrintf(stderr, _("WARNING: Option \"%s\" cannot be included via "
- "IncludeFeature!\n"), name + 1);
+ "IncludeFeature\n"), name + 1);
return (num_options);
}
if (!ppdFindChoice(option, value))
{
_cupsLangPrintf(stderr,
- _("WARNING: Unknown choice \"%s\" for option \"%s\"!\n"),
+ _("WARNING: Unknown choice \"%s\" for option \"%s\"\n"),
value, name + 1);
return (num_options);
}
if (intval < 10 || intval > 1000)
{
_cupsLangPrintf(stderr, _("ERROR: Unsupported brightness value %s, using "
- "brightness=100!\n"), val);
+ "brightness=100\n"), val);
doc->brightness = 1.0f;
}
else
if (intval < 1 || intval > 10000)
{
_cupsLangPrintf(stderr, _("ERROR: Unsupported gamma value %s, using "
- "gamma=1000!\n"), val);
+ "gamma=1000\n"), val);
doc->gamma = 1.0f;
}
else
default :
_cupsLangPrintf(stderr,
_("ERROR: Unsupported number-up value %d, using "
- "number-up=1!\n"), intval);
+ "number-up=1\n"), intval);
doc->number_up = 1;
break;
}
else
{
_cupsLangPrintf(stderr, _("ERROR: Unsupported number-up-layout value %s, "
- "using number-up-layout=lrtb!\n"), val);
+ "using number-up-layout=lrtb\n"), val);
doc->number_up_layout = PSTOPS_LAYOUT_LRTB;
}
}
else
{
_cupsLangPrintf(stderr, _("ERROR: Unsupported page-border value %s, "
- "using page-border=none!\n"), val);
+ "using page-border=none\n"), val);
doc->page_border = PSTOPS_BORDERNONE;
}
}