Mac上的aspell私人字典在哪里

Mac上的aspell私人字典在哪里

本文介绍了Mac上的aspell私人字典在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Mac OS X上使用emacs,并且我自己安装了aspell。我不小心在我的私人字典中添加了一个错误的词,但那个字典在哪里?如何打开它,看看我在那里添加了什么?



我在这里找到了一个类似的问题()但是找不到他们提到的目录。我在 \usr\local\Cellar\aspell\ 中找到一个aspell文件夹,但我仍然找不到哪一个是私人字典。 p>

解决方案

搜索以 .pws 结尾的文件 - 它可能会看起来像这样的 .aspell.en.pws



你也可以运行这样的东西来看看一切都位于 - 只需将路径更改到您自己的 aspell 可执行文件所在的位置:

  /Users/HOME/.0.data/.0.emacs/elpa/bin/aspell --lang = en转储配置

如果要更改内容,可以创建一个 aspell.conf 并将其放在等内文件夹,该文件夹应位于靠近 aspell 可执行文件所在的同一组目录中。我实际上必须创建 etc 文件夹和 aspell.conf ,因为通用安装的make进程没有创建那个文件夹。运行上述命令行还会告诉您 aspell 找到 aspell.conf 文件的位置。 p>

示例 aspell.conf :我只使用西班牙语和英语 - 我的设置的默认是后者 - 借用(并从中修改):

 #/Users/HOME/.0.data/.0.emacs/ elpa / bin / aspell --lang = en dump config 

#conf(string)
#主配置文件
#default:aspell.conf

#home-dir(string)
#个人文件的位置
#default:< $ HOME | ./& gt = / Users / jone
#home-dir $ HOME / Library / preferences / aspell
home-dir /Users/HOME/.0.data/.0.emacs

#personal(string)
#个人字典文件名
#default:.aspell。< lang> .pws = .aspell.de_CH.pws
个人.aspell.en.pws

#conf-dir(string)
#主配置文件的位置
#default:<前缀:etc> = / usr / local / etc

#data-dir(string)
#语言数据文件的位置
#default:<前缀:lib / aspell-0.60> $ / $ / $ / $ / $ / $字典别名

#dict-dir(string)
#主单词列表的位置
#default:< data-dir> = /usr/local/lib/aspell-0.60
#dict-dir /usr/local/lib/aspell-0.60

#encoding(string)
#encoding to expect数据在
#default:!encoding = UTF-8

#filter(list)
#添加或删除过滤器

# -path(list)
#路径aspell寻找过滤器

#mode(string)
#过滤模式
#default:url
#mode tex

#extra-dicts(list)
#额外的字典使用

#ignore(integer)
#忽略单词< = n chars
#default:1

#ignore-case(boolean)
#在检查字词时忽略大小写
#default:false

#ignore-repl(boolean)
#忽略命令来存储替换对
#default:false
ignore-repl false

#keyboard(string)
#键盘定义用于打字分析
#default:standard

#lang(string)
#语言代码
#default:< language-tag> ; = de_CH

#local-data-dir(string)
#本地语言数据文件的位置
#default:< actual-dict-dir> = /usr/local/lib/aspell-0.60/

#master(string)
#使用主要字典的基本名称
#default:< lang> = de_CH

#normalize(boolean)
#启用Unicode规范化
#default:true

#norm-required(boolean)
#当前lang需要Unicode规范化
#default:false

#norm-form(string)
#Unicode规范化形式:none,nfd,nfc,comp
#default:nfc

#norm-strict(boolean)
#规范化时避免有损转换
#default:false

#per-conf字符串)
#个人配置文件
#default:.aspell.conf

#前缀(字符串)
#前缀目录
#default:/ usr / local

#repl(string)
#替换列表文件名
#default:.aspell。< lang> .prepl = .aspell.de_CH.prepl

#run-together(boolean)
#考虑运行在一起的词合法
#default:false

#run-together-limit(integer)
#可以串联在一起的最大数量
#default:2

#run-together-min(integer)
#内部单词的最小长度
#默认值:3

#save-repl(boolean)
#保存更换对保存所有
#default:true

#set-prefix(boolean)
#设置基于可执行位置的前缀
#default:true

#size(string)
#单词列表的大小
#默认值:+60

#sug-mode(string)
#建议模式
#default:normal

#sug-edit-dist(integer)
#编辑距离使用,覆盖sug-mode默认
#default:1

#sug-typo-analysis boolean)
#使用打字分析,覆盖sug-mode默认
#default:true

#sug-repl-table(boolean)
#使用替换表,覆盖sug-mode默认
#default:true

