Locus Map - forum

Support => Troubles & Questions => Topic started by: gynta on April 09, 2016, 15:05:10

Title: gpx description html code conversion
Post by: gynta on April 09, 2016, 15:05:10
downloaded gpx tracks from website http://www.outdooractive.com
(example see attachment)
...
<desc>&amp;lt;b&amp;gt;Vielseitig, sch&amp;amp;ouml;n und anregend...&amp;lt;/b&amp;gt;pr&amp;amp;auml;sentiert sich der G&amp;amp;auml;urandweg auf seiner ganzen L&amp;amp;auml;nge von M&amp;amp;uuml;hlacker bis Freudenstadt, vom Heckeng&amp;amp;auml;u bis in den Schwarzwald. Nat&amp;amp;uuml;rliche Abwechslung ist hier w&amp;amp;ouml;rtlich zu nehmen, schlie&amp;amp;szlig;lich verbindet der Weg zwei unterschiedliche Naturr&amp;amp;auml;ume. Ab und zu sei es dennoch empfohlen, den Blick von der Natur und den sch&amp;amp;ouml;nen Aussichten zu l&amp;amp;ouml;sen und auf die kulturellen und historischen Besonderheiten am Wegesrand zu richten!&#xD;
&amp;lt;p&amp;gt;Viele sch&amp;amp;ouml;ne und bedeutende Dinge liegen am Weg - oft augenf&amp;amp;auml;llig, manchmal erst auf den zweiten Blick erkennbar.&amp;amp;nbsp; Die Wegbeschreibung des G&amp;amp;auml;urandweges von Karl Buhl, Bezirkswanderwart des SWV Nagold &amp;amp;ouml;ffnet dem Wanderer daf&amp;amp;uuml;r die Augen. Sie orientiert sich an den Etappenempfehlungen f&amp;amp;uuml;r Sportliche (5 Etappen). Wer das &amp;amp;bdquo;Genu&amp;amp;szlig;wandern&amp;quot; vorzieht und das Heckeng&amp;amp;auml;u in seiner ganzen Nord-S&amp;amp;uuml;dausdehnung wandernd kennenlernen will, der teilt sich diesen gut ausgeschilderten Fernwanderweg in beliebige, individuelle Etappen ein, nimmt sich Zeit und findet sein Gl&amp;amp;uuml;ck - am G&amp;amp;auml;urandweg!&amp;lt;/p&amp;gt;</desc>
....


currently Locus convert some tags:
&amp;lt;b&amp;gt;  <b>
&amp;lt;/b&amp;gt; </b>
&amp;lt;p&amp;gt; <p>
&amp;lt;/p&amp;gt; </p>

...but not german umlauts
&amp;amp;auml; ä
&amp;amp;ouml; ö
&amp;amp;uuml; ü
...and other codes
&amp;amp;szlig; ß
&amp;amp;bdquo; "
&amp;amp;nbsp; SPACE
(http://postimg.org/image/moooh4i67/)
Locus

So - it's not needed to convert all of the html control character but on the other hand Locus should do it eg with umlauts.

btw.
google earth is able to display:
(http://postimg.org/image/633bdoafl/)
GoogleEarth
Title: Re: gpx description html code conversion
Post by: Menion on April 11, 2016, 08:53:31
Interesting. Thanks for report! I expected all these years that XML parser I use for parsing such files, do this dirty work for me. Seems not, hmm. Anyway problem should be fixed now, thanks.
Title: Re: gpx description html code conversion
Post by: gynta on April 15, 2016, 11:26:56
Quote from: menion on April 11, 2016, 08:53:31
problem should be fixed now
thx
Title: Re: gpx description html code conversion
Post by: druki on May 10, 2016, 22:49:00
but it's interesting that the gpx file has different kind of codings for the German Umlaute. It looks like the sourcedata of outdooractive is not very clean. Example:
{code}
<name>Landratsamt B&amp;amp;ouml;blingen - Landratsamt Böblingen</name>
{code}

The first "ö" is masked, and the second one is not (in UTF8 it's not necessary to mask an "ö"). This could be equalized/cleaned at outdooractive (in their import or export processes or maybe with a regex script in their database).