summaryrefslogtreecommitdiffstats
path: root/spelling
diff options
context:
space:
mode:
authorIvan Lezhnjov Jr2008-09-28 13:47:58 +0300
committerIvan Lezhnjov Jr2008-09-28 13:47:58 +0300
commitd163b143b18f66898dba94b3317f7414147421cb (patch)
tree20be664a73dcf0147bd16f50c6cc4bb0f602428b /spelling
parent9d5456899a18a72057bbe083d850f505022e785a (diff)
spelling/stardict: Added an optional change of dictionary entry colors
Diffstat (limited to 'spelling')
-rwxr-xr-xspelling/stardict/CONFIGURE1
-rw-r--r--spelling/stardict/HISTORY4
-rwxr-xr-xspelling/stardict/PRE_BUILD7
3 files changed, 12 insertions, 0 deletions
diff --git a/spelling/stardict/CONFIGURE b/spelling/stardict/CONFIGURE
new file mode 100755
index 0000000000..294bd690ed
--- /dev/null
+++ b/spelling/stardict/CONFIGURE
@@ -0,0 +1 @@
+config_query SEDITCOLORS "Would you like to change default dictionary entry colors (extremely bright violet & green) to more serene?" y
diff --git a/spelling/stardict/HISTORY b/spelling/stardict/HISTORY
index d7a4577ee1..913c7622d3 100644
--- a/spelling/stardict/HISTORY
+++ b/spelling/stardict/HISTORY
@@ -1,3 +1,7 @@
+2008-09-28 Ivan Lezhnjov Jr. <ivan.lezhnjov.jr@sourcemage.org>
+ * CONFIGURE: created this
+ * PRE_BUILD: sedit dictionary entry colors if required
+
2008-01-28 Jaka Kranjc <lynxlynxlynx@sourcemage.org>
* PRE_BUILD: removed is_depends_enabled.function reference
diff --git a/spelling/stardict/PRE_BUILD b/spelling/stardict/PRE_BUILD
index 531c55ffa5..45da4c488d 100755
--- a/spelling/stardict/PRE_BUILD
+++ b/spelling/stardict/PRE_BUILD
@@ -1,6 +1,13 @@
default_pre_build &&
cd ${SOURCE_DIRECTORY} &&
+if [ $SEDITCOLORS == "y" ]; then
+ sedit "s:violet:darkgray:" tests/t_articleview.cpp &&
+ sedit "s:violet:darkgray:" stardict-plugins/stardict-xdxf-parsedata-plugin/stardict_xdxf_parsedata.cpp &&
+ sedit "s:green:brown:" tests/t_articleview.cpp &&
+ sedit "s:green:brown:" stardict-plugins/stardict-xdxf-parsedata-plugin/stardict_xdxf_parsedata.cpp
+fi
+
patch -p0 < ${SCRIPT_DIRECTORY}/configure.patch &&
if is_depends_enabled ${SPELL} espeak
then