#sug-split-char(list)
当一个单词分裂时要插入的字符

#use-other-dicts(boolean)
#use personal,replacement&会话字典
#default:true

#品种(列表)
#单词列表的额外信息

#warn(boolean)
#启用警告
#default:true

#affix-compress(boolean)
#在创建字典时使用附加压缩
#default:false

#clean-affixes(boolean)
#删除无效的贴缀标记
#default:true

#clean-words(boolean)
#干净的单词使它们有效
#default:false

#invisible-soundslike(boolean)
#计算听起来像需要而不是存储
#default:false

#partial-expand(boolean)
#部分展开词缀以获得更好的建议
#default:false

#skip-invalid-words(boolean )
#跳过无效字
#default:true

#validate-affixes(boolean)
#检查affix标志是否有效
#default: true

#validate-words(boolean)
#chec k如果单词有效
#default:true

#backup(boolean)
#通过追加.bak创建一个备份文件
#default:true

#byte-offsets(boolean)
#使用字节偏移而不是字符偏移
#default:false

#guess(boolean)
#创建缺少的根/贴缀组合
#default:false

#keymapping(string)
#keymapping for check mode:aspellorispell
#default:aspell

#reverse(boolean)
#颠倒建议列表的顺序
#default:false

#suggest(boolean)
#建议可能的替换
#default:true

#time(boolean)
#管道模式下的时间加载时间和建议时间
#default: false


################################### ################################

#过滤器:上下文
#实验过滤器用于隐藏分隔的上下文

#配置如下:

#f-context -delimiters(list)
#上下文分隔符(以空格分隔)

#f-context-visible-first(boolean)
#swaps visible and invisible text
#default:false


################################ ####################################

#过滤器:电子邮件
#过滤器用于在电子邮件中跳过引用的文本

#配置如下:

#f-email-quote(list)
#email报价字符

#f-email-margin(integer)
#可以在引号之前出现的num字符char
#default:10


########################################################## #######################

#过滤器:html
#处理HTML文档的过滤器

#配置如下:

#f-html-check(list)
#HTML属性始终检查

#f- html-skip(list)
#HTML标签总是跳过


################## ################################## #################

#过滤器:sgml
#用于处理通用SGML / XML文档的过滤器

#配置如下:

#f-sgml-check(list)
#SGML属性始终检查

#f-sgml-skip (列表)
#SGML标签总是跳过


#################### ################################################## b $ b#
#过滤器:tex
#处理TeX / LaTeX文档的过滤器

#配置如下:

#f- tex-check-comments(boolean)
#check TeX评论
#default:false

#f-tex-command(list)
#TeX命令


############################################ #############################

#过滤器:texinfo
#过滤器处理Texinfo文件

#配置如下:

#f-texinfo-ignore(list)
#Texinfo命令忽略$ b的参数
$ b#f-texinfo-ignore-env(list)
# Texinfo环境忽略






这些是我的安装笔记在Windows和OSX上的 aspell

  OSX  - 转储aspell OSX类型中的配置:

#/Users/HOME/.0.data/.0.emacs/elpa/bin/aspell --lang = en转储配置

aspell.conf进入... / etc目录

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;

OSX - ASPELL - Binary

* unpack aspell-0.60.6.tar.gz

* cd到根目录解压缩源

PATH = / usr / bin:/ usr / sbin:/ bin:/ sbin ./configure \

--prefix = $ HOME / .0 .data / .0.emacs / elpa

make

sudo make install

;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;

OSX - ASPELL - DICTIONARY - 英文

* unpack aspell6-en-7.1-0.tar.bz2

* cd over到解压源的根目录

./configure \
--vars PATH = $ PATH:/Users/HOME/.0.data/.0.emacs/elpa/ bin

make

sudo make install


;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;

OSX - ASPELL - DICTIONARY - 西班牙语

* unpack aspell6-es-1.11-2.tar.bz2

* cd over到解压源的根目录

./configure \
--vars PATH = $ PATH:/Users/HOME/.0.data/.0.emacs/elpa/ bin

make

sudo make install

;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;

Windows XP - 安装:

BASE:Aspell-0-50-3-3-Setup.exe

English:Aspell-en -0.50-2-3.exe

西班牙语:Aspell-es-0.50-2-3.exe

Windows XP - 在下面创建一个aspell.conf文件位置:

c:/ Program Files / Aspell / aspell.conf

#aspell.conf
#要转储配置,请键入终端:
#c:/ Program Files / Aspell / bin / aspell.exe--lang = en dump config

home-dir y:\.0.emacs

个人.aspell.en.pws

