{"id":473,"date":"2010-09-06T16:52:26","date_gmt":"2010-09-06T15:52:26","guid":{"rendered":"http:\/\/www.streppone.it\/cosimo\/blog\/2010\/09\/if-texthunspell-never-worked-for-you-now-its-time-to-try-it-again\/"},"modified":"2010-09-06T16:52:26","modified_gmt":"2010-09-06T15:52:26","slug":"if-texthunspell-never-worked-for-you-now-its-time-to-try-it-again","status":"publish","type":"post","link":"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/09\/if-texthunspell-never-worked-for-you-now-its-time-to-try-it-again\/","title":{"rendered":"If Text::Hunspell never worked for you, now it&#8217;s time to try it again!"},"content":{"rendered":"<p>If you don&#39;t know, <a href=\"http:\/\/hunspell.sourceforge.net\/\" rel=\"nofollow\">Hunspell<\/a> is the spell checker engine of <a href=\"http:\/\/www.openoffice.org\/\" rel=\"nofollow\">OpenOffice.org<\/a>, and it&#39;s also <b>included in the Opera and Mozilla browsers<\/b>.<\/p>\n<p>We were trying to use it from Perl, using the <b>old <a href=\"http:\/\/search.cpan.org\/~eleonora\/text_hunspell_1.3\/\" rel=\"nofollow\">Text::Hunspell<\/a> module, version 1.3<\/b>, but we had problems with it. Big problems. Like segfaults and tests that wouldn&#39;t run.<\/p>\n<p>A bright hacker from Italy :) was then called in to fix the problem, with <b>the promise of a fantastic prize he hasn&#39;t seen yet&#8230;<\/b> <a href=\"http:\/\/my.opera.com\/WarGamez\/\" rel=\"nofollow\">[ping?]<\/a> :-)<\/p>\n<p>During the process, I found out I know absolutely nothing about dictionary files and stuff, and <a href=\"http:\/\/github.com\/cosimo\/perl5-text-hunspell\/compare\/fb739dcd5a...86a6e7719b\" rel=\"nofollow\">my fixes<\/a> were &#8211; I would say &#8211; definitely horrible.<\/p>\n<p>But! There&#39;s a bright side, of course, and that is that the module works just fine now, at least on Debian\/Ubuntu systems. Before using Text::Hunspell, you want to install the following packages:<\/p>\n<ul>\n<li>hunspell<\/li>\n<li>libhunspell-dev<\/li>\n<\/ul>\n<p>The example in the POD documentation (and in the <code>examples<\/code> dir) uses the standard US english dictionary. If you don&#39;t have that, you will need to change the script slightly. But the code is tested and should work without a problem. If you try it out and you have feedback, by all means let me know. Thanks!<\/p>\n<p>Source code available on GitHub at:<br \/>\n<a href=\"http:\/\/github.com\/cosimo\/perl5-text-hunspell\/\" rel=\"nofollow\">http:\/\/github.com\/cosimo\/perl5-text-hunspell\/<\/a><\/p>\n<p>The module, tagged as <b>2.00<\/b> because it&#39;s cool :), will be up on CPAN shortly at this address:<br \/>\n<a href=\"http:\/\/search.cpan.org\/dist\/Text-Hunspell\/\" rel=\"nofollow\">http:\/\/search.cpan.org\/dist\/Text-Hunspell\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you don&#39;t know, Hunspell is the spell checker engine of OpenOffice.org, and it&#39;s also included in the Opera and Mozilla browsers. We were trying to use it from Perl, using the old Text::Hunspell module, version 1.3, but we had problems with it. Big problems. Like segfaults and tests that wouldn&#39;t run. A bright hacker [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[49,63,382,50,381,380],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>If Text::Hunspell never worked for you, now it&#039;s time to try it again! - Random hacking<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/09\/if-texthunspell-never-worked-for-you-now-its-time-to-try-it-again\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"If Text::Hunspell never worked for you, now it&#039;s time to try it again! - Random hacking\" \/>\n<meta property=\"og:description\" content=\"If you don&#039;t know, Hunspell is the spell checker engine of OpenOffice.org, and it&#039;s also included in the Opera and Mozilla browsers. We were trying to use it from Perl, using the old Text::Hunspell module, version 1.3, but we had problems with it. Big problems. Like segfaults and tests that wouldn&#039;t run. A bright hacker [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/09\/if-texthunspell-never-worked-for-you-now-its-time-to-try-it-again\/\" \/>\n<meta property=\"og:site_name\" content=\"Random hacking\" \/>\n<meta property=\"article:published_time\" content=\"2010-09-06T15:52:26+00:00\" \/>\n<meta name=\"author\" content=\"cosimo\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"cosimo\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/09\/if-texthunspell-never-worked-for-you-now-its-time-to-try-it-again\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/09\/if-texthunspell-never-worked-for-you-now-its-time-to-try-it-again\/\"},\"author\":{\"name\":\"cosimo\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1\"},\"headline\":\"If Text::Hunspell never worked for you, now it&#8217;s time to try it again!\",\"datePublished\":\"2010-09-06T15:52:26+00:00\",\"dateModified\":\"2010-09-06T15:52:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/09\/if-texthunspell-never-worked-for-you-now-its-time-to-try-it-again\/\"},\"wordCount\":253,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1\"},\"keywords\":[\"cpan\",\"github\",\"hunspell\",\"perl\",\"spell checker\",\"text::hunspell\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/09\/if-texthunspell-never-worked-for-you-now-its-time-to-try-it-again\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/09\/if-texthunspell-never-worked-for-you-now-its-time-to-try-it-again\/\",\"url\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/09\/if-texthunspell-never-worked-for-you-now-its-time-to-try-it-again\/\",\"name\":\"If Text::Hunspell never worked for you, now it's time to try it again! - Random hacking\",\"isPartOf\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#website\"},\"datePublished\":\"2010-09-06T15:52:26+00:00\",\"dateModified\":\"2010-09-06T15:52:26+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/09\/if-texthunspell-never-worked-for-you-now-its-time-to-try-it-again\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/09\/if-texthunspell-never-worked-for-you-now-its-time-to-try-it-again\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/09\/if-texthunspell-never-worked-for-you-now-its-time-to-try-it-again\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.streppone.it\/cosimo\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"If Text::Hunspell never worked for you, now it&#8217;s time to try it again!\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#website\",\"url\":\"https:\/\/www.streppone.it\/cosimo\/blog\/\",\"name\":\"Random hacking\",\"description\":\"Assume nothing. Code defensively. Keep it simple, stupid!\",\"publisher\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.streppone.it\/cosimo\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1\",\"name\":\"cosimo\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/cb1d938720df45a2720724aae99e3bfc?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/cb1d938720df45a2720724aae99e3bfc?s=96&r=g\",\"caption\":\"cosimo\"},\"logo\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/image\/\"},\"url\":\"https:\/\/www.streppone.it\/cosimo\/blog\/author\/cosimo\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"If Text::Hunspell never worked for you, now it's time to try it again! - Random hacking","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/09\/if-texthunspell-never-worked-for-you-now-its-time-to-try-it-again\/","og_locale":"en_US","og_type":"article","og_title":"If Text::Hunspell never worked for you, now it's time to try it again! - Random hacking","og_description":"If you don&#39;t know, Hunspell is the spell checker engine of OpenOffice.org, and it&#39;s also included in the Opera and Mozilla browsers. We were trying to use it from Perl, using the old Text::Hunspell module, version 1.3, but we had problems with it. Big problems. Like segfaults and tests that wouldn&#39;t run. A bright hacker [&hellip;]","og_url":"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/09\/if-texthunspell-never-worked-for-you-now-its-time-to-try-it-again\/","og_site_name":"Random hacking","article_published_time":"2010-09-06T15:52:26+00:00","author":"cosimo","twitter_card":"summary_large_image","twitter_misc":{"Written by":"cosimo","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/09\/if-texthunspell-never-worked-for-you-now-its-time-to-try-it-again\/#article","isPartOf":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/09\/if-texthunspell-never-worked-for-you-now-its-time-to-try-it-again\/"},"author":{"name":"cosimo","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1"},"headline":"If Text::Hunspell never worked for you, now it&#8217;s time to try it again!","datePublished":"2010-09-06T15:52:26+00:00","dateModified":"2010-09-06T15:52:26+00:00","mainEntityOfPage":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/09\/if-texthunspell-never-worked-for-you-now-its-time-to-try-it-again\/"},"wordCount":253,"commentCount":0,"publisher":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1"},"keywords":["cpan","github","hunspell","perl","spell checker","text::hunspell"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.streppone.it\/cosimo\/blog\/2010\/09\/if-texthunspell-never-worked-for-you-now-its-time-to-try-it-again\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/09\/if-texthunspell-never-worked-for-you-now-its-time-to-try-it-again\/","url":"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/09\/if-texthunspell-never-worked-for-you-now-its-time-to-try-it-again\/","name":"If Text::Hunspell never worked for you, now it's time to try it again! - Random hacking","isPartOf":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#website"},"datePublished":"2010-09-06T15:52:26+00:00","dateModified":"2010-09-06T15:52:26+00:00","breadcrumb":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/09\/if-texthunspell-never-worked-for-you-now-its-time-to-try-it-again\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.streppone.it\/cosimo\/blog\/2010\/09\/if-texthunspell-never-worked-for-you-now-its-time-to-try-it-again\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/09\/if-texthunspell-never-worked-for-you-now-its-time-to-try-it-again\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.streppone.it\/cosimo\/blog\/"},{"@type":"ListItem","position":2,"name":"If Text::Hunspell never worked for you, now it&#8217;s time to try it again!"}]},{"@type":"WebSite","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#website","url":"https:\/\/www.streppone.it\/cosimo\/blog\/","name":"Random hacking","description":"Assume nothing. Code defensively. Keep it simple, stupid!","publisher":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.streppone.it\/cosimo\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1","name":"cosimo","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/cb1d938720df45a2720724aae99e3bfc?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cb1d938720df45a2720724aae99e3bfc?s=96&r=g","caption":"cosimo"},"logo":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/image\/"},"url":"https:\/\/www.streppone.it\/cosimo\/blog\/author\/cosimo\/"}]}},"_links":{"self":[{"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/posts\/473"}],"collection":[{"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/comments?post=473"}],"version-history":[{"count":0,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/posts\/473\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/media?parent=473"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/categories?post=473"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/tags?post=473"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}