Re: Help adding word to dictionary?

David O'Brien <[email protected]> Tue, 20 Dec 2016 12:00:00 +1000
Newsgroups gmane.comp.gnu.aspell.user
Message-ID <[email protected]>
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--===============2059964929833387665==
Content-Type: multipart/signed; micalg=pgp-sha256;
 protocol="application/pgp-signature";
 boundary="db04srD9sQeq4fjnIJP0KV97StsSMIsnT"

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--db04srD9sQeq4fjnIJP0KV97StsSMIsnT
From: David O'Brien <[email protected]>
To: [email protected]
Cc: [email protected]
Message-ID: <[email protected]>
Subject: Re: [Aspell-user] Help adding word to dictionary?
References: <[email protected]>
 <[email protected]>
In-Reply-To: <[email protected]>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On 12/20/2016 06:56 AM, [email protected] wrote:
>>>>>> "David" =3D=3D David O'Brien <[email protected]> writes:
>=20
>     David> Can anyone help me understand what's happening here?
>=20
>     David> aspell version: aspell-en-2015.04.24-2.fc24.x86_64
>     David> aspell-0.60.6.1-13.fc24.x86_64
>=20
>     David> I use the following to do spelling checks:
>=20
>     David> find . -name reports\*.xml -exec aspell -c --mode=3Dsgml '{}=
'
>     David> \;
>=20
>     David> Most of the time it seems to work fine, but right now I'm
>     David> trying to add "drop-down" to my personal dictionary, and
>     David> for some reason it fails. The spelling checker finds
>     David> "dropdown" and offers a list of options, including
>     David> "drop-down". I choose the option for this, and then it
>     David> highlights "drop-down" and offers a list of options. I
>     David> choose the option to add it to my dictionary, and
>     David> continue. The next time it finds "dropdown" I have to
>     David> repeat the whole process. It's as if it never gets added.
>=20
>     David> I even manually added the entry to my personal dictionary,
>     David> but that didn't help. I've added other words
>     David> successfully. Is it because it's a hyphenated word?
>     David> Something else that I'm missing?
>=20
> My understanding is that the aspell English dictionary does not
> consider the dash as a word component, hence drop-down is a compositum
> of drop and down: two words, both accepted, hence drop-down is a
> suggestion. Suggesting (or adding manually) drop-down adds "drop" and
> "down" to the dictionary (but they are already there...).
>=20
> This does not happen for French. The difference is that en.dat contains=

>=20
>     special ' -*-=20
>=20
> (that says that an apostrophe is allowed in the middle of a word)
> while fr.dat contains=20
>=20
>     special ' -*- . -*- - -*-=20
>=20
> (meaning that apostrophe, period and hyphen in the middle of a word
> are allowed). Hence "belle-m=C3=A8re" is one valid word (not two words)=

> (and means mother-in-law, not "nice mother")
>=20
> Other languages, e.g. German and Latin have no "special" at all: only
> letters are allowed as word elements.
>=20
> These differences are justified by the grammatical (and statistical)
> structure of the languages.
>=20
> AFAIK changing the "special" line and recompiling is not a solution,
> since (valid) words composed of two valid words joined by a hyphen
> should then be added (manually) to the dictionary.
>=20
> Carlo
>=20
>=20
> _______________________________________________
> Aspell-user mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/aspell-user
>=20

Thanks for the detailed reply. It helps to explain what might be going on=
=2E

I'll investigate manually adding entries a bit further and see what I
come up with.

cheers
--=20

David



--db04srD9sQeq4fjnIJP0KV97StsSMIsnT
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJYWJCgAAoJECvSWTfpMtZ/sosP/3xmDrkcRKfzyFtdSPH8cZI5
tQ14TJb3HQtyGq/Sfk9LrkdmSovpaP9ApxVkPyTa6Un2DP5EyDN4nfWKgvQlHqo5
x9/OXzDuF8oqcJ5hlp51H312TkYOCdGFhUGp27ztXgXCSK/vQAW7fh7ybX5TJHdI
zzHykPyL8dykH0FYbQUDHy/+eF9YW1+yMc+SBE8LQrJmUGO8oSHciRcW15ljPIQQ
YRsRQwcbI1O8568ZmCcTLebnRMoN3UGXny+jM6EXquQ70+o5Gb8wcKaDYik28WwF
1Mj338R4nwMWfKkYBRhMJbU3fAkbbHY+3m6e7DC7HaecV/1PlnPSmAz50XGLHULw
5Z6CqHQvnNfF/0TFOM6qieoV5t9hERbW/RNWC8YS+a+VZZzJ7doH+50EpXJS3iNV
ETclvzH+TS4YmrF7NynIGY+6VDgRka8m/JkjfPxlH+COmC9JFh9hJvzqiPAMesUe
s96Syd/do8hBQdGeW2fA/8s0Pko33JxpxXMGNui/ONn8J2sdJzj4X+H06YAHhwW5
gn9OJOi1MNnkD71HBwIQ8msIpHmCrHZPxmFvvWN5xuosD07GiY38yiH8wjwKhjdH
zfrBdN0shEdYYd5dhsVVK0e2RX5WFD1qWAtZx/FabsbTNb2eVRiLebZH8/4F/vOH
kozNG992+PFsRnI062Xa
=rtei
-----END PGP SIGNATURE-----

--db04srD9sQeq4fjnIJP0KV97StsSMIsnT--


--===============2059964929833387665==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Aspell-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/aspell-user

--===============2059964929833387665==--