From ef0467789bfc8406b57ba553e4d59f4d6c3f9be8 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Wed, 14 Dec 2011 10:13:54 +0100 Subject: Moved from Mate-Extra repository --- .../data/MATE_DictionaryApplet.server.in.in | 55 ++++ mate-dictionary/data/MATE_DictionaryApplet.xml | 15 + mate-dictionary/data/Makefile.am | 84 ++++++ mate-dictionary/data/default.desktop.in | 6 + .../data/mate-dictionary-preferences.ui | 230 ++++++++++++++ mate-dictionary/data/mate-dictionary-source.ui | 332 +++++++++++++++++++++ mate-dictionary/data/mate-dictionary-ui.xml | 48 +++ mate-dictionary/data/mate-dictionary.1 | 61 ++++ mate-dictionary/data/mate-dictionary.desktop.in.in | 15 + mate-dictionary/data/mate-dictionary.schemas.in | 201 +++++++++++++ mate-dictionary/data/spanish.desktop.in | 6 + mate-dictionary/data/thai.desktop.in | 6 + 12 files changed, 1059 insertions(+) create mode 100644 mate-dictionary/data/MATE_DictionaryApplet.server.in.in create mode 100644 mate-dictionary/data/MATE_DictionaryApplet.xml create mode 100644 mate-dictionary/data/Makefile.am create mode 100644 mate-dictionary/data/default.desktop.in create mode 100644 mate-dictionary/data/mate-dictionary-preferences.ui create mode 100644 mate-dictionary/data/mate-dictionary-source.ui create mode 100644 mate-dictionary/data/mate-dictionary-ui.xml create mode 100644 mate-dictionary/data/mate-dictionary.1 create mode 100644 mate-dictionary/data/mate-dictionary.desktop.in.in create mode 100644 mate-dictionary/data/mate-dictionary.schemas.in create mode 100644 mate-dictionary/data/spanish.desktop.in create mode 100644 mate-dictionary/data/thai.desktop.in (limited to 'mate-dictionary/data') diff --git a/mate-dictionary/data/MATE_DictionaryApplet.server.in.in b/mate-dictionary/data/MATE_DictionaryApplet.server.in.in new file mode 100644 index 00000000..3c69076e --- /dev/null +++ b/mate-dictionary/data/MATE_DictionaryApplet.server.in.in @@ -0,0 +1,55 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mate-dictionary/data/MATE_DictionaryApplet.xml b/mate-dictionary/data/MATE_DictionaryApplet.xml new file mode 100644 index 00000000..3e975cc1 --- /dev/null +++ b/mate-dictionary/data/MATE_DictionaryApplet.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/mate-dictionary/data/Makefile.am b/mate-dictionary/data/Makefile.am new file mode 100644 index 00000000..2e38a96c --- /dev/null +++ b/mate-dictionary/data/Makefile.am @@ -0,0 +1,84 @@ +NULL = + +man_MANS = mate-dictionary.1 + +gdictappdir = $(datadir)/applications +gdictapp_in_files = mate-dictionary.desktop.in +gdictapp_DATA = $(gdictapp_in_files:.desktop.in=.desktop) + +$(gdictapp_in_files): $(gdictapp_in_files:.desktop.in=.desktop.in.in) + @sed -e "s|\@VERSION\@|@VERSION@|" $< > $@ + +@INTLTOOL_DESKTOP_RULE@ + +# dictionary sources definitions +dictsourcedir = $(datadir)/mate-dict/sources +dictsource_in_files = \ + default.desktop.in \ + spanish.desktop.in \ + thai.desktop.in \ + $(NULL) +dictsource_DATA = $(dictsource_in_files:.desktop.in=.desktop) +@INTLTOOL_DESKTOP_RULE@ + +builderdir = $(datadir)/mate-dictionary +builder_DATA = mate-dictionary-preferences.ui \ + mate-dictionary-source.ui + +uidir = $(datadir)/mate-dictionary +ui_DATA = mate-dictionary-ui.xml + +if BUILD_GDICT_APPLET + +# applet menu definition +appletuidir = $(datadir)/mate-2.0/ui +appletui_DATA = MATE_DictionaryApplet.xml + +serverdir = $(libdir)/matecomponent/servers +server_in_files = MATE_DictionaryApplet.server.in +server_DATA = $(server_in_files:.server.in=.server) + +$(server_in_files): $(server_in_files:.server.in=.server.in.in) + @sed \ + -e "s|\@VERSION\@|@VERSION@|" \ + -e "s|\@LIBEXECDIR\@|$(libexecdir)|" \ + $< > $@ + + +@INTLTOOL_SERVER_RULE@ + +endif # BUILD_GDICT_APPLET + +schemadir = $(MATECONF_SCHEMA_FILE_DIR) +schemas_in_file = mate-dictionary.schemas.in +schema_DATA = $(schemas_in_file:.schemas.in=.schemas) +@INTLTOOL_SCHEMAS_RULE@ + +EXTRA_DIST = \ + MATE_DictionaryApplet.server.in.in \ + mate-dictionary.desktop.in.in \ + $(dictsource_in_files) \ + $(man_MANS) \ + $(schemas_in_file) \ + $(builder_DATA) \ + $(ui_DATA) \ + $(appletui_DATA) \ + $(NULL) + +CLEANFILES = \ + $(dictsource_DATA) \ + $(server_in_files) \ + $(server_DATA) \ + $(gdictapp_in_files) \ + $(gdictapp_DATA) \ + $(schema_DATA) \ + $(NULL) + +if MATECONF_SCHEMAS_INSTALL +install-data-local: + if test -z "$(DESTDIR)" ; then \ + MATECONF_CONFIG_SOURCE=$(MATECONF_SCHEMA_CONFIG_SOURCE) $(MATECONFTOOL) --makefile-install-rule $(schema_DATA) ; \ + fi +else +install-data-local: +endif diff --git a/mate-dictionary/data/default.desktop.in b/mate-dictionary/data/default.desktop.in new file mode 100644 index 00000000..395433e8 --- /dev/null +++ b/mate-dictionary/data/default.desktop.in @@ -0,0 +1,6 @@ +[Dictionary Source] +Name=Default +_Description=Default Dictionary Server +Transport=dictd +Hostname=dict.org +Port=2628 diff --git a/mate-dictionary/data/mate-dictionary-preferences.ui b/mate-dictionary/data/mate-dictionary-preferences.ui new file mode 100644 index 00000000..1f04df8f --- /dev/null +++ b/mate-dictionary/data/mate-dictionary-preferences.ui @@ -0,0 +1,230 @@ + + + + + True + False + 18 + + + 5 + True + True + True + True + GTK_POS_TOP + False + False + + + 12 + True + False + 6 + + + True + _Select a dictionary source for looking up words: + True + False + GTK_JUSTIFY_LEFT + False + False + 0 + 0.5 + 0 + 0 + sources_treeview + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + 0 + False + False + + + + + 100 + True + True + GTK_POLICY_NEVER + GTK_POLICY_AUTOMATIC + GTK_SHADOW_IN + GTK_CORNER_TOP_LEFT + + + True + True + True + False + False + True + False + False + False + + + + + 0 + True + True + + + + + True + GTK_BUTTONBOX_END + 6 + + + True + True + True + gtk-add + True + GTK_RELIEF_NORMAL + True + + + + + True + True + True + gtk-remove + True + GTK_RELIEF_NORMAL + True + + + + + 0 + False + True + + + + + False + True + + + + + True + Source + False + False + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + + + 12 + True + False + 6 + + + True + False + 12 + + + True + _Print font: + True + False + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + print_font_button + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + 0 + False + False + + + + + True + True + True + True + True + False + True + + + 0 + True + True + + + + + 0 + False + True + + + + + False + True + + + + + True + Print + False + False + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + + + 0 + True + True + + + + + diff --git a/mate-dictionary/data/mate-dictionary-source.ui b/mate-dictionary/data/mate-dictionary-source.ui new file mode 100644 index 00000000..4ba2b6b5 --- /dev/null +++ b/mate-dictionary/data/mate-dictionary-source.ui @@ -0,0 +1,332 @@ + + + + + + + + + + Dictionary Server + + + + + True + False + 12 + + + True + True + True + True + GTK_POS_TOP + False + False + + + 5 + True + 4 + 2 + False + 6 + 12 + + + True + _Description: + True + False + GTK_JUSTIFY_LEFT + False + False + 0 + 0.5 + 0 + 0 + description_entry + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + 0 + 1 + 0 + 1 + fill + + + + + + True + _Transport: + True + False + GTK_JUSTIFY_LEFT + False + False + 0 + 0.5 + 0 + 0 + transport_combo + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + 0 + 1 + 1 + 2 + fill + + + + + + H_ostname: + True + False + GTK_JUSTIFY_LEFT + False + False + 0 + 0.5 + 0 + 0 + hostname_entry + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + 0 + 1 + 2 + 3 + fill + + + + + + _Port: + True + False + GTK_JUSTIFY_LEFT + False + False + 0 + 0.5 + 0 + 0 + port_entry + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + 0 + 1 + 3 + 4 + fill + + + + + + True + True + True + True + True + 0 + Source Name + True + * + False + + + 1 + 2 + 0 + 1 + + + + + + True + True + True + 0 + dict.org + True + * + False + + + 1 + 2 + 2 + 3 + + + + + + True + True + True + 0 + 2628 + True + * + False + + + 1 + 2 + 3 + 4 + + + + + + True + False + True + model1 + + + + 0 + + + + + 1 + 2 + 1 + 2 + fill + fill + + + + + False + True + + + + + True + Source + False + False + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + + + 5 + True + False + 0 + + + + + + + + + False + True + + + + + True + Dictionaries + False + False + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + + + 5 + True + False + 0 + + + + + + False + True + + + + + True + Strategies + False + False + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + + + 0 + True + True + + + + + diff --git a/mate-dictionary/data/mate-dictionary-ui.xml b/mate-dictionary/data/mate-dictionary-ui.xml new file mode 100644 index 00000000..81e756d6 --- /dev/null +++ b/mate-dictionary/data/mate-dictionary-ui.xml @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mate-dictionary/data/mate-dictionary.1 b/mate-dictionary/data/mate-dictionary.1 new file mode 100644 index 00000000..ceabc30a --- /dev/null +++ b/mate-dictionary/data/mate-dictionary.1 @@ -0,0 +1,61 @@ +.\" mate-dictionary.1 - a online dictionary client +.\" Copyright 2005 Emmanuele Bassi +.\" Copyright 2001 Jochen Voss +.TH mate-dictionary 1 "Jan 2 2005" "mate-utils 2.13.4" +.SH NAME +mate-dictionary \- Look up words on dictionaries +.SH SYNOPSIS +.nf +.BI mate-dictionary +.br +.BI mate-dictionary " [options]" +.fi +.sp +or select +.B Dictionary +from the +.B Accessories +submenu of the Applications menu. +.SH DESCRIPTION +.B MATE Dictionary +provides dictionary definitions of words, using a dictionary source. + +For full documentation see the +.B MATE Dictionary +online help. + +.SH OPTIONS +.TP +.BI \-\-look\-up " word" +Looks up the specified word using the pre-defined dictionary source. +.TP +.BI \-s " source\fR or " \-\-source " source" +Uses the specified source for looking up words. This does not affect the +global settings. +.TP +.BR \-l " or " \-\-list\-sources +Lists all the sources available. +.TP +.BR \-n " or " \-\-no\-window +Using this switch with the \-\-look\-up will print the definitions found +on the console without launching the GUI. +.TP +.B \-\-help +Display help information. +.SH CONFIGURATION +All the configuration is handled using MateConf. +.SH AUTHOR +.B MATE Dictionary +was originally written by Spiros Papadimitriou (), Mike +Hughes () and Bradford Hovinen (). + +Emmanuele Bassi () rewrote it from scratch. + +This manual page was originally written by Jochen Voss +. + +.SH SEE ALSO +.BR dict (1), +.BR dictd (8), +.BR http://www.dict.org/ , +.B RFC 2229 diff --git a/mate-dictionary/data/mate-dictionary.desktop.in.in b/mate-dictionary/data/mate-dictionary.desktop.in.in new file mode 100644 index 00000000..c3718204 --- /dev/null +++ b/mate-dictionary/data/mate-dictionary.desktop.in.in @@ -0,0 +1,15 @@ +[Desktop Entry] +_Name=Dictionary +_Comment=Check word definitions and spellings in an online dictionary +Exec=mate-dictionary +Terminal=false +Type=Application +Icon=accessories-dictionary +StartupNotify=true +Categories=MATE;GTK;Office;Dictionary; +OnlyShowIn=MATE; +X-MATE-DocPath=mate-dictionary/mate-dictionary.xml +X-MATE-Bugzilla-Bugzilla=MATE +X-MATE-Bugzilla-Product=mate-utils +X-MATE-Bugzilla-Component=gdict +X-MATE-Bugzilla-Version=@VERSION@ diff --git a/mate-dictionary/data/mate-dictionary.schemas.in b/mate-dictionary/data/mate-dictionary.schemas.in new file mode 100644 index 00000000..0d204ecd --- /dev/null +++ b/mate-dictionary/data/mate-dictionary.schemas.in @@ -0,0 +1,201 @@ + + + + /schemas/apps/mate-dictionary/server + /apps/mate-dictionary/server + mate-dictionary + string + dict.org + + Dictionary server (Deprecated) + The dictionary server to connect to. The default server is + dict.org. See http://www.dict.org for details on other servers. + This key is deprecated and no longer in use. + + + + + /schemas/apps/mate-dictionary/port + /apps/mate-dictionary/port + mate-dictionary + int + 2628 + + Port used to connect to server (Deprecated) + The port number to connect to. The default port is 2628. + This key is deprecated and no longer in use. + + + + + /schemas/apps/mate-dictionary/smart + /apps/mate-dictionary/smart + mate-dictionary + bool + TRUE + + Use smart lookup (Deprecated) + Specify whether to use smart lookup. This key is dependant + on whether the dictionary server supports this option. The default + is TRUE. This key is deprecated and no longer in use. + + + + + /schemas/apps/mate-dictionary/database + /apps/mate-dictionary/database + mate-dictionary + string + ! + + The default database to use + The name of the default individual database or meta-database to + use on a dictionary source. An exclamation mark ("!") means that all + the databases present in a dictionary source should be searched + + + + + /schemas/apps/mate-dictionary/strategy + /apps/mate-dictionary/strategy + mate-dictionary + string + exact + + The default search strategy to use + The name of the default search strategy to use on a dictionary + source, if available. The default strategy is 'exact', that is match + exact words. + + + + + /schemas/apps/mate-dictionary/print-font + /apps/mate-dictionary/print-font + mate-dictionary + string + Serif 12 + + The font to be used when printing + The font to be used when printing a definition. + + + + + /schemas/apps/mate-dictionary/source-name + /apps/mate-dictionary/source-name + mate-dictionary + string + Default + + The name of the dictionary source used + The name of the dictionary source used to retrieve the + definitions of words. + + + + + /schemas/apps/mate-dictionary/default-window-width + /apps/mate-dictionary/default-window-width + mate-dictionary + int + -1 + + The default width of the application window + This key defines the window width and it's used to remember + the size of the dictionary window across sessions. Setting it + to -1 will make the dictionary window use a width based on the + font size. + + + + + /schemas/apps/mate-dictionary/default-window-height + /apps/mate-dictionary/default-window-height + mate-dictionary + int + -1 + + The default height of the application window + This key defines the window height and it's used to remember + the size of the dictionary window across sessions. Setting it + to -1 will make the dictionary window use a height based on the + font size. + + + + + /schemas/apps/mate-dictionary/window-is-maximized + /apps/mate-dictionary/window-is-maximized + mate-dictionary + bool + FALSE + + Whether the application window should be maximized + This key defines whether the window should be maximized and it's + used to remember the state of the dictionary window across sessions. + Setting it to TRUE will make the window always appear as + maximized. + + + + + /schemas/apps/mate-dictionary/sidebar-visible + /apps/mate-dictionary/sidebar-visible + mate-dictionary + bool + FALSE + + Whether the sidebar should be visible + This key defines whether the sidebar should be visible + and it's used to remember the state of the sidebar across + sessions. Setting it to TRUE will make the sidebar always + be displayed. + + + + + /schemas/apps/mate-dictionary/statusbar-visible + /apps/mate-dictionary/statusbar-visible + mate-dictionary + bool + FALSE + + Whether the statusbar should be visible + This key defines whether the statusbar should be visible + and it's used to remember the state of the statusbar across + sessions. Setting it to TRUE will make the statusbar always + be displayed. + + + + + /schemas/apps/mate-dictionary/sidebar-page + /apps/mate-dictionary/sidebar-page + mate-dictionary + string + speller + + The page of the sidebar to show + This key defines which page of the sidebar should be + displayed and it's used to remember the setting across + sessions.. It can be "speller" or "databases". + + + + + /schemas/apps/mate-dictionary/sidebar-width + /apps/mate-dictionary/sidebar-width + mate-dictionary + int + -1 + + The width of the sidebar + This key defines the width of the sidebar and it's + used to remember the setting across sessions. + + + + + + diff --git a/mate-dictionary/data/spanish.desktop.in b/mate-dictionary/data/spanish.desktop.in new file mode 100644 index 00000000..3ec0f18a --- /dev/null +++ b/mate-dictionary/data/spanish.desktop.in @@ -0,0 +1,6 @@ +[Dictionary Source] +Name=spanish +_Description=Spanish Dictionaries +Transport=dictd +Hostname=es.dict.org +Port=2628 diff --git a/mate-dictionary/data/thai.desktop.in b/mate-dictionary/data/thai.desktop.in new file mode 100644 index 00000000..1922f280 --- /dev/null +++ b/mate-dictionary/data/thai.desktop.in @@ -0,0 +1,6 @@ +[Dictionary Source] +Name=Thai +_Description=Longdo Thai-English Dictionaries +Transport=dictd +Hostname=dict.longdo.com +Port=2628 -- cgit v1.2.1