[meta] install webster's 1913 dictionary

pull/33/head
Alpha Chen 4 years ago
parent db16574d0a
commit 67a5ad1e7f

2
.gitattributes vendored

@ -1,5 +1,4 @@
Alfred.alfredpreferences/workflows/*/info.plist filter=alfredworkflow 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_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/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 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_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
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

@ -11,3 +11,13 @@
src: ~/.dotfiles/osx/DefaultKeyBinding.dict src: ~/.dotfiles/osx/DefaultKeyBinding.dict
dest: ~/Library/KeyBindings/DefaultKeyBinding.dict dest: ~/Library/KeyBindings/DefaultKeyBinding.dict
state: link 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

@ -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%);
}
}
Loading…
Cancel
Save