italic, other styles not displaying on light theme

Bug #1057987 reported by karl anliot
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Documentation
Confirmed
Undecided
Unassigned

Bug Description

Italic, super, sub script, larger, smaller and stroke using the light theme are not working.
see this page
https://help.ubuntu.com/community/HelpOnFormatting

Tags: wiki
John Kim (kotux)
tags: added: wiki
affects: ubuntu-docs (Ubuntu) → ubuntu-docs
Changed in ubuntu-docs:
status: New → Confirmed
Revision history for this message
Daniel U. Thibault (daniel-thibault) wrote :

This bug (or design decision?) has been around long enough that action does need to be taken: if italics etc. are to remain disabled, then the help page should be updated to at least indicate that these formatting options are currently disabled/ineffective.

Revision history for this message
ishwersingh (singhs-ishwer) wrote :

I think, updating wiki would be the way to go for now. Adding it as a task for google code in.

Revision history for this message
JamesR (jamesrupert2107) wrote :

Currently, it is still not possible to use the formatting mentioned above. Example of the formatting/result provided in the attachment.

Revision history for this message
najevi (najevi) wrote :

It is possible to use the formatting mentioned but the _display_ of that formatted text is not evident until you use the Print View. (i.e. append ?action=print to whichever wiki page URL. e.g. https://help.ubuntu.com/community/HelpOnFormatting?action=print )
So the most appropriate fix would be to the default wiki page theme.

Revision history for this message
najevi (najevi) wrote :

To avoid scope-creep here (https://bugs.launchpad.net/ubuntu-docs/+bug/1057987) I have mailed this additional feedback to <email address hidden> which might be a more appropriate target audience.

Perhaps an administrator of the Ubuntu Community Wiki could review the Themes made available to a wiki user against the various formatting options available at the wiki.

Useful test wiki pages are:
https://help.ubuntu.com/community/HelpOnFormatting
and
https://help.ubuntu.com/community/HelpOnMoinWikiSyntax

The user accessible themes selected at https://help.ubuntu.com/community/HelpOnUserPreferences?action=userprefs&sub=prefs
are:

classic, modern, modernized, modernized_cms, rightsidebar, ubununew, light (the default) and kubuntunew

ubuntunew cannot be applied for some reason

classic, modern, modernized, modernized_cms, rightsidebar and kubuntunew display:
italics, super/sub script and most other formats
(but _not_ underline _nor_ strike-through _nor_ colorized code aka Syntax Highlighting _nor_ smileys)

"light" theme
displays underline, strike-through, SyntaxHighlighting, smileys and most other formats
(but _not_ italics _nor_ super/sub script)

So although "light" it looks like the best compromise it must be possible to fix light (the default) so that all available formatting is correctly displayed.

(I am willing to invest time to figure out this wiki detail.)

Revision history for this message
Pasi Lallinaho (knome) wrote :

Looks like the light theme simply misses CSS definitions for some elements (and Moinmoin-specific classes). Adding them into a CSS file that is included (either an existing one, or a new one) fixes the issue.

I've attached a proof-of-concept Stylish (add-on for Firefox and Chrome, that allows you to add your custom styles for any page) CSS file that should have all the definitions that are missing.

Revision history for this message
Pasi Lallinaho (knome) wrote :

I've added an another attachment that addresses the list issues as well.

One thing the CSS file can't fix is the upper-/lowercase roman numbers and alphabets; this is since CSS is mainly case insensitive, and there is no way to separate <ol type="a"> from <ol type="A">. In the CSS file, the uppercase variants are used.

Indeed, this needs to be taken into production next via - I believe - the Canonical IS and potentially the Canonical web team too. Volunteers?

Revision history for this message
Pasi Lallinaho (knome) wrote :

And here's the new file that actually has those list definitions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.