Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 18-01-2012, 10:45   #196
Registered User
 
HappySeagull's Avatar

Join Date: Dec 2010
Location: B.C.,Canada
Boat: 29'
Posts: 2,395
Re: Software to Introduce Hypertext Links in OpenCPN Waypoints

Great,Nohal!...It'd be great to just open one dialogue to see links,write descriptions,(and it looks like I'll be able to have more than a single long line in the description box!) etc....but where will the icon choice be?

Is there a way to have TABS in the waypoint/mark dialogue?
__________________

__________________
HappySeagull is offline   Reply With Quote
Old 18-01-2012, 10:52   #197
Registered User
 
HappySeagull's Avatar

Join Date: Dec 2010
Location: B.C.,Canada
Boat: 29'
Posts: 2,395
Re: Software to Introduce Hypertext Links in OpenCPN Waypoints

Robert,is there a way MarinePOI could preserve OpenCPN's waypoint Description" field?Presently,it wipes it out .
From the gpx...
<desc>blah blah blah blah a single long line because there&apos;s no way I can enter a second line and SEE IT!
enter a second line and SEEE it!</desc>

If anybody's wondering,the above is an illustration resulting from using the RETURN key in Opcn's description dialogue.Topical,considering the "&amp"
__________________

__________________
HappySeagull is offline   Reply With Quote
Old 18-01-2012, 10:54   #198
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,019
Re: Software to Introduce Hypertext Links in OpenCPN Waypoints

Happy...
Yes, unifying the two dialogs and making everything editable inside opencpn is my longer term plan. But I first want to have a look at some under the hood stuff to make it worth doing.

Pavel
__________________
nohal is offline   Reply With Quote
Old 18-01-2012, 12:22   #199
Registered User

Join Date: Jan 2010
Posts: 75
Re: Software to Introduce Hypertext Links in OpenCPN Waypoints

Quote:
Originally Posted by HappySeagull View Post
Robert,is there a way MarinePOI could preserve OpenCPN's waypoint Description" field?Presently,it wipes it out .
From the gpx...
Yes, it is an easy change to make in Marine Poi. But I need a real gpx sample file.
__________________
Robert_1 is offline   Reply With Quote
Old 18-01-2012, 12:52   #200
Senior Cruiser
 
sinbad7's Avatar

Cruisers Forum Supporter

Join Date: Sep 2003
Location: Ubatuba,SP,Brazil (Ex Norway)
Boat: (Ex) Alu. 60' yacht-"Eight Bells"
Posts: 2,717
Images: 57
Send a message via Skype™ to sinbad7
Re: Software to Introduce Hypertext Links in OpenCPN Waypoints

Robert..

Here is a .gps test file of OCPN 'Waypoints Description'

Tore
Attached Files
File Type: gpx Descriptions test file.gpx (928 Bytes, 29 views)
__________________
"And all I ask is a tall ship and a star to steer her by."
sinbad7 is offline   Reply With Quote
Old 18-01-2012, 15:06   #201
Registered User
 
HappySeagull's Avatar

Join Date: Dec 2010
Location: B.C.,Canada
Boat: 29'
Posts: 2,395
Re: Software to Introduce Hypertext Links in OpenCPN Waypoints

Sinbad beat me to it but here,anyways..
HappySeagullwithDescriptionGone.gpx

HappySeagullwithDescription.gpx
__________________
HappySeagull is offline   Reply With Quote
Old 19-01-2012, 02:04   #202
Registered User

Join Date: Jan 2010
Posts: 75
Re: Software to Introduce Hypertext Links in OpenCPN Waypoints

Quote:
Originally Posted by HappySeagull View Post
Sinbad beat me to it but here,anyways..
You may test this one (version 1_2j) : http://upload.plaisance-pratique.com...-MarinePoi.zip
Unzip, and replace in "program files/marinepoi/".

Descriptions are saved now.

If MarinePoi is run with GoogleEarth, I made a spécial arrangement : description and WP name are read by GoogleEarth too.

Carriage-return and line feed work properly. I attached 2 pictures.
Attached Thumbnails
Click image for larger version

Name:	Utaba.gif
Views:	75
Size:	66.3 KB
ID:	36198   Click image for larger version

Name:	Seagull.gif
Views:	77
Size:	76.5 KB
ID:	36199  

__________________
Robert_1 is offline   Reply With Quote
Old 19-01-2012, 02:45   #203
Registered User

Join Date: Jan 2010
Posts: 75
Re: Software to Introduce Hypertext Links in OpenCPN Waypoints

Quote:
Originally Posted by nohal View Post
As I wrote in flyspray: a GPX file containing & not encoded as &amp; is broken, not valid XML and should be refused as such.
We must be realistic: even if the standard rejects "&", if billions of links are using "&" (Even Google !) , and all web browsers read them properly, it makes no sense that OpenCPN attempts to deny this reality ... OpenCPN will die before he won ...
__________________
Robert_1 is offline   Reply With Quote
Old 19-01-2012, 03:26   #204
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,019
Re: Software to Introduce Hypertext Links in OpenCPN Waypoints

Robert...
Could you please send me a GPX file produced by Google Earth (or another Google product), which is malformed XML? I have never seen one and as far as i know, GE does not export GPX at all, so I can't create such a file myself.

Please keep on mind, that the contents of the GPX file have absolutely nothing to do with the link that is sent to the browser.

Pavel
__________________
nohal is offline   Reply With Quote
Old 19-01-2012, 04:53   #205
Registered User

Join Date: Jan 2010
Posts: 75
Re: Software to Introduce Hypertext Links in OpenCPN Waypoints

Quote:
Originally Posted by nohal View Post
Robert...
Please keep on mind, that the contents of the GPX file have absolutely nothing to do with the link that is sent to the browser.Pavel
Yes, Nohal, I am speaking about links, not about gpx files. From a practical point of view, someone using OpenCPN must have the possibility to introduce in the gpx file the links as he found them on the web, containing "&" or "&amp;" without manual processing

Therfore, MarinePoi translates "&" into "&amp;" to be consistant with the standard.

For exemple, a link from the Web :

ww.stw.fr/marina_stw/voir_evaluation.cfm?marina_id=1027&period=0&ll=%28 46.227638,%202.213749%29

And the link written by MarinePoi in the gpx file:

<link href="http://www.stw.fr/marina_stw/voir_evaluation.cfm?marina_id=1027&amp;period=0&am p;ll=%2846.227638,%202.213749%29">

Now, remenber Dave in Flyspay :FS#667 : Waypoint with "&" or "&amp;" in "additional informations" links

"Worse, if we use "&amp" in navobj, for instance, then this gets converted to "&" on the next OCPN close, and then lost forever on the next open/parse.
That is, tinyxml cannot do a read-write-read "round trip" on "&" or "&amp".

Maybe I missed something ?

Robert.
__________________
Robert_1 is offline   Reply With Quote
Old 19-01-2012, 05:07   #206
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,019
Re: Software to Introduce Hypertext Links in OpenCPN Waypoints

Robert,
then consider it solved, nothing like this actually happens...
TinyXML itself "eats" the '&' characters just in the malformed GPX files, not when they are encoded as '&amp;'. This is the penalty for being a non-validating parser - it's lightning fast, but of course at some price.
Even in case the file is malformed, and we actually should refuse to load, there's now logic to *try* to correct it in https://github.com/nohal/OpenCPN/tree/links_scrollable

Pavel
__________________
nohal is offline   Reply With Quote
Old 19-01-2012, 07:31   #207
Registered User
 
HappySeagull's Avatar

Join Date: Dec 2010
Location: B.C.,Canada
Boat: 29'
Posts: 2,395
Re: Software to Introduce Hypertext Links in OpenCPN Waypoints

Thank you,Robert!
Comments in the "Description" field are now preserved!...I find OpenCPN's "Description" Field" useful,because it doesn't take up the whole screen to write it or read it when navigating.

Nohal,
If you are still here?All this about "Description" is a little confusing...more so in O's Mark GUI...so if you are steering your GlowingGreyMatter towards a rebuild.....?

Click image for larger version

Name:	Clipboard-1.png
Views:	68
Size:	9.5 KB
ID:	36202
__________________
HappySeagull is offline   Reply With Quote
Old 20-01-2012, 11:03   #208
Registered User

Join Date: Nov 2011
Location: Istanbul
Boat: Steel, Regina, Holland, 8.70
Posts: 95
Re: Software to Introduce Hypertext Links in OpenCPN Waypoints

Rebert,
The links at WayPoints over 6 can nat be seen at the fly. Is there any possibility to display over than 6 links and even adjustable fly?
__________________
boraxtr is offline   Reply With Quote
Old 20-01-2012, 11:45   #209
Registered User

Join Date: Jan 2010
Posts: 75
Re: Software to Introduce Hypertext Links in OpenCPN Waypoints

Quote:
Originally Posted by boraxtr View Post
Rebert,
The links at WayPoints over 6 can nat be seen at the fly. Is there any possibility to display over than 6 links and even adjustable fly?
OpenCPN v2.5 cannot display more than 6 links for each waypoint !
__________________
Robert_1 is offline   Reply With Quote
Old 20-01-2012, 12:04   #210
Registered User

Join Date: Dec 2009
Location: Turkey
Boat: Voyage 12.50
Posts: 72
Re: Software to Introduce Hypertext Links in OpenCPN Waypoints

Quote:
Originally Posted by Robert_1 View Post
OpenCPN v2.5 cannot display more than 6 links for each waypoint !
Please pavel... open the window...

Michel
__________________

__________________
yoruk is offline   Reply With Quote
Reply

Tags
opencpn, software

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Open CPN and Google Earth bgrimwade OpenCPN 19 09-12-2011 16:32
Adding Photos and Sound to OpenCpn Waypoints r.fairman OpenCPN 43 05-10-2011 04:26
OpenCPN Version 2.5 Release bdbcat OpenCPN 86 02-09-2011 19:14
Route Properties, Missing Functions James Baines OpenCPN 13 13-07-2011 05:31



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 10:55.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.