repl .aspell.en.prepl


I am using emacs on Mac Os X and I installed aspell with homebrew. I accidentally added a wrong word to my "private dictionary", but where is that dictionary? How can I open it and see what I have added in there?

I found a similar question here (How to remove an entry from ispell private dictionary?) but I couldn't find the directories they mentioned. I found one aspell folder at \usr\local\Cellar\aspell\, but I still can't find which one is the private dictionary.

解决方案

Search for a file ending in .pws -- it will probably look something like this .aspell.en.pws for English.

You can also run something like this to see where everything is located -- just change the path to wherever your own aspell executable is located:

/Users/HOME/.0.data/.0.emacs/elpa/bin/aspell --lang=en dump config

If you want to change things, you can create an aspell.conf and put it inside the etc folder, which should be in the same set of directories near to where the aspell executable is located. I actually had to create the etc folder and the aspell.conf because the make process of a generic installation did not create that folder. Running the above command-line will also tell you the location where aspell looks for the aspell.conf file.

Sample aspell.conf: I only use Spanish and English -- the default on my setup is the latter -- borrowed (and modified from): https://github.com/jone/dotfiles/blob/master/aspell.conf

# /Users/HOME/.0.data/.0.emacs/elpa/bin/aspell --lang=en dump config

# conf (string)
#   main configuration file
# default: aspell.conf

# home-dir (string)
#   location for personal files
# default: <$HOME|./> = /Users/jone
# home-dir $HOME/Library/Preferences/aspell
home-dir /Users/HOME/.0.data/.0.emacs

# personal (string)
#   personal dictionary file name
# default: .aspell.<lang>.pws = .aspell.de_CH.pws
personal .aspell.en.pws

# conf-dir (string)
#   location of main configuration file
# default: <prefix:etc> = /usr/local/etc

# data-dir (string)
#   location of language data files
# default: <prefix:lib/aspell-0.60> = /usr/local/lib/aspell-0.60
# data-dir /usr/local/lib/aspell-0.60

# dict-alias (list)
#   create dictionary aliases

# dict-dir (string)
#   location of the main word list
# default: <data-dir> = /usr/local/lib/aspell-0.60
# dict-dir /usr/local/lib/aspell-0.60

# encoding (string)
#   encoding to expect data to be in
# default: !encoding = UTF-8

# filter (list)
#   add or removes a filter

# filter-path (list)
#   path(s) aspell looks for filters

# mode (string)
#   filter mode
# default: url
# mode tex

# extra-dicts (list)
#   extra dictionaries to use

# ignore (integer)
#   ignore words <= n chars
# default: 1

# ignore-case (boolean)
#   ignore case when checking words
# default: false

# ignore-repl (boolean)
#   ignore commands to store replacement pairs
# default: false
ignore-repl false

# keyboard (string)
#   keyboard definition to use for typo analysis
# default: standard

# lang (string)
#   language code
# default: <language-tag> = de_CH

# local-data-dir (string)
#   location of local language data files
# default: <actual-dict-dir> = /usr/local/lib/aspell-0.60/

# master (string)
#   base name of the main dictionary to use
# default: <lang> = de_CH

# normalize (boolean)
#   enable Unicode normalization
# default: true

# norm-required (boolean)
#   Unicode normalization required for current lang
# default: false

# norm-form (string)
#   Unicode normalization form: none, nfd, nfc, comp
# default: nfc

# norm-strict (boolean)
#   avoid lossy conversions when normalization
# default: false

# per-conf (string)
#   personal configuration file
# default: .aspell.conf

# prefix (string)
#   prefix directory
# default: /usr/local

# repl (string)
#   replacements list file name
# default: .aspell.<lang>.prepl = .aspell.de_CH.prepl

# run-together (boolean)
#   consider run-together words legal
# default: false

# run-together-limit (integer)
#   maximum number that can be strung together
# default: 2

# run-together-min (integer)
#   minimal length of interior words
# default: 3

# save-repl (boolean)
#   save replacement pairs on save all
# default: true

# set-prefix (boolean)
#   set the prefix based on executable location
# default: true

# size (string)
#   size of the word list
# default: +60

# sug-mode (string)
#   suggestion mode
# default: normal

# sug-edit-dist (integer)
#   edit distance to use, override sug-mode default
# default: 1

# sug-typo-analysis (boolean)
#   use typo analysis, override sug-mode default
# default: true

# sug-repl-table (boolean)
#   use replacement tables, override sug-mode default
# default: true

# sug-split-char (list)
#   characters to insert when a word is split

# use-other-dicts (boolean)
#   use personal, replacement & session dictionaries
# default: true

