Skip to content

Commit

Permalink
Fix various typos (lxqt#470)
Browse files Browse the repository at this point in the history
* Fix various typos

Found via `codespell -q 3 -S *.ts -L ba,serie`

* Capital I

Co-authored-by: Chih-Hsuan Yen <[email protected]>
  • Loading branch information
luzpaz and yan12125 authored May 13, 2022
1 parent 5cb357f commit 57837cd
Show file tree
Hide file tree
Showing 42 changed files with 67 additions and 67 deletions.
10 changes: 5 additions & 5 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ qtermwidget-0.14.0 / 2019-01-25
- Implemented terminal margins
* Improved cmake scripting
- Set cmake_minimum_required to 3.1.0
- Removed locale compile definitons
- Removed locale compile definitions
- Removed QUIET from find_package
* Moved translations from lxqt-l10n back to qtermwidget
- Removed obsolete translation fuctionality
- Removed obsolete translation functionality
- Added translation promo in README.md
* Translation updates

Expand All @@ -140,7 +140,7 @@ qtermwidget-0.9.0 / 2018-05-21
* Refactor and fixes Python binding
* kptyprocess: Try to terminate the shell process
* New color scheme: Ubuntu inspired
* Fixed some github pathes in uris
* Fixed some github paths in uris
* Add a comment for potential future breakage
* Use wstring in TerminalCharacterDecoder for UCS-4 compatibility
* Support UTF-32 characters correctly
Expand All @@ -159,7 +159,7 @@ qtermwidget-0.9.0 / 2018-05-21
* Add an example for remote terminal
* Makes the use of libutempter optional
* Fix behavior of scroll up (SU)
* Install cmake files in LIBDIR as they are architecture dependend
* Install cmake files in LIBDIR as they are architecture dependent
* Check if utempter.h header exists (mainly for FreeBSD)
* Need lxqt-build-tools 0.4.0

Expand Down Expand Up @@ -241,7 +241,7 @@ qtermwidget-0.7.0 / 2016-09-24
* cmake support changes
* Make addCustomColorSchemeDir() static and check for duplicates
* Address review comments
* Allow app to add custom color sheme locations
* Allow app to add custom color scheme locations
* Avoid enums duplication
* Add support for setting keyboard cursor shape
* Remove assignment to self
Expand Down
2 changes: 1 addition & 1 deletion docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Since an image may not be totally dark or light, you might want to use a translu
As a result, the background image is mixed with the background color to improve readability.
Opaque images can also be converted to translucent ones with a few steps.

A common usage is an effect similiar to previous qtermwidget versions or other terminal emulators.
A common usage is an effect similar to previous qtermwidget versions or other terminal emulators.
To achieve that, you can convert the background image to a translucent one with the transparency level matching the original terminal transparency.
For example, if the original terminal transparency of qtermwidget was 25% (or 75% in some other terminal emulators), a converted image with transparency 25% will work as usual.
The conversion can be done via ImageMagick, GraphicsMagick, GIMP or Krita.
Expand Down
4 changes: 2 additions & 2 deletions examples/cpp/RemoteTerm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ A simple example showing how to use QTermWidget to control and display a remote

To run this example, you should:
1. Build client-side program. In my PC, I use 'apt-get' to install the QTermWidget library.
2. Start the shell-srv.py with specific paramenters.This will expose a shell via socket.
3. Start the client-side program from commandline with specific paramenters.
2. Start the shell-srv.py with specific parameters.This will expose a shell via socket.
3. Start the client-side program from commandline with specific parameters.

Now you will get your own remote terminal work with QTermWidget.
4 changes: 2 additions & 2 deletions lib/BlockArray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ void BlockArray::decreaseBuffer(size_t newsize)
return;
}

// The Block constructor could do somthing in future...
// The Block constructor could do something in future...
char * buffer1 = new char[blocksize];

