You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-29 22:48:10 +02:00
Desktop, Server: Add transcribe functionality to Desktop though Joplin Server (#12670)
This commit is contained in:
@@ -518,12 +518,13 @@ export default class Resource extends BaseItem {
|
||||
SELECT ${selectSql}
|
||||
FROM resources
|
||||
WHERE
|
||||
ocr_status = ? AND
|
||||
(ocr_status = ? or ocr_status = ?) AND
|
||||
encryption_applied = 0 AND
|
||||
mime IN ('${supportedMimeTypes.join('\',\'')}')
|
||||
`,
|
||||
params: [
|
||||
ResourceOcrStatus.Todo,
|
||||
ResourceOcrStatus.Processing,
|
||||
],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -556,6 +556,16 @@ const builtInMetadata = (Setting: typeof SettingType) => {
|
||||
isGlobal: true,
|
||||
},
|
||||
|
||||
'ocr.handwrittenTextDriverEnabled': {
|
||||
value: true,
|
||||
type: SettingItemType.Bool,
|
||||
public: true,
|
||||
appTypes: [AppType.Desktop],
|
||||
label: () => _('Enable handwritten transcription'),
|
||||
storage: SettingStorage.File,
|
||||
isGlobal: true,
|
||||
},
|
||||
|
||||
'ocr.languageDataPath': {
|
||||
value: '',
|
||||
type: SettingItemType.String,
|
||||
|
||||
Reference in New Issue
Block a user