Issue 18605 - Inputting decimal numbers with Latvian (Latvia) keyboars in OpenOffice calc
Summary: Inputting decimal numbers with Latvian (Latvia) keyboars in OpenOffice calc
Status: CLOSED NOT_AN_OOO_ISSUE
Alias: None
Product: Calc
Classification: Application
Component: ui (show other issues)
Version: OOo 1.1 RC3
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: ooo
QA Contact: issues@sc
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-25 07:29 UTC by rukic
Modified: 2003-12-22 05:23 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Sample text file to import. (3.78 KB, text/plain)
2003-08-25 14:11 UTC, rukic
no flags Details
CSV dialog, column type set to US-English (15.84 KB, image/gif)
2003-09-03 09:12 UTC, frank
no flags Details
sample (115.88 KB, image/jpeg)
2003-09-03 09:28 UTC, rukic
no flags Details
sample (161.46 KB, image/jpeg)
2003-09-03 09:29 UTC, rukic
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description rukic 2003-08-25 07:29:28 UTC
I have a problem when I importing *.txt file in New SpreadSheet.
The sample of *.txt file:
Lîmlenta *		3.000	0.000	0.000	0.000	0.000	3.000
Blîvgumija balta	50.000	0.000	0.000	0.000	0.000	50.000
Nosegplâksne		26.000	0.000	0.000	0.000	0.000	26.000
Nosegplâksne *		2.000	0.000	0.000	0.000	0.000	2.000
Nosegplâksne		25.000	0.000	0.000	0.000	0.000	25.000
Problem is this decimal delimiter in decimal numbers. Calc can`t recognize this
numbers as decimal numbers.
And input from numeric pad on keyboard have the same problem whitch are writen
in Issue#:  	1820
Comment 1 frank 2003-08-25 10:53:58 UTC
Hi,

I can't reproduce this. If I try to open a file with your values, they
are imported as numbers with the default numberformat which has no
decimal places. If you need 4 decimals, just change the numberformat.
if you want to import a number with a dot as decimal separator into a
locale which has a comma as such, just set the column type to US-English.

Therefore I have to close this as invalid. The problem with the numpad
decimal separator is handled via Issue 1820.

Frank
Comment 2 frank 2003-08-25 10:54:15 UTC
closed invalid
Comment 3 rukic 2003-08-25 14:11:17 UTC
Created attachment 8737 [details]
Sample text file to import.
Comment 4 frank 2003-08-25 15:00:45 UTC
Hi,

your priority was much to high. Prio 1 means the whole application is
crashing. This is not the case, so I adjusted this.

The prblem seems to be the thousands separator. What is the default
one for Latvia ? A space ?

Frank
Comment 5 rukic 2003-08-25 15:49:16 UTC
Problem is in decimal delimiter.
In Latvia we need "."
With thousands seperator all is OK. Default in Latvia is space.
Comment 6 frank 2003-08-25 16:15:25 UTC
Hi,

No, the problem is definitly in the thousands and not in the decimal
separator. Space as thousands separator is not recognized. Dot as
decimal sepearator is recognized if US-English is selected as column type.

Frank

Hi Eike,

please have a look.

Windows XP states the space as thousands separator for latvia as well.

Frank
Comment 7 ooo 2003-08-25 17:29:32 UTC
The issue is the group (AKA thousands) separator as defined in i18n
locale data, it should be the space character instead. Needs
redefinition of number format codes as well.
Comment 8 rukic 2003-08-26 17:34:02 UTC
OK but how to correct problem with this IMPORT to CALC?
Sample of TXT file are posted there.

May be somebody can tell step by step how to do this, if you say that
there no problems......?
Comment 9 frank 2003-09-01 14:25:41 UTC
Hi,

for now the only way to workaround this is to eliminate the thousands
separator ( the spaces in this case) with an editor.

Sorry for no better reply.

Best regards

Frank
Comment 10 rukic 2003-09-03 08:08:56 UTC
Ok I write simple PHP script whitch delete all spaces(thousand
seperators), but I have problems Width decimal simbol whitch are ".",
but I need "," calc can`t understand "." 
Comment 11 frank 2003-09-03 09:10:50 UTC
Hi,

if you set the column type to US English (in the csv Import dialog)
the numbers will get in. Try it. I will attach a gif showing the
dialog with set column type.

Frank
Comment 12 frank 2003-09-03 09:12:21 UTC
Created attachment 8969 [details]
CSV dialog, column type set to US-English
Comment 13 rukic 2003-09-03 09:28:49 UTC
Created attachment 8971 [details]
sample
Comment 14 rukic 2003-09-03 09:29:20 UTC
Created attachment 8972 [details]
sample
Comment 15 rukic 2003-09-03 09:31:10 UTC
I post Two attachments.
In second you can see my problem.
Column type is US-English (first attachment).
Comment 16 ooo 2003-09-03 11:50:46 UTC
Hang on, I previously mixed up Lithuanian and Latvian locale data. So
the real (and correct) settings available for Latvian are:

ThousandSeparator: > < (blank|space)
DecimalSeparator: >,< (comma)

These are identical to the Windows Regional Settings. So if your
system is set up to use the Latvian locale everything should be fine.

The problem is the data to be imported, it uses space as thousand
separator and dot as decimal separator. Of course this mixture doesn't
match neither Latvian nor English-US locale, so import fails anyways.
There's nothing Calc could do about it, it's a problem of the program
that exported the data.
Comment 17 ooo 2003-09-03 11:51:24 UTC
close invalid
Comment 18 utomo99 2003-12-22 05:23:52 UTC
Removing target from invalid Issue, to reduce the statistics.