FILE * fion = fdopen(dup(ion), "w+b");
Expand Down Expand Up @@ -319,7 +319,7 @@ void BlockArray::increaseBuffer()
return;
}

// The Block constructor could do somthing in future...
// The Block constructor could do something in future...
char * buffer1 = new char[blocksize];
char * buffer2 = new char[blocksize];

Expand Down
4 changes: 2 additions & 2 deletions lib/BlockArray.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class BlockArray {
* adds the Block at the end of history.
* This may drop other blocks.
*
* The ownership on the block is transfered.
* The ownership on the block is transferred.
* An unique index number is returned for accessing
* it later (if not yet dropped then)
*
Expand All @@ -73,7 +73,7 @@ class BlockArray {
* 0 if the block isn't available any more.
*
* The returned block is strictly readonly as only
* maped in memory - and will be invalid on the next
* mapped in memory - and will be invalid on the next
* operation on this class.
*/
const Block * at(size_t index);
Expand Down
2 changes: 1 addition & 1 deletion lib/CharacterColor.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class CharacterColor
friend class Character;

public:
/** Constructs a new CharacterColor whoose color and color space are undefined. */
/** Constructs a new CharacterColor whose color and color space are undefined. */
CharacterColor()
: _colorSpace(COLOR_SPACE_UNDEFINED),
_u(0),
Expand Down
6 changes: 3 additions & 3 deletions lib/History.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ using namespace Konsole;
KDE4: Can we use QTemporaryFile here, instead of KTempFile?
FIXME: some complain about the history buffer comsuming the
FIXME: some complain about the history buffer consuming the
memory of their machines. This problem is critical
since the history does not behave gracefully in cases
where the memory is used up completely.
Expand All @@ -76,7 +76,7 @@ FIXME: There is noticeable decrease in speed, also. Perhaps,
scheme with wrap around would be it's complexity.
*/

//FIXME: tempory replacement for tmpfile
//FIXME: temporary replacement for tmpfile
// this is here one for debugging purpose.

//#define tmpfile xTmpFile
Expand Down Expand Up @@ -206,7 +206,7 @@ bool HistoryScroll::hasScroll()
/*
The history scroll makes a Row(Row(Cell)) from
two history buffers. The index buffer contains
start of line positions which refere to the cells
start of line positions which refers to the cells
buffer.
Note that index[0] addresses the second line
Expand Down
2 changes: 1 addition & 1 deletion lib/History.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class HistoryFile
//pointer to start of mmap'ed file data, or 0 if the file is not mmap'ed
char* fileMap;

//incremented whenver 'add' is called and decremented whenever
//incremented whenever 'add' is called and decremented whenever
//'get' is called.
//this is used to detect when a large number of lines are being read and processed from the history
//and automatically mmap the file for better performance (saves the overhead of many lseek-read calls).
Expand Down
4 changes: 2 additions & 2 deletions lib/Screen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ void Screen::setDefaultMargins()
is to poor to distinguish between bold
(which is a font attribute) and intensive
(which is a color attribute), we translate
this and RE_BOLD in falls eventually appart
this and RE_BOLD in falls eventually apart
into RE_BOLD and RE_INTENSIVE.
*/

Expand Down Expand Up @@ -578,7 +578,7 @@ QVector<LineProperty> Screen::getLineProperties( int startLine , int endLine ) c
void Screen::reset(bool clearScreen)
{
setMode(MODE_Wrap ); saveMode(MODE_Wrap ); // wrap at end of margin
resetMode(MODE_Origin); saveMode(MODE_Origin); // position refere to [1,1]
resetMode(MODE_Origin); saveMode(MODE_Origin); // position refers to [1,1]
resetMode(MODE_Insert); saveMode(MODE_Insert); // overstroke
setMode(MODE_Cursor); // cursor visible
resetMode(MODE_Screen); // screen not inverse
Expand Down
4 changes: 2 additions & 2 deletions lib/Screen.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ class Screen
*/
void insertChars(int n);
/**
* Repeat the preceeding graphic character @count times, including SPACE.
* Repeat the preceding graphic character @count times, including SPACE.
* If @count is 0 then the character is repeated once.
*/
void repeatChars(int count);
Expand Down Expand Up @@ -299,7 +299,7 @@ class Screen
void setForeColor(int space, int color);
/**
* Sets the cursor's background color.
* @param space The color space used by the @p color argumnet.
* @param space The color space used by the @p color argument.
* @param color The new background color. The meaning of this depends on
* the color @p space used.
*
Expand Down
8 changes: 4 additions & 4 deletions lib/Session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,11 +246,11 @@ void Session::run()
// Upon a KPty error, there is no description on what that error was...
// Check to see if the given program is executable.

/* ok iam not exactly sure where _program comes from - however it was set to /bin/bash on my system
* Thats bad for BSD as its /usr/local/bin/bash there - its also bad for arch as its /usr/bin/bash there too!
/* ok I'm not exactly sure where _program comes from - however it was set to /bin/bash on my system
* That's bad for BSD as its /usr/local/bin/bash there - its also bad for arch as its /usr/bin/bash there too!
* So i added a check to see if /bin/bash exists - if no then we use $SHELL - if that does not exist either, we fall back to /bin/sh
* As far as i know /bin/sh exists on every unix system.. You could also just put some ifdef __FREEBSD__ here but i think these 2 filechecks are worth
* their computing time on any system - especially with the problem on arch linux beeing there too.
* their computing time on any system - especially with the problem on arch linux being there too.
*/
QString exec = QString::fromLocal8Bit(QFile::encodeName(_program));
// if 'exec' is not specified, fall back to default shell. if that
Expand Down Expand Up @@ -323,7 +323,7 @@ void Session::runEmptyPTY()
_shellProcess->setErase(_emulation->eraseChar());
_shellProcess->setWriteable(false);

// disconnet send data from emulator to internal terminal process
// disconnect send data from emulator to internal terminal process
disconnect( _emulation,SIGNAL(sendData(const char *,int)),
_shellProcess, SLOT(sendData(const char *,int)) );

Expand Down
4 changes: 2 additions & 2 deletions lib/Session.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ class Session : public QObject {
/**
* Sets the format used by this session for tab titles.
*
* @param context The context whoose format should be set.
* @param context The context whose format should be set.
* @param format The tab title format. This may be a mixture
* of plain text and dynamic elements denoted by a '%' character
* followed by a letter. (eg. %d for directory). The dynamic
Expand Down Expand Up @@ -600,7 +600,7 @@ class SessionGroup : public QObject {
* Changes or activity in the group's master sessions may be propagated
* to all the sessions in the group, depending on the current masterMode()
*
* @param session The session whoose master status should be changed.
* @param session The session whose master status should be changed.
* @param master True to make this session a master or false otherwise
*/
void setMasterStatus( Session * session , bool master );
Expand Down
6 changes: 3 additions & 3 deletions lib/TerminalDisplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ void TerminalDisplay::setColorTable(const ColorEntry table[])
QT's iso mapping leaves 0x00..0x7f without any changes. But the graphicals
come in here as proper unicode characters.
We treat non-iso10646 fonts as VT100 extended and do the requiered mapping
We treat non-iso10646 fonts as VT100 extended and do the required mapping
from unicode to 0x00..0x1f. The remaining translation is then left to the
QCodec.
*/
Expand Down Expand Up @@ -249,7 +249,7 @@ void TerminalDisplay::fontChange(const QFont&)
propagateSize();

// We will run paint event testing procedure.
// Although this operation will destory the orignal content,
// Although this operation will destroy the original content,
// the content will be drawn again after the test.
_drawTextTestFlag = true;
update();
Expand Down Expand Up @@ -3183,7 +3183,7 @@ void TerminalDisplay::dropEvent(QDropEvent* event)
QString dropText;
if (!urls.isEmpty())
{
// TODO/FIXME: escape or quote pasted things if neccessary...
// TODO/FIXME: escape or quote pasted things if necessary...
qDebug() << "TerminalDisplay: handling urls. It can be broken. Report any errors, please";
for ( int i = 0 ; i < urls.count() ; i++ )
{
Expand Down
4 changes: 2 additions & 2 deletions lib/TerminalDisplay.h
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ public slots:
*/
void updateImage();

/** Essentially calles processFilters().
/** Essentially calls processFilters().
*/
void updateFilters();

Expand Down Expand Up @@ -487,7 +487,7 @@ public slots:
void outputSuspended(bool suspended);

/**
* Sets whether the program whoose output is being displayed in the view
* Sets whether the program whose output is being displayed in the view
* is interested in mouse events.
*
* If this is set to true, mouse signals will be emitted by the view when the user clicks, drags
Expand Down
6 changes: 3 additions & 3 deletions lib/Vt102Emulation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ void Vt102Emulation::reset()
The last two forms allow list of arguments. Since the elements of
the lists are treated individually the same way, they are passed
as individual tokens to the interpretation. Further, because the
meaning of the parameters are names (althought represented as numbers),
meaning of the parameters are names (although represented as numbers),
they are includes within the token ('N').
*/
Expand Down Expand Up @@ -759,7 +759,7 @@ void Vt102Emulation::processToken(int token, wchar_t p, int q)
//Note about mouse modes:
//There are four mouse modes which xterm-compatible terminals can support - 1000,1001,1002,1003
//Konsole currently supports mode 1000 (basic mouse press and release) and mode 1002 (dragging the mouse).
//TODO: Implementation of mouse modes 1001 (something called hilight tracking) and
//TODO: Implementation of mouse modes 1001 (something called highlight tracking) and
//1003 (a slight variation on dragging the mouse)
//

Expand Down Expand Up @@ -896,7 +896,7 @@ void Vt102Emulation::reportTerminalType()

void Vt102Emulation::reportSecondaryAttributes()
{
// Seconday device attribute response (Request was: ^[[>0c or ^[[>c)
// Secondary device attribute response (Request was: ^[[>0c or ^[[>c)
if (getMode(MODE_Ansi))
sendString("\033[>0;115;0c"); // Why 115? ;)
else
Expand Down
2 changes: 1 addition & 1 deletion lib/Vt102Emulation.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#define MODE_AppCuKeys (MODES_SCREEN+1) // Application cursor keys (DECCKM)
#define MODE_AppKeyPad (MODES_SCREEN+2) //
#define MODE_Mouse1000 (MODES_SCREEN+3) // Send mouse X,Y position on press and release
#define MODE_Mouse1001 (MODES_SCREEN+4) // Use Hilight mouse tracking
#define MODE_Mouse1001 (MODES_SCREEN+4) // Use Highlight mouse tracking
#define MODE_Mouse1002 (MODES_SCREEN+5) // Use cell motion mouse tracking
#define MODE_Mouse1003 (MODES_SCREEN+6) // Use all motion mouse tracking
#define MODE_Mouse1005 (MODES_SCREEN+7) // Xterm-style extended coordinates
Expand Down
2 changes: 1 addition & 1 deletion lib/color-schemes/historic/BlackOnLightColor.schema
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ color 9 178 178 178 0 0 # regular color 7 White

# intensive colors

# instead of changing the colors, we've flaged the text to become bold
# instead of changing the colors, we've flagged the text to become bold

color 10 0 0 0 0 1 # intensive foreground color
color 11 255 255 221 1 0 # intensive background color
Expand Down
2 changes: 1 addition & 1 deletion lib/color-schemes/historic/DarkPicture.schema
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ color 9 178 178 178 0 0 # regular color 7 White

# intensive colors

# instead of changing the colors, we've flaged the text to become bold
# instead of changing the colors, we've flagged the text to become bold

color 10 255 255 255 0 1 # intensive foreground color
color 11 0 0 0 1 0 # intensive background color
Expand Down
2 changes: 1 addition & 1 deletion lib/color-schemes/historic/Example.Schema
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ color 9 255 255 255 0 0 # regular color 7 White

# intensive colors

# instead of changing the colors, we've flaged the text to become bold
# instead of changing the colors, we've flagged the text to become bold

color 10 0 0 0 0 1 # intensive foreground color
color 11 255 255 255 1 1 # intensive background color
Expand Down
2 changes: 1 addition & 1 deletion lib/color-schemes/historic/GreenOnBlack.schema
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ color 9 178 178 178 0 0 # regular color 7 White

# intensive colors

# instead of changing the colors, we've flaged the text to become bold
# instead of changing the colors, we've flagged the text to become bold

color 10 24 240 24 0 1 # intensive foreground color
color 11 0 0 0 1 0 # intensive background color
Expand Down
2 changes: 1 addition & 1 deletion lib/color-schemes/historic/GreenTint.schema
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ color 9 178 178 178 0 0 # regular color 7 White

# intensive colors

# instead of changing the colors, we've flaged the text to become bold
# instead of changing the colors, we've flagged the text to become bold

color 10 255 255 255 0 0 # intensive foreground color
color 11 104 104 104 1 0 # intensive background color
Expand Down
2 changes: 1 addition & 1 deletion lib/color-schemes/historic/GreenTint_MC.schema
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ color 9 178 178 178 0 0 # regular color 7 White

# intensive colors

# instead of changing the colors, we've flaged the text to become bold
# instead of changing the colors, we've flagged the text to become bold

color 10 255 255 255 0 0 # intensive foreground color
color 11 104 104 104 1 0 # intensive background color
Expand Down
2 changes: 1 addition & 1 deletion lib/color-schemes/historic/LightPicture.schema
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ color 9 178 178 178 0 0 # regular color 7 White

# intensive colors

# instead of changing the colors, we've flaged the text to become bold
# instead of changing the colors, we've flagged the text to become bold

color 10 0 0 0 0 1 # intensive foreground color
color 11 255 255 255 1 0 # intensive background color
Expand Down
2 changes: 1 addition & 1 deletion lib/color-schemes/historic/Linux.schema
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ color 9 178 178 178 0 0 # regular color 7 White

# intensive colors

# instead of changing the colors, we've flaged the text to become bold
# instead of changing the colors, we've flagged the text to become bold

color 10 255 255 255 0 0 # intensive foreground color
color 11 104 104 104 1 0 # intensive background color
Expand Down
2 changes: 1 addition & 1 deletion lib/color-schemes/historic/README.Schema
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Meaning

When a schema uses a background image (or transparency)
one has to make at least one color slot transparent to
achive any visible effect. Please read below about the
achieve any visible effect. Please read below about the
"Transparent" field in color,sysbg,sysfg.

- The "transparency" clause picks and uses the background
Expand Down
2 changes: 1 addition & 1 deletion lib/color-schemes/historic/README.default.Schema
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ color 9 178 178 178 0 0 # regular color 7 White

# intensive colors

# instead of changing the colors, we've flaged the text to become bold
# instead of changing the colors, we've flagged the text to become bold

color 10 0 0 0 0 1 # intensive foreground color
color 11 255 255 255 1 0 # intensive background color
Expand Down
2 changes: 1 addition & 1 deletion lib/color-schemes/historic/Transparent.schema
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ color 9 178 178 178 0 0 # regular color 7 White

# intensive colors

# instead of changing the colors, we've flaged the text to become bold
# instead of changing the colors, we've flagged the text to become bold

color 10 255 255 255 0 0 # intensive foreground color
color 11 104 104 104 1 0 # intensive background color
Expand Down
Loading

0 comments on commit 57837cd

Please sign in to comment.