Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ alloc = []
full = [
"afrikaans",
"albanian",
"assamese",
"bengali",
"belarusian",
"bulgarian",
"catalan",
Expand All @@ -33,28 +35,40 @@ full = [
"georgian",
"german",
"greek",
"gujarati",
"hindi",
"hungarian",
"icelandic",
"italian",
"kannada",
"kurmanji",
"latin",
"lithuanian",
"malayalam",
"marathi",
"mongolian",
"norwegian",
"oriya",
"panjabi",
"polish",
"portuguese",
"russian",
"sanskrit",
"serbian",
"slovak",
"slovenian",
"spanish",
"swedish",
"tamil",
"telugu",
"turkish",
"turkmen",
"ukrainian",
]
afrikaans = []
albanian = []
assamese = []
bengali = []
belarusian = []
bulgarian = []
catalan = []
Expand All @@ -70,22 +84,32 @@ galician = []
georgian = []
german = []
greek = []
gujarati = []
hindi = []
hungarian = []
icelandic = []
italian = []
kannada = []
kurmanji = []
latin = []
lithuanian = []
malayalam = []
marathi = []
mongolian = []
norwegian = []
oriya = []
panjabi = []
polish = []
portuguese = []
russian = []
sanskrit = []
serbian = []
slovak = []
slovenian = []
spanish = []
swedish = []
tamil = []
telugu = []
turkish = []
turkmen = []
ukrainian = []
Expand Down
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ assert_eq!(syllables.join("-"), "ex-ten-sive");
```

## Languages
By default, this crate supports hyphenating more than 30 languages. Embedding
By default, this crate supports hyphenating 48 languages. Embedding
automata for all these languages will add ~1.1 MiB to your binary.
Alternatively, you can disable support for all languages and manually choose
which ones get added:
Expand All @@ -44,7 +44,9 @@ Each language added individually contributes:
|------------|---------|
| Afrikaans | 60 KiB |
| Albanian | 1.4 KiB |
| Assamese | 209 B |
| Belarusian | 3.9 KiB |
| Bengali | 209 B |
| Bulgarian | 13 KiB |
| Catalan | 1.7 KiB |
| Croatian | 2.0 KiB |
Expand All @@ -59,22 +61,32 @@ Each language added individually contributes:
| Georgian | 11 KiB |
| German | 201 KiB |
| Greek | 2.0 KiB |
| Gujarati | 191 B |
| Hindi | 202 B |
| Hungarian | 346 KiB |
| Icelandic | 21 KiB |
| Italian | 1.6 KiB |
| Kannada | 208 B |
| Kurmanji | 1.4 KiB |
| Latin | 1003 B |
| Lithuanian | 6.5 KiB |
| Malayalam | 244 B |
| Marathi | 202 B |
| Mongolian | 4.9 KiB |
| Norwegian | 153 KiB |
| Oriya | 188 B |
| Panjabi | 176 B |
| Polish | 16 KiB |
| Portuguese | 1.0 KiB |
| Russian | 33 KiB |
| Sanskrit | 2.0 KiB |
| Serbian | 13 KiB |
| Slovak | 13 KiB |
| Slovenian | 5.5 KiB |
| Spanish | 14 KiB |
| Swedish | 24 KiB |
| Tamil | 178 B |
| Telugu | 206 B |
| Turkish | 526 B |
| Turkmen | 1.4 KiB |
| Ukrainian | 21 KiB |
Expand Down
142 changes: 142 additions & 0 deletions patterns/hyph-as.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
% title: Hyphenation patterns for Assamese
% copyright: Copyright (C) 2016 Santhosh Thottingal
% notice: This file is part of the hyph-utf8 package.
% See http://www.hyphenation.org/tex for more information.
% source: https://github.com/santhoshtr/hyphenation/
% language:
% name: Assamese
% tag: as
% version: 0.9.0 2016-01-16
% authors:
% -
% name: Santhosh Thottingal
% contact: santhosh.thottingal (at) gmail.com
% licence:
% - This file is available under any of the following licences:
% -
% name: MIT
% url: https://opensource.org/licenses/MIT
% text: >
% Permission is hereby granted, free of charge, to any person
% obtaining a copy of this software and associated documentation
% files (the "Software"), to deal in the Software without
% restriction, including without limitation the rights to use,
% copy, modify, merge, publish, distribute, sublicense, and/or sell
% copies of the Software, and to permit persons to whom the
% Software is furnished to do so, subject to the following
% conditions:
%
% The above copyright notice and this permission notice shall be
% included in all copies or substantial portions of the Software.
%
% THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
% EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
% OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
% NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
% HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
% WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
% FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
% OTHER DEALINGS IN THE SOFTWARE.
% -
% name: LGPL
% version: 3
% or_later: true
% url: http://www.gnu.org/licenses/lgpl.html
% -
% name: GPL
% version: 3
% or_later: true
% url: http://www.gnu.org/licenses/gpl.html
% hyphenmins:
% generation:
% left: 1
% right: 1
% texlive:
% babelname: assamese
% message: Assamese hyphenation patterns
% package: indic
%
\patterns{
% GENERAL RULE
% Do not break either side of ZERO-WIDTH JOINER (U+200D)
2‍2
% Break on both sides of ZERO-WIDTH NON JOINER (U+200C)
1‌1
% Break before or after any independent vowel.
অ1
আ1
ই1
ঈ1
উ1
ঊ1
ঋ1
ৠ1
ঌ1
ৡ1
এ1
ঐ1
ও1
ঔ1
% Break after any dependent vowel, but not before.
া1
ি1
ী1
ু1
ূ1
ৃ1
ৄ1
ৢ1
ৣ1
ে1
ৈ1
ো1
ৌ1
2়2
ৗ1
% Break before or after any consonant.
1ক
1খ
1গ
1ঘ
1ঙ
1চ
1ছ
1জ
1ঝ
1ঞ
1ট
1ঠ
1ড
1ড়
1ঢ
1ঢ়
1ণ
1ত
1থ
1দ
1ধ
1ন
1প
1ফ
1ব
1ভ
1ম
1য
1য়
1র
1ল
1শ
1ষ
1স
1হ
% Do not break after khanda ta.
ৎ1
% Do not break before chandrabindu, anusvara, visarga, avagraha,
% nukta and au length mark.
2ঃ1
2ং1
2ঁ1
2ঽ1
% Do not break either side of virama (may be within conjunct).
2্2
}
Loading
Loading