Browse Source

goldendict

bookworm
pvincent 1 year ago
parent
commit
bea3dad261
  1. 1
      .gitignore
  2. 195
      lib/goldendict/config
  3. 28
      src/main
  4. 1
      src/pvincent.pub

1
.gitignore

@ -0,0 +1 @@
nohup.out

195
lib/goldendict/config

@ -0,0 +1,195 @@
<config>
<paths>
<path recursive="0">/usr/share/goldendict/dicts</path>
</paths>
<sounddirs/>
<dictionaryOrder id="0" name="">
<dictionary name="Babylon English-French">a13e833e4c4f38948be65a543a89aa67</dictionary>
<dictionary name="Babylon French-English">8fc82cb1aab41ff1acc846ab6c590f01</dictionary>
<dictionary name="French Computer-terms Dictionary">ace10024c8482aca10393287525e55d2</dictionary>
<dictionary name="Statistiques (Anglais => Français)">775d4125911e8117987f677a55c6573d</dictionary>
<dictionary name="English Wiktionary">affcf9678e7bfe701c9b071f97eccba3</dictionary>
<dictionary name="French Wiktionary">0f9047d4839c0799d460cfd18a8e8573</dictionary>
<dictionary name="English Wikipedia">ae6f89aac7151829681b85f035d54e48</dictionary>
<dictionary name="French Wikipedia">66cea76a43470e57300d4a4f5d6e8c4f</dictionary>
<mutedDictionaries/>
</dictionaryOrder>
<inactiveDictionaries id="0" name="">
<mutedDictionaries/>
</inactiveDictionaries>
<groups nextId="1"/>
<hunspell dictionariesPath=""/>
<transliteration>
<enableRussianTransliteration>0</enableRussianTransliteration>
<enableGermanTransliteration>0</enableGermanTransliteration>
<enableGreekTransliteration>0</enableGreekTransliteration>
<enableBelarusianTransliteration>0</enableBelarusianTransliteration>
<chinese>
<enable>0</enable>
<enableSCToTWConversion>1</enableSCToTWConversion>
<enableSCToHKConversion>1</enableSCToHKConversion>
<enableTCToSCConversion>1</enableTCToSCConversion>
</chinese>
<romaji>
<enable>0</enable>
<enableHepburn>1</enableHepburn>
<enableNihonShiki>0</enableNihonShiki>
<enableKunreiShiki>0</enableKunreiShiki>
<enableHiragana>1</enableHiragana>
<enableKatakana>1</enableKatakana>
</romaji>
</transliteration>
<forvo>
<enable>0</enable>
<apiKey></apiKey>
<languageCodes></languageCodes>
</forvo>
<mediawikis>
<mediawiki id="ae6f89aac7151829681b85f035d54e48" icon="" url="https://en.wikipedia.org/w" enabled="1" name="English Wikipedia"/>
<mediawiki id="affcf9678e7bfe701c9b071f97eccba3" icon="" url="https://en.wiktionary.org/w" enabled="1" name="English Wiktionary"/>
<mediawiki id="8e0c1c2b6821dab8bdba8eb869ca7176" icon="" url="https://ru.wikipedia.org/w" enabled="0" name="Russian Wikipedia"/>
<mediawiki id="b09947600ae3902654f8ad4567ae8567" icon="" url="https://ru.wiktionary.org/w" enabled="0" name="Russian Wiktionary"/>
<mediawiki id="a8a66331a1242ca2aeb0b4aed361c41d" icon="" url="https://de.wikipedia.org/w" enabled="0" name="German Wikipedia"/>
<mediawiki id="21c64bca5ec10ba17ff19f3066bc962a" icon="" url="https://de.wiktionary.org/w" enabled="0" name="German Wiktionary"/>
<mediawiki id="96957cb2ad73a20c7a1d561fc83c253a" icon="" url="https://pt.wikipedia.org/w" enabled="0" name="Portuguese Wikipedia"/>
<mediawiki id="ed4c3929196afdd93cc08b9a903aad6a" icon="" url="https://pt.wiktionary.org/w" enabled="0" name="Portuguese Wiktionary"/>
<mediawiki id="f3b4ec8531e52ddf5b10d21e4577a7a2" icon="" url="https://el.wikipedia.org/w" enabled="0" name="Greek Wikipedia"/>
<mediawiki id="5d45232075d06e002dea72fe3e137da1" icon="" url="https://el.wiktionary.org/w" enabled="0" name="Greek Wiktionary"/>
<mediawiki id="66cea76a43470e57300d4a4f5d6e8c4f" icon="" url="https://fr.wikipedia.org/w/" enabled="1" name="French Wikipedia"/>
<mediawiki id="0f9047d4839c0799d460cfd18a8e8573" icon="" url="https://fr.wiktionary.org/w" enabled="1" name="French Wiktionary"/>
</mediawikis>
<websites>
<website id="b88cb2898e634c6638df618528284c2d" icon="" inside_iframe="1" url="https://www.google.com/search?q=define:%GDWORD%&amp;hl=en" enabled="0" name="Google En-En (Oxford)"/>
<website id="f376365a0de651fd7505e7e5e683aa45" icon="" inside_iframe="1" url="https://www.urbandictionary.com/define.php?term=%GDWORD%" enabled="0" name="Urban Dictionary"/>
<website id="324ca0306187df7511b26d3847f4b07c" icon="" inside_iframe="1" url="https://multitran.ru/c/m.exe?CL=1&amp;l1=1&amp;s=%GD1251%" enabled="0" name="Multitran (En)"/>
<website id="924db471b105299c82892067c0f10787" icon="" inside_iframe="1" url="http://lingvopro.abbyyonline.com/en/Search/en-ru/%GDWORD%" enabled="0" name="Lingvo (En-Ru)"/>
<website id="087a6d65615fb047f4c80eef0a9465db" icon="" inside_iframe="1" url="http://michaelis.uol.com.br/moderno/ingles/index.php?lingua=portugues-ingles&amp;palavra=%GDISO1%" enabled="0" name="Michaelis (Pt-En)"/>
</websites>
<dictservers/>
<programs>
<program id="428b4c2b905ef568a43d9a16f59559b0" icon="" commandLine="festival --tts" type="0" enabled="0" name="Festival"/>
<program id="2cf8b3a60f27e1ac812de0b57c148340" icon="" commandLine="espeak %GDWORD%" type="0" enabled="0" name="Espeak"/>
<program id="4f898f7582596cea518c6b0bfdceb8b3" icon="" commandLine="man -a --html=/bin/cat %GDWORD%" type="2" enabled="0" name="Manpages"/>
</programs>
<voiceEngines/>
<mutedDictionaries/>
<popupMutedDictionaries/>
<preferences>
<interfaceLanguage></interfaceLanguage>
<helpLanguage></helpLanguage>
<displayStyle>lingvo</displayStyle>
<newTabsOpenAfterCurrentOne>0</newTabsOpenAfterCurrentOne>
<newTabsOpenInBackground>1</newTabsOpenInBackground>
<hideSingleTab>1</hideSingleTab>
<mruTabOrder>0</mruTabOrder>
<hideMenubar>0</hideMenubar>
<enableTrayIcon>1</enableTrayIcon>
<startToTray>1</startToTray>
<closeToTray>1</closeToTray>
<autoStart>0</autoStart>
<doubleClickTranslates>1</doubleClickTranslates>
<selectWordBySingleClick>0</selectWordBySingleClick>
<escKeyHidesMainWindow>1</escKeyHidesMainWindow>
<zoomFactor>1</zoomFactor>
<helpZoomFactor>1</helpZoomFactor>
<wordsZoomLevel>0</wordsZoomLevel>
<enableMainWindowHotkey>0</enableMainWindowHotkey>
<mainWindowHotkey>Ctrl+F11, Ctrl+F11</mainWindowHotkey>
<enableClipboardHotkey>0</enableClipboardHotkey>
<clipboardHotkey>Ctrl+C, Ctrl+C</clipboardHotkey>
<enableScanPopup>1</enableScanPopup>
<startWithScanPopupOn>1</startWithScanPopupOn>
<enableScanPopupModifiers>1</enableScanPopupModifiers>
<scanPopupModifiers>3</scanPopupModifiers>
<scanPopupAltMode>1</scanPopupAltMode>
<scanPopupAltModeSecs>3</scanPopupAltModeSecs>
<ignoreOwnClipboardChanges>1</ignoreOwnClipboardChanges>
<scanToMainWindow>0</scanToMainWindow>
<ignoreDiacritics>0</ignoreDiacritics>
<showScanFlag>0</showScanFlag>
<scanPopupUseUIAutomation>1</scanPopupUseUIAutomation>
<scanPopupUseIAccessibleEx>1</scanPopupUseIAccessibleEx>
<scanPopupUseGDMessage>1</scanPopupUseGDMessage>
<scanPopupUnpinnedWindowFlags>0</scanPopupUnpinnedWindowFlags>
<scanPopupUnpinnedBypassWMHint>0</scanPopupUnpinnedBypassWMHint>
<pronounceOnLoadMain>1</pronounceOnLoadMain>
<pronounceOnLoadPopup>0</pronounceOnLoadPopup>
<useInternalPlayer>1</useInternalPlayer>
<internalPlayerBackend>Qt Multimedia</internalPlayerBackend>
<audioPlaybackProgram>mplayer</audioPlaybackProgram>
<alwaysOnTop>0</alwaysOnTop>
<searchInDock>0</searchInDock>
<historyStoreInterval>0</historyStoreInterval>
<favoritesStoreInterval>0</favoritesStoreInterval>
<confirmFavoritesDeletion>1</confirmFavoritesDeletion>
<proxyserver useSystemProxy="0" enabled="0">
<type>0</type>
<host></host>
<port>3128</port>
<user></user>
<password></password>
<systemProxyUser></systemProxyUser>
<systemProxyPassword></systemProxyPassword>
</proxyserver>
<checkForNewReleases>1</checkForNewReleases>
<disallowContentFromOtherSites>0</disallowContentFromOtherSites>
<enableWebPlugins>0</enableWebPlugins>
<hideGoldenDictHeader>0</hideGoldenDictHeader>
<maxNetworkCacheSize>50</maxNetworkCacheSize>
<clearNetworkCacheOnExit>1</clearNetworkCacheOnExit>
<maxStringsInHistory>500</maxStringsInHistory>
<storeHistory>1</storeHistory>
<alwaysExpandOptionalParts>0</alwaysExpandOptionalParts>
<addonStyle></addonStyle>
<collapseBigArticles>1</collapseBigArticles>
<articleSizeLimit>1000</articleSizeLimit>
<limitInputPhraseLength>1</limitInputPhraseLength>
<inputPhraseLengthLimit>120</inputPhraseLengthLimit>
<maxDictionaryRefsInContextMenu>20</maxDictionaryRefsInContextMenu>
<trackClipboardChanges>0</trackClipboardChanges>
<synonymSearchEnabled>1</synonymSearchEnabled>
<fullTextSearch>
<searchMode>0</searchMode>
<matchCase>0</matchCase>
<maxArticlesPerDictionary>100</maxArticlesPerDictionary>
<maxDistanceBetweenWords>2</maxDistanceBetweenWords>
<useMaxArticlesPerDictionary>0</useMaxArticlesPerDictionary>
<useMaxDistanceBetweenWords>1</useMaxDistanceBetweenWords>
<dialogGeometry></dialogGeometry>
<disabledTypes></disabledTypes>
<enabled>1</enabled>
<ignoreWordsOrder>0</ignoreWordsOrder>
<ignoreDiacritics>0</ignoreDiacritics>
<maxDictionarySize>0</maxDictionarySize>
</fullTextSearch>
</preferences>
<lastMainGroupId>0</lastMainGroupId>
<lastPopupGroupId>0</lastPopupGroupId>
<popupWindowState>AAAA/wAAAAH9AAAAAAAAAi0AAAGTAAAABAAAAAQAAAAIAAAACPwAAAABAAAAAQAAAAEAAAAaAGQAaQBjAHQAaQBvAG4AYQByAHkAQgBhAHICAAAAAP////8AAAAAAAAAAA==</popupWindowState>
<popupWindowGeometry>AdnQywADAAAAAAGkAAAAtgAAA9AAAAJIAAABpAAAALYAAAPQAAACSAAAAAAAAAAABVYAAAGkAAAAtgAAA9AAAAJI</popupWindowGeometry>
<pinPopupWindow>0</pinPopupWindow>
<popupWindowAlwaysOnTop>1</popupWindowAlwaysOnTop>
<mainWindowState>AAAA/wAAAAH9AAAAAgAAAAAAAAAAAAAAAPwCAAAAAfsAAAAUAHMAZQBhAHIAYwBoAFAAYQBuAGUAAAAAAP////8AAACNAP///wAAAAEAAADMAAAB3vwCAAAAA/sAAAASAGQAaQBjAHQAcwBQAGEAbgBlAQAAADwAAACbAAAAZQD////7AAAAGgBmAGEAdgBvAHIAaQB0AGUAcwBQAGEAbgBlAQAAAN0AAACcAAAAZQD////7AAAAFgBoAGkAcwB0AG8AcgB5AFAAYQBuAGUBAAABfwAAAJsAAABlAP///wAAAbsAAAHeAAAABAAAAAQAAAAIAAAACPwAAAABAAAAAgAAAAIAAAAUAG4AYQB2AFQAbwBvAGwAYgBhAHIBAAAAAP////8AAAAAAAAAAAAAABoAZABpAGMAdABpAG8AbgBhAHIAeQBCAGEAcgEAAAHf/////wAAAAAAAAAA</mainWindowState>
<mainWindowGeometry>AdnQywADAAAAAAAAAAAAIAAAAowAAAJeAAAAAAAAAEUAAAKMAAACXgAAAAAAAAAABVYAAAAAAAAARQAAAowAAAJe</mainWindowGeometry>
<helpWindowGeometry></helpWindowGeometry>
<helpSplitterState></helpSplitterState>
<dictInfoGeometry></dictInfoGeometry>
<inspectorGeometry></inspectorGeometry>
<dictionariesDialogGeometry>AdnQywADAAAAAAAAAAAAIwAAA/sAAAJbAAAAAAAAAEgAAAP7AAACWwAAAAAAAAAABVYAAAAAAAAASAAAA/sAAAJb</dictionariesDialogGeometry>
<printPreviewDialogGeometry>AdnQywADAAAAAAAAAAAALQAAAssAAAJRAAAAAAAAAFIAAALLAAACUQAAAAAAAAAABVYAAAAAAAAAUgAAAssAAAJR</printPreviewDialogGeometry>
<timeForNewReleaseCheck>2023-08-28T00:06:15</timeForNewReleaseCheck>
<skippedRelease></skippedRelease>
<showingDictBarNames>0</showingDictBarNames>
<usingSmallIconsInToolbars>1</usingSmallIconsInToolbars>
<editDictionaryCommandLine></editDictionaryCommandLine>
<maxPictureWidth>0</maxPictureWidth>
<maxHeadwordSize>256</maxHeadwordSize>
<maxHeadwordsToExpand>0</maxHeadwordsToExpand>
<headwordsDialog>
<searchMode>0</searchMode>
<matchCase>0</matchCase>
<autoApply>0</autoApply>
<headwordsExportPath></headwordsExportPath>
<headwordsDialogGeometry></headwordsDialogGeometry>
</headwordsDialog>
</config>

