Hunspell拼字檢查字典的內容共享Snap包 - Linux

Elma avatar
By Elma
at 2018-09-02T23:41

Table of Contents

經過一天的開發與測試,我很高興地宣佈 Hunspell 拼字檢查字典的非官方內容共享Snap
軟體包的打包工作已經告一段落。

<https://github.com/Lin-Buo-Ren/hunspell-dictionaries-snap>

Hunspell拼字檢查字典的非官方內容共享Snap軟體包是一個透過content權限限縮界面讓
多個Snap軟體包共用一份包含多個語言的Hunspell拼字檢查字典的嘗試。它能讓以著名
的 Hunspell 程式庫實作拼字檢查功能的 Snap 應用不需要在自己的 Snap 軟體包中自帶
一份佔用 200MiB(未經壓縮)/ 32MiB(經壓縮)磁碟空間的拼字檢查字典。

此Snap軟體包並不自帶任何的應用軟體且不是設計用來給一般使用者使用者使用,而是由
Snap打包者們實作對應的界面插頭(interface plug)以連接到這個Snap包並將其內容映射
到他們的Snap軟體包中。

使用方式請參閱下列論壇主題:
[The content interface - doc -
snapcraft.io](https://forum.snapcraft.io/t/the-content-interface/1074)

### 如何使用 ###
內容消費Snap包的snapcraft.yaml檔案中必須定義一個連接用的對應界面插頭:

```yaml
plugs:
hunspell-dictionaries-plug:
content: hunspell-dictionaries-1-3-1604
interface: content
target: $SNAP/usr/share/hunspell
default-provider: hunspell-dictionaries
```

然後再以常態作法進行安裝,不同的是須將內容消費Snap包定義好的
`hunspell-dictionaries-plug` 界面插頭連接到 `hunspell-dictionaries` Snap軟體包
的 `hunspell-dictionaries-1-3-1604` 界面插槽(interface slot)中:

```
# 安裝Snap軟體包 #
sudo snap install hunspell-dictionaries

# 將Snap軟體連接到必要界面 #
## hunspell-dictionaries:於 $SNAP/usr/share/hunspell 目錄提供 Hunspell 拼字檢
查字典 ##
sudo snap connect _consumer_snap_name_:hunspell-dictionaries-plug
hunspell-dictionaries:hunspell-dictionaries-1-3-1604
```

### 相關連結 ###
* 打包食譜來源碼
<https://github.com/Lin-Buo-Ren/hunspell-dictionaries-snap>
* Desktop: allow access to host hunspell dictionaries - snapd - snapcraft.io

<https://forum.snapcraft.io/t/desktop-allow-access-to-host-hunspell-dictionaries/2598>

### 支援 ###
請參閱本專案的議題追蹤系統
<https://github.com/Lin-Buo-Ren/hunspell-dictionaries-snap/issues>

或是到 Snapcraft 論壇的 snap 主題類別中建檔新主題
<https://forum.snapcraft.io>

### 成為 Snapcrafters 的一份子 ###
<https://forum.snapcraft.io/t/join-snapcrafters/1325>


--
Tags: Linux

All Comments

20歲駭客面試 駭內網「關阿里網路」秒錄取

Zora avatar
By Zora
at 2018-09-01T21:16
※ [本文轉錄自 Gossiping 看板 #1RYZXa1H ] 作者: serialhon (人生如夢) 看板: Gossiping 標題: [新聞] 20歲駭客面試...駭內網「關阿里網路」秒 時間: Sat Sep 1 14:57:37 2018 20歲駭客面試...駭內網「關阿里網路」秒錄取! ...

wget 下載網頁 src="//..."

Cara avatar
By Cara
at 2018-08-31T22:32
如題 用 wget 下載的網頁含有圖片 網址: https://www.mobile01.com/newsdetail/26682/eric-bike 圖片: src=and#34;//attach.mobile01.com/attach/ ...

Snap打包:軟體使用者與上游的♥多元成家

Kyle avatar
By Kyle
at 2018-08-31T21:44
本演說首先介紹傳統上游開發者 - 中游 GNU+Linux 作業系統散佈版維護者 - 下游終端 使用者的自由軟體營運模式的困難,然後介紹Snap這個由Canonical主導開發的新軟體散 佈方式以及它如何改變軟體上游跟下游使用者的關係。 ※警告:本作品包含性解放內容,對性解放內容過敏的人士請斟酌服用。 本 ...

透過ssh echo含雙引號的內容到檔案

Hedy avatar
By Hedy
at 2018-08-29T19:43
請問如果我想新增到其他台的檔案內容如下 p1=and#34;abcand#34;, p2=and#34;cdfand#34; 雙引號及空格都要保留,透過ssh來操作 我試過 ssh hostname1 and#34;echo \and#34;p1=\and#34;abc\and#34; p2=\and ...

筆電蓋上上蓋無法喚醒

Hedwig avatar
By Hedwig
at 2018-08-29T17:00
※ 引述《Aruma ()》之銘言: : ※ 引述《Aruma ()》之銘言: : : 最近剛噴了asus UX410U : : 剛把HDD拆掉 換成原本裝有Ubuntu18.04的SSD : : 想請問在UEFI內要怎麼建立Ubuntu的boot呢?? : Ubuntu 更新後已經自己建立grub了 : ...