-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compress pptxt report of adjacent spaces/dashes #641
Compress pptxt report of adjacent spaces/dashes #641
Conversation
Instead of reporting every occurrence of multiple spaces or multiple dashes separately, report once per line, with a count of how many occurrences, e.g. `23.4: (x3) a ---- a ---- a ---- a`
Testing notes: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent! I like the count shown in red.
There are still repetitions in "Character checks" for '+' and '|' if you want to handle those.
OK - those are now done. Prior to this, PPtxt was very much based on the online version, which was based on quite an old tool. IMHO, we should consider a few more changes, for example, several of the characters in "Character checks" are by no means suspicious these days, now that we're not restricted to ASCII. Fractions would be one example, but I'm sure there are others that often appear in that check - if too many characters are reported, the check becomes useless because the user can't be bothered to check all of them. |
Verified. I agree about fractions and some other characters, super/subscripts for example. but I'm sure we will need multiple opinions. I'm not sure about the em-dash check either. |
Okay, I've got a question for y'all. The adjacent space check picks up on lines 360, 361 and 370. What about lines 361-366 and 371-375? They have a bunch of adjacent spaces, too. The only difference I see is that the lines that were identified have something in the first column, and the lines that weren't don't have anything in the first column. Is that because of the "(poetry, block-quotes, etc., are ignored)" comment. I'm assuming that's correct behavior, but since I'm not used to it, it doesn't quite make sense to me, so I thought I'd ask -- it's certainly the same as what's in The other thing that jumped out at me was the HTML tags getting highlighted for the Anyway, since y'all didn't mention the table rows that have multiple spaces, but nothing in the first column, I'm assuming that you're okay with that. I'll go ahead and approve, because it certainly seems to work well otherwise, and matches the way the old version selects rows to show. |
Whether it's "correct" or not is a matter of opinion, I guess, but it is "intended", and AFAIK the same as other versions of pptext.
Quite a few of the checks in pptext have limits on the number of similar warnings they output. In fact, I think pptext is/was supposed to be run on a text file, so there should be no At some point, I think we should consider how much we want to allow pptext to move away from the historical behavior of the old GG1 version and the online version. There are several changes that could potentially make it more useful:
|
I consider that a problem, although different from this original issue. I don't see any reason not to also report adjacent spaces on lines with leading spaces. Guiguts 1.x also does not report them, but online pptext does:
|
But online pptext has a 'verbose' option to list all of them
Agree
Agree
Agree
Agree
Agree
Agree I just ignore the issues reported for HTML and block markup, but I do want to fix other issues before generating the HTML. An option to ignore standard PGDP markup would be nice, I agree they should be reported for the final text version. But of course, providing options for PPtxt would be a whole new thing. |
Thanks for this and your other comments @rtonsing - I'll link to this discussion from a new issue I'm going to put in as a future feature to review pptext's error output. |
Thanks, I was wondering if I should add a new issue. It is about time I looked into making updates to online pptext, myself. |
In an ideal world, they would both behave the same, but I don't think that's practical given their very different environments |
Instead of reporting every occurrence of multiple spaces or multiple dashes separately, report once per line, with a count of how many occurrences, e.g.
23.4: (x3) a ---- a ---- a ---- a
Fixes #640