{"id":96,"date":"2008-04-03T07:09:05","date_gmt":"2008-04-03T15:09:05","guid":{"rendered":"http:\/\/stevenrbrandt.com\/wordpress\/?p=96"},"modified":"2008-04-03T07:27:03","modified_gmt":"2008-04-03T15:27:03","slug":"custom-dictionaries-aspell-and-latex","status":"publish","type":"post","link":"http:\/\/stevenrbrandt.com\/?p=96","title":{"rendered":"Custom Dictionaries, Aspell, and LaTeX"},"content":{"rendered":"<p>It took me a bit of hunting and twiddling to figure out exactly how to use aspell with a custom dictionary that supplements (not replaces) the master dictionary, so I thought I&#8217;d document it for posterity.<\/p>\n<p><code><br \/>\n    aspell --lang en create master .\/custom_dict.aspell < .\/custom_word_list.txt\n    aspell --add-extra-dicts=.\/custom_dict.aspell -t -c my_document.tex\n<\/code><\/p>\n<p>And that's it for the checking part. The only latex specific piece is the \"-t\" option which tells aspell to filter out latex nonsense. If you remove it, then you can use this recipe with a more generic text document.<\/p>\n<p>To create my initial word list I did this:<\/p>\n<p><code><br \/>\naspell -t list -a < my_document.tex | sort -u > .\/custom_word_list.txt<br \/>\n<\/code><\/p>\n<p>This command just creates a list of unrecognized words from the document, and ensures that the are sorted and unique. After I created it I went through and carefully edited the word result. Enjoy.<\/p>\n<p><\/code><\/p>\n<div class=\"sharedaddy sd-sharing-enabled\"><div class=\"robots-nocontent sd-block sd-social sd-social-icon-text sd-sharing\"><h3 class=\"sd-title\">Share this:<\/h3><div class=\"sd-content\"><ul><li class=\"share-twitter\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-twitter-96\" class=\"share-twitter sd-button share-icon\" href=\"http:\/\/stevenrbrandt.com\/?p=96&amp;share=twitter\" target=\"_blank\" title=\"Click to share on Twitter\" ><span>Twitter<\/span><\/a><\/li><li class=\"share-facebook\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-facebook-96\" class=\"share-facebook sd-button share-icon\" href=\"http:\/\/stevenrbrandt.com\/?p=96&amp;share=facebook\" target=\"_blank\" title=\"Click to share on Facebook\" ><span>Facebook<\/span><\/a><\/li><li class=\"share-end\"><\/li><\/ul><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>It took me a bit of hunting and twiddling to figure out exactly how to use aspell with a custom dictionary that supplements (not replaces) the master dictionary, so I thought I&#8217;d document it for posterity. aspell &#8211;lang en create &hellip; <a class=\"more-link\" href=\"http:\/\/stevenrbrandt.com\/?p=96\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n<div class=\"sharedaddy sd-sharing-enabled\"><div class=\"robots-nocontent sd-block sd-social sd-social-icon-text sd-sharing\"><h3 class=\"sd-title\">Share this:<\/h3><div class=\"sd-content\"><ul><li class=\"share-twitter\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-twitter-96\" class=\"share-twitter sd-button share-icon\" href=\"http:\/\/stevenrbrandt.com\/?p=96&amp;share=twitter\" target=\"_blank\" title=\"Click to share on Twitter\" ><span>Twitter<\/span><\/a><\/li><li class=\"share-facebook\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-facebook-96\" class=\"share-facebook sd-button share-icon\" href=\"http:\/\/stevenrbrandt.com\/?p=96&amp;share=facebook\" target=\"_blank\" title=\"Click to share on Facebook\" ><span>Facebook<\/span><\/a><\/li><li class=\"share-end\"><\/li><\/ul><\/div><\/div><\/div>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[3],"tags":[],"class_list":["post-96","post","type-post","status-publish","format-standard","hentry","category-programming"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pgWoS-1y","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/stevenrbrandt.com\/index.php?rest_route=\/wp\/v2\/posts\/96"}],"collection":[{"href":"http:\/\/stevenrbrandt.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/stevenrbrandt.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/stevenrbrandt.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/stevenrbrandt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=96"}],"version-history":[{"count":0,"href":"http:\/\/stevenrbrandt.com\/index.php?rest_route=\/wp\/v2\/posts\/96\/revisions"}],"wp:attachment":[{"href":"http:\/\/stevenrbrandt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=96"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/stevenrbrandt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=96"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/stevenrbrandt.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=96"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}