Hello gentlemen,
Sorry again for delay. I was really busy because of my defeating of
pre-thesis report.
So I've done some initial job that you can estimate. Currently I'm in
process of improving and porting all Ukrainian rules from LT project.
The patch attached. If I'm doing something wrong, just inform me. Also
I'm working at github:
https://github.com/korostil/lightproof_uk
Thank you, sirs!
diff --git add_uk_support.patch add_uk_support.patch
new file mode 100644
index 0000000..e69de29
diff --git src/uk/README_lightproof_uk.txt src/uk/README_lightproof_uk.txt
new file mode 100644
index 0000000..6bf2af7
--- /dev/null
+++ src/uk/README_lightproof_uk.txt
@@ -0,0 +1,3 @@
+Ukranina sentence checker for LibreOffice
+see git://anongit.freedesktop.org/libreoffice/lightproof
+2012 © ÐоÑоÑÑÑÐ»Ñ Ðанило, license: MPL 1.1 / GPLv3+ / LGPLv3+
\ No newline at end of file
diff --git src/uk/uk.cfg src/uk/uk.cfg
new file mode 100644
index 0000000..5c83dbc
--- /dev/null
+++ src/uk/uk.cfg
@@ -0,0 +1,13 @@
+[args]
+lang = uk
+locales = uk_UA
+name = Lightproof grammar checker (Ukranian)
+version = 0.0.1
+author = ÐоÑоÑÑÑÐ»Ñ Ðанило
+provider = LibreOffice
+implname = lightproof_uk
+link = http://www.libreoffice.org
+description = Ukranian grammar checker for LibreOffice
+extras = README_lightproof_uk.txt
+# logo =
+# sourcefiles =
\ No newline at end of file
diff --git src/uk/uk.dat src/uk/uk.dat
new file mode 100644
index 0000000..d6a3035
--- /dev/null
+++ src/uk/uk.dat
@@ -0,0 +1,40 @@
+# definitions
+Abc [a-zA-Zа-ÑÐ-Я]+
+abc [a-zа-Ñ]+
+ABC [A-ZÐ-Я]+
+punct [?!,:;%â°â±Ëâââââ«»]
+prevow [ÑеÑаоиeioaУÐÐÐÐÐEIOA]
+postvow [ÑеÑÑаоÑÑиÑeyuioaУÐÐÐÐÐÐЯÐЮEYUIOA]
+precon [ÒйÑкнгÑÑзÑ
ÑвпÑлджÑÑмÑÑбqwrtpsdfghjklzxcvbnmÒÐЦÐÐÐШЩÐХФÐÐÐ
ÐÐÐЧСÐТЬÐQWRTPSDFGHJKLZXCVBNM]
+postcon [ÒйÑкнгÑÑзÑ
ÑÑвпÑлджÑÑÑÑмÑÑбÑqwrtpsdfghjklzxcvbnmÒÐЦÐÐÐШЩÐÐ¥ÐФÐÐÐ
ÐÐÐÐЯЧСÐТЬÐЮQWRTPSDFGHJKLZXCVBNM]
+
+abbr гÑн|Ñабл|ÑиÑ|Ñ|вÑл|див
+
+commaless
а|але|однак|пÑоÑе|вÑÑм|ÑÑÑм|однак|заÑе|однаÑе|алеж|бÑдÑ
лаÑка
+
+parenthesis бÑдÑ
лаÑка|мабÑÑÑ|вÑеÑÑÑ|по-пеÑÑе|по-дÑÑге|по-ÑÑеÑÑ|ÑопÑавда|кÑÑм
Ñого|окÑÑм Ñого|авÑÑм
+
+
+{Abc}{punct}{Abc} <- option("space") -> {Abc}{punct} {Abc} # ÐÑопÑÑено пÑобÑл?
+{abc}[.]{ABC} <- option("space") -> {abc}. {ABC} # ÐÑопÑÑено пÑобÑл?
+# Ñила,ÑлабкÑÑÑÑ -> Ñила, ÑлабкÑÑÑÑ
+# Ñила.СлабкÑÑÑÑ -> Ñила. СлабкÑÑÑÑ
+
+[ ]{abbr}[ ] <- option("abbreviation") -> " {abbr}. " # ÐÑопÑÑено кÑÐ°Ð¿ÐºÑ Ð¿ÑÑлÑ
ÑкоÑоÑеннÑ?
+# ÑÐ¸Ñ 1 -> ÑиÑ. 1
+
+{abc} {commaless} <- option("comma") -> " {abc}, {commaless} " # ÐÑопÑÑено комÑ
пеÑед Ñловом?
+{abc} {parenthesis} <- option("comma") -> " {abc}, {parenthesis}, " # ÐÑопÑÑено коми
Ð´Ð»Ñ Ð²ÑÑÐ°Ð²Ð½Ð¾Ñ ÐºÐ¾Ð½ÑÑÑÑкÑÑÑ?
+# забÑв але згадав -> забÑв, але згадав
+# знайди бÑÐ´Ñ Ð»Ð°Ñка Ñе -> знайди, бÑÐ´Ñ Ð»Ð°Ñка, Ñе
+
+{precon}[ в ]{postcon} <- option("euphony.") -> " [ Ñ ] " # СлÑд замÑниÑи в на Ñ
Ð·Ð°Ð´Ð»Ñ Ð¼Ð¸Ð»Ð¾Ð·Ð²ÑÑноÑÑÑ.
+{postvow}[ Ñ ]{prevow} <- option("euphony.") -> " [ в ] " # СлÑд замÑниÑи Ñ Ð½Ð° в
Ð·Ð°Ð´Ð»Ñ Ð¼Ð¸Ð»Ð¾Ð·Ð²ÑÑноÑÑÑ.
+{postvow}[ Ñ ]{prevow} <- option("euphony.") -> " [ й ] " # СлÑд замÑниÑи Ñ Ð½Ð° й
Ð·Ð°Ð´Ð»Ñ Ð¼Ð¸Ð»Ð¾Ð·Ð²ÑÑноÑÑÑ.
+{precon}[ й ]{postcon} <- option("euphony.") -> " [ Ñ ] " # СлÑд замÑниÑи й на Ñ
Ð·Ð°Ð´Ð»Ñ Ð¼Ð¸Ð»Ð¾Ð·Ð²ÑÑноÑÑÑ.
+# СÑÑг в ÑÑÐµÐ¿Ñ -> СÑÑг Ñ ÑÑепÑ
+# ÐÑаÑна Ñ ÐзÑÑ -> ÐÑаÑна в ÐзÑÑ
+# ÐаÑко Ñ Ðван -> ÐаÑко й Ðван
+# ÐÑн й ÐеÑÑо -> ÐÑн Ñ ÐеÑÑо
+
+
diff --git src/uk/uk.dlg src/uk/uk.dlg
new file mode 100644
index 0000000..e31dc46
--- /dev/null
+++ src/uk/uk.dlg
@@ -0,0 +1,45 @@
+
+# Options and title texts for the Settings and conditional rules
+#
+# The Lightproof dialogs contain only grouped checkboxes.
+#
+# Format of the dialog definition:
+#
+# GroupID: OptionID, OptionID ...
+# Group2ID: OptionID, OptionID ...
+# ...
+# [Language_code=title of the window]
+# OptionID=title of the option
+# Option2ID=title of the option
+#
+# The first language is the default language for other locales
+# (use en_US or the common language of your country)
+#
+# The OptionIDs declared here are used in the rules, too. For example:
+#
+# foo <- option("style") -> bar # bar is far better
+#
+# this rule depends from the state of the "style" checkbox.
+
+# options (starred options are default checked ones)
+
+# titles
+
+spelling:
+punctuation: *space abbreviation commma
+others: euphony
+
+[en_US=Ukranian sentence checking]
+space=Word spacing
+abbreviation=Abbreviation
+comma=Comma usage
+euphony=Sonority of words
+
+
+[uk_UA=ÐеÑевÑÑÑÐ½Ð½Ñ ÑкÑаÑнÑÑÐºÐ¾Ñ Ð³ÑамаÑики]
+space=ÐÑогалини мÑж Ñловами
+abbreviation=ÐбÑевÑаÑÑÑи
+comma=Ð£Ð¶Ð¸Ð²Ð°Ð½Ð½Ñ ÐºÐ¾Ð¼
+euphony=ÐилозвÑÑнÑÑÑÑ
+
+
Context
- Lightproof easyhack · Коростіль Данило
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.