Lars Aronsson pisze:
How can I create a minimal grammar? Is there an independent
command-line program (similar to the hunspell program for spell
checking) that can be used for testing the grammar?
There is no built-in grammar checker in OOo. You can reuse one of the
grammar-checking extensions. I don't know how difficult it is to start
with grammar checking in CoGrOOo, but in LT, all it takes for starters,
is to run LanguageTool and edit one XML file. Then you can add more
items to it.
The easiest path for LT:
For the XML file, download the rules.css and rules.dtd from here:
http://languagetool.cvs.sourceforge.net/languagetool/JLanguageTool/src/rules/
And use XML Mind Edit (free edition) to create the file in a
subdirectory. I advise you to start with looking at existing English
file and demo file.
The created file can be loaded in LT and tested online.
Start LT as Java Web Start:
http://www.languagetool.org/webstart/LanguageTool.jnlp
And use File > Load Rule File.
There is more explanation of the xml format here:
http://www.languagetool.org/development/
All in all, starting this development process shouldn't take more than
20 minutes. Of course, if you want more options, like part of speech
tagging and Java rules, you'd need to work much more.
Regards,
Marcin
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]