Index: trunk/parsers/wikidom/lib/es/es.Surface.css |
— | — | @@ -54,15 +54,29 @@ |
55 | 55 | display: none; |
56 | 56 | } |
57 | 57 | |
58 | | -.italic { |
| 58 | +.editSurface-format-italic { |
59 | 59 | font-style: italic; |
60 | 60 | } |
61 | 61 | |
62 | | -.bold { |
| 62 | +.editSurface-format-bold { |
63 | 63 | font-weight: bold; |
64 | 64 | } |
65 | 65 | |
66 | | -.xlink { |
| 66 | +.editSurface-format-xlink { |
67 | 67 | color: blue; |
68 | 68 | text-decoration: underline; |
69 | 69 | } |
| 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 @@ |
116 | 116 |
|
117 | 117 | Content.annotationRenderers = {
|
118 | 118 | 'bold': {
|
119 | | - 'open': '<span class="bold">',
|
| 119 | + 'open': '<span class="editSurface-format-bold">',
|
120 | 120 | 'close': '</span>',
|
121 | 121 | },
|
122 | 122 | 'italic': {
|
123 | | - 'open': '<span class="italic">',
|
| 123 | + 'open': '<span class="editSurface-format-italic">',
|
124 | 124 | 'close': '</span>',
|
125 | 125 | },
|
| 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 | + },
|
126 | 138 | 'xlink': {
|
127 | 139 | 'open': function( data ) {
|
128 | | - return '<span class="xlink" data-href="' + data.href + '">';
|
| 140 | + return '<span class="editSurface-format-xlink" data-href="' + data.href + '">';
|
129 | 141 | },
|
130 | 142 | 'close': '</span>'
|
131 | 143 | }
|
Index: trunk/parsers/wikidom/demos/es/index.html |
— | — | @@ -77,7 +77,19 @@ |
78 | 78 | ] |
79 | 79 | }, |
80 | 80 | { '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 | + }, |
82 | 94 | { '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." }, |
83 | 95 | ]), |
84 | 96 | new ParagraphBlock([ |