Victor_VG
Tracker Mod | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору --- ./old/Editor_Spell.lua Пн авг 19 17:56:50 2013 +++ ./new/Editor_Spell.lua Ср июл 29 14:04:03 2015 @@ -1,26 +1,53 @@ -- для работы нужны: --- 1. dll от проекта http://nhunspell.sourceforge.net/ --- отсюда http://sourceforge.net/projects/nhunspell/files/ берётся архив с последней версией и из него нужны либо Hunspellx86.dll, либо Hunspellx64.dll. --- именно эти dll чисто нативные, никакого .net-а в них нет. положить их нужно куда-нибудь, откуда они загрузятся, например в папку с фаром. --- 2. словари. по умолчанию макрос настроен на вот этот http://extensions.openoffice.org/en/project/russian-dictionary-%D1%91 русский словарь (нужны файлы ru_RU_yo.aff и ru_RU_yo.dic), --- и вот этот http://extensions.openoffice.org/en/project/english-dictionaries-apache-openoffice английский словарь (нужны файлы en_US.aff и en_US.dic). --- по умолчанию словари ожидаются в %FARPROFILE%\Dictionaries\. +--[[This scrip update for use shared dictionaries whit plug-in Hunspell by Artem Senichev + plug-in find by patch '%FARHOME%\plug-ins\editor\hunspell'. + For running this script press Shift+F3 button, then use F3 button for spell check + highlighted word and then operation is completed press Shift+F3 again. + This script modifed by VictorVG for progects Far Manager UE3 at Thu Apr 17 22:04:45 +0400 2014 + + Rus + + /* инструкция написана t-rex */ + + для работы нужны: + +1. dll от проекта http://nhunspell.sourceforge.net/ + отсюда http://sourceforge.net/projects/nhunspell/files/ берётся архив с последней версией + и из него нужны либо Hunspellx86.dll, либо Hunspellx64.dll. + именно эти dll чисто нативные, никакого .net-а в них нет. положить их нужно куда-нибудь, + откуда они загрузятся, например в папку с фаром. +2. словари. по умолчанию макрос настроен на вот этот + http://extensions.openoffice.org/en/project/russian-dictionary-%D1%91 русский словарь + (нужны файлы ru_RU_yo.aff и ru_RU_yo.dic), + и вот этот http://extensions.openoffice.org/en/project/english-dictionaries-apache-openoffice + английский словарь (нужны файлы en_US.aff и en_US.dic). + по умолчанию словари ожидаются в %FARPROFILE%\Dictionaries\. +--]] local F=far.Flags local config= { --ru { - dictionary=[[%FARPROFILE%\Dictionaries\ru_RU_yo.dic]], - affix=[[%FARPROFILE%\Dictionaries\ru_RU_yo.aff]], + dictionary=[[%FARHOME%\plugins\editor\hunspell\dict\\ru_RU_yo.dic]], + affix=[[%FARHOME%\plugins\editor\hunspell\dict\\ru_RU_yo.aff]], regexstr=[[/[а-яёА-ЯЁ]+/]], color={Flags=bit64.bor(F.FCF_FG_4BIT,F.FCF_BG_4BIT),ForegroundColor=0xf,BackgroundColor=0x4}, active=true }, + + { + dictionary=[[%FARHOME%\plugins\editor\hunspell\dict\\ru_RU.dic]], + affix=[[%FARHOME%\plugins\editor\hunspell\dict\\ru_RU.aff]], + regexstr=[[/[а-яёА-ЯЁ]+/]], + color={Flags=bit64.bor(F.FCF_FG_4BIT,F.FCF_BG_4BIT),ForegroundColor=0xf,BackgroundColor=0x5}, + active=true + }, + + --en { - dictionary=[[%FARPROFILE%\Dictionaries\en_US.dic]], - affix=[[%FARPROFILE%\Dictionaries\en_US.aff]], + dictionary=[[%FARHOME%\plugins\editor\hunspell\dict\\en_US.dic]], + affix=[[%FARHOME%\plugins\editor\hunspell\dict\\en_US.aff]], regexstr=[[/[a-zA-Z]+/]], color={Flags=bit64.bor(F.FCF_FG_4BIT,F.FCF_BG_4BIT),ForegroundColor=0xf,BackgroundColor=0x2}, active=true @@ -243,7 +270,7 @@ Event Macro { - area="Editor";key="F3";description="check spell"; + area="Editor";key="F3";description="Spell Checker"; action=CheckSpell } | Всего записей: 33240 | Зарегистр. 31-07-2002 | Отправлено: 14:30 29-07-2015 | Исправлено: Victor_VG, 14:48 29-07-2015 |
|