Closed Bug 893358 Opened 11 years ago Closed 11 years ago

Add Italian keyboard layout support

Categories

(Firefox OS Graveyard :: Gaia::Keyboard, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:koi+, b2g18 fixed, b2g-v1.1hd fixed, b2g-v1.2 fixed)

RESOLVED FIXED
blocking-b2g koi+
Tracking Status
b2g18 --- fixed
b2g-v1.1hd --- fixed
b2g-v1.2 --- fixed

People

(Reporter: luigitedone, Assigned: djf)

References

Details

Attachments

(3 files, 2 obsolete files)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:25.0) Gecko/20130711 Firefox/25.0 (Nightly/Aurora)
Build ID: 20130711104256




Expected results:

It would be nice to have the Italian keyboard layout.
Attached file Proposed patch (obsolete) —
Attachment #775137 - Flags: review?(dflanagan)
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: All → Gonk (Firefox OS)
Hardware: All → ARM
Hi, Luigi,

I think reading this tutorial would be helpful for you =)
https://wiki.mozilla.org/L10n:B2G

As for your part, I think this you should reference
https://wiki.mozilla.org/L10n:B2G/Adding_Locales
and,  you can see instructions on "Technical Infrastructure" part

Hi, kscanne,

I believe you are more familiar in process of this.
Can you help on this?
Flags: needinfo?(kscanne)
Hi Walter,
what am I missing? Should I add it to Elmo?
Walter - I can help with word frequency data, but it appears that there is already a file for Italian in the repo:

https://github.com/mozilla-b2g/gaia/blob/master/dictionaries/it_wordlist.xml
Flags: needinfo?(kscanne)
Comment on attachment 775137 [details]
Proposed patch

Luigi,

Thanks for this patch!  It looks good, except for a couple of things I've noted on github. Mainly: you need to generate the it.dict file and check it in as part of the pull request.

