Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

Check the document Version 1 (

...

Net)

Группа Group "Robin AI", подгруппа subgroup "Проверка документовDocument verification"

Описание

Действие через библиотеку Preferentum проверяет документ по указанному правилу. Пользователь из выпадающего списка может выбрать правило с параметрами по умолчанию, либо указать config файл, в котором указаны персональные параметры для поддерживаемого правила.

Иконка действия

Image Removed

Параметры

Входные параметры

Документ                                                        - Документ, который будет проверяться по правилу. Допустимые расширения: doc, docx, xls, xlsx, csv, ppt, pptx, txt, rtf, pdf, html, odf, odt, ods, wps, wpd, xml

Правило                                                          - Выпадающий список с правилами для проверки документа.

                                                                           Элементы списка: Особые комбинации, Даты, Деньги, Повторы, География, Персоны и организации, Структура, Орфография, Пользовательские параметры.

                                                                           Если выбрано "Пользовательские параметры", то необходимо заполнить поле "Пользовательские параметры"

 Пользовательские параметры                     - Путь до config файла, в котором записаны параметры для правила. Правило должно входить в список поддерживаемых

                                                                            Если пользователю необходимо указать пользовательские параметры, то в поле "Правило" необходимо выбрать "Пользовательские параметры"

                                                                            В поле "Пользовательские параметры" указать config файл, в котором указано правило (одно из допустимых) и нужные параметры для этого правила.

                                                                            Config файл должен содержать параметры только одно правила и должен иметь формат cfg. Поле будет проигнорировано, если в "Правило" указано не "Пользовательские параметры"

Путь до папки                                               - Путь до папки, в который будет записан новый файл. В файле будет указан документ с примечаниями правила

Имя файла                                                    - Имя для нового файла, в который будет записан документ с пометками правила. В названии недопустимы следующие символы   \/:* ?"<>| +

Перезаписать                                                - Логический параметр. Если значение «true», и в указанной папке существует файл с таким же именем и расширением, то новый файл его перезапишет.

                                                                          Если «false», документ перезаписан не будет и действие вернет ошибку

Тайм-аут, мс                                                 - Предельное время ожидания ответа. Измеряется в миллисекундах. Может быть любым числом. Минус в отрицательных числах будет игнорироваться.

                                                                         Тайм-аута начинает отсчет с момента работы библиотеки Preferentum

Выходные параметры

Документ с примечаниями"                       - путь до файла, в который записан документ с пометками правила. Название файла берется из параметра "Имя файла". Расширение нового файла зависит от расширения поданного документа:

...

Если в "Документ" указан файл расширения docx, то создастся файл расширения docx.

...

Если в "Документ" указан файл расширения xlsx, то создастся файл расширения xlsx.

...

Если в "Документ" указан файлы других допустимых расширений, то создастся файл расширения html.

Примеры документов: result.htmlrs.xlsxres.docx

Если в "Документ" указан файл расширения docx/xlsx версии 2003, то создастся файл расширения html.

...

Description

Action through Preferentum library checks the document against the specified rule. The user can select a rule with default parameters from the dropdown list, or specify a config file that specifies personal parameters for the supported rule.

Action icon

Image Added

Parameters and their settings

"Примечания" - таблица, где первый столбец - начало диапазона текста, к которому относится замечание, второй столбец - конец диапазона, а третий столбец - описание замечания.
Пример:

...

Если примечаний в документе нет, то создается файл без примечаний(исходный документ). Действие вернет путь до этого файла и пустую таблицу.

Настройки

Property

Description

Type

Example

Mandatory field

Parameters

Document

Path to the document file to be checked. Valid formats: doc, docx, xls, xlsx, csv, ppt, pptx, txt, rtf, pdf, html, odf, odt, ods, wps, wpd, xml

.

File Path

file.docx


Rule

Rule by which the specified document will be checked. If "User settings" is specified, the "User settings" field should be filled in

.

Options:

  • Special combinations
  • Dates
  • Money
  • Repeats
  • Geography
  • Persons and organizations
  • Structure
  • Spelling
  • User settings
String
  • Spelling
Yes
User settingsPath to a cfg file that contains personalized parameters for the rule. Only one of the supported rules can be specified in the file. The file is considered only if " User settings" is selected in the "Rule" field
.

File pathfile.cfgNo
Folder pathPath to the folder where a new file will be created containing the source document with the comments received during its verification
.

Folder path
Yes
File nameThe name of the file (without extension) to which the original document with the comments received during its verification will be written
.
StringresultYes
OverwriteIf the value is "true" and a file with the same name and extension exists in the specified folder, the new file will overwrite it. If "false", the file will not be overwritten and the action will return an error
.
BooleanyesNo
Timeout, ms
Limit time to wait for the check result. It is specified in milliseconds
.
Numeric10000No
Results

Document with notes

Path to the file containing the source document with the comments received during its verification. If the format of the source document is "docx", the file "docx" will be created. If the format is "xlsx", the file "xlsx" will be created. If the format of the source document is different, the file "html" will be created

.


File path



Notes


Table with a list of comments received during document verification. The first column is the beginning of the range of text to which the remark refers. The second column is the end of the range. The third column is a description of the remark
.
Table

Особые условия использования 

Нет.

Особые условия использования 

Нет.

Пример использования

Задача

Необходимо проверить документ на орфографию.

Решение

Воспользоваться действием "Проверить документ"

Реализация

...



Special conditions of use 

Path to the file where the document with the rule notes is written. The name of the file is taken from the "File name" parameter. The extension of the new file depends on the extension of the submitted document:

  • If a docx extension file is specified in "Document", a docx extension file will be created

  • If an xlsx extension file is specified in "Document", an xlsx extension file will be created

  • If files of other valid extensions are specified in "Document", a file of extension html will be created

    Examples of documents: result.htmlrs.xlsxres.docx

  • If a 2003 version docx/xlsx extension file is specified in "Document", an htm extension file will be created.

    • "Notes" is a table where the first column is the beginning of the range of text to which the note applies, the second column is the end of the range, and the third column is a description of the note
      Example:

      1378Probably meant "order".
      525543The word "BLECK" contains an error or it is an un-dictionaried word.
  • If there are no notes in the document, a file without notes is created (source document). The action will return the path to this file and an empty table

Example of use

Task

It is necessary to check the document for spelling.

Solution

Use the "Validate document" action

Implementation

  1. Move the "Check the document" action to the workspace.
    Image Added

    Image Added


  2. Set the parameters with the correct data.

    Image Added
  3. Click on the "Start" button in the top panel.

Result

The program robot completed successfully. A file with remarks was saved in the specified folder. The action also created a table with remarks.

 

Image Added

Результат

Программный робот отработал успешно. В указанной папке сохранен файл с замечаниями. Также действие создало таблицу с замечаниями.

 Image Removed

Image Removed

Написать комментарий...