Closed Bug 1128396 Opened 9 years ago Closed 9 years ago

Include all layouts with no dictionary or downloadable dictionary

Categories

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

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: timdream, Assigned: timdream)

References

Details

(Whiteboard: [p=3])

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #1029951 +++

Bug 1029951 will be landed disabled -- that is, by setting the preload layouts === loaded layouts, the UI will not be shown and the patch will have no effect.

When we feel ready, we could enable that by doing

GAIA_KEYBOARD_LAYOUTS=noPreloadDictRequired,en,pt-BR,es,de,fr,fr-CA,pl,ko,zh-Hans-Pinyin,en-Dvorak
GAIA_KEYBOARD_PRELOAD_DICT_LAYOUTS=en,pt-BR,es,de,fr,fr-CA,pl,ko,zh-Hans-Pinyin,en-Dvorak

To load all layouts that doesn't require a preloaded dictionary *and* preload dictionaries we have already preloaded.

There are still some UIs to be patched before we could enable the feature on master. We would use dependency to track that.
Actually, |noPreloadDictRequired| does not only cover Latin-IMEngine based layouts, but all layouts w/o a dictionary or doesn't need a preloaded dictionary.

Updating summary.
Summary: Enable users to download latin-imengine layouts → Include all layouts with no dictionary or downloadable dictionary
What's stopping this bug from being RESOLVED?
Assignee: nobody → timdream
Status: NEW → ASSIGNED
(In reply to Matěj Cepl from comment #2)
> What's stopping this bug from being RESOLVED?

Actually enable it in on master...? I am sorry I was busy at something else.

(In reply to Tim Guan-tin Chien [:timdream] (slow response; please ni? to queue) from comment #0)
> GAIA_KEYBOARD_LAYOUTS=noPreloadDictRequired,en,pt-BR,es,de,fr,fr-CA,pl,ko,zh-Hans-Pinyin,en-Dvorak
> GAIA_KEYBOARD_PRELOAD_DICT_LAYOUTS=en,pt-BR,es,de,fr,fr-CA,pl,ko,zh-Hans-Pinyin,en-Dvorak

This might not be the right way to re-purpose the GAIA_KEYBOARD_LAYOUTS value. If someone enables a layout in her local.mk today, she would have to change GAIA_KEYBOARD_PRELOAD_DICT_LAYOUTS too after this patch lands.

I should think of some way that could carry over the meaning there.
I've concluded we should do this instead:

# This variable is for customizing the keyboard layouts in a build.
# Include the ID of the layout in this variable will make both the dictionary
# and the layout included in the package.
GAIA_KEYBOARD_LAYOUTS?=en,pt-BR,es,de,fr,fr-CA,pl,ko,zh-Hans-Pinyin,en-Dvorak
# We optionally offers downloading the dictionary from the CDN, instead of
# including it in the build.
# Include the ID of the layout in this variable will make it appear in the
# keyboard settings page, allowing user to download the dictionary.
GAIA_KEYBOARD_DOWNLOADABLE_LAYOUTS?=noPreloadDictRequired

I will change the keyboard build script (and tests) to do exactly that, and enable the feature in the second commit.
Comment on attachment 8601305 [details] [review]
[gaia] timdream:keyboard-dyn-switch > mozilla-b2g:master

r=me, thanks.
Attachment #8601305 - Flags: review?(rlu) → review+
http://docs.taskcluster.net/tools/task-graph-inspector/#IJXpf2ZfQV6AyKqOKu4oew

The pull request failed to pass integration tests. It could not be landed, please try again.
Comment on attachment 8601305 [details] [review]
[gaia] timdream:keyboard-dyn-switch > mozilla-b2g:master

Please review this again. The previous patch has a side effect of shipping Emoji layout prematurely. I add a flag to exclude that.
Attachment #8601305 - Flags: review+ → review?(rlu)
Comment on attachment 8601305 [details] [review]
[gaia] timdream:keyboard-dyn-switch > mozilla-b2g:master

Thanks for considering to exclude emoji layout.
I think it would be better if the exclude flag could be set outside of the layout def. file, but don't have a strong opinion on that.
Attachment #8601305 - Flags: review?(rlu) → review+
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: