diff options
author | Stefan Weil <sw@weilnetz.de> | 2018-02-24 19:04:05 +0300 |
---|---|---|
committer | Stefan Weil <sw@weilnetz.de> | 2018-02-24 21:54:20 +0300 |
commit | fc1fc6bd406ef2797017eb3ab5048bed497886b7 (patch) | |
tree | b1666f5a2c580d47b68bc9582dbef64130d8d6dd | |
parent | 41a3989b52d468c648f1a2de97bfa77ae472c9dc (diff) |
Replace non-ASCII characters
Signed-off-by: Stefan Weil <sw@weilnetz.de>
-rw-r--r-- | src/cmscgats.c | 4 | ||||
-rw-r--r-- | src/cmstypes.c | 18 | ||||
-rw-r--r-- | src/cmsvirt.c | 16 | ||||
-rw-r--r-- | utils/jpgicc/jpgicc.c | 6 | ||||
-rw-r--r-- | utils/samples/itufax.c | 6 |
5 files changed, 25 insertions, 25 deletions
diff --git a/src/cmscgats.c b/src/cmscgats.c index 7df5bbc..e5ad269 100644 --- a/src/cmscgats.c +++ b/src/cmscgats.c @@ -256,7 +256,7 @@ static PROPERTY PredefinedProperties[] = { // needed. {"SAMPLE_BACKING", WRITE_STRINGIFY}, // Identifies the backing material used behind the sample during - // measurement. Allowed values are “black”, “white”, or {"na". + // measurement. Allowed values are "black", "white", or {"na". {"CHISQ_DOF", WRITE_STRINGIFY}, // Degrees of freedom associated with the Chi squared statistic // below properties are new in recent specs: @@ -271,7 +271,7 @@ static PROPERTY PredefinedProperties[] = { // denote the use of filters such as none, D65, Red, Green or Blue. {"POLARIZATION", WRITE_STRINGIFY}, // Identifies the use of a physical polarization filter during measurement. Allowed - // values are {"yes”, “white”, “none” or “na”. + // values are {"yes", "white", "none" or "na". {"WEIGHTING_FUNCTION", WRITE_PAIR}, // Indicates such functions as: the CIE standard observer functions used in the // calculation of various data parameters (2 degree and 10 degree), CIE standard diff --git a/src/cmstypes.c b/src/cmstypes.c index 6cb8d4b..cf765e3 100644 --- a/src/cmstypes.c +++ b/src/cmstypes.c @@ -974,7 +974,7 @@ cmsBool Type_Text_Description_Write(struct _cms_typehandler_struct* self, cmsIO len = cmsMLUgetASCII(mlu, cmsNoLanguage, cmsNoCountry, NULL, 0); // Specification ICC.1:2001-04 (v2.4.0): It has been found that textDescriptionType can contain misaligned data - //(see clause 4.1 for the definition of “aligned”). Because the Unicode language + //(see clause 4.1 for the definition of 'aligned'). Because the Unicode language // code and Unicode count immediately follow the ASCII description, their // alignment is not correct if the ASCII count is not a multiple of four. The // ScriptCode code is misaligned when the ASCII count is odd. Profile reading and @@ -3091,10 +3091,10 @@ void Type_ColorantTable_Free(struct _cms_typehandler_struct* self, void* Ptr) //The namedColor2Type is a count value and array of structures that provide color //coordinates for 7-bit ASCII color names. For each named color, a PCS and optional //device representation of the color are given. Both representations are 16-bit values. -//The device representation corresponds to the header’s “color space of data” field. -//This representation should be consistent with the “number of device components” +//The device representation corresponds to the header's 'color space of data' field. +//This representation should be consistent with the 'number of device components' //field in the namedColor2Type. If this field is 0, device coordinates are not provided. -//The PCS representation corresponds to the header’s PCS field. The PCS representation +//The PCS representation corresponds to the header's PCS field. The PCS representation //is always provided. Color names are fixed-length, 32-byte fields including null //termination. In order to maintain maximum portability, it is strongly recommended //that special characters of the 7-bit ASCII set not be used. @@ -3839,7 +3839,7 @@ void Type_Screening_Free(struct _cms_typehandler_struct* self, void* Ptr) // ******************************************************************************** // //This type represents a set of viewing condition parameters including: -//CIE ’absolute’ illuminant white point tristimulus values and CIE ’absolute’ +//CIE 'absolute' illuminant white point tristimulus values and CIE 'absolute' //surround tristimulus values. static @@ -3926,7 +3926,7 @@ void GenericMPEfree(struct _cms_typehandler_struct* self, void *Ptr) } // Each curve is stored in one or more curve segments, with break-points specified between curve segments. -// The first curve segment always starts at –Infinity, and the last curve segment always ends at +Infinity. The +// The first curve segment always starts at -Infinity, and the last curve segment always ends at +Infinity. The // first and last curve segments shall be specified in terms of a formula, whereas the other segments shall be // specified either in terms of a formula, or by a sampled curve. @@ -4207,7 +4207,7 @@ cmsBool Type_MPEcurve_Write(struct _cms_typehandler_struct* self, cmsIOHANDLER* // The matrix is organized as an array of PxQ+Q elements, where P is the number of input channels to the // matrix, and Q is the number of output channels. The matrix elements are each float32Numbers. The array // is organized as follows: -// array = [e11, e12, …, e1P, e21, e22, …, e2P, …, eQ1, eQ2, …, eQP, e1, e2, …, eQ] +// array = [e11, e12, ..., e1P, e21, e22, ..., e2P, ..., eQ1, eQ2, ..., eQP, e1, e2, ..., eQ] static void *Type_MPEmatrix_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsUInt32Number* nItems, cmsUInt32Number SizeOfTag) @@ -4730,10 +4730,10 @@ void *Type_vcgt_Read(struct _cms_typehandler_struct* self, // Y = cX + f | X < d // vcgt formula is: - // Y = (Max – Min) * (X ^ Gamma) + Min + // Y = (Max - Min) * (X ^ Gamma) + Min // So, the translation is - // a = (Max – Min) ^ ( 1 / Gamma) + // a = (Max - Min) ^ ( 1 / Gamma) // e = Min // b=c=d=f=0 diff --git a/src/cmsvirt.c b/src/cmsvirt.c index 19e0caf..935effc 100644 --- a/src/cmsvirt.c +++ b/src/cmsvirt.c @@ -612,18 +612,18 @@ cmsHPROFILE CMSEXPORT cmsCreateXYZProfile(void) //sRGB Curves are defined by: // -//If R’sRGB,G’sRGB, B’sRGB < 0.04045 +//If R'sRGB,G'sRGB, B'sRGB < 0.04045 // -// R = R’sRGB / 12.92 -// G = G’sRGB / 12.92 -// B = B’sRGB / 12.92 +// R = R'sRGB / 12.92 +// G = G'sRGB / 12.92 +// B = B'sRGB / 12.92 // // -//else if R’sRGB,G’sRGB, B’sRGB >= 0.04045 +//else if R'sRGB,G'sRGB, B'sRGB >= 0.04045 // -// R = ((R’sRGB + 0.055) / 1.055)^2.4 -// G = ((G’sRGB + 0.055) / 1.055)^2.4 -// B = ((B’sRGB + 0.055) / 1.055)^2.4 +// R = ((R'sRGB + 0.055) / 1.055)^2.4 +// G = ((G'sRGB + 0.055) / 1.055)^2.4 +// B = ((B'sRGB + 0.055) / 1.055)^2.4 static cmsToneCurve* Build_sRGBGamma(cmsContext ContextID) diff --git a/utils/jpgicc/jpgicc.c b/utils/jpgicc/jpgicc.c index e6311f2..93ac7f5 100644 --- a/utils/jpgicc/jpgicc.c +++ b/utils/jpgicc/jpgicc.c @@ -105,7 +105,7 @@ in the case of future revision (for example, 1994). Spatial Resolution: (Two octets) Lightness pixel density in pels/25.4 mm. The basic value is 200. Allowed values are 100, 200, 300, 400, 600 and 1200 pels/25.4 mm, with square (or equivalent) pels. -NOTE – The functional equivalence of inch-based and mm-based resolutions is maintained. For example, the 200 × 200 +NOTE - The functional equivalence of inch-based and mm-based resolutions is maintained. For example, the 200 x 200 */ static @@ -142,8 +142,8 @@ void SetITUFax(j_compress_ptr cinfo) // the default range for ITU/T.42 -- See RFC 2301, section 6.2.3 for details // L* = [0, 100] -// a* = [–85, 85] -// b* = [–75, 125] +// a* = [-85, 85] +// b* = [-75, 125] // These functions does convert the encoding of ITUFAX to floating point diff --git a/utils/samples/itufax.c b/utils/samples/itufax.c index 79c7c44..72651c8 100644 --- a/utils/samples/itufax.c +++ b/utils/samples/itufax.c @@ -29,9 +29,9 @@ // the default range for ITU/T.42 -- See RFC 2301, section 6.2.3 for details -// L* = [0, 100] -// a* = [–85, 85] -// b* = [–75, 125] +// L* = [0, 100] +// a* = [-85, 85] +// b* = [-75, 125] // These functions does convert the encoding of ITUFAX to floating point |