diff --git a/.gitattributes b/.gitattributes index b767368..141175b 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,5 +1,4 @@ Alfred.alfredpreferences/workflows/*/info.plist filter=alfredworkflow - Alfred.alfredpreferences/workflows/user.workflow.35F259A3-BBD9-4A1B-B237-5E149EE1E723/dash_keyword_rust.png filter=lfs diff=lfs merge=lfs -text Alfred.alfredpreferences/workflows/user.workflow.35F259A3-BBD9-4A1B-B237-5E149EE1E723/dash_keyword_vim.png filter=lfs diff=lfs merge=lfs -text Alfred.alfredpreferences/workflows/user.workflow.35F259A3-BBD9-4A1B-B237-5E149EE1E723/icon.png filter=lfs diff=lfs merge=lfs -text @@ -13,3 +12,4 @@ Alfred.alfredpreferences/workflows/user.workflow.35F259A3-BBD9-4A1B-B237-5E149EE Alfred.alfredpreferences/workflows/user.workflow.35F259A3-BBD9-4A1B-B237-5E149EE1E723/dash_keyword_markdown.png filter=lfs diff=lfs merge=lfs -text Alfred.alfredpreferences/workflows/user.workflow.35F259A3-BBD9-4A1B-B237-5E149EE1E723/dash_keyword_nodejs.png filter=lfs diff=lfs merge=lfs -text Alfred.alfredpreferences/workflows/user.workflow.35F259A3-BBD9-4A1B-B237-5E149EE1E723/dash_keyword_nodejs.png filter=lfs diff=lfs merge=lfs -text +osx/websters-1913.dictionary filter=lfs diff=lfs merge=lfs -text diff --git a/ansible/playbooks/mac_os.yml b/ansible/playbooks/mac_os.yml index a2c70fe..71bc46e 100644 --- a/ansible/playbooks/mac_os.yml +++ b/ansible/playbooks/mac_os.yml @@ -11,3 +11,13 @@ src: ~/.dotfiles/osx/DefaultKeyBinding.dict dest: ~/Library/KeyBindings/DefaultKeyBinding.dict state: link + + - name: Install Webster's 1913 dictionary + block: + - copy: + src: ~/.dotfiles/osx/websters-1913.dictionary + dest: ~/Library/Dictionaries/websters-1913.dictionary + - command: > + /usr/libexec/PlistBuddy + -c "Add :DCSActiveDictionaries:0 string /Users/alpha/Library/Containers/com.apple.Dictionary/Data/Library/Dictionaries/websters-1913.dictionary" + ~/Library/Preferences/com.apple.DictionaryServices.plist diff --git a/osx/websters-1913.dictionary/Contents/Info.plist b/osx/websters-1913.dictionary/Contents/Info.plist new file mode 100644 index 0000000..201ccae Binary files /dev/null and b/osx/websters-1913.dictionary/Contents/Info.plist differ diff --git a/osx/websters-1913.dictionary/Contents/Resources/Body.data b/osx/websters-1913.dictionary/Contents/Resources/Body.data new file mode 100644 index 0000000..c45bca8 Binary files /dev/null and b/osx/websters-1913.dictionary/Contents/Resources/Body.data differ diff --git a/osx/websters-1913.dictionary/Contents/Resources/DefaultStyle.css b/osx/websters-1913.dictionary/Contents/Resources/DefaultStyle.css new file mode 100644 index 0000000..e048ec8 --- /dev/null +++ b/osx/websters-1913.dictionary/Contents/Resources/DefaultStyle.css @@ -0,0 +1,156 @@ +@charset "UTF-8"; +@namespace d url(http://www.apple.com/DTDs/DictionaryService-1.0.rng); + +@font-face { + font-family: "Gentium"; + font-style: normal; + font-weight: normal; + src: url(GentiumPlus-R.ttf) +} + +@font-face { + font-family: "Gentium"; + font-style: italic; + font-weight: normal; + src: url(GentiumPlus-I.ttf) +} + +@font-face { + font-family: "Gentium"; + font-style: normal; + font-weight: bold; + src: url(GenBasB.ttf) +} + +@font-face { + font-family: "GentiumSMCP"; + font-style: normal; + font-weight: normal; + src: url(GentiumPlus-R-smcp.woff) +} + +@font-face { + font-family: "GentiumSMCP"; + font-style: italic; + font-weight: normal; + src: url(GentiumPlus-I-smcp.woff) +} + +body { + line-height: 1.3; +} + +body, .block { + font-family: Gentium; +} + +div { + display: inline; +} + +.hw { + font-size: 134%; + font-weight: bold; + color: maroon; + margin-bottom: -3px; + display: inline; + line-height: 0.85; +} + +.col { + font-size: 90%; + font-weight: 600; +} + +.cd { + font-size: 95%; + word-spacing: -0.5px; +} + +.rj { + text-align: right; +} + +.q + .rj { + display: block; + +} + +.qau:before, .au:before { + content: "– "; +} + +*+.hw:before { + content: "\A\A"; + white-space:pre; +} + +.q+.hw:before { + content: "\A"; + white-space:pre; + line-height: 0; +} + +.sn:before, .sd:before, .note:before, .def + .cs:before { + content: "\A"; + white-space:pre; +} + +.q + .sn:before, .cs .sd:before, .q + .sd:before, .def .sn:before, .def .sd:before { + content:""; + white-space:initial; +} + +.au, .qau { + font-size: 90%; +} + + +.xex, .it, .title, .stype, .part, .parts, .membof, .member, +.members, .corr, .qperson, .prod, .prodmac, .stage, .stageof, +.inv, .methodfor, .examp, .stage, .unit, .uses, .usedby, .perf, +.recipr, .sig, .wns, .w16ns, .abbr, .altname, .altnpluf, .ets, +.etsep, .ex, .pos, .qau, .qex, .sd, .ship, .source, .pluf, +.uex, .isa, .mathex, .ratio, .singf, .xlati, .tran, .tr, +.iref, .figref, .ptcl, .mark, .fld { + font-style: italic; +} + +.q { + font-size: 86%; + line-height: 1.3; + margin: 5px 15px 5px 35px; + display: block; +} + +.sn { + font-weight:bold; + font-size: 105% +} + +.adjf, .conj, .decf, .er, .plw, .singw, .u, .plw { + font-family: 'GentiumSMCP'; +} + +@supports(font-feature-settings: 'smcp') { + .adjf, .conj, .decf, .er, .plw, .singw, .u, .plw { + font-family: inherit + font-variant: normal; + font-feature-settings: 'smcp'; + } +} + +html { + /* There is a style="background: white" on the html element we have to beat */ + background: none !important; +} + +@media (prefers-dark-interface) { + .hw { + /* blue is more readable on the dark background than maroon */ + color: -webkit-link; + } + img { + filter: invert(100%); + } +} diff --git a/osx/websters-1913.dictionary/Contents/Resources/EntryID.data b/osx/websters-1913.dictionary/Contents/Resources/EntryID.data new file mode 100644 index 0000000..9d5fc5e Binary files /dev/null and b/osx/websters-1913.dictionary/Contents/Resources/EntryID.data differ diff --git a/osx/websters-1913.dictionary/Contents/Resources/EntryID.index b/osx/websters-1913.dictionary/Contents/Resources/EntryID.index new file mode 100644 index 0000000..0e44fe6 Binary files /dev/null and b/osx/websters-1913.dictionary/Contents/Resources/EntryID.index differ diff --git a/osx/websters-1913.dictionary/Contents/Resources/GenBasB.ttf b/osx/websters-1913.dictionary/Contents/Resources/GenBasB.ttf new file mode 100755 index 0000000..636cbc1 Binary files /dev/null and b/osx/websters-1913.dictionary/Contents/Resources/GenBasB.ttf differ diff --git a/osx/websters-1913.dictionary/Contents/Resources/GentiumPlus-I-smcp.woff b/osx/websters-1913.dictionary/Contents/Resources/GentiumPlus-I-smcp.woff new file mode 100644 index 0000000..88ef517 Binary files /dev/null and b/osx/websters-1913.dictionary/Contents/Resources/GentiumPlus-I-smcp.woff differ diff --git a/osx/websters-1913.dictionary/Contents/Resources/GentiumPlus-I.ttf b/osx/websters-1913.dictionary/Contents/Resources/GentiumPlus-I.ttf new file mode 100755 index 0000000..df922fd Binary files /dev/null and b/osx/websters-1913.dictionary/Contents/Resources/GentiumPlus-I.ttf differ diff --git a/osx/websters-1913.dictionary/Contents/Resources/GentiumPlus-R-smcp.woff b/osx/websters-1913.dictionary/Contents/Resources/GentiumPlus-R-smcp.woff new file mode 100644 index 0000000..b015509 Binary files /dev/null and b/osx/websters-1913.dictionary/Contents/Resources/GentiumPlus-R-smcp.woff differ diff --git a/osx/websters-1913.dictionary/Contents/Resources/GentiumPlus-R.ttf b/osx/websters-1913.dictionary/Contents/Resources/GentiumPlus-R.ttf new file mode 100755 index 0000000..d80226c Binary files /dev/null and b/osx/websters-1913.dictionary/Contents/Resources/GentiumPlus-R.ttf differ diff --git a/osx/websters-1913.dictionary/Contents/Resources/KeyText.data b/osx/websters-1913.dictionary/Contents/Resources/KeyText.data new file mode 100644 index 0000000..24dbf39 Binary files /dev/null and b/osx/websters-1913.dictionary/Contents/Resources/KeyText.data differ diff --git a/osx/websters-1913.dictionary/Contents/Resources/KeyText.index b/osx/websters-1913.dictionary/Contents/Resources/KeyText.index new file mode 100644 index 0000000..a944e52 Binary files /dev/null and b/osx/websters-1913.dictionary/Contents/Resources/KeyText.index differ