[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pos/misc entities



--- In edict-jmdict@yahoogroups.com, "Jim Breen" <jimbreen@...> wrote:
> I could either make then nodes, as you suggest, or simply stop
> them being entities. I have no strong feelings either way - I don't
> actually use the XML version. I guess having them nodes would mean
> that xmllint, etc. would yell if I let a typo through, but I check
> against that already.

I played around with this, resulting in this DTD:

http://zewt.org/~glenn/JMdict%20test.dtd

It required changing uK and eK because element names aren't
case-sensitive, so I used "ukanji", "ukana", "ekanji", "ekana",
"ikanji", "okanji".  The pos, dial, misc, field, re_inf, ke_inf
elements were changed from pos* to pos?, because there's no reason to
have more than one: use <pos><n/><adv/></pos> instead of
<pos><n/></pos><pos><adv/></pos>.

I like this a lot more than just removing the entities and having
floating text.

(Remembered to bring this up now, since you just mentioned adding
something to re_inf...)