Giter VIP home page Giter VIP logo

Comments (6)

v0lk3r avatar v0lk3r commented on August 31, 2024

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.

maximeB avatar maximeB commented on August 31, 2024

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.

schmir avatar schmir commented on August 31, 2024

please provide a test case (probably best as a user page on wikipedia)

from mwlib.

maximeB avatar maximeB commented on August 31, 2024

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.

v0lk3r avatar v0lk3r commented on August 31, 2024

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.

maximeB avatar maximeB commented on August 31, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.