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=ÐилозвÑÑнÑÑÑÑ
+
+
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice