Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 04-17-2008, 06:27 PM   #1
LQ Newbie
Registered: Dec 2005
Posts: 8

Rep: Reputation: 0
firefox does not include <param name=...> beyond the first line if multiple lines

I was looking at: whilst trying to view the chinese character strokes. This worked on Windows XP. On Fedora 8, firefox-, the character comes out garbled.

There is a zip of the site for download for off-line practicing, which includes the java class files. I decompiled it with mocha, and got it working on Windows in Eclipse 3.3 with appletviewer, and then on Fedora 8. The short version is that /usr/lib/jvm/java-1.7.0-icedtea- and jdk1.6.0_03/bin appletviewer paint properly. The applet basically reads a series of points which define a polygon and it paints them to emulate brush strokes for a character.

What I found is that if I modify the html which starts off as:
<applet code=ChineseFontPlayer.CFPlayer.class width="400" height="400" >
<param name="StrokeData" VALUE="#4PO: 141,79;139,88;137,99;134,109;131,119;

so that all of the points are on one line, firefox will render it properly. So, the garbled character results from only getting the first line of points, and not the whole set. Html should not care about the newlines in the set of data poins and grab everything up to the terminating ">" for the StrokeData. An od -xc shows only newlines and no carriage returns in the html.

Since appletviewer can render the chinese character whether the data is on one line or many, is this a firefox issue or limitation in reading the html?

Following the set of paths below, I assume I am running the icedtea plugin for firefox, since that is the default java on the machine.

$ pwd;ls

$ which java

$ ls -l /usr/bin/java
lrwxrwxrwx 1 root root 22 2007-12-11 09:54 /usr/bin/java -> /etc/alternatives/java

$ ls -l /etc/alternatives/java
lrwxrwxrwx 1 root root 39 2007-12-11 09:58 /etc/alternatives/java -> /usr/lib/jvm/jre-1.7.0-icedtea/bin/java

$ ls /usr/lib/jvm/jre-1.7.0-icedtea/bin
java keytool orbd pack200 pluginappletviewer policytool rmid rmiregistry servertool tnameserv unpack200


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
VIM: How to delete all lines that include special words. cryincold Linux - Software 3 02-09-2008 11:17 PM
AWK/SED Multiple pattern matching over multiple lines issue GigerMalmensteen Programming 15 12-03-2006 05:08 PM
[BASH] How to filter characters away? !{param#word} {param%word}! Dark Carnival Programming 8 03-17-2005 01:49 PM
merge multiple lines of a single file into one line groverrajiv Linux - Newbie 4 05-26-2004 02:38 AM
multiple #include 'Error' Hady Programming 6 02-07-2004 09:53 AM > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 08:57 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration