aspell-devel
[Top][All Lists]
Advanced

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

Re: [aspell-devel] Filters in aspell


From: Petr Gajdos
Subject: Re: [aspell-devel] Filters in aspell
Date: Thu, 20 Nov 2008 18:05:31 +0100
User-agent: KMail/1.10.3 (Linux/2.6.27.5-2-default; KDE/4.1.3; x86_64; ; )

On Monday 10 November 2008 12:57:24 Petr Gajdos wrote:

> > aspell --mode=sgml -a

>

> Unhandled Error: The key "f-sgml-skip" is unknown.

> Aborted

Hopefully I found the culprit: look at static_filters.src.cpp:

---------8<-------------------------------------------

static KeyInfo texinfo_options[] = {

{

"f-texinfo-ignore",

KeyInfoList,

"setfilename:syncodeindex:documentencoding:vskip:code:kbd:key:samp:verb:var:env:file:command:option:url:uref:email:verbatiminclude:xref:ref:pxref:inforef:c",

"Texinfo commands to ignore the parameters of"

},

{

"f-texinfo-ignore-env",

KeyInfoList,

"example:smallexample:verbatim:lisp:smalllisp:small:display:snalldisplay:format:smallformat",

"Texinfo environments to ignore"

}

};

const KeyInfo * texinfo_options_begin = texinfo_options;

const KeyInfo * texinfo_options_end = texinfo_options;

--------->8-------------------------------------------

I don't know perl, but this works for me (it's really not elegant):

--- gen/mk-static-filter.pl

+++ gen/mk-static-filter.pl

@@ -159,7 +159,7 @@

printf STATICFILTERS "\n const KeyInfo * ".${$filter}{"NAME"}."_options_begin = ".

${$filter}{"NAME"}."_options;\n";

# If structure is empty, set options_end to same as options_begin.

- if (%{$filter}) {

+ if ($firstopt) {

printf STATICFILTERS "\n const KeyInfo * ".${$filter}{"NAME"}."_options_end = ".

${$filter}{"NAME"}."_options;\n";

} else {


reply via email to

[Prev in Thread] Current Thread [Next in Thread]