# variety (list)
#   extra information for the word list

# warn (boolean)
#   enable warnings
# default: true

# affix-compress (boolean)
#   use affix compression when creating dictionaries
# default: false

# clean-affixes (boolean)
#   remove invalid affix flags
# default: true

# clean-words (boolean)
#   attempts to clean words so that they are valid
# default: false

# invisible-soundslike (boolean)
#   compute soundslike on demand rather than storing
# default: false

# partially-expand (boolean)
#   partially expand affixes for better suggestions
# default: false

# skip-invalid-words (boolean)
#   skip invalid words
# default: true

# validate-affixes (boolean)
#   check if affix flags are valid
# default: true

# validate-words (boolean)
#   check if words are valid
# default: true

# backup (boolean)
#   create a backup file by appending ".bak"
# default: true

# byte-offsets (boolean)
#   use byte offsets instead of character offsets
# default: false

# guess (boolean)
#   create missing root/affix combinations
# default: false

# keymapping (string)
#   keymapping for check mode: "aspell" or "ispell"
# default: aspell

# reverse (boolean)
#   reverse the order of the suggest list
# default: false

# suggest (boolean)
#   suggest possible replacements
# default: true

# time (boolean)
#   time load time and suggest time in pipe mode
# default: false


#######################################################################
#
# Filter: context
#   experimental filter for hiding delimited contexts
#
# configured as follows:

# f-context-delimiters (list)
#   context delimiters (separated by spaces)

# f-context-visible-first (boolean)
#   swaps visible and invisible text
# default: false


#######################################################################
#
# Filter: email
#   filter for skipping quoted text in email messages
#
# configured as follows:

# f-email-quote (list)
#   email quote characters

# f-email-margin (integer)
#   num chars that can appear before the quote char
# default: 10


#######################################################################
#
# Filter: html
#   filter for dealing with HTML documents
#
# configured as follows:

# f-html-check (list)
#   HTML attributes to always check

# f-html-skip (list)
#   HTML tags to always skip the contents of


#######################################################################
#
# Filter: sgml
#   filter for dealing with generic SGML/XML documents
#
# configured as follows:

# f-sgml-check (list)
#   SGML attributes to always check

# f-sgml-skip (list)
#   SGML tags to always skip the contents of


#######################################################################
#
# Filter: tex
#   filter for dealing with TeX/LaTeX documents
#
# configured as follows:

# f-tex-check-comments (boolean)
#   check TeX comments
# default: false

# f-tex-command (list)
#   TeX commands


#######################################################################
#
# Filter: texinfo
#   filter for dealing with Texinfo documents
#
# configured as follows:

# f-texinfo-ignore (list)
#   Texinfo commands to ignore the parameters of

# f-texinfo-ignore-env (list)
#   Texinfo environments to ignore


These are my notes for installing aspell on Windows and OSX:

OSX -- To dump the aspell configuration in OSX type:

# /Users/HOME/.0.data/.0.emacs/elpa/bin/aspell --lang=en dump config

The aspell.conf goes into the .../etc directory

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

OSX -- ASPELL -- Binary

* unpack aspell-0.60.6.tar.gz

* cd over to the root directory of the unpacked source

PATH=/usr/bin:/usr/sbin:/bin:/sbin ./configure \

--prefix=$HOME/.0.data/.0.emacs/elpa

make

sudo make install

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

OSX -- ASPELL -- DICTIONARY -- English

* unpack aspell6-en-7.1-0.tar.bz2

* cd over to the root directory of the unpacked source

./configure \
--vars PATH=$PATH:/Users/HOME/.0.data/.0.emacs/elpa/bin

make

sudo make install


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

OSX -- ASPELL -- DICTIONARY -- Spanish

* unpack aspell6-es-1.11-2.tar.bz2

* cd over to the root directory of the unpacked source

./configure \
--vars PATH=$PATH:/Users/HOME/.0.data/.0.emacs/elpa/bin

make

sudo make install

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Windows XP -- install:

BASE:  Aspell-0-50-3-3-Setup.exe

English:  Aspell-en-0.50-2-3.exe

Spanish:  Aspell-es-0.50-2-3.exe

Windows XP -- create an aspell.conf file at the following location:

c:/Program Files/Aspell/aspell.conf

# aspell.conf
# To dump the configuration, type into the terminal:
# "c:/Program Files/Aspell/bin/aspell.exe" --lang=en dump config

home-dir y:\.0.emacs

personal .aspell.en.pws

repl .aspell.en.prepl

这篇关于Mac上的aspell私人字典在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-22 21:43