Comments (6)
I did some tests and came to the conclusion that the PDF viewer might be the culprit!
On Linux acroread and evince displayed the colors correctly. epdfview on the other hand screwed up and red text was displayed in blue.
What PDF viewer are you using?
I am closing the ticket, reopen if the viewer is not to blame
Edit: Article used for testing: https://de.wikipedia.org/w/index.php?title=Benutzer:Volker.haas/Test&oldid=111234274
from mwlib.
I don't know how to reopen it.
I tested with both evince and acroread.
I tried your test, it correctly appears red, BUT you used a "span" tag with a "style" statement to set the colour red.
My problem is when I use the font tag which can be use to set a colour without a "style" statement.
I will use the "style" way to set text's colour, but still the bug exists in the code !
from mwlib.
please provide a test case (probably best as a user page on wikipedia)
from mwlib.
I don't know how to provide it. Just put inside a wiki page:
test
then run mw-render or do it with the collection extension, you will see.
from mwlib.
Thanks for this ticket - I finally fixed it and had fun with colors!
Totally unrelated side notes:
- epdfview seems to have problems displaying colors correctly on my machine. I fixed this with apt-get purge epdfview
- If I am not mistaken, the font tag has been deprecated since HTML 4.01 - this was 1999! The usage of this tag inflicts major physical pain! Please don't ever use this tag again, people get hurt that way!
- In the future please provide a link to a minimal example of an article that shows the problem. That way you don't force me to make the example. This is what caused the whole confusion since I refused to make a test case with the font tag. (When I finally did, I even logged out and made an anonymous edit ;)). Test cases can easily be constructed in the wikipedia user space after creating an account. See http://de.wikipedia.org/wiki/Benutzer:Volker.haas/Test
from mwlib.
I'm sorry but to me putting css into html tag is quite dirty too. The users of my wiki may understand better this way to changing the font (actually it is quite "user friendly").
But I agree with you it would be better if people does not use it at all.
For the test sorry but I don't have an account (yet) on wikipedia.
from mwlib.
Related Issues (20)
- Parser test test_pull_in_alpha HOT 1
- mwlib fails to fetch images if img_auth is enabled
- Installation fails: command 'x86_64-linux-gnu-gcc' failed with exit status 1 HOT 1
- No dep on gevent listed
- Inline "thumb" images lost in ODF export HOT 3
- Link text
- test fails in tests/test_expander_time.py
- pyparsing-2* support
- Race condition in net/fetch.py
- There is no default image alignment
- New releases still need to be tagged HOT 3
- Books not regenerated when cache is deleted
- Error while dispatching download
- mwlib should pass cookies for authentication for login-required wikis HOT 3
- Missing 'docs/configfiles.txt' but it remains referenced in documentation
- gevent.coros missing HOT 1
- MD5 with FIPS mode enabled HOT 7
- Update installation doc
- Add support for python3 HOT 4
- MediaWIKI 1.31 + mwlib
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 mwlib.