Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
deining committed Jan 10, 2025
1 parent 15e6e5e commit b58e335
Show file tree
Hide file tree
Showing 18 changed files with 25 additions and 25 deletions.
6 changes: 3 additions & 3 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ dvisvgm-3.0 (2022-10-16)
newly implemented library for embedding TTF/WOFF data into the SVG files
- added option --embed-bitmaps to embed bitmaps into the generated SVG files
instead of referencing the external files
- exteded option --tmpdir to optionally suppress the creation of uniquely
- extended option --tmpdir to optionally suppress the creation of uniquely
named subfolders
- added filters :even and :odd to option --page to limit the given page ranges
to even and odd page numbers respectively
Expand Down Expand Up @@ -286,7 +286,7 @@ dvisvgm-2.8 (2019-10-25)
- added support for Ghostscript 9.50
- added support for elliptical arc segments in graphics paths
- added support for CMap operator 'begincidchar' (patch by Akira Kakuto)
- added suport for experimental 128-bit XXH3 hashes
- added support for experimental 128-bit XXH3 hashes
- extended optimizer module 'simplify-transform' to incorporate translation and
scaling components into positional and size attributes
- replaced CRC32 checksums used in cache files with XXH32 hashes
Expand Down Expand Up @@ -421,7 +421,7 @@ dvisvgm-2.3.5 (2018-03-23)
- fixed warning printed when using Ghostscript 9.23

dvisvgm-2.3.4 (2018-03-14)
- fixed error message printed when addding a single '-' on the command-line
- fixed error message printed when adding a single '-' on the command-line
- added missing data file that lead to failing tests (GH bug #87)
- updated brotli library to version 1.0.3
- some code refactorings
Expand Down
6 changes: 3 additions & 3 deletions doc/dvisvgm.txt.in
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ If this option is given, dvisvgm does not expect a DVI but a PDF input file, and
it to SVG. Similar to the conversion of DVI files, only the first page is processed by default.
Option *--page* can be used to select different pages, page ranges, and/or page sequences.
+
If a Ghostcript version < 10.01.0 is found, dvisvgm uses Ghostscript to process the PDF file. In
If a Ghostscript version < 10.01.0 is found, dvisvgm uses Ghostscript to process the PDF file. In
this case, the conversion is realized by creating a single 'pdffile' special command which is
forwarded to dvisvgm's PostScript special handler. Therefore, this option is only available if
dvisvgm was built with PostScript support enabled, and requires Ghostscript to be accessible.
Expand Down Expand Up @@ -882,7 +882,7 @@ Character sequence *{?nl}* expands to a newline character. Finally, construction
enable the evaluation of mathematical expressions which may consist of basic arithmetic operations including
modulo. As above, the variables 'x' and 'y' represent the current coordinates.
Invalid operations, like divisions by zero, lead to an error message on the console.
Example: +{?(-10*(x+2y)-5)}+ is a valid expresssion and expands to the corresponding numeric string.
Example: +{?(-10*(x+2y)-5)}+ is a valid expression and expands to the corresponding numeric string.
*dvisvgm:rawdef* 'text':::
This command is similar to *dvisvgm:raw*, but puts the XML nodes into the <defs> section of the SVG document
Expand Down Expand Up @@ -1028,7 +1028,7 @@ https://ctan.org/pkg/pdftex[pdfTeX user manual].
The famous DVI driver https://www.tug.org/texinfohtml/dvips.html['dvips'] introduced its own set of specials
in order to embed PostScript code into DVI files, which greatly improves the capabilities of DVI documents.
One aim of dvisvgm is to completely evaluate all PostScript fragments and to convert as many of them as possible
to SVG. In contrast to dvips, dvisvgm uses floating point arithmetics to compute the precise position of each
to SVG. In contrast to dvips, dvisvgm uses floating point arithmetic to compute the precise position of each
graphic element, i.e. it doesn't round the coordinates. Therefore, the relative locations of the graphic elements
may slightly differ from those computed by dvips.
+
Expand Down
2 changes: 1 addition & 1 deletion src/BgColorSpecialHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ bool BgColorSpecialHandler::process (const string&, istream&, SpecialActions&) {


void BgColorSpecialHandler::dviBeginPage (unsigned pageno, SpecialActions &actions) {
// Ensure that the background color of the preceeding page is set as the
// Ensure that the background color of the preceding page is set as the
// default background color of the current page because this special affects
// the current and all subsequent pages until the next change.
// See the documentation of the color package, section 3.5.
Expand Down
2 changes: 1 addition & 1 deletion src/DVIToSVG.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ static vector<string> extract_prefixes (const char *ignorelist) {
* the corresponding prefixes can be given separated by non alpha-numeric characters,
* e.g. "color, ps, em" or "color: ps em" etc.
* A single "*" in the ignore list disables all specials.
* @param[in] ignorelist list of hanlder names to ignore
* @param[in] ignorelist list of handler names to ignore
* @param[in] pswarning if true, shows warning about disabled PS support
* @return the SpecialManager that handles special statements */
void DVIToSVG::setProcessSpecials (const char *ignorelist, bool pswarning) {
Expand Down
4 changes: 2 additions & 2 deletions src/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -1121,7 +1121,7 @@ HTML_STYLESHEET =
# defined cascading style sheet that is included after the standard style sheets
# created by doxygen. Using this option one can overrule certain style aspects.
# This is preferred over using HTML_STYLESHEET since it does not replace the
# standard style sheet and is therefor more robust against future updates.
# standard style sheet and is therefore more robust against future updates.
# Doxygen will copy the style sheet file to the output directory. For an example
# see the documentation.
# This tag requires that the tag GENERATE_HTML is set to YES.
Expand Down Expand Up @@ -2005,7 +2005,7 @@ PREDEFINED =
EXPAND_AS_DEFINED =

# If the SKIP_FUNCTION_MACROS tag is set to YES then doxygen's preprocessor will
# remove all refrences to function-like macros that are alone on a line, have an
# remove all references to function-like macros that are alone on a line, have an
# all uppercase name, and do not end with a semicolon. Such function macros are
# typically used for boiler-plate code, and will confuse the parser if not
# removed.
Expand Down
4 changes: 2 additions & 2 deletions src/Font.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ uint32_t Font::unicode (uint32_t c) const {
}


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


/** Retrieve the IDs of all charachter maps available in the font file.
/** Retrieve the IDs of all character maps available in the font file.
* @param[out] charMapIDs IDs of the found character maps
* @return number of found character maps */
int PhysicalFont::collectCharMapIDs (std::vector<CharMapID> &charMapIDs) const {
Expand Down
2 changes: 1 addition & 1 deletion src/Font.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ class TFMFont : public virtual Font {
private:
mutable std::unique_ptr<FontMetrics> _metrics;
std::string _fontname;
uint32_t _checksum; ///< cheksum to be compared with TFM checksum
uint32_t _checksum; ///< checksum to be compared with TFM checksum
double _dsize; ///< design size in PS point units
double _ssize; ///< scaled size in PS point units
};
Expand Down
2 changes: 1 addition & 1 deletion src/FontStyle.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ struct FontStyle {
FontStyle () =default;
FontStyle (float b, float e, float s) : bold(b), extend(e), slant(s) {}
double bold=0; ///< stroke width in pt used to draw the glyph outlines
double extend=1; ///< factor to strech/shrink the glyphs horizontally
double extend=1; ///< factor to stretch/shrink the glyphs horizontally
double slant=0; ///< horizontal slanting/skewing value (= tan(phi))
};

Expand Down
2 changes: 1 addition & 1 deletion src/InputReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ string InputReader::getLine () {

/** Parses a sequence of key-value pairs of the form KEY=VALUE or KEY="VALUE".
* If parameter 'requireValues' is false, attributes may also consist of a key only.
* @param[out] attr the scanned atributes
* @param[out] attr the scanned attributes
* @param[in] requireValues true if all attributes require a value
* @param[in] quotechars recognized quote characters used to enclose the attribute values
* @return number of attributes scanned */
Expand Down
2 changes: 1 addition & 1 deletion src/PDFParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ static PDFObjectRef parse_object_ref (vector<PDFObject> &objects) {
}


/** Replaces all occurences of "#XX" (XX are two hex digits) with the corresponding character. */
/** Replaces all occurrences of "#XX" (XX are two hex digits) with the corresponding character. */
static string& subst_numeric_chars (string &str) {
for (auto pos=str.find('#'); pos != string::npos; pos=str.find('#', pos+1)) {
if (pos > str.length()-3)
Expand Down
2 changes: 1 addition & 1 deletion src/PathClipper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ inline DPair to_DPair (const IntPoint &p) {
}


/** In order to flatten a curved path, all path segements are processed sequentially.
/** In order to flatten a curved path, all path segments are processed sequentially.
* Depending on the type of the segment, one of the methods provided by this class
* is called. */
class FlattenActions : public CurvedPath::IterationActions {
Expand Down
2 changes: 1 addition & 1 deletion src/SpecialActions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ inline string get_color_string (const SpecialActions &actions, Color (SpecialAct

/** Replaces constants of the form {?name} by their corresponding value.
* @param[in,out] str text to expand
* @param[in] actions interfcae to the world outside the special handler */
* @param[in] actions interface to the world outside the special handler */
static void expand_constants (string &str, SpecialActions &actions) {
bool repl_bbox = true;
while (repl_bbox) {
Expand Down
2 changes: 1 addition & 1 deletion src/TFM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ void TFM::readTables (StreamReader &reader, int nw, int nh, int nd, int ni) {

/** Read the values from the param section of the TFM file.
* @param[in] reader read from this stream
* @param[in] np number of paramaters to read */
* @param[in] np number of parameters to read */
void TFM::readParameters (const StreamReader &reader, int np) {
_params.resize(7);
np = min(np, 7);
Expand Down
2 changes: 1 addition & 1 deletion src/TensorProductPatch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ void TensorProductPatch::setFirstMatrixColumn (DPair source[4][4], int col, bool
* 1 12 15 8
* 2 13 14 7
* 3 4 5 6
* If the edge flag is 1,2, or 3, the points of the first matrix collumn
* If the edge flag is 1,2, or 3, the points of the first matrix column
* are omitted, and taken from a reference patch instead.
* @param[in] points the control points in "spiral" order as described in the PS reference, p. 286
* @param[in] edgeflag defines how to connect this patch with another one
Expand Down
2 changes: 1 addition & 1 deletion src/TpicSpecialHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ void TpicSpecialHandler::drawLines (double ddist, SpecialActions &actions) {
* from the first point to the mid-point of the first line. The spline ends
* with a straight line from the mid-point of the last line to the last point.
* If ddist=0, the spline is stroked solid. Otherwise ddist denotes the length
* of the dashes and the gaps inbetween.
* of the dashes and the gaps in between.
* @param[in] ddist length of dashes and gaps
* @param[in] actions object providing the actions that can be performed by the SpecialHandler */
void TpicSpecialHandler::drawSplines (double ddist, SpecialActions &actions) {
Expand Down
2 changes: 1 addition & 1 deletion src/iapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ GSDLLEXPORT int GSDLLAPI gsapi_init_with_args(void *instance,
* The gsapi_run_* functions are like gs_main_run_* except
* that the error_object is omitted.
* If these functions return <= -100, either quit or a fatal
* error has occured. You then call gsapi_exit() next.
* error has occurred. You then call gsapi_exit() next.
* The only exception is gsapi_run_string_continue()
* which will return e_NeedInput if all is well.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/ttf/OS2Table.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ static int unicode_range_bit (uint32_t codepoint) {
{0x031A0, 0x031BF, 51}, // Bopomofo Extended
{0x031F0, 0x031FF, 50}, // Katakana Phonetic Extensions
{0x03200, 0x032FF, 54}, // Enclosed CJK Letters and Months
{0x03300, 0x033FF, 55}, // CJK compatability
{0x03300, 0x033FF, 55}, // CJK compatibility
{0x03400, 0x04DBF, 59}, // CJK Unified Ideographs Extension A
{0x04E00, 0x09FFF, 59}, // CJK Unified Ideographs
{0x0A500, 0x0A62B, 12}, // Vai
Expand Down
4 changes: 2 additions & 2 deletions src/utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ string util::normalize_space (string str, const char *ws) {
}


/** Replaces all occurences of a substring with another string.
/** Replaces all occurrences of a substring with another string.
* @param[in] str string to search through
* @param[in] find string to look for
* @param[in] repl replacement for "find"
Expand All @@ -146,7 +146,7 @@ string util::replace (string str, const string &find, const string &repl) {
}


/** Splits a string at all occurences of a given separator string and
/** Splits a string at all occurrences of a given separator string and
* returns the substrings.
* @param[in] str string to split
* @param[in] sep separator to look for
Expand Down

0 comments on commit b58e335

Please sign in to comment.