Fix multiple typos that appear in the codebase.
No other changes
.git* export-ignore
.mailmap export-ignore
examples/testfile.pcl -text
-exampels/testfile.txt -text
+examples/testfile.txt -text
scripts export-ignore
- Fixed conditional jump based on uninitialized value in cups/ppd.c (Issue #329)
- Fixed CSS related issues in CUPS Web UI (Issue #344)
- Fixed copyright in CUPS Web UI trailer template (Issue #346)
-- mDNS hostname in device uri is not resolved when installaling a permanent
+- mDNS hostname in device uri is not resolved when installing a permanent
IPP Everywhere queue (Issues #340, #343)
- The `lpstat` command now reports when the scheduler is not running
(Issue #352)
code.
Contributions should be submitted either as pull requests or as attachments
-(unified diffs) to bug reports on the OpenPrinting CUPS Github project at
+(unified diffs) to bug reports on the OpenPrinting CUPS GitHub project at
<https://github.com/openprinting/cups>.
fixes.
Bjoern Jacke - I18N stuff.
Wang Jian - CUPS RPM corrections.
- Roderick Johnstone - Beta tester of the millenium.
+ Roderick Johnstone - Beta tester of the millennium.
Till Kamppeter - Bug fixes, beta testing, evangelism.
Tomohiro Kato - Japanese localization.
Kiko - Bug fixes.
#define CUPS_TC_hours 11
#define CUPS_TC_thousandthsOfOunces 12
#define CUPS_TC_tenthsOfGrams 13
-#define CUPS_TC_hundrethsOfFluidOunces 14
+#define CUPS_TC_hundredthsOfFluidOunces 14
#define CUPS_TC_tenthsOfMilliliters 15
#define CUPS_TC_feet 16
#define CUPS_TC_meters 17
fprintf(stderr, "DEBUG: Connection invalid for service %s.\n",
xpc_connection_get_name(conn));
else
- fprintf(stderr, "DEBUG: Unxpected error for service %s: %s\n",
+ fprintf(stderr, "DEBUG: Unexpected error for service %s: %s\n",
xpc_connection_get_name(conn),
xpc_dictionary_get_string(event, XPC_ERROR_KEY_DESCRIPTION));
}
* What to reserve...
*/
-#define RESERVE_NONE 0 /* Don't reserve a priviledged port */
+#define RESERVE_NONE 0 /* Don't reserve a privileged port */
#define RESERVE_RFC1179 1 /* Reserve port 721-731 */
#define RESERVE_ANY 2 /* Reserve port 1-1023 */
int banner; /* Print banner page? */
int format; /* Print format */
int order; /* Order of control/data files */
- int reserve; /* Reserve priviledged port? */
+ int reserve; /* Reserve privileged port? */
int sanitize_title; /* Sanitize title string? */
int manual_copies, /* Do manual copies? */
timeout, /* Timeout */
return (CUPS_BACKEND_FAILED);
/*
- * Choose the next priviledged port...
+ * Choose the next privileged port...
*/
if (!addr)
{
/*
* We're running as root and want to comply with RFC 1179. Reserve a
- * priviledged lport between 721 and 731...
+ * privileged lport between 721 and 731...
*/
if ((fd = cups_rresvport(&lport, addr->addr.addr.sa_family)) < 0)
if (do_side_tests)
{
int length; /* Length of buffer */
- char buffer[2049]; /* Buffer for reponse */
+ char buffer[2049]; /* Buffer for response */
cups_sc_status_t scstatus; /* Status of side-channel command */
static const char * const statuses[] =
{
fputs("DEBUG: Got USB return aborted during read\n", stderr);
/*
- * Make sure this loop executes no more than once every 250 miliseconds...
+ * Make sure this loop executes no more than once every 250 milliseconds...
*/
if ((readstatus != kIOReturnSuccess || rbytes == 0) && (g.wait_eof || !g.read_thread_stop))
if (readstatus == kIOReturnSuccess && rbytes > 0 && readbuffer[rbytes-1] == 0x4)
break;
- /* Make sure this loop executes no more than once every 250 miliseconds... */
+ /* Make sure this loop executes no more than once every 250 milliseconds... */
mach_wait_until(start + delay);
}
}
iterator_reference_t reference = { callBack, userdata, true };
- IONotificationPortRef addNotification = IONotificationPortCreate(kIOMasterPortDefault);
+ IONotificationPortRef addNotification = IONotificationPortCreate(kIOMainPortDefault);
int printingClass = kUSBPrintingClass;
int printingSubclass = kUSBPrintingSubclass;
if ((logstrlen = snprintf(logstr, sizeof(logstr), "%s: %s\n", logLevel, pCommentBegin)) >= sizeof(logstr))
{
- /* If the string was trucnated make sure it has a linefeed before the nul */
+ /* If the string was truncated make sure it has a linefeed before the nul */
logstrlen = sizeof(logstr) - 1;
logstr[logstrlen - 1] = '\n';
}
fputs("DEBUG: Got USB return aborted during read.\n", stderr);
/*
- * Make sure this loop executes no more than once every 250 miliseconds...
+ * Make sure this loop executes no more than once every 250 milliseconds...
*/
if ((readstatus != LIBUSB_SUCCESS || rbytes == 0) &&
if (ch == '?')
{
/*
- * Test for existance...
+ * Test for existence...
*/
if (name[0] == '?')
], [*], [
# Running some other operating system; inform the user
# they should contribute the necessary options via
- # Github...
+ # GitHub...
echo "Building CUPS with default compiler optimizations."
- echo "Contact the OpenPrinting CUPS developers on Github with the uname and compiler"
+ echo "Contact the OpenPrinting CUPS developers on GitHub with the uname and compiler"
echo "options needed for your platform, or set the CFLAGS and LDFLAGS environment"
echo "variables before running configure."
echo ""
# Running some other operating system; inform the user
# they should contribute the necessary options via
- # Github...
+ # GitHub...
echo "Building CUPS with default compiler optimizations."
- echo "Contact the OpenPrinting CUPS developers on Github with the uname and compiler"
+ echo "Contact the OpenPrinting CUPS developers on GitHub with the uname and compiler"
echo "options needed for your platform, or set the CFLAGS and LDFLAGS environment"
echo "variables before running configure."
echo ""
<h3><a name="DEVICES">Devices</a></h3>
-<p>Printers can be discovered through the CUPS scheduler using the <a href="#cupsGetDevices"><code>cupsGetDevices</code></a> API. Typically this API is used to locate printers to add the the system. Each device that is found will cause a supplied callback function to be executed. For example, to list the available printer devices that can be found within 30 seconds:</p>
+<p>Printers can be discovered through the CUPS scheduler using the <a href="#cupsGetDevices"><code>cupsGetDevices</code></a> API. Typically this API is used to locate printers to add to the system. Each device that is found will cause a supplied callback function to be executed. For example, to list the available printer devices that can be found within 30 seconds:</p>
<pre class="example">
#include <cups/cups.h>
else if (!diff)
{
/*
- * Compared equal, make sure we add to the begining or end of
+ * Compared equal, make sure we add to the beginning or end of
* the current run of equal elements...
*/
else
{
/*
- * Start wih previous on left side...
+ * Start with previous on left side...
*/
left = prev;
version: 2.4.0
...
-> Please [file issues on Github](https://github.com/openprinting/cups/issues) to
+> Please [file issues on GitHub](https://github.com/openprinting/cups/issues) to
> provide feedback on this document.
> CUPS printer drivers necessarily depend on specific file formats and certain
> implementation details of the CUPS software. Please consult the Postscript
> and raster printer driver developer documentation on the
-> [OpenPrinting CUPS web site](https://openprinting.github.io/cups) for more
+> [OpenPrinting CUPS website](https://openprinting.github.io/cups) for more
> information.
## Compiling Programs That Use the CUPS API
-The CUPS libraries can be used from any C, C++, or Objective C program.
+The CUPS libraries can be used from any C, C++, or Objective-C program.
The method of compiling against the libraries varies depending on the
operating system and installation of CUPS. The following sections show how
to compile a simple program (shown below) in two common environments.
> If we wanted to query the scheduler instead of the device, we would look
> up the "printer-uri-supported" option instead of the "device-uri" value.
-The `ippAddString` function adds the "printer-uri" attribute the the IPP
+The `ippAddString` function adds the "printer-uri" attribute to the IPP
request. The `IPP_TAG_OPERATION` argument specifies that the attribute is part
of the operation. The `IPP_TAG_URI` argument specifies that the value is a
Universal Resource Identifier (URI) string. The `NULL` argument specifies there
static void
cups_create_localizations(
http_t *http, /* I - Connection to destination */
- cups_dinfo_t *dinfo) /* I - Destination informations */
+ cups_dinfo_t *dinfo) /* I - Destination information */
{
http_t *http2; /* Connection for strings file */
http_status_t status; /* Request status */
else
{
/*
- * Start wih previous on left side...
+ * Start with previous on left side...
*/
left = prev;
if (!fp->printf_buffer)
{
/*
- * Start with an 1k printf buffer...
+ * Start with a 1k printf buffer...
*/
if ((fp->printf_buffer = malloc(1024)) == NULL)
HTTP_FIELD_SERVER, /* Server field @since CUPS 1.7/macOS 10.9@ */
HTTP_FIELD_AUTHENTICATION_INFO, /* Authentication-Info field @since CUPS 2.2.9@ */
HTTP_FIELD_ACCESS_CONTROL_ALLOW_CREDENTIALS,
- /* CORS/Fetch Access-Control-Allow-Cresdentials field @since CUPS 2.4@ */
+ /* CORS/Fetch Access-Control-Allow-Credentials field @since CUPS 2.4@ */
HTTP_FIELD_ACCESS_CONTROL_ALLOW_HEADERS,
/* CORS/Fetch Access-Control-Allow-Headers field @since CUPS 2.4@ */
HTTP_FIELD_ACCESS_CONTROL_ALLOW_METHODS,
const char *name, /* I - Name of attribute */
ipp_tag_t type) /* I - Type of attribute */
{
- ipp_attribute_t *attr, /* Current atttribute */
+ ipp_attribute_t *attr, /* Current attribute */
*childattr; /* Child attribute */
ipp_tag_t value_tag; /* Value tag */
char parent[1024], /* Parent attribute name */
else
{
/*
- * Start wih previous on left side...
+ * Start with previous on left side...
*/
left = prev;
if (*lineptr == ':')
{
/*
- * Get string after triming leading and trailing whitespace...
+ * Get string after trimming leading and trailing whitespace...
*/
lineptr ++;
char name[64]; /* Name value */
double number; /* Number value */
char other[64]; /* Other operator */
- char string[64]; /* Sring value */
+ char string[64]; /* String value */
} value; /* Value */
} _cups_ps_obj_t;
cups_option_t *options, /* I - Options */
cups_interpret_cb_t func) /* I - Optional page header callback (@code NULL@ for none) */
{
- int status; /* Cummulative status */
+ int status; /* Cumulative status */
char *code; /* Code to run */
const char *val; /* Option value */
ppd_size_t *size; /* Current size */
unsigned cupsRowStep; /* Spacing between lines */
/**** Version 2 Dictionary Values ****/
- unsigned cupsNumColors; /* Number of color compoents @since CUPS 1.2/macOS 10.5@ */
+ unsigned cupsNumColors; /* Number of color components @since CUPS 1.2/macOS 10.5@ */
float cupsBorderlessScalingFactor;
/* Scaling that was applied to page data @since CUPS 1.2/macOS 10.5@ */
float cupsPageSize[2]; /* Floating point PageSize (scaling *
/*
- * Sort the array into ascending order using a quicky bubble sort...
+ * Sort the array into ascending order using a quick bubble sort...
*/
for (i = 0; i < (TEST_PASSES - 1); i ++)
*% Test PPD file for CUPS.
*%
*% This file is used to test the CUPS PPD API functions and cannot be
-*% used with any known printers. Look on the CUPS web site for working PPD
+*% used with any known printers. Look on the CUPS website for working PPD
*% files.
*%
*% If you are a PPD file developer, consider using the PPD compiler (ppdc)
*% Test PPD file #2 for CUPS.
*%
*% This file is used to test the CUPS PPD API functions and cannot be
-*% used with any known printers. Look on the CUPS web site for working PPD
+*% used with any known printers. Look on the CUPS website for working PPD
*% files.
*%
*% If you are a PPD file developer, consider using the PPD compiler (ppdc)
}
/*
- * Figure out the the media, resolution, and color mode...
+ * Figure out the media, resolution, and color mode...
*/
if ((attr = ippFindAttribute(response, "media-ready", IPP_TAG_KEYWORD)) != NULL)
CFNumberRef usage = CFNumberCreate(kCFAllocatorDefault, kCFNumberCFIndexType, &usageInt);
CFIndex lenInt = 0;
CFNumberRef len = CFNumberCreate(kCFAllocatorDefault, kCFNumberCFIndexType, &lenInt);
- CFTypeRef certKeys[] = { kSecCSRBasicContraintsPathLen, kSecSubjectAltName, kSecCertificateKeyUsage };
+ CFTypeRef certKeys[] = { kSecCSRBasicConstraintsPathLen, kSecSubjectAltName, kSecCertificateKeyUsage };
CFTypeRef certValues[] = { len, cfcommon_name, usage };
CFDictionaryRef certParams = CFDictionaryCreate(kCFAllocatorDefault, certKeys, certValues, sizeof(certKeys) / sizeof(certKeys[0]), &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks);
CFRelease(usage);
extern const void * kSecCSRChallengePassword;
extern const void * kSecSubjectAltName;
extern const void * kSecCertificateKeyUsage;
-extern const void * kSecCSRBasicContraintsPathLen;
+extern const void * kSecCSRBasicConstraintsPathLen;
extern const void * kSecCertificateExtensions;
extern const void * kSecCertificateExtensionsEncoded;
extern const void * kSecOidCommonName;
}
/*
- * Set supported protocols (can also be overriden in the registry...)
+ * Set supported protocols (can also be overridden in the registry...)
*/
#ifdef SP_PROT_TLS1_2_SERVER
const char *format, /* I - MIME type or @code CUPS_FORMAT_foo@ */
int last_document) /* I - 1 for last document in job, 0 otherwise */
{
- char resource[1024], /* Resource for destinatio */
+ char resource[1024], /* Resource for destination */
printer_uri[1024]; /* Printer URI */
ipp_t *request; /* Send-Document request */
http_status_t status; /* HTTP status */
/*
- * Define _CUPS_INTERNAL, _CUPS_PRIVATE, and _CUPS_PUBLIC visibilty macros for
+ * Define _CUPS_INTERNAL, _CUPS_PRIVATE, and _CUPS_PUBLIC visibility macros for
* internal/private/public functions...
*/
<h3><a name="DEVICES">Devices</a></h3>
-<p>Printers can be discovered through the CUPS scheduler using the <a href="#cupsGetDevices"><code>cupsGetDevices</code></a> API. Typically this API is used to locate printers to add the the system. Each device that is found will cause a supplied callback function to be executed. For example, to list the available printer devices that can be found within 30 seconds:</p>
+<p>Printers can be discovered through the CUPS scheduler using the <a href="#cupsGetDevices"><code>cupsGetDevices</code></a> API. Typically this API is used to locate printers to add to the system. Each device that is found will cause a supplied callback function to be executed. For example, to list the available printer devices that can be found within 30 seconds:</p>
<pre class="example">
#include <cups/cups.h>
</div>
<div class="body">
<blockquote>
-<p>Please <a href="https://github.com/openprinting/cups/issues">file issues on Github</a> to provide feedback on this document.</p>
+<p>Please <a href="https://github.com/openprinting/cups/issues">file issues on GitHub</a> to provide feedback on this document.</p>
</blockquote>
<h2 class="title" id="introduction">Introduction</h2>
<p>CUPS provides the "cups" library to talk to the different parts of CUPS and with Internet Printing Protocol (IPP) printers. The "cups" library functions are accessed by including the <code><cups/cups.h></code> header.</p>
<p>Similarly, printer and job management applications can use standard query operations to obtain the status information in a common, generic form and use standard management operations to control the state of those printers and jobs.</p>
<blockquote>
<p><strong>Note:</strong></p>
-<p>CUPS printer drivers necessarily depend on specific file formats and certain implementation details of the CUPS software. Please consult the Postscript and raster printer driver developer documentation on the <a href="https://openprinting.github.io/cups">OpenPrinting CUPS web site</a> for more information.</p>
+<p>CUPS printer drivers necessarily depend on specific file formats and certain implementation details of the CUPS software. Please consult the Postscript and raster printer driver developer documentation on the <a href="https://openprinting.github.io/cups">OpenPrinting CUPS website</a> for more information.</p>
</blockquote>
<h3 class="title" id="terms-used-in-this-document">Terms Used in This Document</h3>
<p>A <em>Destination</em> is a printer or print queue that accepts print jobs. A <em>Print Job</em> is a collection of one or more documents that are processed by a destination using options supplied when creating the job. A <em>Document</em> is a file (JPEG image, PDF file, etc.) suitable for printing. An <em>Option</em> controls some aspect of printing, such as the media used. <em>Media</em> is the sheets or roll that is printed on. An <em>Attribute</em> is an option encoded for an Internet Printing Protocol (IPP) request.</p>
<h3 class="title" id="compiling-programs-that-use-the-cups-api">Compiling Programs That Use the CUPS API</h3>
-<p>The CUPS libraries can be used from any C, C++, or Objective C program. The method of compiling against the libraries varies depending on the operating system and installation of CUPS. The following sections show how to compile a simple program (shown below) in two common environments.</p>
+<p>The CUPS libraries can be used from any C, C++, or Objective-C program. The method of compiling against the libraries varies depending on the operating system and installation of CUPS. The following sections show how to compile a simple program (shown below) in two common environments.</p>
<p>The following simple program lists the available destinations:</p>
<pre><code>#include <stdio.h>
#include <cups/cups.h>
<p><strong>Note:</strong></p>
<p>If we wanted to query the scheduler instead of the device, we would look up the "printer-uri-supported" option instead of the "device-uri" value.</p>
</blockquote>
-<p>The <code>ippAddString</code> function adds the "printer-uri" attribute the the IPP request. The <code>IPP_TAG_OPERATION</code> argument specifies that the attribute is part of the operation. The <code>IPP_TAG_URI</code> argument specifies that the value is a Universal Resource Identifier (URI) string. The <code>NULL</code> argument specifies there is no language (English, French, Japanese, etc.) associated with the string, and the <code>printer_uri</code> argument specifies the string value.</p>
+<p>The <code>ippAddString</code> function adds the "printer-uri" attribute to the IPP request. The <code>IPP_TAG_OPERATION</code> argument specifies that the attribute is part of the operation. The <code>IPP_TAG_URI</code> argument specifies that the value is a Universal Resource Identifier (URI) string. The <code>NULL</code> argument specifies there is no language (English, French, Japanese, etc.) associated with the string, and the <code>printer_uri</code> argument specifies the string value.</p>
<p>The IPP Get-Printer-Attributes request also supports an IPP attribute called "requested-attributes" that lists the attributes and values you are interested in. For example, the following code requests the printer state attributes:</p>
<pre><code>static const char * const requested_attributes[] =
{
<tr><th>cupsMediaType </th>
<td class="description">Media type code</td></tr>
<tr><th>cupsNumColors <span class="info"> CUPS 1.2/macOS 10.5 </span></th>
-<td class="description">Number of color compoents </td></tr>
+<td class="description">Number of color components </td></tr>
<tr><th>cupsPageSizeName[64] <span class="info"> CUPS 1.2/macOS 10.5 </span></th>
<td class="description">PageSize name </td></tr>
<tr><th>cupsPageSize[2] <span class="info"> CUPS 1.2/macOS 10.5 </span></th>
<h3><a name="HOW_DO_I_GET_HELP_">How Do I Get Help?</a></h3>
The
<b>OpenPrinting</b><b>CUPS</b>
-web site (<a href="https://openprinting.github.io/cups">https://openprinting.github.io/cups</a>) provides access to the
+website (<a href="https://openprinting.github.io/cups">https://openprinting.github.io/cups</a>) provides access to the
<i>cups</i>
and
<i>cups-devel</i>
<h4><a name="auth-info">auth-info (1setOf text(MAX))</a><span class="info">CUPS 1.3/macOS 10.5</span></h4>
-<p>The "auth-info" attribute specifies the authentication information to use when printing to a remote device. The order and content of each text value is specifed by the <a href="#auth-info-required">auth-info-required</a> printer attribute.
+<p>The "auth-info" attribute specifies the authentication information to use when printing to a remote device. The order and content of each text value is specified by the <a href="#auth-info-required">auth-info-required</a> printer attribute.
<h4><a name="job-cancel-after">job-cancel-after (integer(1:MAX))</a><span class='info'>CUPS 2.0</span></h4>
<P>Replace "ll_CC" with the locale name for your translation. Once you have created the archive, go to the <A HREF="https://github.com/apple/cups" TARGET="_blank">CUPS project page</A> and submit a bug report, attaching the translation to the report.</P>
-<P>Alternately, you can clone the CUPS project on Github, make your changes, and submit a pull request from the same link.</P>
+<P>Alternately, you can clone the CUPS project on GitHub, make your changes, and submit a pull request from the same link.</P>
<H2 CLASS="title" ID="DESKTOP">The Desktop File</H2>
switch (Orientation & 3)
{
- case 0 : /* Portait */
+ case 0 : /* Portrait */
break;
case 1 : /* Landscape */
.SS HOW DO I GET HELP?
The
.B OpenPrinting CUPS
-web site (https://openprinting.github.io/cups) provides access to the
+website (https://openprinting.github.io/cups) provides access to the
.I cups
and
.I cups-devel
//
-// Contraint class for the CUPS PPD Compiler.
+// Constraint class for the CUPS PPD Compiler.
//
// Copyright 2007-2009 by Apple Inc.
// Copyright 2002-2005 by Easy Software Products.
int // O - Next character in file
ppdcFile::peek()
{
- // Return immediaely if there is no open file...
+ // Return immediately if there is no open file...
if (!fp)
return (EOF);
d->model_name->value);
cupsFilePuts(fp, "{\n");
- // Write the copyright stings...
+ // Write the copyright strings...
for (st = (ppdcString *)d->copyright->first();
st;
st = (ppdcString *)d->copyright->next())
*po_files, // Message catalogs
*sizes, // Predefined media sizes
*vars; // Defined variables
- int cond_state, // Cummulative conditional state
+ int cond_state, // Cumulative conditional state
*cond_current, // Current #if state
cond_stack[101]; // #if state stack
if (ptr)
{
/*
- * Setup the country suffix...
+ * Set the country suffix...
*/
country[0] = '_';
cupsdSetEnv(const char *name, /* I - Name of variable */
const char *value) /* I - Value of variable */
{
- int i; /* Index into environent array */
+ int i; /* Index into environment array */
/*
...) /* I - Additional args as needed */
{
va_list ap; /* Pointer to additional args */
- char formatted[1024]; /* Formatted errror message */
+ char formatted[1024]; /* Formatted error message */
va_start(ap, message);
if (pid == 0)
{
- abort_message = "Stopping job because the sheduler could not execute "
+ abort_message = "Stopping job because the scheduler could not execute "
"the backend.";
goto abort_job;
{
int p; /* Port number */
cupsd_listener_t *lis; /* Current listening socket */
- char s[256]; /* String addresss */
+ char s[256]; /* String address */
const char *have_domain; /* Have a domain socket? */
static const char * const encryptions[] =
{ /* Encryption values */
cupsd_listener_t *lis; /* Listeners array */
http_addr_t addr; /* Address variable */
socklen_t addrlen; /* Length of address */
- char s[256]; /* String addresss */
+ char s[256]; /* String address */
addrlen = sizeof(addr);
/*
- * Notiification support structures...
+ * Notification support structures...
*/
typedef struct cupsd_event_s /**** Event structure ****/
HostNamesKey = NULL,
/* Host name key */
NetworkInterfaceKeyIPv4 = NULL,
- /* Netowrk interface key */
+ /* Network interface key */
NetworkInterfaceKeyIPv6 = NULL;
- /* Netowrk interface key */
+ /* Network interface key */
static cupsd_sysevent_t LastSysEvent; /* Last system event (for delayed sleep) */
static int NameChanged = 0;/* Did we get a 'name changed' event during sleep? */
static int PSToken = 0; /* Power source notifications */
result = !result;
/*
- * OK, now if the current logic is OR and this result is true, the this
+ * OK, now if the current logic is OR and this result is true, this
* rule set is true. If the current logic is AND and this result is false,
- * the the rule set is false...
+ * the rule set is false...
*/
DEBUG_printf(("5mime_check_rules: result of test %p (MIME_MAGIC_%s) is %d",
#!/bin/sh
#
-# Script to copy the CUPS online help files to a CUPS web site subdirectory.
+# Script to copy the CUPS online help files to a CUPS website subdirectory.
# The normal HTML headers are replaced by Jekyll headers.
#
# Usage: scripts/copydocs DESTINATION-DIR
duplex = 0, /* Duplex mode */
ppm = 10, /* Pages per minute for mono */
ppm_color = 0, /* Pages per minute for color */
- web_forms = 1; /* Enable web site forms? */
+ web_forms = 1; /* Enable website forms? */
ipp_t *attrs = NULL; /* Printer attributes */
char directory[1024] = ""; /* Spool directory */
cups_array_t *docformats = NULL; /* Supported formats */
}
/*
- * Close the conection to the client and return...
+ * Close the connection to the client and return...
*/
delete_client(client);
static void
respond_unsupported(
ippeve_client_t *client, /* I - Client */
- ipp_attribute_t *attr) /* I - Atribute */
+ ipp_attribute_t *attr) /* I - Attribute */
{
ipp_attribute_t *temp; /* Copy of attribute */
*/
static void
-dsc_page(int page) /* I - Page numebr (1-based) */
+dsc_page(int page) /* I - Page number (1-based) */
{
printf("%%%%Page: (%d) %d\n", page, page);
float page_left, /* Left margin */
page_top, /* Top margin */
page_width, /* Page width in points */
- page_height, /* Page heigth in points */
+ page_height, /* Page height in points */
x_factor, /* X image scaling factor */
y_factor, /* Y image scaling factor */
page_scaling; /* Image scaling factor */
*
* The current implementation locally-decodes the raster data and then writes
* whole, non-blank lines as 1-line high images with base-85 encoding, resulting
- * in between 10 and 20 times larger output. A alternate implementation (if it
+ * in between 10 and 20 times larger output. An alternate implementation (if it
* is deemed necessary) would be to implement a PostScript decode procedure that
* handles the modified packbits decompression so that we just have the base-85
* encoding overhead (25%). Furthermore, Level 3 PostScript printers also
/*
- * 'print_ippserver_attr()' - Print a attribute suitable for use by ippserver.
+ * 'print_ippserver_attr()' - Print an attribute suitable for use by ippserver.
*/
static void