28
src/main

@ -43,7 +43,7 @@ function askConfirmation() {
# Variables and constants # Variables and constants
## --------- ## ---------
BASEDIR=/opt/debian-gnome
BASEDIR=$(readlink -f "$(dirname "$0")/..")
ALLOWED_USERS=$(id -un) #CUSTOMIZE if needed! ALLOWED_USERS=$(id -un) #CUSTOMIZE if needed!
REQUIRED_PACKAGES=( REQUIRED_PACKAGES=(
bash-completion bash-completion
@ -183,6 +183,18 @@ if [[ "$favorite_apps" == "['firefox-esr.desktop', 'org.gnome.Evolution.desktop'
gsettings set org.gnome.shell favorite-apps "['org.gnome.Nautilus.desktop','firefox-stable.desktop','org.gnome.Software.desktop']" gsettings set org.gnome.shell favorite-apps "['org.gnome.Nautilus.desktop','firefox-stable.desktop','org.gnome.Software.desktop']"
fi fi
echo "## golden dict"
echo "================"
if [[ ! -d /usr/share/goldendict/dicts ]]; then
sudo git clone --depth 1 https://git.artcode.re/non-free/dicts.git /usr/share/goldendict/dicts
fi
if [[ ! -f $HOME/.config/goldendict/config ]] || ! grep -q "path.*/usr/share/goldendict/dicts" $HOME/.config/goldendict/config; then
mkdir -p "$HOME/.config/goldendict/"
cp "$BASEDIR/lib/goldendict/config" "$HOME/.config/goldendict/"
nohup goldendict &
fi
echo "## gnome-extensions-cli" echo "## gnome-extensions-cli"
echo "=======================" echo "======================="
if [[ ! -f ~/.local/bin/gext ]]; then if [[ ! -f ~/.local/bin/gext ]]; then
@ -203,8 +215,8 @@ EXTENSIONS=(
for extension in "${EXTENSIONS[@]}"; do for extension in "${EXTENSIONS[@]}"; do
if [[ ! -d $HOME/.local/share/gnome-shell/extensions/$extension ]]; then if [[ ! -d $HOME/.local/share/gnome-shell/extensions/$extension ]]; then
~/.local/bin/gext install "$extension"
sudo cp $HOME/.local/share/gnome-shell/extensions/$extension/schemas/*.gschema.xml /usr/share/glib-2.0/schemas/
"$HOME/.local/bin/gext" install "$extension"
sudo cp "$HOME/.local/share/gnome-shell/extensions/$extension/schemas/*.gschema.xml" /usr/share/glib-2.0/schemas/
else else
echo "extension <${extension}> already installed!" echo "extension <${extension}> already installed!"
fi fi
@ -223,11 +235,17 @@ gsettings set org.gnome.shell.extensions.system-monitor net-graph-width 40
gsettings set org.gnome.shell.extensions.system-monitor disk-display false gsettings set org.gnome.shell.extensions.system-monitor disk-display false
gsettings set org.gnome.shell.extensions.system-monitor icon-display false gsettings set org.gnome.shell.extensions.system-monitor icon-display false
#gsettings set org.gnome.shell.extensions.dash-to-dock dock-fixed true
gsettings set org.gnome.shell.extensions.dash-to-dock apply-custom-theme true gsettings set org.gnome.shell.extensions.dash-to-dock apply-custom-theme true
#gsettings set org.gnome.shell.extensions.dash-to-dock extend-height true
gsettings set org.gnome.shell.extensions.dash-to-dock multi-monitor true gsettings set org.gnome.shell.extensions.dash-to-dock multi-monitor true
gsettings set org.gnome.shell.extensions.network-stats display-bytes true
if [[ $(gsettings get org.gnome.shell.extensions.network-stats show-icon) == "true" ]]; then
gsettings set org.gnome.shell.extensions.network-stats show-icon false
"$HOME/.local/bin/gext" disable network-stats@gnome.noroadsleft.xyz
"$HOME/.local/bin/gext" enable network-stats@gnome.noroadsleft.xyz
fi
echo "# firefox addons" echo "# firefox addons"
echo "================" echo "================"
declare -A FIREFOX_ADDONS declare -A FIREFOX_ADDONS

1
src/pvincent.pub

@ -1 +0,0 @@
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCw8Xjt2gh6iyoEuBCVdbLAkxA8vkXXaywDI6NJ5n6OvwIaUiU2OrmeKU6Wlpyv49dSv3+wcikyhn37H59R3X7DPJ5JX2YnvR6LDWEz6Ja1z44MzVfCUfeQYha4bofdTOdU2EZJvMc9h1M12d//YNViyXfHB8q7oOCp70XzurwvbmYeRn5xthFvMe+0BWBHyfK1yb6grOCuLtJs3vSeyFRz5WoZdDhZrkFi1NelewdNOxB60GyCyb6WRKJRvqvNiUCiEoS7IiNVbqRasdU1K8MRfoHuJYsfG87JjMdJihijQWd+TBq26aMspH8DYrxWaLMjQGRhH5YsunbHKILD8JwD pvincent
Loading…
Cancel
Save