distributedproofreaders / pphtml Goto Github PK
View Code? Open in Web Editor NEWHTML tests for Project Gutenberg texts
License: GNU General Public License v3.0
HTML tests for Project Gutenberg texts
License: GNU General Public License v3.0
The classes x-ebookmaker and x-ebookmaker-drop are added/used by ebookmaker, but they currently may generate "used but not defined" warnings/errors (see #4 ) from pphtml
There is an argument for assuming these two classes will be handled by ebookmaker so the user does not need to be alarmed by "used but not defined" or "defined but not used" warnings about them, which could also obscure genuine warnings.
lhamilton
9:34 AM
Hi Robert -- Here's what I got from Roger - I’m glad to hear that Robert is willing to update pphtml. If he does, I have a feature request. The WWers are struggling with HTML4 uploads from DP that have phantom columns. If the users used HTML5 then the validator would catch it, but the HTML4 validator doesn’t. Unfortunately, Eric’s code downstream from the WWers does catch it, putting the burden of discovery back on the WWers. And finding where the phantom columns are is difficult. I’d sure like to see pphtml catch that.
So there’s no confusion about what a phantom column is:
Heading | |
milk | cheese |
The first line tells the browser to expect one per row. Then there are two tags in the next row. This is an error in HTML5 but the HTML4 validator lets it go unreported.
It is not an error if a class name is used on an element, but that class is not used as a selector in the CSS.
It may be a mistake, e.g. a typo, so I think it is correct to "warn" about it, but it should not be a "FAIL"
I think the relevant line of code is this one where the word "FAIL" should be changed to "warn"
PG are updating their preferred <title>
format to
<title>Alice's Adventures in Wonderland | Project Gutenberg</title>
pphtml's title check/message will need updating too.
Quentin Campbell:
Describe the bug
PPHTML (both DP Workbench and GG versions) incorrectly flags as being 'undefined' CSS entries that use the ::first-letter selector.
The output from the online DP Workbench version of PPHTML says:
defined CSS:
... drop-cap-a ...
used CSS:
drop-cap-a drop-cap-b drop-cap-c
not defined but used:
drop-cap-b drop-cap-c
To Reproduce
p.drop-cap-a { color: transparent; margin-left: -1.4em; }
p.drop-cap-b:first-letter { color: transparent; margin-left: -1.4em; }
p.drop-cap-c::first-letter { color: transparent; margin-left: -1.4em; }
HTML:
Environment
• Guiguts version: 1.6-test2
• OS and version: Windows 10
• Perl version:
• Perl distribution:
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.