Comments (5)
(Possibly, this has been solved with
EDIT. Clarified Point 1 with the found problems from LanguageTool
?)
No, it has not solved. I just changed my point one and added the part in the brackets "(in the previously missing paragraphs)". With --context -1
all paragraphs are shown and without they are not visible.
I will try to construct an example in the next days and add it to this issue.
from tex2txt.
Thank you for reporting this!
I see two possibilities to approach the reason of the problem.
- If you specify option --context with a negative argument, do you then see all of the text in the HTML report? If yes, LanguageTool very probablty does not detect mistakes in the text parts not displayed before. If not, then please give a notice.
- To be on the save side, you could additionally invoke
python3 tex2txt.py --lang de chapter-4.tex > chapter-4.plain
.
File chapter-4.plain then will contain all the plain text that is sent to LanguageTool by shell.py. Please give me a notice, if something is missing.
From my own experience with LanguageTool I can say that the newer versions sometimes report less problems, since refined rules are better in avoiding false positives.
A final question: Did you already consider switching to YaLafi? This is the successor of Tex2txt that is not devloped anymore. You then would write
python3 -m yalafi.shell --output html --language de-DE chapter-4.tex > report-4test.html
EDIT. Corrected wrong option --html for yalafi.shell.
from tex2txt.
Thank you very much for your fast and helpful answer!
- Yes, with
--context -1
the file includes all missing paragraphs and identified also more problems (in the previously missing paragraphs) than before. - Yes with the text2text.py command and plain text file all missing paragraphs are also included.
I completely missed the YaLafi successor and testet it shortly. Also with YaLafi (using the shell script and changed the path to LanguageTool 5.1) the paragraphs are missing. So it looks like this is unrelated to tex2txt and YaLafi, don't know what the problem here is exactly. I will test this with LanguageTool 5.0 to see if this has the same problem.
EDIT. Clarified Point 1 with the found problems from LanguageTool
from tex2txt.
Thank you very much for your fast and helpful answer!
You are welcome!
Yes, with --context -1 the file includes all missing paragraphs and identified also more problems (in the previously missing paragraphs) than before.
This sounds like a severe bug. With the default value of '--context 2', the HTML report should include all text parts containing a message from LanguageTool, and this should not depend on the LanguageTool version. Could you please try to construct an example text that demonstrates the issue, if it persists?
(Possibly, this has been solved with EDIT. Clarified Point 1 with the found problems from LanguageTool
?)
from tex2txt.
@matzex, could you please give a notice whether the problem persists?
Thank you in advance!
from tex2txt.
Related Issues (20)
- Macro arguments without {} braces would be practical
- No tracking of (La)TeX constructs that span file boundaries
- Check of nesting depths still may fail
- Need better math replacements for English texts HOT 1
- Macro may skip too much white space
- Final removal of lonely {} braces
- Wrong line numbers on swapping of macro arguments
- Remember also column numbers by character tracking?
- Wrong handling of \verb macro and verbatim environment
- Function tex2txt() modifies globals
- HTML report: highlighting may be too long
- Sentence splitting with maths replacements for English texts
- Line number tracking in macro arguments HOT 1
- Injection of codes for verbatim text via --repl option HOT 1
- Check of nesting depths may fail HOT 4
- Restrictions for verb macro and verbatim environment
- Pairing of [] brackets ignores {} braces
- Equations: warnings on $, &, \\ enclosed in {} braces
- Displayed equations: & always leaves white space
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tex2txt.