Comments (4)
I'm using this script (https://github.com/mnater/Hyphenopoly/blob/master/tools/createWasmForLang.sh).
It takes four files as input:
- .chr.txt -- list of characters
- .hyp.txt -- hyphenation exceptions
- .lic.txt -- license
- .pat.txt -- the hyphenation patterns
Take the following files for german as examples (de.zip).
The script converts this input to a binary representation and adds it as a data-element to the .wasm code that's compiled with assemblyscript. You may need to adapt the paths.
Be aware: There's an issue with assemblyscript (respectively binaryen) that inhibits the addition of pattern-data that is larger than 64kb (WebAssembly/binaryen#5595). Until this is sorted out you'll need to use assemblyscript <=0.26.
If the lic allows it, you may also just send the file and I'll do my best to convert and publish it.
from hyphenopoly.
Thank you Mathias. I have prepared the files following your template. The only deviations is that the hyph-fo.pat.txt
file contain a UTF-8 in the first line. See if you can make this compile, that would be awesome.
fo.zip
from hyphenopoly.
Thank you.
Where did you get this from? I haven't found it in the hunspell git-repo, but I like to check if there are other languages available...
from hyphenopoly.
I collected a number of Hunspell hyphenation files for less supported languages, and Faroese was one of them. This is what I wrote in the description of where I got it:
Language: Faroese (Faroe Islands) (fo FO)
Origin: Generated from a collection of hyphenated words provided by the newspaper Dimmalætting.
http://fo.speling.org/filer/hyph_fo_FO-20040420a.zip (Site no longer online, see below instead)
https://fedora.pkgs.org/37/fedora-aarch64/hyphen-fo-0.20040420-22.fc37.noarch.rpm.html
License: GNU General Public License, version 2
Author: Jacob Sparre Andersen <[email protected]>
Faroese dictionary for spell checking.
I’m pretty sure it was just a Google search that pointed me to them, and that I either downloaded the files from the Fedora repo, or Archive.org.
from hyphenopoly.
Related Issues (20)
- Is late instantion of a language possible? HOT 3
- tracking issue for next major version (5.0.0) HOT 1
- hyphenopoly vs client hyphenation HOT 2
- Hyphenopoly doesn't seem to work with Firefox 94 HOT 5
- Using Hyphenopoly with other lib (paged.js inside) HOT 4
- Wrong hyphen characters on MacOs with chromium browsers HOT 5
- Example Code HOT 1
- en-us missing, also when not used HOT 2
- get "Module not found: Error:" HOT 2
- Callback when hyphenation is finished HOT 2
- Allow loader overwrite HOT 6
- Stop using fs module HOT 3
- Optionally abort fetch in loader HOT 1
- It doesn't work with Italian (maybe?) HOT 2
- Beta versions should not be the latest official version with package managers HOT 1
- Remove added hyphenation HOT 7
- Provide Hyphenopoly module path to loader() / loaderSync()? HOT 1
- unify return type of (node module's) Hyphenopoly.config
- enhanced pt patterns
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hyphenopoly.