Per default the parser accepts also quite a range of characters which only look similar to the actual symbol. Cmp. this listing in the code:

+

Per default the parser accepts the official (in latin1-based languages) symbols '''°''', '''′''' and '''″''', but also quite a range of terms which only look similar to them. Cmp. this listing in the code:

// x00B0: ° DEGREE SIGN

// x00B0: ° DEGREE SIGN

// x00BA: º MASCULINE ORDINAL INDICATOR (found used as degree sign)

// x00BA: º MASCULINE ORDINAL INDICATOR (found used as degree sign)

Line 33:

Line 33:

// x2033: ″ DOUBLE PRIME (seconds)

// x2033: ″ DOUBLE PRIME (seconds)

// x201D: ” RIGHT DOUBLE QUOTATION MARK

// x201D: ” RIGHT DOUBLE QUOTATION MARK

−

Additionally all single ticks listed here are accepted as Seconds symbol if doubled, e.g. "´´". So hopefully no need to add the typical workaround due to the keyboard's layout in your language.

+

Additionally all single ticks listed here are accepted as Seconds symbol if doubled, e.g. '''´´'''. So hopefully no need to have you list the accepted workaround due to the keyboard layout in your language yourself.

−

Typically Asian languages might need to set the symbols here, like "도" for Degree in Korean.

+

For all non-latin1 based languages it might be needed to set all additional symbol terms here, like "도" as Degree symbol, "분" as Minutes symbol and "秒" as Seconds symbol in Korean.

+

+

There is no need to set the additional symbol terms for all symbol types if you set some, just setting for one or two is alright, e.g. just adding one term for the Degree symbol and leaving the Minutes and Seconds terms empty.

===Examples===

===Examples===

Revision as of 14:17, 11 November 2011

Contents

Translating GeoDataCoordinates

Starting with version 1.3 Marble has improved support for parsing coordinates from text strings of all kind of (non-western) languages. This is done by using 7 entries in the translation catalog for marble-qt which all are from the context "GeoDataCoordinates", have a "*" as text and as disambiguation a description what they are about (+ a link here).

You can use the entries to extend the items which are used for parsing strings. The default items are based on the English language, so coordinates in English can be always parsed, whatever you add here. If you do not need to add anything, just leave the entry without a translation or translate with a "*" again.

If there are multiple items for a entry, you list them by separating the items with the "|" char (U+007C, VERTICAL LINE) without any spaces added, e.g. "A|B|C".

Direction terms

There are 4 entries for the directions:

North direction terms, ...

South direction terms, ...

East direction terms, ...

West direction terms, ...

Here give the shortform(s) of each direction which is used in coordinates, which is e.g. "N" for North in English. If there are variants with and without a dot, list both, e.g. "Pn.|Pn" for North in Polish. If there is a space, make sure it is just one space, e.g. with "с. ш." for North in Bulgarian.

If you add localized direction terms, you need to do it for all four directions. The number of terms per direction can be different, e.g. "O" for West and "E|L" for East in Portuguese.

Coordinate symbols

There are 3 entries for the symbols:

Degree symbol terms, ...

Minutes symbol terms, ...

Seconds symbol terms, ...

Per default the parser accepts the official (in latin1-based languages) symbols °, ′ and ″, but also quite a range of terms which only look similar to them. Cmp. this listing in the code:

Additionally all single ticks listed here are accepted as Seconds symbol if doubled, e.g. ´´. So hopefully no need to have you list the accepted workaround due to the keyboard layout in your language yourself.

For all non-latin1 based languages it might be needed to set all additional symbol terms here, like "도" as Degree symbol, "분" as Minutes symbol and "秒" as Seconds symbol in Korean.

There is no need to set the additional symbol terms for all symbol types if you set some, just setting for one or two is alright, e.g. just adding one term for the Degree symbol and leaving the Minutes and Seconds terms empty.