2013-11-27 11:12:50 +01:00
|
|
|
/*
|
2014-07-03 21:06:06 +02:00
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
2013-11-27 11:12:50 +01:00
|
|
|
|
2014-07-03 21:06:06 +02:00
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
2013-11-27 11:12:50 +01:00
|
|
|
|
2014-07-03 21:06:06 +02:00
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
2014-07-03 20:37:34 +02:00
|
|
|
(function () {
|
|
|
|
'use strict';
|
2014-06-27 12:55:31 +02:00
|
|
|
// hilfsvariablen
|
2014-07-03 21:06:06 +02:00
|
|
|
var es_isch = {1: [1, 2, 4, 5, 6, 7]};
|
|
|
|
var ab = {4: [1, 2]};
|
|
|
|
var vor = {3: [9, 10, 11]};
|
|
|
|
var haubi = {4: [4, 5, 6, 7, 8]};
|
|
|
|
var fuef = {1: [9, 10, 11]};
|
|
|
|
var zae = {2: [9, 10, 11]};
|
|
|
|
var viertu = {2: [1, 2, 3, 4, 5, 6]};
|
|
|
|
var zwaenzg = {3: [1, 2, 3, 4, 5, 6]};
|
2014-07-03 20:37:34 +02:00
|
|
|
var layout = {
|
|
|
|
// version: zur Zeit immer 2 (Pflichtattribut)
|
|
|
|
"version": 2,
|
|
|
|
// Sprechender Name der Sprache
|
|
|
|
"language": 'Bärndütsch',
|
|
|
|
// Buchstabenfeld als Array von Strings.
|
|
|
|
"letters": [
|
|
|
|
'ESKISCHAFÜF',
|
|
|
|
'VIERTUBFZÄÄ',
|
|
|
|
'ZWÄNZGSIVOR',
|
|
|
|
'ABOHAUBIEGE',
|
|
|
|
'EISZWÖISDRÜ',
|
|
|
|
'VIERIFÜFIQT',
|
|
|
|
'SÄCHSISIBNI',
|
|
|
|
'ACHTINÜNIEL',
|
|
|
|
'ZÄNIERBEUFI',
|
|
|
|
'ZWÖUFINAUHR'
|
|
|
|
],
|
|
|
|
// Permanent aktive Buchstaben. <array-or-object>, vgl. ausführliche Beschreibung bei "minutes".
|
2014-07-03 21:06:06 +02:00
|
|
|
"permanent": es_isch,
|
2014-07-03 20:37:34 +02:00
|
|
|
/*
|
|
|
|
* Minuten: Objekt im folgenden Format:
|
|
|
|
* {
|
2014-07-04 13:52:32 +02:00
|
|
|
* <minuten>: <array-or-object>,
|
|
|
|
* ...
|
2014-07-03 20:37:34 +02:00
|
|
|
* }
|
|
|
|
* <minuten>: String von Komma-separierten Minutenwerten, zu welchem die in <array-or-object> angegebenen Buchstaben aktiv sein sollen
|
|
|
|
* <array-or-object> : [ <object>, ...] | <object>
|
|
|
|
* <object>: { <zeile> : [ <spalte>, ... ] }
|
|
|
|
* <zeile>: Die Zeile, in welcher die Buchstaben liegen; von oben gezählt, oben ist 1.
|
|
|
|
* <spalte>: Die Spalte, in der ein einzelner Buchstabe liegt; von links gezählt, links ist 1.
|
|
|
|
* Beispiel:
|
|
|
|
* "minutes": {
|
2014-07-04 13:52:32 +02:00
|
|
|
* "0,1": {1: [6, 7, 9]},
|
|
|
|
* "5": [ {3: [1, 2]}, {4: [10, 11]} ]
|
2014-07-03 20:37:34 +02:00
|
|
|
* }
|
|
|
|
* Erklärung:
|
|
|
|
* Bei Minuten 0 und 1 sind die Buchstaben 6, 7 und 9 der ersten Zeile aktiv.
|
|
|
|
* Bei Minute 5 sind die Buchstaben 1 und 2 der Zeile 3 sowie die Buchstaben 10 und 11 der Zeile 4 aktiv.
|
|
|
|
*/
|
|
|
|
"minutes": {
|
2014-07-03 21:06:06 +02:00
|
|
|
"5,6,7,8,9": [fuef, ab],
|
|
|
|
"10,11,12,13,14": [zae, ab],
|
|
|
|
"15,16,17,18,19": [viertu, ab],
|
|
|
|
"20,21,22,23,24": [zwaenzg, ab],
|
|
|
|
"25,26,27,28,29": [fuef, vor, haubi],
|
|
|
|
"30,31,32,33,34": haubi,
|
|
|
|
"35,36,37,38,39": [fuef, ab, haubi],
|
|
|
|
"40,41,42,43,44": [zwaenzg, vor],
|
|
|
|
"45,46,47,48,49": [viertu, vor],
|
|
|
|
"50,51,52,53,54": [zae, vor],
|
|
|
|
"55,56,57,58,59": [fuef, vor]
|
2014-07-03 20:37:34 +02:00
|
|
|
},
|
|
|
|
// Die Stunden; gleiches Format wie bei den Minuten
|
|
|
|
"hours": {
|
|
|
|
"0,12": {10: [1, 2, 3, 4, 5, 6]},
|
|
|
|
"1,13": {5: [1, 2, 3]},
|
|
|
|
"2,14": {5: [4, 5, 6, 7]},
|
|
|
|
"3,15": {5: [9, 10, 11]},
|
|
|
|
"4,16": {6: [1, 2, 3, 4, 5]},
|
|
|
|
"5,17": {6: [6, 7, 8, 9]},
|
|
|
|
"6,18": {7: [1, 2, 3, 4, 5, 6]},
|
|
|
|
"7,19": {7: [7, 8, 9, 10, 11]},
|
|
|
|
"8,20": {8: [1, 2, 3, 4, 5]},
|
|
|
|
"9,21": {8: [6, 7, 8, 9]},
|
|
|
|
"10,22": {9: [1, 2, 3, 4]},
|
|
|
|
"11,23": {9: [8, 9, 10, 11]}
|
|
|
|
}
|
|
|
|
};
|
2014-06-27 12:55:31 +02:00
|
|
|
// Das Layout bei der Uhr unter dem Code "de_CH" registrieren.
|
2014-07-03 20:37:34 +02:00
|
|
|
$.fritteli.uhr.register('de_CH', layout);
|
|
|
|
}());
|