forked from vanessa-opensource/add
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Добавлен плагин для проверки орфографии через YaSpeller (vaness…
…a-opensource#629) * Шаблон плагина * feat: Реализация плагина * feat: Работа со словарем * test: Тесты плагина * fix: Поправил имя модуля * Корректное название * revent * Пересобрал * test: Отладка после тестов * test: Тесты для проверки работы плагина * doc: Добавил описание плагина
- Loading branch information
1 parent
4e8fc3f
commit eb8e532
Showing
12 changed files
with
1,017 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<MetaDataObject xmlns="http://v8.1c.ru/8.3/MDClasses" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:cmi="http://v8.1c.ru/8.2/managed-application/cmi" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xen="http://v8.1c.ru/8.3/xcf/enums" xmlns:xpr="http://v8.1c.ru/8.3/xcf/predef" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4"> | ||
<ExternalDataProcessor uuid="a63b16f4-f337-4f8a-824c-5a1286a51781"> | ||
<InternalInfo> | ||
<xr:ContainedObject> | ||
<xr:ClassId>c3831ec8-d8d5-4f93-8a22-f9bfae07327f</xr:ClassId> | ||
<xr:ObjectId>3b680f02-9b75-44c2-8590-1741f742db6a</xr:ObjectId> | ||
</xr:ContainedObject> | ||
<xr:GeneratedType name="ExternalDataProcessorObject.ПроверкаОрфографии" category="Object"> | ||
<xr:TypeId>77ed8537-5340-4da0-8beb-76079f7351fe</xr:TypeId> | ||
<xr:ValueId>103c31a5-7006-47ca-8551-b28598154fe1</xr:ValueId> | ||
</xr:GeneratedType> | ||
</InternalInfo> | ||
<Properties> | ||
<Name>ПроверкаОрфографии</Name> | ||
<Synonym> | ||
<v8:item> | ||
<v8:lang>ru</v8:lang> | ||
<v8:content>Проверка орфографии через сервис YaSpeller</v8:content> | ||
</v8:item> | ||
</Synonym> | ||
<Comment>http://api.yandex.ru/speller/</Comment> | ||
<DefaultForm>ExternalDataProcessor.ПроверкаОрфографии.Form.Форма</DefaultForm> | ||
<AuxiliaryForm/> | ||
</Properties> | ||
<ChildObjects> | ||
<Form>Форма</Form> | ||
</ChildObjects> | ||
</ExternalDataProcessor> | ||
</MetaDataObject> |
30 changes: 30 additions & 0 deletions
30
plugins/ПроверкаОрфографии/ПроверкаОрфографии/ПроверкаОрфографии.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<MetaDataObject xmlns="http://v8.1c.ru/8.3/MDClasses" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:cmi="http://v8.1c.ru/8.2/managed-application/cmi" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xen="http://v8.1c.ru/8.3/xcf/enums" xmlns:xpr="http://v8.1c.ru/8.3/xcf/predef" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4"> | ||
<ExternalDataProcessor uuid="a63b16f4-f337-4f8a-824c-5a1286a51781"> | ||
<InternalInfo> | ||
<xr:ContainedObject> | ||
<xr:ClassId>c3831ec8-d8d5-4f93-8a22-f9bfae07327f</xr:ClassId> | ||
<xr:ObjectId>3b680f02-9b75-44c2-8590-1741f742db6a</xr:ObjectId> | ||
</xr:ContainedObject> | ||
<xr:GeneratedType name="ExternalDataProcessorObject.ПроверкаОрфографии" category="Object"> | ||
<xr:TypeId>77ed8537-5340-4da0-8beb-76079f7351fe</xr:TypeId> | ||
<xr:ValueId>103c31a5-7006-47ca-8551-b28598154fe1</xr:ValueId> | ||
</xr:GeneratedType> | ||
</InternalInfo> | ||
<Properties> | ||
<Name>ПроверкаОрфографии</Name> | ||
<Synonym> | ||
<v8:item> | ||
<v8:lang>ru</v8:lang> | ||
<v8:content>Проверка орфографии через сервис YaSpeller</v8:content> | ||
</v8:item> | ||
</Synonym> | ||
<Comment>http://api.yandex.ru/speller/</Comment> | ||
<DefaultForm>ExternalDataProcessor.ПроверкаОрфографии.Form.Форма</DefaultForm> | ||
<AuxiliaryForm/> | ||
</Properties> | ||
<ChildObjects> | ||
<Form>Форма</Form> | ||
</ChildObjects> | ||
</ExternalDataProcessor> | ||
</MetaDataObject> |
15 changes: 15 additions & 0 deletions
15
plugins/ПроверкаОрфографии/ПроверкаОрфографии/ПроверкаОрфографии/Ext/ObjectModule.bsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
// { Plugin interface | ||
Функция ОписаниеПлагина(ВозможныеТипыПлагинов) Экспорт | ||
Результат = Новый Структура; | ||
Результат.Вставить("Тип", ВозможныеТипыПлагинов.Утилита); | ||
Результат.Вставить("Идентификатор", Метаданные().Имя); | ||
Результат.Вставить("Представление", "Проверка орфографии"); | ||
|
||
Возврат Новый ФиксированнаяСтруктура(Результат); | ||
КонецФункции | ||
|
||
Процедура Инициализация(КонтекстЯдраПараметр) Экспорт | ||
|
||
КонецПроцедуры | ||
// } Plugin interface |
22 changes: 22 additions & 0 deletions
22
plugins/ПроверкаОрфографии/ПроверкаОрфографии/ПроверкаОрфографии/Forms/Форма.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<MetaDataObject xmlns="http://v8.1c.ru/8.3/MDClasses" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:cmi="http://v8.1c.ru/8.2/managed-application/cmi" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xen="http://v8.1c.ru/8.3/xcf/enums" xmlns:xpr="http://v8.1c.ru/8.3/xcf/predef" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4"> | ||
<Form uuid="b4bd330d-6e64-4089-91c9-b638d8856799"> | ||
<Properties> | ||
<Name>Форма</Name> | ||
<Synonym> | ||
<v8:item> | ||
<v8:lang>ru</v8:lang> | ||
<v8:content>Форма</v8:content> | ||
</v8:item> | ||
</Synonym> | ||
<Comment/> | ||
<FormType>Managed</FormType> | ||
<IncludeHelpInContents>false</IncludeHelpInContents> | ||
<UsePurposes> | ||
<v8:Value xsi:type="app:ApplicationUsePurpose">PersonalComputer</v8:Value> | ||
<v8:Value xsi:type="app:ApplicationUsePurpose">MobileDevice</v8:Value> | ||
</UsePurposes> | ||
<ExtendedPresentation/> | ||
</Properties> | ||
</Form> | ||
</MetaDataObject> |
30 changes: 30 additions & 0 deletions
30
plugins/ПроверкаОрфографии/ПроверкаОрфографии/ПроверкаОрфографии/Forms/Форма/Ext/Form.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Form xmlns="http://v8.1c.ru/8.3/xcf/logform" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:dcscor="http://v8.1c.ru/8.1/data-composition-system/core" xmlns:dcsset="http://v8.1c.ru/8.1/data-composition-system/settings" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4"> | ||
<AutoCommandBar name="ФормаКоманднаяПанель" id="-1"> | ||
<Autofill>false</Autofill> | ||
</AutoCommandBar> | ||
<ChildItems> | ||
<LabelDecoration name="Яндекс" id="1"> | ||
<Title formatted="false"> | ||
<v8:item> | ||
<v8:lang>ru</v8:lang> | ||
<v8:content>http://api.yandex.ru/speller/</v8:content> | ||
</v8:item> | ||
</Title> | ||
<Hyperlink>true</Hyperlink> | ||
<ContextMenu name="ЯндексКонтекстноеМеню" id="2"/> | ||
<ExtendedTooltip name="ЯндексРасширеннаяПодсказка" id="3"/> | ||
<Events> | ||
<Event name="Click">ЯндексНажатие</Event> | ||
</Events> | ||
</LabelDecoration> | ||
</ChildItems> | ||
<Attributes> | ||
<Attribute name="Объект" id="1"> | ||
<Type> | ||
<v8:Type>cfg:ExternalDataProcessorObject.ПроверкаОрфографии</v8:Type> | ||
</Type> | ||
<MainAttribute>true</MainAttribute> | ||
</Attribute> | ||
</Attributes> | ||
</Form> |
Oops, something went wrong.