Notecase - Programming Change -help

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
seaside
Posts: 934
Joined: Thu 12 Apr 2007, 00:19

Notecase - Programming Change -help

#1 Post by seaside »

Good Morning,

I used Notecase somewhat in early versions and gave it up because the puppy version url linking didn't work.
By linking the hierarchal structuring of Notecase to individual information sections in internal and external Html files, a powerful information manager can be formed.

Then I started playing around with Html and Javascript to make my own hyperlink sort of notebook, but this isn't as good.

Recently, I thought I'd try out Notecase again (1.9.8 latest version in Puppy) and found that the early linking problems had been fixed except for linking internal html#sections.

I emailed the Notecase author Miroslav Rajcic the following -
If I hyperlink to some outside url(http//somewhere.com/afile.html#SECTION) it WORKS.
If I download and save that same file url (file//somewhere.com/afile.html#SECTION) it FAILS - as does any other link to an internal file containing #SECTION at the end.

However, (file//somewhere.com/afile.html) - without the #SECTION part --WORKS

If it's a file internally stored it apparently can't deal with the #SECTION piece of the call.
and Miroslav Rajcic very kindly replied -
unfortunately, AFAIK this is not supported.
When opening "http://"-type hyperlink, program finds the default application and sends the URL to be executed within that application. "#section" part is a legal part of the URL and browser itself knows how to handle this.

When doing the local type URL, Notecase calls the same API to get the default application that opens the specified file. Depending on the compile options, program uses either GnomeVFS or GIO library to get the detault application. This API probably fails if you pass the path of the local file that has the "#SECTION" appended.

Note that this could be implemented with additional code that strips the section when finding the default application, and then appends it back when actually executing the link. The relevant code can be found in "src/_unx/ExecuteFile.cpp" file in the source code archive.

Unfortunately I have stopped working on the free version almost two years ago.

Regards,
Miroslav
I'm wondering if the forum has a talented C programmer who could implement a fix to the source code and recompile, as this is way beyond my meager abilities to attempt.

The source code can be found here-

http://notecase.sourceforge.net/download.html

Thanks to anyone willing to give it a try.

Regards,
s

Post Reply