Asking for feedback from Axel on this: Axel is this a localization issue at all? Luigi is a native speaker of Italian, so I expect he knows what a good italian keyboard layout is.  Does this need further review or can we land it on master?
Attachment #775137 - Flags: review?(dflanagan)
Attachment #775137 - Flags: review-
Attachment #775137 - Flags: feedback?(l10n)
Attachment #775137 - Attachment mime type: text/plain → text/html
Hi David, I generated the it.dict file and put it in the correct path; I also tried this patch and the autosuggestion feature worked.
(In reply to Walter Chen from comment #2)
> As for your part, I think this you should reference
> https://wiki.mozilla.org/L10n:B2G/Adding_Locales
> and,  you can see instructions on "Technical Infrastructure" part

The Italian localization is already available on hg (and constantly updated), so not sure I understand this part
https://hg.mozilla.org/gaia-l10n/it

The only part missing from that section is the keyboard layout, and I guess this is what this bug is about
https://github.com/mozilla-b2g/gaia/blob/master/shared/resources/keyboard_layouts.json#L28

I don't know enough about keyboard layouts, but some things look quite wrong in apps/keyboard/js/layout.js 

Where does it.dict come from? I read it's generated, but I don't understand from what.
Hi Francesco,
what's wrong with the keyboard layout? I think there is all you need for writing in Italian; anyway I'm opened to further changes. The it.dict file was generated from the wordlist inside gaia/dictionaries/it_wordlist.xml.

Cheers
Luigi
(In reply to Luigi Tedone from comment #8)
> Hi Francesco,
> what's wrong with the keyboard layout? 

Some character are not useful for Italian (IMO), others (ordinal forms) are just wrong, unless I'm misunderstanding the syntax of that file.

I commented on Github the lines that I think need improvement.
Assignee: nobody → luigitedone
Francesco, I fixed some typos. Tell me if it's OK also for you now.
Just a couple of doubts about ordinals: does it make sense to have º on o (like you did) and ª on a?

Also, I would leave 

'1': '1° 1ª',
etc.

or
'1': '1° 1ª 1a',
etc.

'1a' is pretty easy to write on a keyboard, 1ª not really. Apart from that it looks good now for me.
About °, I put it there because other keyboard layouts have the same behaviour. Anyway, I fixed also ordinal numbers; I hope now it would be ok.
I think you still need to address David's comment about apps/settings/index.html
Done. I'm sorry for so many commits. If it's a problem, I can try to squash them.
flag?djf
Attachment #775137 - Flags: review- → review?(dflanagan)
Comment on attachment 775137 [details]
Proposed patch

flod's got this covered
Attachment #775137 - Flags: feedback?(l10n)
Any news?
Blocks: 918316
Blocks: 920639
we may need to add Italian to v1.1
so we will need the keyboard layouts / dictionaries like we did for bug 907763: Add Croatian, Dutch, Hungarian, and Romanian keyboard layouts for v1.1
can we start estimating the effort? thanks
Flags: needinfo?(rlu)
Flags: needinfo?(dflanagan)
I also did a separate pull request on GitHub for adding updated dictionaries (such as Italian) but it was marked as duplicate and discarded.
leo+ as we will enable partner to work with us on supporting Italian release
blocking-b2g: --- → leo+
(In reply to Joe Cheng [:jcheng] from comment #18)
> we may need to add Italian to v1.1
> so we will need the keyboard layouts / dictionaries like we did for bug
> 907763: Add Croatian, Dutch, Hungarian, and Romanian keyboard layouts for
> v1.1
> can we start estimating the effort? thanks

The effort will be minimal. Luigi is working now to squash his commits.  I'll review his patch and get this landed ASAP.
Flags: needinfo?(dflanagan)
Taking this from Luigi since he is having git difficulties and won't be able to work on it until after the Summit.  

All I'm going to do is deal with merge conflicts and patch uplift.
Assignee: luigitedone → dflanagan
This is Luigi's patch rebased against v1-train with merge conflicts resolved.
Attachment #775137 - Attachment is obsolete: true
Attachment #775137 - Flags: review?(dflanagan)
Attached file link to github pull request for master (obsolete) —
This is Luigi's patch, slightly modified to work on master (and on v1.2, I think)

I'm not going to land this one right now because we already have too many autocorrect dictionaries causing problems.  Let's wait until bug 884752 lands first.  (Then this pull request will have to be updated)
Landed to v1-train: https://github.com/mozilla-b2g/gaia/commit/02b975e6ce12922928c74276ac7d19432a03f126

Leaving this bug open so we can get Italian into master and v1.2. But I want to wait to do that until bug 884752 lands.
v1.1.0hd: 12577c2bb635e5745602ec180e2c7ab05292ccda
Just flashed v1-train on my device, I can confirm the presence of "Italiano" in settings->keyboard, layout and word suggestion works as expected.
Flags: needinfo?(rlu)
lloks like this is fixed everywhere.  is that correct?
Still missing from master and v1.2
Dear David,

I'm not find it.dict in dictionaries, is it missing?
Flags: needinfo?(dflanagan)
Sorry, I get it in v1-train. please ignore it.
Flags: needinfo?(dflanagan)
Depends on: 884752
This is still missing from v1.2 and is becoming quite urgent as we still haven't been able to test it, and Italian is a v1.2 shipping locale
Requesting koi? on this one
blocking-b2g: leo+ → koi?
Looks like this fall through the crack but I expect it to be trivial. djf, would you work on this or do you need some help here?
blocking-b2g: koi? → koi+
Flags: needinfo?(dflanagan)
This bug is > 1 month overdue because of bug 884752.

I believe after that bug an it.dict and a layouts/it.js is all we need to add a new language right?
Attachment #811411 - Attachment is obsolete: true
Attachment #825167 - Flags: review?(rlu)
Attachment #825167 - Flags: review?(dflanagan)
Flags: needinfo?(dflanagan)
Comment on attachment 825167 [details] [review]
Github: https://github.com/mozilla-b2g/gaia/pull/13248

I think layout and dictionary is all we need here.

I don't see we updated it.dict in Bug 884752, so leave the review flag open for David to confirm that it.dict we used is already up-to-date.
Attachment #825167 - Flags: review?(rlu) → review+
When I wrote the first patch for the Italian keyboard the it.dict wasn't present. I used the it_wordlist.xml file that is currently into the folder gaia/keyboard/dictionaries for generating it, so the version of the Italian dictionary in David's patch is 15.
(In reply to Luigi Tedone from comment #36)
> When I wrote the first patch for the Italian keyboard the it.dict wasn't
> present. I used the it_wordlist.xml file that is currently into the folder
> gaia/keyboard/dictionaries for generating it, so the version of the Italian
> dictionary in David's patch is 15.

Yes, the it.dict I used is the the one in v1.1.0hd from your commit.
Attachment #825167 - Flags: review?(dflanagan) → review+
Thanks Tim, for bringing this back up.

Delphine: with this bug landed, you should be able to test the Italian layout in 1.2. Note, however, that in order to produce a build with the italian keyboard in it you will need to customize the GAIA_KEYBOARD_LAYOUTS enviroment variable.  Use something like this:

  GAIA_KEYBOARD_LAYOUTS=en,es,it make reset-gaia
Flags: needinfo?(lebedel.delphine)
Uplifted to v1.2: https://github.com/mozilla-b2g/gaia/commit/9d22b39245c8d7e77f384866c392701101ee86b0
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Ok thanks David!
Flags: needinfo?(lebedel.delphine)
Great, looks good to me!
Flod, would you mind double checking that everything is OK as well? thanks
Flags: needinfo?(francesco.lodolo)
Yes, working great: I found Italian in the available keyboards, word suggestions and layout are correct.

I've also updated our reference document
https://l10n.etherpad.mozilla.org/gaia-multilocale
Flags: needinfo?(francesco.lodolo)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: