Commit ea4527ae authored by luz paz's avatar luz paz Committed by Jean-Baptiste Mardelle
Browse files

Fix various typos

Found via codespell
parent bff04828
Pipeline #67317 passed with stage
in 8 minutes and 17 seconds
......@@ -78,7 +78,7 @@ The rest:
| `optional` | if it is set, it means that this parameter can have an empty value. So then loading a project, don't set its value to default |
| `type` | widget (GUI) to use. See section below for possible values
For double values these placeholders are avaible:
For double values these placeholders are available:
| placeholder | Header Two |
| :------------- | :------------- |
......@@ -129,7 +129,7 @@ For double values these placeholders are avaible:
* ###### additional parameter attributes:
| attribute name | description |
| :------------- | :------------- |
| `paramlist` | list of possible values separated by semicolon (no whitespaces!). Special keyword `%lumaPaths` avaible to show files in the applications luma directories |
| `paramlist` | list of possible values separated by semicolon (no whitespaces!). Special keyword `%lumaPaths` available to show files in the applications luma directories |
* ###### additional tags:
| tag name | description |
| :----------------- | :------------- |
......@@ -202,7 +202,7 @@ You can set `default` to `"adjustcenter"` to adjust the geometry to the frame s
| :------------- | :------------- |
| `filter` | Filter for file extensions. Example : `"Source Files (*.cpp *.cc *.C);;Header files (*.h *.H)"` (warning: this format is different to `url`!) |
| `newstuff` | _(optional)_ KNewStuff config file (usually placed in `kdenlive/data` and added to to `kdenlive/src/uiresources.qrc` so the value looks like `":data/kdenlive_wipes.knsrc"`). If this is empty no download button is shown|
| `paramlist` | list of possible values separated by semicolon (no whitespaces!). Special keywords `%lumaPaths` and `%lutPaths` are avaible to show files in the applications luma/lut directories |
| `paramlist` | list of possible values separated by semicolon (no whitespaces!). Special keywords `%lumaPaths` and `%lutPaths` are available to show files in the applications luma/lut directories |
* ###### additional tags:
| tag name | description |
| :--------------- | :------------- |
......
# How To Write Provider Configurations
Intruction written 2021 by Julius Künzel as part of Kdenlive (www.kdenlive.org)
Instruction written 2021 by Julius Künzel as part of Kdenlive (www.kdenlive.org)
## Overview
Provider configuration files are json files.
Here is an example for [freesound](https://freesound.org)
......@@ -55,7 +55,7 @@ Here is an example for [freesound](https://freesound.org)
```
## Base Structure
Each provider config files should only specify a certain media type such as `video`. If the provider provids multiple types, create one config file for each.
Each provider config files should only specify a certain media type such as `video`. If the provider provides multiple types, create one config file for each.
| Key | Type | Required | Description |
| :------------- | :------------- | :------------- | :------------- |
......@@ -64,7 +64,7 @@ Each provider config files should only specify a certain media type such as `vid
| type | String | yes | one of `video`, `image`, `music`, `sound` |
| integration | String | yes | Must be `buildin` as this is the only supported value at the moment |
| clientkey | String | If OAuth2 or `%clientkey%` is used | The client key to access the api. </br>_Kdenlive has some keys build in: `%pixabay_apikey%`, `%freesound_apikey%` and `%pexels_apikey%` will be replaced by a key for the certain provider._ |
| downloadOAuth2 | bool | no | Whether OAuth2 authentification is need to download files
| downloadOAuth2 | bool | no | Whether OAuth2 authentication is needed to download files
| api | Object | yes | see [Api](#api) |
## Api
......@@ -119,13 +119,13 @@ The objects in the arrays in `params` and `header` should contain two fields: `k
| previewUrl | String | no | Url to preview file of the item |
| imageUrl | String | no | Url to image thumb of the item (for audio e.g. album cover, for video a still)|
##### Mutliple Download Urls
##### Multiple Download Urls
| Key | Type | Required | Description |
| :------------- | :------------- | :------------- | :------------- |
| key | String | yes | Name of the key containing the list holding the files. The following fields are relative to a item of this list |
| url | String | yes | Name of the key in a list element holding the download url |
| name | String | yes | Label for the certain file verison |
| name | String | yes | Label for the certain file version |
###### Example
```json
......@@ -141,7 +141,7 @@ Only necessary in special cases (e.g. https://archive.org) when no download urls
For the `req` object see the description of the [`req` obeject for `search`](#request)
The `res` object should hold two fileds: `format` (same as in [search response](#response)) and `downloadUrl` (same as in [search response](#response)) or `downloadUrls`. The field `downloadUrls` is again similar to the one in [search response](#response), but has some additional fields:
The `res` object should hold two fields: `format` (same as in [search response](#response)) and `downloadUrl` (same as in [search response](#response)) or `downloadUrls`. The field `downloadUrls` is again similar to the one in [search response](#response), but has some additional fields:
| Key | Type | Required | Description |
| :------------- | :------------- | :------------- | :------------- |
......@@ -167,9 +167,9 @@ If `isObject` is `true` there is a special case for `format`, `url` and `name`:
}
```
### Special Keys
Special keys are avaible for the following fields in [Search `res`](#response): `author`, `authorUrl`, `name`, `filetype`, `description`, `id`, `url`, `licenseUrl`, `imageUrl`, `previewUrl`, `downloadUrl`, `downloadUrls.url` and `downloadUrls.name`.
Special keys are available for the following fields in [Search `res`](#response): `author`, `authorUrl`, `name`, `filetype`, `description`, `id`, `url`, `licenseUrl`, `imageUrl`, `previewUrl`, `downloadUrl`, `downloadUrls.url` and `downloadUrls.name`.
In [`res` of Fetch Download Urls](#fetch-download-urls) they are avaible for these fields: `downloadUrl`, `downloadUrls.format`,`downloadUrls.url` and `downloadUrls.name`
In [`res` of Fetch Download Urls](#fetch-download-urls) they are available for these fields: `downloadUrl`, `downloadUrls.format`,`downloadUrls.url` and `downloadUrls.name`
#### Placeholders
Placeholders are expressions that will be replaced by something.
......
......@@ -47,7 +47,7 @@ dnf builddep mlt kdenlive
# OpenSUSE
zypper source-install --build-deps-only mlt kdenlive
```
Or install the dependencies explicitely:
Or install the dependencies explicitly:
```bash
# KDE Frameworks 5, based on Qt5
......
......@@ -4,7 +4,7 @@
The manifest for the stable Kdenlive version on Flathub is hosted on https://github.com/flathub/org.kde.kdenlive
## Nightly Version
The nightly flatpak is on the kde flatpak repository (`kdeapps`). The build scripts for this respository are living at https://invent.kde.org/packaging/flatpak-kde-applications but in Kdenlives case it is just a link to the `org.kde.kdenlive-nightly.json` file in this folder. It is build and published each day by the [KDE Binary Factory](https://binary-factory.kde.org/job/Kdenlive_x86_64_flatpak/)
The nightly flatpak is on the kde flatpak repository (`kdeapps`). The build scripts for this repository are living at https://invent.kde.org/packaging/flatpak-kde-applications but in Kdenlives case it is just a link to the `org.kde.kdenlive-nightly.json` file in this folder. It is build and published each day by the [KDE Binary Factory](https://binary-factory.kde.org/job/Kdenlive_x86_64_flatpak/)
## How to build
......
......@@ -39,7 +39,7 @@ typedef QVector<QPair<QString, QVariant>> paramVector;
enum class ParamType {
Double,
List, // Value can be chosen from a list of pre-defined ones
UrlList, // File can be choosen from a list of pre-defined ones or a custom file can be used (like url)
UrlList, // File can be chosen from a list of pre-defined ones or a custom file can be used (like url)
Bool,
Switch,
RestrictedAnim, // animated 1 dimensional param with linear support only
......
......@@ -3793,7 +3793,7 @@ void Bin::showTitleWidget(const std::shared_ptr<ProjectClip> &clip)
}
}
slotEditClipCommand(clip->AbstractProjectItem::clipId(), clip->currentProperties(newprops), newprops);
// when edit is triggered from the timeline, project monitor refresh is neccesary after an edit is made
// when edit is triggered from the timeline, project monitor refresh is necessary after an edit is made
pCore->requestMonitorRefresh();
} else {
pCore->temporaryUnplug(clips, false);
......
......@@ -25,7 +25,7 @@
#include <QMutex>
#include <QTimer>
// include after QTimer to have C++ phtreads defined
// include after QTimer to have C++ pthreads defined
#include <mlt/framework/mlt_types.h>
namespace Mlt {
......
......@@ -886,7 +886,7 @@ void TextBasedEdit::startRecognition()
});
connect(m_tCodeJob.get(), &QProcess::readyReadStandardOutput, [this]() {
QString saveData = QString::fromUtf8(m_tCodeJob->readAllStandardOutput());
qDebug()<<"+GOT OUTUT: "<<saveData;
qDebug()<<"+GOT OUTPUT: "<<saveData;
saveData = saveData.section(QStringLiteral("percentage:"), 1).simplified();
int percent = saveData.section(QLatin1Char(' '), 0, 0).toInt();
speech_progress->setValue(percent);
......@@ -1009,7 +1009,7 @@ void TextBasedEdit::slotProcessSpeech()
}
}
} else if (loadDoc.isEmpty()) {
qDebug()<<"==== EMPTY OBJEC DOC";
qDebug()<<"==== EMPTY OBJECT DOC";
}
qDebug()<<"==== GOT BLOCKS: "<<m_document.blockCount();
qDebug()<<"=== LINES: "<<m_document.firstBlock().lineCount();
......
......@@ -130,7 +130,7 @@ ProviderModel::ProviderModel(const QString &path)
}
});
connect(&m_oauth2, &QOAuth2AuthorizationCodeFlow::error, [=](const QString &error, const QString &errorDescription) {
qCWarning(KDENLIVE_LOG) << "Error in autorization flow. " << error << " " << errorDescription;
qCWarning(KDENLIVE_LOG) << "Error in authorization flow. " << error << " " << errorDescription;
emit authenticated(QString());
});
connect(&m_oauth2, &QOAuth2AuthorizationCodeFlow::authorizeWithBrowser, &QDesktopServices::openUrl);
......@@ -267,7 +267,7 @@ bool ProviderModel::requiresLogin() const {
* @return value
* Gets a value of item identified by key. The key is translated to the key the provider uses (configured in the providers config file)
* E.g. the provider uses "photographer" as key for the author and another provider uses "user".
* With this funtion you can simply use "author" as key no matter of the providers specific key.
* With this function you can simply use "author" as key no matter of the providers specific key.
* In addition this function takes care of modifiers like "$" for placeholders, etc. but does not parse them (use objectGetString for this purpose)
*/
......@@ -386,7 +386,7 @@ QUrl ProviderModel::getSearchUrl(const QString &searchText, const int page) {
* @brief ProviderModel::slotFetchFiles
* @param searchText The search query
* @param page The page to request
* Fetch metadata about the aviable files, if they are not included in the search respons (e.g. archive.org)
* Fetch metadata about the available files, if they are not included in the search response (e.g. archive.org)
*/
void ProviderModel::slotStartSearch(const QString &searchText, const int page)
{
......@@ -493,7 +493,7 @@ std::pair<QList<ResourceItemInfo>, const int> ProviderModel::parseSearchResponse
* @brief ProviderModel::getFilesUrl
* @param id The providers id of the item the data should be fetched for
* @return the url
* Get the url to fetch metadata about the aviable files.
* Get the url to fetch metadata about the available files.
*/
QUrl ProviderModel::getFilesUrl(const QString &id) {
......@@ -517,7 +517,7 @@ QUrl ProviderModel::getFilesUrl(const QString &id) {
/**
* @brief ProviderModel::slotFetchFiles
* @param id The providers id of the item the date should be fetched for
* Fetch metadata about the aviable files, if they are not included in the search respons (e.g. archive.org)
* Fetch metadata about the available files, if they are not included in the search response (e.g. archive.org)
*/
void ProviderModel::slotFetchFiles(const QString &id) {
......
......@@ -487,7 +487,8 @@ void ResourceWidget::slotPreviewItem()
* @param urls list of download urls pointing to the certain file version
* @param labels list of labels for the certain file version (needs to have the same order than urls)
* @param accessToken access token to pass through to slotSaveItem
* Displays a dialog to let the user choose a file version (e.g. filetype, quality) if there a multiple versions avaible
* Displays a dialog to let the user choose a file version (e.g. filetype, quality) if there are multiple versions
* available
*/
void ResourceWidget::slotChooseVersion(const QStringList &urls, const QStringList &labels, const QString &accessToken) {
if(urls.isEmpty() || labels.isEmpty()) {
......@@ -597,7 +598,7 @@ void ResourceWidget::slotSaveItem(const QString &originalUrl, const QString &acc
/**
* @brief ResourceWidget::slotGotFile
* @param job
* Finish the download by emiting addClip and if necessary addLicenseInfo
* Finish the download by emitting addClip and if necessary addLicenseInfo
* Enables the import button
*/
void ResourceWidget::slotGotFile(KJob *job)
......
......@@ -1014,10 +1014,10 @@ QString ArchiveWidget::processMltFile(QDomDocument doc, const QString &destPrefi
if (e.isNull()) {
continue;
}
// propertys for vidstab files
// properties for vidstab files
propertyProcessUrl(e, QStringLiteral("filename"), root);
propertyProcessUrl(e, QStringLiteral("results"), root);
// propertys for LUT files
// properties for LUT files
propertyProcessUrl(e, QStringLiteral("av.file"), root);
}
......
......@@ -122,7 +122,7 @@ private:
* @returns the doc's content with replaced urls
*/
QString processMltFile(QDomDocument doc, const QString &destPrefix = QString());
/** @brief If the given element cointains the property its content (url) will be converted to a relativ file path
/** @brief If the given element contains the property its content (url) will be converted to a relative file path
* @param e the dom element that might contains the property
* @param propertyName name of the property that should be checked
* @param root rootpath of the parent mlt document
......
......@@ -295,7 +295,7 @@ Rectangle {
function regainFocus(mousePos) {
var currentMouseTrack = Logic.getTrackIdFromPos(mousePos.y - ruler.height - subtitleTrack.height + scrollView.contentY)
// Try to find correct item
//console.log('checking item on TK: ', currentMouseTrack, ' AT: XPOS', (mousePos.x - trackHeaders.width), ', SCOLL:', scrollView.contentX, ', RES: ', ((mousePos.x - trackHeaders.width + scrollView.contentX) / timeline.scaleFactor), ' SCROLL POS: ', (mousePos.y - ruler.height - subtitleTrack.height + scrollView.contentY))
//console.log('checking item on TK: ', currentMouseTrack, ' AT: XPOS', (mousePos.x - trackHeaders.width), ', SCROLL:', scrollView.contentX, ', RES: ', ((mousePos.x - trackHeaders.width + scrollView.contentX) / timeline.scaleFactor), ' SCROLL POS: ', (mousePos.y - ruler.height - subtitleTrack.height + scrollView.contentY))
var tentativeClip = getItemAtPos(currentMouseTrack, mousePos.x - trackHeaders.width + scrollView.contentX, dragProxy.isComposition)
if (tentativeClip && tentativeClip.clipId) {
dragProxy.draggedItem = tentativeClip.clipId
......
......@@ -11386,7 +11386,7 @@ namespace Catch {
void enforceNotReservedTag( std::string const& tag, SourceLineInfo const& _lineInfo ) {
CATCH_ENFORCE( !isReservedTag(tag),
"Tag name: [" << tag << "] is not allowed.\n"
<< "Tag names starting with non alpha-numeric characters are reserved\n"
<< "Tag names starting with non-alphanumeric characters are reserved\n"
<< _lineInfo );
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment