Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] EDICT dictionary on Kindle
- Date: Sun, 30 Dec 2012 10:50:56 +1100
- From: Jim Breen <jimbreen@example.com>
- Subject: Re: [tlug] EDICT dictionary on Kindle
- References: <CA+04B5BRXGfiC1_=aGLZ8PCo-0wPoL3tPVR60myiLEG0i6xpNg@mail.gmail.com> <CADFHC5yk6BGvhTM0wb3nbSP+5TFSq763JodLruFr7a7bc==y3g@mail.gmail.com> <CA+04B5Dt5+SXf30Wt_L3G=zCkRAbjx3NJEcHfgr+2XZptzGsFw@mail.gmail.com> <CAMEtR2K4-tTQNmqKnGXJNWVFpAat4LSt=CNEcZQRe-s3E4RfLw@mail.gmail.com> <CABHGxq5AudMvnjSjiswDSy20V1oJ4CMVfjnRFqOVe656+a7K3Q@mail.gmail.com> <CAMEtR2JO-Z6LCCD1-U0oD1c3eX82inJbCXxY_aZFK3s_u9ATqA@mail.gmail.com> <20121216222647.GA10816@sanma.local>
On 17 December 2012 09:26, John Mettraux <jmettraux@example.com> wrote: > I've generated a Kindle (.mobi) version of EDICT2. [...] > The tool I used to generate it is at > > https://github.com/jmettraux/edict2-kindle As I mentioned before, I set up John's tool in a script to do a weekly generation of a Kindle "mobi" file. The script work fine when I run it "by hand", but I find it fails as a cron job. The problem is in the execution of the ruby script. When I captured stderr to file I find it full of: ... failed to parse: 刖 [げつ] /(n) (arch) (obsc) (See 剕) cutting off the leg at the knee (form of punishment in ancient China)/EntL2542160/ #<ArgumentError: invalid byte sequence in US-ASCII> ... It seems that whatever locale is used by cron is not getting through to ruby, so it is defaulting to ASCII and chucking up on the UTF8 in the input file. The script has the usual "# encoding: UTF-8" as the first line, but that seem only to affect the script; not the data. Googling the problem shows a lot of discussion of the problem, but no cron-related solutions. I've tried all sorts of locale-setting fiddles, and tried several different shells, but nothing works. Any suggestions? Jim -- Jim Breen Adjunct Snr Research Fellow, Japanese Studies Centre, Monash University
- Follow-Ups:
- Re: [tlug] EDICT dictionary on Kindle
- From: John Mettraux
- References:
- Re: [tlug] EDICT dictionary on Kindle
- From: John Mettraux
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] SSD caching of 10x 10GB files on slow NAS
- Next by Date: [tlug] offsite backup vault providers in Japan
- Previous by thread: Re: [tlug] EDICT dictionary on Kindle
- Next by thread: Re: [tlug] EDICT dictionary on Kindle
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links