Calculus 'floor((N - 15) / 10))' defines an index to choose parameter 'p' from set '{0.8 0.7 0.65 0.6}'.
Letter value is defined by 'min(floor(1 + 9 ceil(r^p) * 100), 10)'
+By default, optimized bags are not presented in the bag selector. To activate
+this functionality, OPTIMIZED_LANGUAGE_BAG must be set to true in configuration
+file.
+
### Credits
Thanks [Laurent Mazet](http://www.softndesign.org/~mazet/) for many contributions.
// Enable custom board definitions
//ENABLE_CUSTOM_BOARD: false,
+ // Enable optimized language bags
+ //OPTIMIZED_LANGUAGE_BAG: false,
+
// I don't like trailing commas, here is a nice message for you reading this file :-)
HAVE_FUN: true
};
setConf("ENABLE_TIMER", false);
setConf("CELL_CAPTIONS", "dots"); // "clip", "dots", "none", "short"
setConf("ENABLE_CUSTOM_BOARD", false);
+ setConf("OPTIMIZED_LANGUAGE_BAG",false);
function isSetting(key) {
return Object.prototype.hasOwnProperty.call(Conf, key) ||
boardLangSelect.textContent = "";
for (const key of Object.keys(availableBoardLangs)) {
- boardLangSelect.add(new Option(_(availableBoardLangs[key]), key));
+ if (getSetting("OPTIMIZED_LANGUAGE_BAG") || !/-opt/.test(key)) {
+ boardLangSelect.add(new Option(_(availableBoardLangs[key]), key));
+ }
}
Array.prototype.sort.call(boardLangSelect.options, function (a, b) {