-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-local-template.js
51 lines (44 loc) · 2.32 KB
/
config-local-template.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
///////////////////////////////////////////////////////////////////////////////
//Copyright (C) 2019 Joliciel Informatique
//
//This file is part of Jochre.
//
//Jochre is free software: you can redistribute it and/or modify
//it under the terms of the GNU Affero General Public License as published by
//the Free Software Foundation, either version 3 of the License, or
//(at your option) any later version.
//
//Jochre 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 Affero General Public License for more details.
//
//You should have received a copy of the GNU Affero General Public License
//along with Jochre. If not, see <http://www.gnu.org/licenses/>.
//////////////////////////////////////////////////////////////////////////////
// copy this file and rename it config-local.js
function config() {
// override config settings from config.js here
// Here is an example for Yiddish
// The default language for pages
defaultLanguage = "yi";
// Accents are assumed to be contained in a single glyph with the preceding character
accents = new Set(["ֱ", "ֲ", "ֳ", "ִ", "ֵ", "ֶ", "ַ", "ָ", "ֻ", "ּ", "ֽ", "ֿ", "ׁ", "ׂ", "ׄ", "ְ", "ֹ"]);
// This is the list that will always be available to the user
// It will be completed with any additional font families found in the Alto file styles.
initialFontFamilies = [
["Hebrew Serif", {fontType: "serif", fontWidth: "proportional"}],
["Hebrew Sans Serif", {fontType: "sans-serif", fontWidth: "proportional"}],
["Hebrew Typewriter", {fontType: "serif", fontWidth: "fixed"}],
["Latin Serif", {fontType: "serif", fontWidth: "proportional"}],
["Latin Sans Serif", {fontType: "sans-serif", fontWidth: "proportional"}],
["Latin Typewriter", {fontType: "serif", fontWidth: "fixed"}],
["Cyrillic Serif", {fontType: "serif", fontWidth: "proportional"}],
["Cyrillic Sans Serif", {fontType: "sans-serif", fontWidth: "proportional"}],
["Cyrillic Typewriter", {fontType: "serif", fontWidth: "fixed"}],
];
// The font family selected by default for all page elements.
defaultFontFamily = "Hebrew Serif";
// Sample text, which will be shown at various font sizes
sampleText = "דאָס ייִדישע פאָלק";
}