-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
114 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
VERSION=$(shell python3 src/lilak.py -v) | ||
|
||
all: hunspell build test | ||
|
||
hunspell: | ||
|
@@ -12,15 +14,30 @@ test: | |
|
||
extensions: | ||
# mozila xpi | ||
rm -rf ./build/mozile ./build/fa-IR-dictionary.xpi | ||
mkdir -p ./build/mozile ./build/mozile/dictionaries ./build/mozile/icons | ||
cp ./LICENSE ./build/mozile/LICENSE | ||
cp ./icon.png ./build/mozile/icon.png | ||
cp ./README_fa_IR.txt ./build/mozile/dictionaries/README_fa_IR.txt | ||
cp ./build/fa-IR.dic ./build/mozile/dictionaries/fa-IR.dic | ||
cp ./build/fa-IR.aff ./build/mozile/dictionaries/fa-IR.aff | ||
echo '{ "manifest_version": 2, "dictionaries": { "fa-IR": "dictionaries/fa-IR.dic" }, "applications": { "gecko": { "id": "[email protected]" } }, "name": "Lilak", "version": "3.2", "description": "Lilak, Persian Spell Checking Dictionary" }' > ./build/mozile/manifest.json | ||
cd ./build/mozile && zip -r ../fa-IR-dictionary.xpi * | ||
rm -rf ./build/mozila ./build/fa-IR-dictionary.xpi | ||
mkdir -p ./build/mozila | ||
cp ./build/fa-IR.dic ./build/mozila/fa-IR.dic | ||
cp ./build/fa-IR.aff ./build/mozila/fa-IR.aff | ||
cp ./LICENSE ./build/mozila/LICENSE | ||
cp ./icon.png ./build/mozila/icon.png | ||
cp ./src/data/README_fa_IR.txt ./build/mozila/README_fa_IR.txt | ||
cp ./src/data/manifest.json ./build/mozila/manifest.json | ||
sed -i 's/%VER%/$(VERSION)/g' ./build/mozila/manifest.json | ||
cd ./build/mozila && zip -r ../fa-IR-dictionary.xpi * | ||
|
||
# LibreOffice oxt | ||
rm -rf ./build/libre ./build/fa-IR-dictionary.oxt | ||
mkdir -p ./build/libre ./build/libre/META-INF | ||
cp ./build/fa-IR.dic ./build/libre/fa-IR.dic | ||
cp ./build/fa-IR.aff ./build/libre/fa-IR.aff | ||
cp ./LICENSE ./build/libre/LICENSE | ||
cp ./icon.png ./build/libre/icon.png | ||
cp ./src/data/META-INF/manifest.xml ./build/libre/META-INF/manifest.xml | ||
cp ./src/data/README_fa_IR.txt ./build/libre/README_fa_IR.txt | ||
cp ./src/data/dictionaries.xcu ./build/libre/dictionaries.xcu | ||
cp ./src/data/description.xml ./build/libre/description.xml | ||
sed -i 's/%VER%/$(VERSION)/g' ./build/libre/description.xml | ||
cd ./build/libre && zip -r ../fa-IR-dictionary.oxt * | ||
|
||
# chromium bdic | ||
rm -rf ~/chromium ~/depot_tools; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE manifest:manifest PUBLIC "-//OpenOffice.org//DTD Manifest 1.0//EN" "Manifest.dtd"> | ||
<manifest:manifest xmlns:manifest="http://openoffice.org/2001/manifest"> | ||
<manifest:file-entry manifest:media-type="application/vnd.sun.star.configuration-data" manifest:full-path="dictionaries.xcu"/> | ||
<manifest:file-entry manifest:media-type="application/vnd.sun.star.package-bundle-description" manifest:full-path="package-description.txt"/> | ||
</manifest:manifest> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<description xmlns="http://openoffice.org/extensions/description/2006" | ||
xmlns:d="http://openoffice.org/extensions/description/2006" | ||
xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
|
||
<platform value="all" /> | ||
<version value="%VER%" /> | ||
<identifier value="Lilak.Persian.Hunspell.Dictionary.by.Mostafa.Sedaghat.Joo" /> | ||
<display-name> | ||
<name lang="en">Lilak, Persian Spell Checking Dictionary</name> | ||
<name lang="fa">لیلک، غلط یاب فارسی</name> | ||
</display-name> | ||
<dependencies> | ||
<OpenOffice.org-minimal-version value="3.4" d:name="OpenOffice.org 3.4" /> | ||
</dependencies> | ||
<icon> | ||
<default xlink:href="icon.png" /> | ||
</icon> | ||
<publisher> | ||
<name xlink:href="http://github.com/b00f/lilak" lang="en">Mostafa Sedaghat Joo</name> | ||
</publisher> | ||
</description> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<oor:component-data xmlns:oor="http://openoffice.org/2001/registry" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:name="Linguistic" oor:package="org.openoffice.Office"> | ||
<node oor:name="ServiceManager"> | ||
<node oor:name="Dictionaries"> | ||
<node oor:name="HunSpellDic_fa_IR" oor:op="fuse"> | ||
<prop oor:name="Locations" oor:type="oor:string-list"> | ||
<value>%origin%/fa-IR.aff %origin%/fa-IR.dic</value> | ||
</prop> | ||
<prop oor:name="Format" oor:type="xs:string"> | ||
<value>DICT_SPELL</value> | ||
</prop> | ||
<prop oor:name="Locales" oor:type="oor:string-list"> | ||
<value>fa-IR</value> | ||
</prop> | ||
</node> | ||
</node> | ||
</node> | ||
</oor:component-data> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"manifest_version": 2, | ||
"dictionaries": { | ||
"fa-IR": "fa-IR.dic" | ||
}, | ||
"applications": { | ||
"gecko": { | ||
"id": "[email protected]" | ||
} | ||
}, | ||
"icons": { | ||
"48": "icon.png" | ||
}, | ||
"name": "Lilak", | ||
"version": "%VER%", | ||
"description": "Lilak, Persian Spell Checking Dictionary" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Lilak, Persian Spell Checking Dictionary | ||
|
||
Lilak is an open source project for generating Persian dictionary for hunspell spell checker based on Persian Morphology. | ||
This dictionary is free and the source is available under Apache License Version 2.0. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters