Issue 76424 - Date input in english automatically gets converted to bengali digits
Summary: Date input in english automatically gets converted to bengali digits
Status: CLOSED FIXED
Alias: None
Product: Calc
Classification: Application
Component: formatting (show other issues)
Version: OOo 2.2
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: ooo
QA Contact: issues@sc
URL: https://bugzilla.redhat.com/bugzilla/...
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-17 06:27 UTC by sayamindu
Modified: 2013-08-07 15:15 UTC (History)
4 users (show)

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


Attachments
patch to remove NatNum1, if that's what you want to do (6.77 KB, patch)
2007-05-03 09:03 UTC, caolanm
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description sayamindu 2007-04-17 06:27:17 UTC
From Red Hat Bug #236529:

Description of problem:

Date typed in english in the Bengali India locale gets converted to bengali
instead of remaining in english.


Version-Release number of selected component (if applicable):
openoffice.org-calc-2.0.4-5.4.17.1


How reproducible:




Steps to Reproduce:
1. start OpenOffice Calc in Bengali India locale: LANG=bn_IN.UTF-8 oocalc &
2. Check that the bn keyboard is *not* selected as the input method
2. type in a date in the format 12-04-2007  
3. press "Enter" and leave the cell
  
Actual results:

date typed in english automatically converts to bengali digits

Expected results:
date typed in english should remain in english

Additional info:

The digit conversion happens only for date formats. other numbers typed in
english remain in english.

date typed in bengali remains unchanged after leaving the cell.

This behaviour is due to the [NatNum1] specifications as described here:
http://qa.openoffice.org/issues/show_bug.cgi?id=47575

I am putting sayamindu dasgupta in the cc for this bug as he had modified the
bn_IN.xml locale file to include this feature.
Comment 1 frank 2007-04-17 09:30:58 UTC
Hi,

as the NatNum feature is set for the Format code, I re-assign this for
evaluation to the BN Lang project. 

IMHO this is not a bug.

Frank
Comment 2 jamil 2007-04-18 05:53:29 UTC
I think we can remove the [NatNum1] tag from Bengali locale files. It seems
bn_BD.xml is using bn_IN.xml's <LC_FORMAT>, so the patch is needed for bn_IN.xml

Sayam, can you please submit a patch?
Comment 3 runabh 2007-04-18 13:58:48 UTC
Removing [NatNum1] will not resolve the issue completely. Once the [NatNum1] is
removed, date typed in bengali will automatically convert to English (as is the
case of hi, gu, mr etc). Some additional feature has to be put in place so as to
recognise the language of input and retain it. Manually setting [NatNum1] for
each cell is not a feasible option either.
Comment 4 caolanm 2007-05-03 09:03:41 UTC
Created attachment 44822 [details]
patch to remove NatNum1, if that's what you want to do
Comment 5 jamil 2007-05-07 08:13:42 UTC
cmc, thanks for the patch. But we need solution for the issue mentioned by
RunaB. I am not sure if that can be done.
Comment 6 caolanm 2007-05-07 12:42:31 UTC
I'm almost sure that it cannot be "fixed", but even if possible I question if it
*should* be fixed as part of this issue. 

The situation is the same for every language which has "localized number
digits", i.e. the rest of the indic languages and CJK ones. I would suggest that
this issue restrict itself to what the default number format for Bengali should
be. Either the same as the rest of the _IN languages and default to "English"
digits or go it's own way and default to Bengali digits as is the current case.
Comment 7 runabh 2007-05-10 09:46:34 UTC
Can this issue be raised as a Feature Request or a separate bug.
Comment 8 ooo 2007-05-10 11:03:14 UTC
Currently Calc doesn't know anything about what native numerals lead to the
recognition of number/date/time, it is all handled in lower layers of the number
formatter's number recognition. In the number formatter there's also no mapping
between input numerals and display formats. There's a default display format to
use if no other format matching the input type was assigned to the cell, which
in this case happens to have the [NatNum1] modifier, as do all predefined
date/time format codes of the bn_IN locale.

The bn_IN community now should decide what the preferred default display format
should be: with or without native numerals, you can't have both.

Display formats matching the input numerals would be a completely new feature.
Comment 9 caolanm 2007-08-15 08:57:12 UTC
Can the bn team decide a yes/no for 2.4 if we want to use "western" numerals by
default for Bengali like other Indic languages or not.
Comment 10 caolanm 2007-10-29 12:57:04 UTC
Anyone available from the bengali localization team able to make decision as to
which way to lean here ?
Comment 11 oc 2008-02-12 12:44:26 UTC
As there is no answer from the bengali team this task won't make it in time to
OOo2.4 => retarget to 3.x
Comment 12 caolanm 2008-04-22 11:41:39 UTC
Is there anyone at the end of this bug ?

I can apply the patch here to align bengali with all the other indic languages
to get the same behaviour if you want ?
Comment 13 jamil 2008-04-23 19:16:43 UTC
Ok, lets use "western" numerals by default for Bengali - though it is not the
desired solution. So cmc's patch can be used now.
Comment 14 caolanm 2008-04-23 19:48:58 UTC
I'll look after this then
Comment 15 caolanm 2008-04-23 19:57:16 UTC
Bengali numerals treated the same as all other indic language numerals in cmcfixes44
Comment 16 ooo 2008-04-24 12:05:36 UTC
Thanks, Caolan!
Eike
Comment 17 caolanm 2008-04-25 15:26:16 UTC
cmc->er: Do you think you can verify that this is now the case in cmcfixes44 ?
Comment 18 ooo 2008-04-28 10:32:12 UTC
Verified that all NatNum1 modifiers are removed from bn-IN format codes.
Comment 19 caolanm 2008-05-19 12:12:43 UTC
seen in DEV300_m13