fin-spell:基于Voikko的Firefox拼写检查(实验性)

  • F4_643061
    了解作者
  • 2.1MB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-04-17 05:06
    上传日期
描述 Fin Spell是针对Firefox的实验性芬兰语拼写检查插件。 它试图紧密模拟内置的拼写检查功能。 这个项目之所以开始,是因为旧的芬兰语拼写检查插件Mozvoikko是XUL插件,并且已被弃用,并且Hunspell或MySpell格式的字典不太适合芬兰语。 与旧的Mozvoikko一样,此附加组件也基于libvoikko。 局限性 许多像文本区域一样起作用的元素根本无法工作,或者高亮显示已关闭。 用户不能添加要与libvoikko一起使用的新单词,必须将附加组件升级以使用新词典,但是用户现在可以添加要用作单词列表的单词。 快速书写或较长的文本可能会开始滞后。 编译libvoikko 我是在Ubuntu 19.04上完成的。 您可以一次将所有这些命令复制到终端。 # Get emsdk, I couldn't compile with the latest versio
fin-spell-master.zip
  • fin-spell-master
  • common
  • spell.js
    3.5KB
  • l10n
  • l10n.js
    34KB
  • sidebar.ini
    163B
  • options.ini
    1.3KB
  • options
  • options.html
    1.9KB
  • options.js
    2.1KB
  • options.css
    363B
  • browser_action
  • browser_action.js
    1.5KB
  • browser_action.html
    195B
  • sidebar
  • sidebar.css
    185B
  • sidebar.js
    1KB
  • sidebar.html
    972B
  • data
  • flag_16x16.svg
    1.2KB
  • flag_128x128.svg
    2.3KB
  • flag_96x96.svg
    2KB
  • flag_48x48.svg
    1.5KB
  • background
  • background.js
    11KB
  • libvoikko.wasm
    281.3KB
  • libvoikko_api.js
    12KB
  • libvoikko.js
    52.5KB
  • content_scripts
  • jquery.highlight-within-textarea.css
    991B
  • content_script.js
    3.1KB
  • jquery_highlight_combined.js
    96.4KB
  • _locales
  • fi
  • messages.json
    252B
  • en
  • messages.json
    225B
  • firefox
  • manifest.json
    1.7KB
  • .eslintrc.json
    497B
  • libvoikko.data
    4.5MB
  • LICENSE
    34.3KB
  • README.md
    2.7KB
  • Makefile
    2.2KB
  • .gitignore
    25B
  • .eslintignore
    23B
内容介绍
## Description Fin Spell is an experimental Finnish spellchecking add-on for Firefox. It tries to closely emulate the built-in spellchecking feature. This project was started, because the old Finnish spellchecking add-on, Mozvoikko, is a XUL add-on and they were deprecated, and Hunspell or MySpell formatted dictionaries aren't well suited for Finnish. This add-on is based on libvoikko, like the old Mozvoikko. ## Limitations * Many elements that function like a textarea doesn't work at all or the highlighting is off. * Users can't add new words to be used with libvoikko, the add-on must be upgraded to use a new dictionary, but users can now add words to be used as wordlist. * Writing fast or a longer piece of text can start lagging. ## Compiling libvoikko I did this on Ubuntu 19.04. You can copy these commands all at once to the terminal. ``` # Get emsdk, I couldn't compile with the latest version. git clone https://github.com/juj/emsdk.git cd emsdk ./emsdk update-tags ./emsdk install sdk-fastcomp-1.38.30-64bit ./emsdk activate sdk-fastcomp-1.38.30-64bit source ./emsdk_env.sh cd .. # Libvoikko. I used version rel-libvoikko-4.3 git clone https://github.com/voikko/corevoikko cd corevoikko/libvoikko git checkout rel-libvoikko-4.3 # Get the dictionary. # sha256sum: 136e8142dd34ddf181919decb742897a4f055e7fa12d4dcc8b5c9cb6660488da wget https://www.puimula.org/htp/testing/voikko-snapshot-v5/dict-morpho.zip unzip dict-morpho.zip rm dict-morpho.zip # Needs automake, autoconf and pkg-config packages. # Install libtool if you get error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL. # You might need to install libtinfo5 and openjdk-X-jdk also. ./autogen.sh js/configure.sh sh js/build.sh preload # libvoikko.data, libvoikko_api.js, libvoikko.js and libvoikko.wasm which # are used in this add-on are in js/. ``` ## Other requirements content_scripts/jquery_highlight_combined.js is a concatenation of jQuery and highlight-within-textarea JavaScript files. https://code.jquery.com/jquery-3.3.1.min.js https://github.com/Dalimil/highlight-within-textarea/raw/master/jquery.highlight-within-textarea.js content_scripts/jquery.highlight-within-textarea.css's source is https://github.com/Dalimil/highlight-within-textarea/raw/master/jquery.highlight-within-textarea.css ## Building * See Compiling libvoikko first. * `make change_to_firefox` * Install web-ext so that web-ext executable is in the PATH. * Change `firefox-bin` variable in Makefile to point to a Firefox binary you want to use. * Change `ff-profile` variable in Makefile to an existing Firefox profile you want to use. * `make run` ## License GPL3. ## Download [AMO](https://addons.mozilla.org/en-US/firefox/addon/fin-spell/)
评论
    相关推荐