Re: dictionary packaging
"Mike McWay" <[email protected]> Wed, 1 Oct 2008 18:41:13 -0400
| Newsgroups | gmane.linux.debian.devel.dictionary |
|---|---|
| Message-ID | <[email protected]> |
--===============8957721699542609060== Content-Type: multipart/alternative; boundary="----=_Part_77309_27631779.1222900873810" ------=_Part_77309_27631779.1222900873810 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline thanks Agustin and Rene. sorry about the direct email, your names were at the top of the debian guide. didnt know about the email list. I did have the postinst and postrm files in the wrong place. I also added an empty .aff file which appeased OpenOffice. i think i've got everything working right now. i was really just putting this into an Ubuntu PPA<https://launchpad.net/%7Espanella/+archive>, but if debian would be interested in a Medical dictionary upstream I'd be happy to go through the appropriate channels. Mike On Wed, Oct 1, 2008 at 9:51 AM, Agustin Martin <agustin.martin-a/[email protected] > wrote: > On Tue, Sep 30, 2008 at 10:51:22PM -0400, Mike McWay wrote: > > Hi I'm trying to follow your > > guide<http://dict-common.alioth.debian.org/dsdt-policy.html>to package > > a hunspell > > medical dictionary <http://www.e-medtools.com/Hunspel_openmedspel.html> > for > > Ubuntu but I'm a little new to packaging. I've got everything installing > to > > the right places, but I'm not getting the postinst and postrm scripts > > running correctly. (i.e. adding line to dictionary.lst) > > > > should they be within ~/debian/? > > also have mine as: > > > > #!/bin/sh > > set -e > > if [ "$1" = "configure" ]; then > > update-openoffice-dicts > > fi > > If you are using debhelper, installdeb-myspell should take of creating the > required debhelper snippets, which will be removed by dh_clean. No need to > explicitly add the debhelper snippets. > > Otherwise you just need to put the required code in the postinst and > postrm, > as for any other package not using debhelper. > > > lastly, the dictionary is distributed as a single ".dic" file. Is the > ".aff" > > file neccessary? > > OpenOffice seems to be crashing with this dictionary installed. I guess > I'll > > consult the authors about that. > > Looked at the .dic and, besides the leading word number, seems a plain > wordlist. > > I guess you can try with an empty .aff file (such as one created with > touch). > I expect this to be enough. > > Replying to the dict-common-dev mailing list so there is more possible > feedback. Please reply there so this thread gets archived and can be of > help > to others. > > -- > Agustin > ------=_Part_77309_27631779.1222900873810 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline <div dir="ltr">thanks Agustin and Rene. sorry about the direct email, your names were at the top of the debian guide. didnt know about the email list.<br><br>I did have the postinst and postrm files in the wrong place. I also added an empty .aff file which appeased OpenOffice. i think i've got everything working right now.<br> <br>i was really just putting this into an <a href="https://launchpad.net/%7Espanella/+archive">Ubuntu PPA</a>, but if debian would be interested in a Medical dictionary upstream I'd be happy to go through the appropriate channels.<br> <br>Mike<br> <br><div class="gmail_quote">On Wed, Oct 1, 2008 at 9:51 AM, Agustin Martin <span dir="ltr"><<a href="mailto:agustin.martin-a/[email protected]" target="_blank">agustin.martin-a/[email protected]</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div>On Tue, Sep 30, 2008 at 10:51:22PM -0400, Mike McWay wrote:<br> > Hi I'm trying to follow your<br> </div>> guide<<a href="http://dict-common.alioth.debian.org/dsdt-policy.html" target="_blank">http://dict-common.alioth.debian.org/dsdt-policy.html</a>>to package<br> > a hunspell<br> > medical dictionary <<a href="http://www.e-medtools.com/Hunspel_openmedspel.html" target="_blank">http://www.e-medtools.com/Hunspel_openmedspel.html</a>> for<br> <div>> Ubuntu but I'm a little new to packaging. I've got everything installing to<br> > the right places, but I'm not getting the postinst and postrm scripts<br> > running correctly. (i.e. adding line to dictionary.lst)<br> ><br> > should they be within ~/debian/?<br> > also have mine as:<br> ><br> > #!/bin/sh<br> > set -e<br> > if [ "$1" = "configure" ]; then<br> > update-openoffice-dicts<br> > fi<br> <br> </div>If you are using debhelper, installdeb-myspell should take of creating the<br> required debhelper snippets, which will be removed by dh_clean. No need to<br> explicitly add the debhelper snippets.<br> <br> Otherwise you just need to put the required code in the postinst and postrm,<br> as for any other package not using debhelper.<br> <div><br> > lastly, the dictionary is distributed as a single ".dic" file. Is the ".aff"<br> > file neccessary?<br> > OpenOffice seems to be crashing with this dictionary installed. I guess I'll<br> > consult the authors about that.<br> <br> </div>Looked at the .dic and, besides the leading word number, seems a plain<br> wordlist.<br> <br> I guess you can try with an empty .aff file (such as one created with touch).<br> I expect this to be enough.<br> <br> Replying to the dict-common-dev mailing list so there is more possible<br> feedback. Please reply there so this thread gets archived and can be of help<br> to others.<br> <br> --<br> <font color="#888888">Agustin<br> </font></blockquote></div><br></div> ------=_Part_77309_27631779.1222900873810-- --===============8957721699542609060== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Dict-common-dev mailing list Dict-common-dev-XbBxUvOt3X2LieD7tvxI8l/[email protected] http://lists.alioth.debian.org/mailman/listinfo/dict-common-dev --===============8957721699542609060==--