mbox

[bug#42474,0/3] WIP: Add hunspell-dict-de.

Message ID 20200722122649.6883-1-jonathan.brielmaier@web.de
Headers show

Message

Jonathan Brielmaier July 22, 2020, 12:26 p.m. UTC
Hi folks,

as I'm missing spell checker in Icecat and Libreoffice (Icedove let you install one), I tried to package
hunspell-dict-de.

It's more engaged then I thought before :P I added byacc as an yacc implementation required
by ispell. That part is working, so not WIP.

ispell
======
It's Makefiles are a bit ugly so you need to patch them somehow.
At the current state the binaries are looking at the wrong place for the "/lib/ispell/*.hash" files.
So I guess that is where
```
ice-9/boot-9.scm:1669:16: In procedure raise-exception:
In procedure open-file: No such file or directory: "/gnu/store/smvi9sk3s3xvn0xx6az0hvzl6mhy7zyn-ispell-3.4.00/lib/ispell/english.hash"
```
comes from.
```
$ /gnu/store/smvi9sk3s3xvn0xx6az0hvzl6mhy7zyn-ispell-3.4.00/bin/ispell
Can't open /lib/ispell/english.hash
```
Do I need to wrap this somehow?

hunspell-dict-de
================
It's blocked by ispell. It only requires buildhash which seems to be working.

In general wouldn't it make sense to rename aspell.scm to spell.scm and move the hunspell* stuff from
libreoffice.scm there?

Jonathan Brielmaier (3):
  gnu: Add byacc.
  WIP: gnu: Add ispell.
  WIP: gnu: Add hunspell-dict-de.

 gnu/packages/aspell.scm      | 45 ++++++++++++++++++++++++++++++++++++
 gnu/packages/c.scm           | 20 ++++++++++++++++
 gnu/packages/libreoffice.scm | 28 +++++++++++++++++++++-
 3 files changed, 92 insertions(+), 1 deletion(-)

--
2.27.0

Comments

Efraim Flashner July 23, 2020, 7:56 a.m. UTC | #1
On Wed, Jul 22, 2020 at 02:26:49PM +0200, Jonathan Brielmaier wrote:
> Hi folks,
> 
> ```
> ice-9/boot-9.scm:1669:16: In procedure raise-exception:
> In procedure open-file: No such file or directory: "/gnu/store/smvi9sk3s3xvn0xx6az0hvzl6mhy7zyn-ispell-3.4.00/lib/ispell/english.hash"
> ```
> comes from.
> ```
> $ /gnu/store/smvi9sk3s3xvn0xx6az0hvzl6mhy7zyn-ispell-3.4.00/bin/ispell
> Can't open /lib/ispell/english.hash
> ```
> Do I need to wrap this somehow?

Is this the type of thing where a search path would work?

> 
> In general wouldn't it make sense to rename aspell.scm to spell.scm and move the hunspell* stuff from
> libreoffice.scm there?
> 

I'm very in favor of this. It's something I've thought about doing
before.
Jonathan Brielmaier July 24, 2020, 10:38 p.m. UTC | #2
Changes compared to v1:
* ispell builds now. The ispell binary is still broken and needs some patch magic
  or so.
* hunspell-dict-de builds now as well and ships the file we need. I installed it
  and LibreOffice and Icecat have no German spell checking.
* Fixed identation with indent script.

It would be nice if we can add packages for de_AT and de_CH as well, but I don't
know what would be a proper approach: inherit + something...

Jonathan Brielmaier (3):
  gnu: Add byacc.
  WIP: gnu: Add ispell.
  WIP: gnu: Add hunspell-dict-de.

 gnu/packages/aspell.scm      | 49 ++++++++++++++++++++++++++++++++++++
 gnu/packages/c.scm           | 20 +++++++++++++++
 gnu/packages/libreoffice.scm | 38 +++++++++++++++++++++++++++-
 3 files changed, 106 insertions(+), 1 deletion(-)

--
2.27.0