#58 Broken images in online help

2.2
closed-fixed
Help (1)
5
2004-09-20
2004-08-30
No

I am just looking at the online help (de) at the moment,
but it seems that GenJ can't find the images which are
used in the documents (see uploaded screenshot).

I downloaded genj_app-2.2.zip as well as
genj_de-2.2.zip and unzipped it into the same directory.
I am pretty sure that I left the directory structure
intact - have a look at the *.txt file to convince
yourself.

Discussion

  • Christian Marker

    Broken images in the help browser.

     
  • Nils Meier

    Nils Meier - 2004-08-30

    Logged In: YES
    user_id=118458

    Hi

    thanks for your feedback - I've just tried it here on my
    machine and the images display correctly with the release
    files. It looks like your directory is correct though so I'm
    puzzled as to why it doesn't work in your setup.

    Can you please provide genj.log (found in ~/.genj) so we can
    check out what genj thinks about this situation?

    thx

     
  • Christian Marker

    GenJ Logfile.

     
  • Christian Marker

    Logged In: YES
    user_id=575864

    Okay, I've uploaded my genj.log as well (In case you wonder:
    I prefer uploading text files because copy & paste them here
    causes some ugly line breaks...)

     
  • Nils Meier

    Nils Meier - 2004-08-30

    Logged In: YES
    user_id=118458

    ok, nothing special in your log aside from running it on Linux :)
    Maybe the png format is a problem for Blackdown's 1.4
    java ... are the other images showing fine in the help (some
    are non-png's iirc)?

     
  • Christian Marker

    Logged In: YES
    user_id=575864

    Uargh! Who made those ()/%" HTML help files?!

    Well, instead of cursing around, I'll stop banging my head on
    the keyboard and try to be a little bit more helpful. At least
    this is open source and I actually *do* have the possibility
    to get this thing working :)
    What's wrong here has absolutely nothing to do with the
    Operating System or Java itself. It's MS Word's lack of HTML
    capabilities ;)

    Okay, what happened?

    I tried to open the files with my webbrowser and had to
    notice that the pictures aren't displayed there, too. Then I
    opened intro.html and had to recognize that the paths to the
    images are specified with backslashes "\" - which is one of
    the big DON'Ts in HTML coding (see
    http://www.cs.tut.fi/~jkorpela/www/revsol.html for more
    details).

    Just a short quote:
    "It is a common error to use "\" instead of "/" in URLs, as in
    href="..\index.html" instead of the correct
    href="../index.html". Further confusion is caused by the
    phenomenon that some browsers accept the incorrect format
    too, so people complain that "my links work on IE but not on
    Netscape". This isn't about HTML itself however; it's about
    misunderstanding the relationship between URLs and
    filenames and their syntax; see my attempt to describe the
    URL syntax and semantics."

    This mistake is also recognized by htmltidy (the new version
    is located at http://tidy.sourceforge.net. There exists a Java
    version, too). In case you are interested, this is the output
    of htmltidy when parsing intro.html:

    line 1 column 1 - Warning: missing <!DOCTYPE> declaration
    line 1 column 1 - Warning: <html> proprietary attribute
    "xmlns:v"
    line 1 column 1 - Warning: <html> proprietary attribute
    "xmlns:o"
    line 1 column 1 - Warning: <html> proprietary attribute
    "xmlns:w"
    line 43 column 1 - Warning: <style> inserting "type" attribute
    line 80 column 4 - Warning: <img> attribute "id" has invalid
    value "_x0000_i1025"
    line 80 column 4 - Warning: <img> converting backslash in
    URI to slash
    line 80 column 4 - Warning: <img> lacks "alt" attribute
    Info: Document content looks like XHTML 1.0 Transitional
    8 warnings, 0 errors were found!

    Have a look at "line 80 column 4 - Warning: <img> converting
    backslash in URI to slash".

    I've written a small shell script which replaces the
    backslashes to forward-slashes. I also zipped the updated
    de-help files in case you want to use them in future version.

    I think we can close this bug now, can't we?

     
  • Christian Marker

    Parses all html files in the current directory an converts \ to /.

     
  • Nils Meier

    Nils Meier - 2004-09-20

    Logged In: YES
    user_id=118458

    ok, that explains it - Carsten has offered and reworked the
    german help-files (they were previously written with MS
    Word).

    This should have done the trick - please reopen if pages still
    are MS-infected :)

     
  • Nils Meier

    Nils Meier - 2004-09-20
    • labels: 398431 --> Help
    • status: open --> closed-fixed
     

Log in to post a comment.