Skip to content

Commit 17cba7c

Browse files
urban-adeiningermgieseki
authored andcommitted
Fix typos
1 parent 15e6e5e commit 17cba7c

18 files changed

+25
-25
lines changed

NEWS

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ dvisvgm-3.0 (2022-10-16)
142142
newly implemented library for embedding TTF/WOFF data into the SVG files
143143
- added option --embed-bitmaps to embed bitmaps into the generated SVG files
144144
instead of referencing the external files
145-
- exteded option --tmpdir to optionally suppress the creation of uniquely
145+
- extended option --tmpdir to optionally suppress the creation of uniquely
146146
named subfolders
147147
- added filters :even and :odd to option --page to limit the given page ranges
148148
to even and odd page numbers respectively
@@ -286,7 +286,7 @@ dvisvgm-2.8 (2019-10-25)
286286
- added support for Ghostscript 9.50
287287
- added support for elliptical arc segments in graphics paths
288288
- added support for CMap operator 'begincidchar' (patch by Akira Kakuto)
289-
- added suport for experimental 128-bit XXH3 hashes
289+
- added support for experimental 128-bit XXH3 hashes
290290
- extended optimizer module 'simplify-transform' to incorporate translation and
291291
scaling components into positional and size attributes
292292
- replaced CRC32 checksums used in cache files with XXH32 hashes
@@ -421,7 +421,7 @@ dvisvgm-2.3.5 (2018-03-23)
421421
- fixed warning printed when using Ghostscript 9.23
422422

