Feature Requests item #2880449, was opened at 2009-10-16 05:04
Message generated for change (Comment added) made by giniu
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=655720&aid=2880449&group_id=110216
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Priority: 5
Private: No
Submitted By: Pander (pander)
Assigned to: Nobody/Anonymous (nobody)
Summary: Add option for processing TeX files
Initial Comment:
Please, add an option for processing TeX files [-T|--TeX]
Se it omits reports like:
1.) Line 1, column 24, Rule ID: COMMA_PARENTHESIS_WHITESPACE
Message: Put a space after the comma
Suggestion: ,
\documentclass[twocolumn,showtrims]{memoir}
^
( the ^ is pointing at the comma)
Also omit all after a % (not a \%) untill the end of the line.
Omit repoting whitespace before words starting with a backslash
26.) Line 83, column 0, Rule ID: WHITESPACE_RULE
Message: Possible typo: you repeated a whitespace
Suggestion:
{ \abc{}}
^^^^
and also after a TeX command without {}
{\abc }
^^^^
Implementing these 5 points under a special TeX command line option will
increase checking grammar for TeX files
----------------------------------------------------------------------
Comment By: Andrzej Giniewicz (giniu)
Date: 2012-10-03 14:34
Message:
Would be great to have... till then I use
http://code.google.com/p/opendetex/ - as simple solution would it be
possible to just "use" it in LT if TeX was detected? Or - maybe it would be
possible to use it as base for some more advanced mode
----------------------------------------------------------------------
Comment By: Pander (pander)
Date: 2011-09-26 02:48
Message:
For aspell, see modules/filter and modules/filter/modes from
ftp://ftp.gnu.org/gnu/aspell/aspell-0.60.6.1.tar.gz These support also
HTML, SGML and more.
----------------------------------------------------------------------
Comment By: Pander (pander)
Date: 2011-09-26 02:47
Message:
For aspell, see modules/filter
ftp://ftp.gnu.org/gnu/aspell/aspell-0.60.6.1.tar.gz
----------------------------------------------------------------------
Comment By: Pander (pander)
Date: 2011-09-26 02:27
Message:
Anotherone that can be added is to ignore all that is between a procent %
and the end of line, unless the % is escaped with a backslash \%.
The implementation can be done easily by reusing code from ispell
http://www.math.sc.edu/system/man/ispell.html and/or apsell
http://aspell.net/man-html/The-Options.html#The-Options Both these checkers
have functionality (perhaps even from another lib) to process input in
(La)TeX format as normal text.
----------------------------------------------------------------------
Comment By: Pander (pander)
Date: 2009-10-19 02:19
Message:
I would prefer that all the rules, including the ones on comma and
whtespace, remain active in TeX mode. User can disable them themselved if
they need to, this can be suggested in the manual regarding TeX mode. Also
suppose there rules are extended with things that are useful for TeX, then
one would miss these in TeX mode. Because overall these rules are doing it
very good already in TeX and I hopre the extra cases can be implemented.
Keep up the good work and I'm willing to run it on English and Dutch TeX
files as a tester.
----------------------------------------------------------------------
Comment By: Corentin Barbu (kaour)
Date: 2009-10-19 00:39
Message:
Two more tricks to deal with in a LaTeX mode :
1) same comment on spaces in response to pander, you can use
--disable WHITESPACE_RULE,COMMA_PARENTHESIS_WHITESPACE
without disagreament as LaTeX manage then well spaces in the final
document.
2) french '«' and '» ' (french typo for '' ", « open » close )cause an
error, maybe it's not only a tex problem.
37.) Line 128, column 106, Rule ID: UNPAIRED_BRACKETS
Message: Il manque une parenthèse fermante ou ouvrante, un guillemet
fermant ou ouvrant, etc.
...ée dans toute la région appellée communément « le cône Sud »
c'est à dire au sud d'u...
----------------------------------------------------------------------
Comment By: Corentin Barbu (kaour)
Date: 2009-10-19 00:01
Message:
I'm currently setting a bundle of shortcut allowing to efficiently review
LT corrections on tex files from vim
(http://corentin.barbu.free.fr/blogotext/index.php?2009/10/17/17/03/59-correction-grammaticale-dans-latex).
My point of view on this four points (I missed the fifth):
First, yes I've problems with comma (,) in squared brackets ([ ]), this
probably should be escaped in tex mode.
Second, clearly escape the end of the line after a % (not a \%) would be a
good thing. even if I've few comments in my tex files.
Third/Fourth I use the option :
--disable WHITESPACE_RULE
As LaTeX handle very well white spaces, correct white spaces in the tex
document are most-often not necessary and often used for readability of the
tex file.
Maybe a tex mode with this rules would be a good thing even If I think LT
to be already suitable for production use on LaTeX files, a list for my
usage.
Best Regards,
----------------------------------------------------------------------
Comment By: Pander (pander)
Date: 2009-10-16 05:42
Message:
this should also be considered good:
3.) Line 55, column 46, Rule ID: COMMA_PARENTHESIS_WHITESPACE
Message: Put a space after the comma
Suggestion: ,
...contemporaries,\\ blah blah blah
^
since \\ reprecents a line break.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=655720&aid=2880449&group_id=110216
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Languagetool-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-commits