r92032 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92031‎ | r92032 | r92033 >
Date:00:14, 13 July 2011
Author:tparscal
Status:deferred
Tags:
Comment:
Added small, super and sub.
Modified paths:
  • /trunk/parsers/wikidom/demos/es/index.html (modified) (history)
  • /trunk/parsers/wikidom/lib/es/es.Content.js (modified) (history)
  • /trunk/parsers/wikidom/lib/es/es.Surface.css (modified) (history)

Diff [purge]

Index: trunk/parsers/wikidom/lib/es/es.Surface.css
@@ -54,15 +54,29 @@
5555 display: none;
5656 }
5757
58 -.italic {
 58+.editSurface-format-italic {
5959 font-style: italic;
6060 }
6161
62 -.bold {
 62+.editSurface-format-bold {
6363 font-weight: bold;
6464 }
6565
66 -.xlink {
 66+.editSurface-format-xlink {
6767 color: blue;
6868 text-decoration: underline;
6969 }
 70+
 71+.editSurface-format-small,
 72+.editSurface-format-sub,
 73+.editSurface-format-super {
 74+ font-size: .8em;
 75+}
 76+
 77+.editSurface-format-sub {
 78+ vertical-align: sub;
 79+}
 80+
 81+.editSurface-format-super {
 82+ vertical-align: super;
 83+}
Index: trunk/parsers/wikidom/lib/es/es.Content.js
@@ -115,16 +115,28 @@
116116
117117 Content.annotationRenderers = {
118118 'bold': {
119 - 'open': '<span class="bold">',
 119+ 'open': '<span class="editSurface-format-bold">',
120120 'close': '</span>',
121121 },
122122 'italic': {
123 - 'open': '<span class="italic">',
 123+ 'open': '<span class="editSurface-format-italic">',
124124 'close': '</span>',
125125 },
 126+ 'small': {
 127+ 'open': '<span class="editSurface-format-small">',
 128+ 'close': '</span>',
 129+ },
 130+ 'super': {
 131+ 'open': '<span class="editSurface-format-super">',
 132+ 'close': '</span>',
 133+ },
 134+ 'sub': {
 135+ 'open': '<span class="editSurface-format-sub">',
 136+ 'close': '</span>',
 137+ },
126138 'xlink': {
127139 'open': function( data ) {
128 - return '<span class="xlink" data-href="' + data.href + '">';
 140+ return '<span class="editSurface-format-xlink" data-href="' + data.href + '">';
129141 },
130142 'close': '</span>'
131143 }
Index: trunk/parsers/wikidom/demos/es/index.html
@@ -77,7 +77,19 @@
7878 ]
7979 },
8080 { 'text': "Word wrap is the additional feature of most text editors, word processors, and web browsers, of breaking lines between and not within words, except when a single word is longer than a line." },
81 - { 'text': "It is usually done on the fly when viewing or printing a document, so no line break code is manually entered, or stored.[citation needed] If the user changes the margins, the editor will either automatically reposition the line breaks to ensure that all the text will \"flow\" within the margins and remain visible, or provide the typist some convenient way to reposition the line breaks." },
 81+ {
 82+ 'text': "It is usually done on the fly when viewing or printing a document, so no line break code is manually entered, or stored.[citation needed] If the user changes the margins, the editor will either automatically reposition the line breaks to ensure that all the text will \"flow\" within the margins and remain visible, or provide the typist some convenient way to reposition the line breaks.",
 83+ 'annotations': [
 84+ // "[citation needed]" should be super
 85+ { 'type': 'super', 'range': { 'start': 120, 'end': 137 } },
 86+ // "[citation needed]" should be a linke to "#"
 87+ {
 88+ 'type': 'xlink',
 89+ 'range': { 'start': 120, 'end': 137 },
 90+ 'data': { 'href': './' }
 91+ }
 92+ ]
 93+ },
8294 { 'text': "A soft return is the break resulting from line wrap or word wrap, whereas a hard return is an intentional break, creating a new paragraph." },
8395 ]),
8496 new ParagraphBlock([

Status & tagging log