[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: Re: [docbook-apps] spell checking
Thomas.Gier@imperia.net writes: > Bruce D'Arcus wrote: > > > > On Friday, December 5, 2003, at 03:39 PM, W. Borgert wrote: > > > >> I just tried nxml-mode with aspell and: > >> > >> (setq ispell-program-name "aspell") > >> (set-default 'ispell-skip-html t) > >> (setq ispell-extra-args '("--mode=sgml")) If ispell-skip-html is set to t and having any effect at all, you shouldn't need to specify --mode=sgml. Or to put it another way, if you have to pass that --mode=sgml arg to aspell get things to work, then you might as well just remove the (set-default 'ispell-skip-html t), because it's not doing anything for you. The logic for skipping over markup is in ispell.el and doesn't rely on whatever "ignore markup" mechanism the ispell-program-name program you're using might have. If you want to see for yourself, open up your ispell.el file and take a look at the definitions for the ispell-begin-skip-region-regexp and ispell-skip-region functions. > > Damn. I have this too, but I am still getting element and attribute > > values as "mispelled"! I see this with ispell too, though. > > > > Bruce > > Hi, > > I had this to until I defined the element names as LocalWords on the > bottom of each file (this list is far from complete): > > <!-- LocalWords: sgml Local End para LocalWords left itemizedlist > varlistentry variablelist figure listitem sect term title indexterm > primary secondary tertiary insert id imageobject mediaobject imagedata > contentwidth align center fileref xref --> > > This list must be in *one* line otherwise words after the line break are > ignored and appear as misspelled again ... If you have to explicitly specify element names that way, it means ispell-skip-html either isn't actually set to t in the buffer you're in, or is set but not having any affect for some reason. You might want to try removing your LocalWords and adding this instead: <!-- Local Variables: ispell-skip-html: t End: -->
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]