1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 # For Android, we ship hyphenation files in uncompiled format to minimize
8 # the package size; for other products, ship precompiled files to eliminate
9 # the cost of compilation on first use.
10 if CONFIG["MOZ_BUILD_APP"] == "mobile/android":
11 hyphenation_ext = ".dic"
13 hyphenation_ext = ".hyf"
25 # 'en-US', # en-US is renamed -- see below.
62 filename = "{locale}/hyphenation/hyph_{locale}" + hyphenation_ext
63 FINAL_TARGET_FILES.hyphenation += [filename.format(locale=locale) for locale in locales]
64 # en-US is a special case: the dic file is named like en_US.
65 FINAL_TARGET_FILES.hyphenation += ["en-US/hyphenation/hyph_en_US" + hyphenation_ext]