On 10/7/06, Sunny <sloncho@gmail.com> wrote:
SuSE 10.0 x86_64. The behaviour described below can be seen in any browser I tried so far - firefox 1.5.0.7, Opera 9, Mozilla, Konqueror, even IE under wine:
Looking at this page: <http://www.testprepreview.com/modules/basicoperations.htm> the 3rd and the 5th box are not displayed correctly: the misplaced character is the division sign, i.e. the 3rd question should look like: (9 : 3) x (8 : 4), but instead the division sign, something like comma is displayed ",".
On windows all is correct, both in IE and firefox.
So, I downloaded the .js file, which generates the boxes: <http://www.testprepreview.com/modules/basicoperations.js>
Reading it, shows that they force Symbol font for this signs. So, I copied from my windows installation this Symbol.ttf font and installed it on SuSE, using ControlCenter/FontInstaller/Administrator mode.
Now, I see the font, I can use it in lets say OO, it is listed with fc-list, but ... this still does not fix the display of that page in the browsers. And yes - I did restart tne browsers. Actually I did restart X as well, just in case.
Any idea what should I do next?
OK, I solved it using the instructions from this page: <http://everything2.com/index.pl?node_id=1689425> To display such a pages correctly, you have to create a new bookmark, and for link to put the text bellow. After that, you click on this bookmark whenever such a page render bad. The link for the bookmark (take care of the line brakes, everything should be on the same line, otherwise firefox destroys the bookmark): javascript:javascript:var view = document.defaultView;var symboltab = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8704,0,8707,0,0,8715,0,0,8727,0,0,8722,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8773,913,914,935,8710,917,934,915,919,921,977,922,923,924,925,927,928,920,929,931,932,933,962,8486,926,936,918,0,8756,0,8869,0,8254,945,946,967,948,949,966,947,951,953,981,954,955,956,957,959,960,952,961,963,964,965,982,969,958,968,950,0,0,0,8764,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,978,8242,8804,8725,8734,402,9827,9830,9829,9824,8596,8592,8593,8594,8595,176,177,8243,8805,215,8733,8706,8226,247,8800,8801,8776,8230,0,0,8629,8501,8465,8476,8472,8855,8853,8709,8745,8746,8835,8839,8836,8834,8838,8712,8713,8736,8711,174,169,8482,8719,8730,8901,172,8743,8744,8660,8656,8657,8658,8659,9674,9001,174,169,8482,8721,0,0,0,0,0,0,0,0,0,0,0,9002,8747,8992,0,8993,0,0,0,0,0,0,0,0,0,0];function convNode(n) {var n1;if (n == null)return;if (n.nodeType == 3) {elem = n.parentNode;var st = view.getComputedStyle(elem, null);var val =st.getPropertyValue('font-family');if(val.toLowerCase() == 'symbol') {var s0 = n.data,s1 = '', len = s0.length, ch;for (i = 0;i < len;i++) {ch = s0.charCodeAt(i);if (ch < 256 &&symboltab[ch] != 0) ch =symboltab[ch];s1 += String.fromCharCode(ch);}n.data = s1;}}n1 = n.firstChild;while (n1 !=null) {convNode(n1);n1 = n1.nextSibling;}}convNode(document); Cheers -- -- Svetoslav Milenov (Sunny) Even the most advanced equipment in the hands of the ignorant is just a pile of scrap.
participants (1)
-
Sunny