423423
dvisvgm-2.3.4 (2018-03-14)
424-
- fixed error message printed when addding a single '-' on the command-line
424+
- fixed error message printed when adding a single '-' on the command-line
425425
- added missing data file that lead to failing tests (GH bug #87)
426426
- updated brotli library to version 1.0.3
427427
- some code refactorings

doc/dvisvgm.txt.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ If this option is given, dvisvgm does not expect a DVI but a PDF input file, and
628628
it to SVG. Similar to the conversion of DVI files, only the first page is processed by default.
629629
Option *--page* can be used to select different pages, page ranges, and/or page sequences.
630630
+
631-
If a Ghostcript version < 10.01.0 is found, dvisvgm uses Ghostscript to process the PDF file. In
631+
If a Ghostscript version < 10.01.0 is found, dvisvgm uses Ghostscript to process the PDF file. In
632632
this case, the conversion is realized by creating a single 'pdffile' special command which is
633633
forwarded to dvisvgm's PostScript special handler. Therefore, this option is only available if
634634
dvisvgm was built with PostScript support enabled, and requires Ghostscript to be accessible.
@@ -882,7 +882,7 @@ Character sequence *{?nl}* expands to a newline character. Finally, construction
882882
enable the evaluation of mathematical expressions which may consist of basic arithmetic operations including
883883
modulo. As above, the variables 'x' and 'y' represent the current coordinates.
884884
Invalid operations, like divisions by zero, lead to an error message on the console.
885-
Example: +{?(-10*(x+2y)-5)}+ is a valid expresssion and expands to the corresponding numeric string.
885+
Example: +{?(-10*(x+2y)-5)}+ is a valid expression and expands to the corresponding numeric string.
886886
887887
*dvisvgm:rawdef* 'text':::
888888
This command is similar to *dvisvgm:raw*, but puts the XML nodes into the <defs> section of the SVG document
@@ -1028,7 +1028,7 @@ https://ctan.org/pkg/pdftex[pdfTeX user manual].
10281028
The famous DVI driver https://www.tug.org/texinfohtml/dvips.html['dvips'] introduced its own set of specials
10291029
in order to embed PostScript code into DVI files, which greatly improves the capabilities of DVI documents.
10301030
One aim of dvisvgm is to completely evaluate all PostScript fragments and to convert as many of them as possible
1031-
to SVG. In contrast to dvips, dvisvgm uses floating point arithmetics to compute the precise position of each
1031+
to SVG. In contrast to dvips, dvisvgm uses floating point arithmetic to compute the precise position of each
10321032
graphic element, i.e. it doesn't round the coordinates. Therefore, the relative locations of the graphic elements
10331033
may slightly differ from those computed by dvips.
10341034
+

src/BgColorSpecialHandler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ bool BgColorSpecialHandler::process (const string&, istream&, SpecialActions&) {
4747

4848

4949
void BgColorSpecialHandler::dviBeginPage (unsigned pageno, SpecialActions &actions) {
50-
// Ensure that the background color of the preceeding page is set as the
50+
// Ensure that the background color of the preceding page is set as the
5151
// default background color of the current page because this special affects
5252
// the current and all subsequent pages until the next change.
5353
// See the documentation of the color package, section 3.5.

src/DVIToSVG.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ static vector<string> extract_prefixes (const char *ignorelist) {
401401
* the corresponding prefixes can be given separated by non alpha-numeric characters,
402402
* e.g. "color, ps, em" or "color: ps em" etc.
403403
* A single "*" in the ignore list disables all specials.
404-
* @param[in] ignorelist list of hanlder names to ignore
404+
* @param[in] ignorelist list of handler names to ignore
405405
* @param[in] pswarning if true, shows warning about disabled PS support
406406
* @return the SpecialManager that handles special statements */
407407
void DVIToSVG::setProcessSpecials (const char *ignorelist, bool pswarning) {

src/Doxyfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,7 +1121,7 @@ HTML_STYLESHEET =
11211121
# defined cascading style sheet that is included after the standard style sheets
11221122
# created by doxygen. Using this option one can overrule certain style aspects.
11231123
# This is preferred over using HTML_STYLESHEET since it does not replace the
1124-
# standard style sheet and is therefor more robust against future updates.
1124+
# standard style sheet and is therefore more robust against future updates.
11251125
# Doxygen will copy the style sheet file to the output directory. For an example
11261126
# see the documentation.
11271127
# This tag requires that the tag GENERATE_HTML is set to YES.
@@ -2005,7 +2005,7 @@ PREDEFINED =
20052005
EXPAND_AS_DEFINED =
20062006

20072007
# If the SKIP_FUNCTION_MACROS tag is set to YES then doxygen's preprocessor will
2008-
# remove all refrences to function-like macros that are alone on a line, have an
2008+
# remove all references to function-like macros that are alone on a line, have an
20092009
# all uppercase name, and do not end with a semicolon. Such function macros are
20102010
# typically used for boiler-plate code, and will confuse the parser if not
20112011
# removed.

src/Font.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ uint32_t Font::unicode (uint32_t c) const {
4343
}
4444

4545

46-
/** Returns the encoding object of this font which is asigned in a map file.
46+
/** Returns the encoding object of this font which is assigned in a map file.
4747
* If there's no encoding assigned, the function returns 0. */
4848
const FontEncoding* Font::encoding () const {
4949
if (const FontMap::Entry *entry = fontMapEntry())
@@ -200,7 +200,7 @@ bool PhysicalFont::isCIDFont () const {
200200
}
201201

202202

203-
/** Retrieve the IDs of all charachter maps available in the font file.
203+
/** Retrieve the IDs of all character maps available in the font file.
204204
* @param[out] charMapIDs IDs of the found character maps
205205
* @return number of found character maps */
206206
int PhysicalFont::collectCharMapIDs (std::vector<CharMapID> &charMapIDs) const {

src/Font.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ class TFMFont : public virtual Font {
192192
private:
193193
mutable std::unique_ptr<FontMetrics> _metrics;
194194
std::string _fontname;
195-
uint32_t _checksum; ///< cheksum to be compared with TFM checksum
195+
uint32_t _checksum; ///< checksum to be compared with TFM checksum
196196
double _dsize; ///< design size in PS point units
197197
double _ssize; ///< scaled size in PS point units
198198
};

src/FontStyle.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ struct FontStyle {
2525
FontStyle () =default;
2626
FontStyle (float b, float e, float s) : bold(b), extend(e), slant(s) {}
2727
double bold=0; ///< stroke width in pt used to draw the glyph outlines
28-
double extend=1; ///< factor to strech/shrink the glyphs horizontally
28+
double extend=1; ///< factor to stretch/shrink the glyphs horizontally
2929
double slant=0; ///< horizontal slanting/skewing value (= tan(phi))
3030
};
3131

src/InputReader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ string InputReader::getLine () {
371371

372372
/** Parses a sequence of key-value pairs of the form KEY=VALUE or KEY="VALUE".
373373
* If parameter 'requireValues' is false, attributes may also consist of a key only.
374-
* @param[out] attr the scanned atributes
374+
* @param[out] attr the scanned attributes
375375
* @param[in] requireValues true if all attributes require a value
376376
* @param[in] quotechars recognized quote characters used to enclose the attribute values
377377
* @return number of attributes scanned */

src/PDFParser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ static PDFObjectRef parse_object_ref (vector<PDFObject> &objects) {
308308
}
309309

310310

311-
/** Replaces all occurences of "#XX" (XX are two hex digits) with the corresponding character. */
311+
/** Replaces all occurrences of "#XX" (XX are two hex digits) with the corresponding character. */
312312
static string& subst_numeric_chars (string &str) {
313313
for (auto pos=str.find('#'); pos != string::npos; pos=str.find('#', pos+1)) {
314314
if (pos > str.length()-3)

0 commit comments

Comments
 (0)