Skip to content

Commit

Permalink
chore: Add sample Macedonian text (#3812)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S authored Nov 16, 2024
1 parent 6c72360 commit 7c6842e
Show file tree
Hide file tree
Showing 14 changed files with 1,264 additions and 48 deletions.
205 changes: 184 additions & 21 deletions dictionaries/mk/LICENSE
Original file line number Diff line number Diff line change
@@ -1,21 +1,184 @@
The MIT License (MIT)

Copyright (c) 2023 Street Side Software <[email protected]>

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.
GNU LESSER GENERAL PUBLIC LICENSE

Version 3, 29 June 2007

Copyright (C) 2024
Street Side Software

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.

This version of the GNU Lesser
General Public License incorporates the terms and conditions of version 3 of the
GNU General Public License, supplemented by the additional permissions listed
below.

0. Additional Definitions.



As used herein, "this
License" refers to version 3 of the GNU Lesser General Public License, and the
"GNU GPL" refers to version 3 of the GNU General Public License.




"The Library" refers to a covered work governed by this License, other than an
Application or a Combined Work as defined below.



An "Application"
is any work that makes use of an interface provided by the Library, but which is
not otherwise based on the Library. Defining a subclass of a class defined by the
Library is deemed a mode of using an interface provided by the Library.




A "Combined Work" is a work produced by combining or linking an Application with
the Library. The particular version of the Library with which the Combined Work
was made is also called the "Linked Version".



The "Minimal
Corresponding Source" for a Combined Work means the Corresponding Source for the
Combined Work, excluding any source code for portions of the Combined Work that,
considered in isolation, are based on the Application, and not on the Linked
Version.



The "Corresponding Application Code" for a Combined Work
means the object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.

1.
Exception to Section 3 of the GNU GPL.

You may convey a covered work under
sections 3 and 4 of this License without being bound by section 3 of the GNU
GPL.

2. Conveying Modified Versions.

If you modify a copy of the Library,
and, in your modifications, a facility refers to a function or data to be
supplied by an Application that uses the facility (other than as an argument
passed when the facility is invoked), then you may convey a copy of the modified
version:

a) under this License, provided that you make a good faith effort
to ensure that, in the event an Application does not supply the function or data,
the facility still operates, and performs whatever part of its purpose remains
meaningful, or

b) under the GNU GPL, with none of the additional
permissions of this License applicable to that copy.

3. Object Code
Incorporating Material from Library Header Files.

The object code form of an
Application may incorporate material from a header file that is part of the
Library. You may convey such object code under terms of your choice, provided
that, if the incorporated material is not limited to numerical parameters, data
structure layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:

a) Give
prominent notice with each copy of the object code that the Library is used in it
and that the Library and its use are covered by this License.

b) Accompany
the object code with a copy of the GNU GPL and this license document.

4.
Combined Works.

You may convey a Combined Work under terms of your choice
that, taken together, effectively do not restrict modification of the portions of
the Library contained in the Combined Work and reverse engineering for debugging
such modifications, if you also do each of the following:

a) Give
prominent notice with each copy of the Combined Work that the Library is used in
it and that the Library and its use are covered by this License.

b)
Accompany the Combined Work with a copy of the GNU GPL and this license
document.

c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among these notices, as
well as a reference directing the user to the copies of the GNU GPL and this
license document.

d) Do one of the following:

0) Convey the
Minimal Corresponding Source under the terms of this License, and the
Corresponding Application Code in a form suitable for, and under terms that
permit, the user to recombine or relink the Application with a modified version
of the Linked Version to produce a modified Combined Work, in the manner
specified by section 6 of the GNU GPL for conveying Corresponding Source.


1) Use a suitable shared library mechanism for linking with the Library. A
suitable mechanism is one that (a) uses at run time a copy of the Library already
present on the user's computer system, and (b) will operate properly with a
modified version of the Library that is interface-compatible with the Linked
Version.

e) Provide Installation Information, but only if you would
otherwise be required to provide such information under section 6 of the GNU GPL,
and only to the extent that such information is necessary to install and execute
a modified version of the Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If you use option
4d0, the Installation Information must accompany the Minimal Corresponding Source
and Corresponding Application Code. If you use option 4d1, you must provide the
Installation Information in the manner specified by section 6 of the GNU GPL for
conveying Corresponding Source.)

5. Combined Libraries.

You may place
library facilities that are a work based on the Library side by side in a single
library together with other library facilities that are not Applications and are
not covered by this License, and convey such a combined library under terms of
your choice, if you do both of the following:

a) Accompany the combined
library with a copy of the same work based on the Library, uncombined with any
other library facilities, conveyed under the terms of this License.

b)
Give prominent notice with the combined library that part of it is a work based
on the Library, and explaining where to find the accompanying uncombined form of
the same work.

6. Revised Versions of the GNU Lesser General Public
License.

The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new versions
will be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.

Each version is given a distinguishing
version number. If the Library as you received it specifies that a certain
numbered version of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and conditions either
of that published version or of any later version published by the Free Software
Foundation. If the Library as you received it does not specify a version number
of the GNU Lesser General Public License, you may choose any version of the GNU
Lesser General Public License ever published by the Free Software Foundation.


If the Library as you received it specifies that a proxy can decide whether
future versions of the GNU Lesser General Public License shall apply, that
proxy's public statement of acceptance of any version is permanent authorization
for you to choose that version for the Library.
4 changes: 3 additions & 1 deletion dictionaries/mk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ See: [How to Create a New Dictionary](https://github.com/streetsidesoftware/cspe

## License

MIT
LGPL-3.0

> Some packages may have other licenses included.
See Hunspell dictionary [license](./src/hunspell/license).

<!--- @@inject: ../../static/footer.md --->

<br/>
Expand Down
4 changes: 2 additions & 2 deletions dictionaries/mk/checksum.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
179c35b957605c894a8f67fa6074a183cc5e0c72 dict/mk.trie
51e832b5843259337a24e6d59d59f23c5e57020c src/index.aff
28ac975f8b44392e7c3317128c181edb4c82601e src/index.dic
51e832b5843259337a24e6d59d59f23c5e57020c src/hunspell/index.aff
28ac975f8b44392e7c3317128c181edb4c82601e src/hunspell/index.dic
2 changes: 1 addition & 1 deletion dictionaries/mk/cspell-ext.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"languageId": "*",
// Language locale. i.e. en-US, de-AT, or ru. * will match all locales.
// Multiple locales can be specified like: "en, en-US" to match both English and English US.
"locale": "mk-cyrl",
"locale": "mk,mk-cyrl",
// By default the whole text of a file is included for spell checking
// Adding patterns to the "includeRegExpList" to only include matching patterns
"includeRegExpList": [],
Expand Down
3 changes: 1 addition & 2 deletions dictionaries/mk/cspell-tools.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
targets:
- name: 'mk'
sources:
- filename: 'src/index.dic'
maxDepth: 1 # This is set to 1 to prevent initial builds from taking too long.
- filename: 'src/hunspell/index.dic'
format: 'trie3'
targetDirectory: './dict'
generateNonStrict: true
Expand Down
4 changes: 1 addition & 3 deletions dictionaries/mk/cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"files": [
"**/*.{md,txt}"
],
"dictionaries": [
"mk"
],
"language": "mk,en",
"import": [
"./cspell-ext.json"
]
Expand Down
19 changes: 12 additions & 7 deletions dictionaries/mk/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"name": "@cspell/dict-mk",
"version": "1.0.0",
"description": "Macedonian dictionary for cspell. -- Private until verified",
"private": true,
"description": "Macedonian dictionary for cspell",
"publishConfig": {
"access": "public",
"provenance": true
Expand All @@ -13,8 +12,12 @@
"./cspell-ext.json": "./cspell-ext.json"
},
"scripts": {
"build": "cross-env NODE_OPTIONS=--max_old_space_size=8192 cspell-tools-cli build",
"test": "hunspell-reader words -n 1000 -m 0 \"src/index.dic\" | cspell -c ./cspell-ext.json \"--locale=mk-cyrl\" \"--languageId=*\" stdin",
"build": "cspell-tools-cli build",
"build:conditional": "pnpm sync && cspell-tools-cli build --conditional",
"sync": "pnpm cpy \"node_modules/dictionary-mk/{index.{aff,dic},license,readme.md}\" src/hunspell/ --flat",
"test": "pnpm test:words && pnpm test:cspell",
"test:cspell": "cspell samples",
"test:words": "hunspell-reader words -n 1000 -m 0 \"src/index.dic\" | cspell -c ./cspell-ext.json \"--locale=mk\" \"--languageId=*\" stdin",
"prepublishOnly": "echo OK",
"prepare:dictionary": "echo OK"
},
Expand All @@ -32,14 +35,16 @@
],
"author": "Street Side Software",
"contributors": [],
"license": "MIT",
"license": "LGPL-3.0",
"bugs": {
"url": "https://github.com/streetsidesoftware/cspell-dicts/issues"
},
"homepage": "https://github.com/streetsidesoftware/cspell-dicts/blob/main/dictionaries/mk#readme",
"devDependencies": {},
"dependencies": {},
"devDependencies": {
"dictionary-mk": "^2.0.0"
},
"files": [
"src/hunspell/license",
"dict/mk.trie",
"cspell-ext.json",
"*.js",
Expand Down
21 changes: 21 additions & 0 deletions dictionaries/mk/samples/Skopje.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Скопје

[Скопје](https://mk.wikipedia.org/wiki/%D0%A1%D0%BA%D0%BE%D0%BF%D1%98%D0%B5)

Скопје — главен и најголем град во Македонија, кој воедно претставува административен, политички, стопански, културен, образовен и научен центар. Се наоѓа во северниот дел на државата, а во средишниот дел на Балканскиот Полуостров распространет на бреговите на реката Вардар. Камен мост се наоѓа крај реката Вардар. Македонски народен театар се наоѓа на булевар Св. Климент Охридски. Сули ан е тој сарај, кој се наоѓа во Старата чаршија во Скопје. МРТВ е приватна телевизиска станица во Македонија, а потоа Порта „Македонија“, Воин на коњ и Скопско кале се наоѓаат. Подоцна во 84 или 85 година царот Домицијан основал колонија Флавија Скупи, град со римски самоуправни права кој бил најголем на просторот од Солун на југ до Дунав на север. Во тоа време Скопје доживува голем развој и станува град со свој бискуп. Во Втората светска војна Скопје повторно е окупирано од Бугарија, сојузник на нацистичка Германија. На 22 април 1941 година бугарската Петта армија го окупира Скопје и остана во градот сè до 9 септември 1944 година. На 13 ноември 1944 година борците од 42-та и 50-та народноослободителна дивизија на македонската војска и 16-та македонска бригада го ослободуваат Скопје од германската фашистичка окупација. Скопје е прв по големина град во Македонија според бројот на жители (2015 г.). На 6 август 2016 година Скопскиот Регион го зафати големо невреме, што резултира со силен ветар и полави. Во невремето животот го загубија 22 лица.


## Земјотресот од 1963

Во почетокот на ноември 1962 поради обилни дождови, реката Вардар го поплави Скопје. Поплавени беа околу 5000 куќи. Поплавата беше предвесник на една поголема трагедија неколку месеци подоцна.

На 26 јули 1963 година во 5:17 часот Скопје беше разурнато од земјотрес со јачина од 9 степени по Меркалиевата скала (6,1 според Рихтеровата сеизмичка скала). Под урнатините животот го загубија 1.070 негови граѓани, беа повредени над 4.000 граѓани. Повеќе од 90 отсто од зградите во градот беа урнати и над 20.000 граѓани оставени без покрив над главата.

По земјотресот градот почна да се гради по урнек по проектите на Кензо Танге и Адолф Циборовски. Старата железничка станица, денес е музеј на градот Скопје и симбол на големиот земјотрес. Часовникот на станицата е засекогаш сопрен на фаталните 5 часот и 17 минути изутрина.

Првата помош за граѓаните на Скопје дојде од војската и граѓаните на тогашните југословенски републики, а неколку дена по земјотресот започна да пристигнува и помош и спасувачки екипи од целиот свет. Точно 87 нации во светот испратија некаква помош во Скопје и помогнаа тој да се изгради повторно, и поради тоа градот го носи и епитетот „град на солидарноста“.

<!---
cspell:locale mk
cspell:ignore Домицијан МРТВ Флавија полави
--->
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 7c6842e

Please sign in to comment.