After a day of development and testing, I am thrilled to announce that the unofficial packaging work of the Hunspell Dictionaries Content Snap has finally reached its end.
The Hunspell Dictionaries Content Snap is an attempt to allow multiple snaps to share a single copy of the Hunspell spellchecking dictionaries for multiple languages via the content interface. It allows snapped apps. that implements spellchecking via the infamous Hunspell library to not ship independent copies of the spellchecking dictionaries in their snaps, which takes about 200MiB(uncompressed)/32MiB(squashed) of disk space.
This snap does not feature any applications and is not intended to be used by regular users, instead, it is for snap packagers to implement a counterpart plug to connect and map its content into their snaps.
Refer the following forum topics for its usage:
The content interface - doc - snapcraft.io
How to Use
The consumer snap’s snapcraft.yaml must define a counterpart plug for connection:
plugs: hunspell-dictionaries-plug: content: hunspell-dictionaries-1-3-1604 interface: content target: $SNAP/usr/share/hunspell default-provider: hunspell-dictionaries
Then do the regular things, except connecting the consumer snap’s
hunspell-dictionaries-plug plug to the
# Install Snap # sudo snap install hunspell-dictionaries # Connect the Snap to the Mandatory Interface # ## hunspell-dictionaries: Providing hunspell dictionaries at $SNAP/usr/share/hunspell ## sudo snap connect _consumer_snap_name_:hunspell-dictionaries-plug hunspell-dictionaries:hunspell-dictionaries-1-3-1604
- Packaging recipe source code
- Desktop: allow access to host hunspell dictionaries - snapd - snapcraft.io
Please refer our project’s issue tracker
or create a new topic under
snap category in the Snapcraft Forums