From d0b96ec1c87ce1d5971a4cea9073c68843214a71 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sat, 12 Nov 2005 16:32:03 +0000 Subject: Add schema entries for the fonts keys. 2005-11-12 Christian Persch * data/Makefile.am: * data/default-prefs-common.js: * data/generate-font-schemas.py: * data/epiphany-fonts.schemas: Add schema entries for the fonts keys. --- data/default-prefs-common.js | 52 -- data/epiphany-fonts.schemas | 1435 +++++++++++++++++++++++++++++++++++++++++ data/generate-font-schemas.py | 112 ++++ 3 files changed, 1547 insertions(+), 52 deletions(-) create mode 100644 data/epiphany-fonts.schemas create mode 100755 data/generate-font-schemas.py (limited to 'data') diff --git a/data/default-prefs-common.js b/data/default-prefs-common.js index 02746bfb8..7c0d38e9b 100644 --- a/data/default-prefs-common.js +++ b/data/default-prefs-common.js @@ -48,58 +48,6 @@ pref("security.warn_viewing_mixed.show_once", false); // fonts pref("font.size.unit", "pt"); -pref("font.size.fixed.ar", 10); -pref("font.size.fixed.x-baltic", 10); -pref("font.size.fixed.x-central-euro", 10); -pref("font.size.fixed.x-cyrillic", 10); -pref("font.size.fixed.x-devanagari", 10); -pref("font.size.fixed.el", 10); -pref("font.size.fixed.he", 10); -pref("font.size.fixed.ja", 10); -pref("font.size.fixed.ko", 10); -pref("font.size.fixed.zh-CN", 10); -pref("font.size.fixed.x-tamil", 10); -pref("font.size.fixed.th", 10); -pref("font.size.fixed.zh-TW", 10); -pref("font.size.fixed.zh-HK", 10); -pref("font.size.fixed.tr", 10); -pref("font.size.fixed.x-armn", 10); -pref("font.size.fixed.x-beng", 10); -pref("font.size.fixed.x-cans", 10); -pref("font.size.fixed.x-ethi", 10); -pref("font.size.fixed.x-geor", 10); -pref("font.size.fixed.x-gujr", 10); -pref("font.size.fixed.x-guru", 10); -pref("font.size.fixed.x-khmr", 10); -pref("font.size.fixed.x-mlym", 10); -pref("font.size.fixed.x-unicode", 10); -pref("font.size.fixed.x-western", 10); -pref("font.size.variable.ar", 11); -pref("font.size.variable.x-baltic", 11); -pref("font.size.variable.x-central-euro", 11); -pref("font.size.variable.x-cyrillic", 11); -pref("font.size.variable.x-devanagari", 11); -pref("font.size.variable.el", 11); -pref("font.size.variable.he", 11); -pref("font.size.variable.ja", 11); -pref("font.size.variable.ko", 11); -pref("font.size.variable.zh-CN", 11); -pref("font.size.variable.x-tamil", 11); -pref("font.size.variable.th", 11); -pref("font.size.variable.zh-TW", 11); -pref("font.size.variable.zh-HK", 11); -pref("font.size.variable.tr", 11); -pref("font.size.variable.x-armn", 11); -pref("font.size.variable.x-beng", 11); -pref("font.size.variable.x-cans", 11); -pref("font.size.variable.x-ethi", 11); -pref("font.size.variable.x-geor", 11); -pref("font.size.variable.x-gujr", 11); -pref("font.size.variable.x-guru", 11); -pref("font.size.variable.x-khmr", 11); -pref("font.size.variable.x-mlym", 11); -pref("font.size.variable.x-unicode", 11); -pref("font.size.variable.x-western", 11); // protocols pref("network.protocol-handler.external.ftp", false); diff --git a/data/epiphany-fonts.schemas b/data/epiphany-fonts.schemas new file mode 100644 index 000000000..5acf3bb83 --- /dev/null +++ b/data/epiphany-fonts.schemas @@ -0,0 +1,1435 @@ + + + + + /schemas/apps/epiphany/web/fixed_font_size_ar + /apps/epiphany/web/fixed_font_size_ar + epiphany + int + 10 + + Monospaced font size for "ar" + Monospaced font size for "ar" + + + + /schemas/apps/epiphany/web/font_monospace_ar + /apps/epiphany/web/font_monospace_ar + epiphany + string + monospace + + Monospaced font for "ar" + Monospaced font for "ar" + + + + /schemas/apps/epiphany/web/variable_font_size_ar + /apps/epiphany/web/variable_font_size_ar + epiphany + int + 11 + + Variable width font size for "ar" + Variable width font size for "ar" + + + + /schemas/apps/epiphany/web/font_variable_ar + /apps/epiphany/web/font_variable_ar + epiphany + string + sans-serif + + Variable width font for "ar" + Variable width font for "ar" + + + + /schemas/apps/epiphany/web/minimum_font_size_ar + /apps/epiphany/web/minimum_font_size_ar + epiphany + int + 7 + + Minimum font size for "ar" + Minimum font size for "ar" + + + + /schemas/apps/epiphany/web/fixed_font_size_el + /apps/epiphany/web/fixed_font_size_el + epiphany + int + 10 + + Monospaced font size for "el" + Monospaced font size for "el" + + + + /schemas/apps/epiphany/web/font_monospace_el + /apps/epiphany/web/font_monospace_el + epiphany + string + monospace + + Monospaced font for "el" + Monospaced font for "el" + + + + /schemas/apps/epiphany/web/variable_font_size_el + /apps/epiphany/web/variable_font_size_el + epiphany + int + 11 + + Variable width font size for "el" + Variable width font size for "el" + + + + /schemas/apps/epiphany/web/font_variable_el + /apps/epiphany/web/font_variable_el + epiphany + string + sans-serif + + Variable width font for "el" + Variable width font for "el" + + + + /schemas/apps/epiphany/web/minimum_font_size_el + /apps/epiphany/web/minimum_font_size_el + epiphany + int + 7 + + Minimum font size for "el" + Minimum font size for "el" + + + + /schemas/apps/epiphany/web/fixed_font_size_he + /apps/epiphany/web/fixed_font_size_he + epiphany + int + 10 + + Monospaced font size for "he" + Monospaced font size for "he" + + + + /schemas/apps/epiphany/web/font_monospace_he + /apps/epiphany/web/font_monospace_he + epiphany + string + monospace + + Monospaced font for "he" + Monospaced font for "he" + + + + /schemas/apps/epiphany/web/variable_font_size_he + /apps/epiphany/web/variable_font_size_he + epiphany + int + 11 + + Variable width font size for "he" + Variable width font size for "he" + + + + /schemas/apps/epiphany/web/font_variable_he + /apps/epiphany/web/font_variable_he + epiphany + string + sans-serif + + Variable width font for "he" + Variable width font for "he" + + + + /schemas/apps/epiphany/web/minimum_font_size_he + /apps/epiphany/web/minimum_font_size_he + epiphany + int + 7 + + Minimum font size for "he" + Minimum font size for "he" + + + + /schemas/apps/epiphany/web/fixed_font_size_ja + /apps/epiphany/web/fixed_font_size_ja + epiphany + int + 10 + + Monospaced font size for "ja" + Monospaced font size for "ja" + + + + /schemas/apps/epiphany/web/font_monospace_ja + /apps/epiphany/web/font_monospace_ja + epiphany + string + monospace + + Monospaced font for "ja" + Monospaced font for "ja" + + + + /schemas/apps/epiphany/web/variable_font_size_ja + /apps/epiphany/web/variable_font_size_ja + epiphany + int + 11 + + Variable width font size for "ja" + Variable width font size for "ja" + + + + /schemas/apps/epiphany/web/font_variable_ja + /apps/epiphany/web/font_variable_ja + epiphany + string + sans-serif + + Variable width font for "ja" + Variable width font for "ja" + + + + /schemas/apps/epiphany/web/minimum_font_size_ja + /apps/epiphany/web/minimum_font_size_ja + epiphany + int + 7 + + Minimum font size for "ja" + Minimum font size for "ja" + + + + /schemas/apps/epiphany/web/fixed_font_size_ko + /apps/epiphany/web/fixed_font_size_ko + epiphany + int + 10 + + Monospaced font size for "ko" + Monospaced font size for "ko" + + + + /schemas/apps/epiphany/web/font_monospace_ko + /apps/epiphany/web/font_monospace_ko + epiphany + string + monospace + + Monospaced font for "ko" + Monospaced font for "ko" + + + + /schemas/apps/epiphany/web/variable_font_size_ko + /apps/epiphany/web/variable_font_size_ko + epiphany + int + 11 + + Variable width font size for "ko" + Variable width font size for "ko" + + + + /schemas/apps/epiphany/web/font_variable_ko + /apps/epiphany/web/font_variable_ko + epiphany + string + sans-serif + + Variable width font for "ko" + Variable width font for "ko" + + + + /schemas/apps/epiphany/web/minimum_font_size_ko + /apps/epiphany/web/minimum_font_size_ko + epiphany + int + 7 + + Minimum font size for "ko" + Minimum font size for "ko" + + + + /schemas/apps/epiphany/web/fixed_font_size_th + /apps/epiphany/web/fixed_font_size_th + epiphany + int + 10 + + Monospaced font size for "th" + Monospaced font size for "th" + + + + /schemas/apps/epiphany/web/font_monospace_th + /apps/epiphany/web/font_monospace_th + epiphany + string + monospace + + Monospaced font for "th" + Monospaced font for "th" + + + + /schemas/apps/epiphany/web/variable_font_size_th + /apps/epiphany/web/variable_font_size_th + epiphany + int + 11 + + Variable width font size for "th" + Variable width font size for "th" + + + + /schemas/apps/epiphany/web/font_variable_th + /apps/epiphany/web/font_variable_th + epiphany + string + sans-serif + + Variable width font for "th" + Variable width font for "th" + + + + /schemas/apps/epiphany/web/minimum_font_size_th + /apps/epiphany/web/minimum_font_size_th + epiphany + int + 7 + + Minimum font size for "th" + Minimum font size for "th" + + + + /schemas/apps/epiphany/web/fixed_font_size_tr + /apps/epiphany/web/fixed_font_size_tr + epiphany + int + 10 + + Monospaced font size for "tr" + Monospaced font size for "tr" + + + + /schemas/apps/epiphany/web/font_monospace_tr + /apps/epiphany/web/font_monospace_tr + epiphany + string + monospace + + Monospaced font for "tr" + Monospaced font for "tr" + + + + /schemas/apps/epiphany/web/variable_font_size_tr + /apps/epiphany/web/variable_font_size_tr + epiphany + int + 11 + + Variable width font size for "tr" + Variable width font size for "tr" + + + + /schemas/apps/epiphany/web/font_variable_tr + /apps/epiphany/web/font_variable_tr + epiphany + string + sans-serif + + Variable width font for "tr" + Variable width font for "tr" + + + + /schemas/apps/epiphany/web/minimum_font_size_tr + /apps/epiphany/web/minimum_font_size_tr + epiphany + int + 7 + + Minimum font size for "tr" + Minimum font size for "tr" + + + + /schemas/apps/epiphany/web/fixed_font_size_x-armn + /apps/epiphany/web/fixed_font_size_x-armn + epiphany + int + 10 + + Monospaced font size for "x-armn" + Monospaced font size for "x-armn" + + + + /schemas/apps/epiphany/web/font_monospace_x-armn + /apps/epiphany/web/font_monospace_x-armn + epiphany + string + monospace + + Monospaced font for "x-armn" + Monospaced font for "x-armn" + + + + /schemas/apps/epiphany/web/variable_font_size_x-armn + /apps/epiphany/web/variable_font_size_x-armn + epiphany + int + 11 + + Variable width font size for "x-armn" + Variable width font size for "x-armn" + + + + /schemas/apps/epiphany/web/font_variable_x-armn + /apps/epiphany/web/font_variable_x-armn + epiphany + string + sans-serif + + Variable width font for "x-armn" + Variable width font for "x-armn" + + + + /schemas/apps/epiphany/web/minimum_font_size_x-armn + /apps/epiphany/web/minimum_font_size_x-armn + epiphany + int + 7 + + Minimum font size for "x-armn" + Minimum font size for "x-armn" + + + + /schemas/apps/epiphany/web/fixed_font_size_x-baltic + /apps/epiphany/web/fixed_font_size_x-baltic + epiphany + int + 10 + + Monospaced font size for "x-baltic" + Monospaced font size for "x-baltic" + + + + /schemas/apps/epiphany/web/font_monospace_x-baltic + /apps/epiphany/web/font_monospace_x-baltic + epiphany + string + monospace + + Monospaced font for "x-baltic" + Monospaced font for "x-baltic" + + + + /schemas/apps/epiphany/web/variable_font_size_x-baltic + /apps/epiphany/web/variable_font_size_x-baltic + epiphany + int + 11 + + Variable width font size for "x-baltic" + Variable width font size for "x-baltic" + + + + /schemas/apps/epiphany/web/font_variable_x-baltic + /apps/epiphany/web/font_variable_x-baltic + epiphany + string + sans-serif + + Variable width font for "x-baltic" + Variable width font for "x-baltic" + + + + /schemas/apps/epiphany/web/minimum_font_size_x-baltic + /apps/epiphany/web/minimum_font_size_x-baltic + epiphany + int + 7 + + Minimum font size for "x-baltic" + Minimum font size for "x-baltic" + + + + /schemas/apps/epiphany/web/fixed_font_size_x-beng + /apps/epiphany/web/fixed_font_size_x-beng + epiphany + int + 10 + + Monospaced font size for "x-beng" + Monospaced font size for "x-beng" + + + + /schemas/apps/epiphany/web/font_monospace_x-beng + /apps/epiphany/web/font_monospace_x-beng + epiphany + string + monospace + + Monospaced font for "x-beng" + Monospaced font for "x-beng" + + + + /schemas/apps/epiphany/web/variable_font_size_x-beng + /apps/epiphany/web/variable_font_size_x-beng + epiphany + int + 11 + + Variable width font size for "x-beng" + Variable width font size for "x-beng" + + + + /schemas/apps/epiphany/web/font_variable_x-beng + /apps/epiphany/web/font_variable_x-beng + epiphany + string + sans-serif + + Variable width font for "x-beng" + Variable width font for "x-beng" + + + + /schemas/apps/epiphany/web/minimum_font_size_x-beng + /apps/epiphany/web/minimum_font_size_x-beng + epiphany + int + 7 + + Minimum font size for "x-beng" + Minimum font size for "x-beng" + + + + /schemas/apps/epiphany/web/fixed_font_size_x-cans + /apps/epiphany/web/fixed_font_size_x-cans + epiphany + int + 10 + + Monospaced font size for "x-cans" + Monospaced font size for "x-cans" + + + + /schemas/apps/epiphany/web/font_monospace_x-cans + /apps/epiphany/web/font_monospace_x-cans + epiphany + string + monospace + + Monospaced font for "x-cans" + Monospaced font for "x-cans" + + + + /schemas/apps/epiphany/web/variable_font_size_x-cans + /apps/epiphany/web/variable_font_size_x-cans + epiphany + int + 11 + + Variable width font size for "x-cans" + Variable width font size for "x-cans" + + + + /schemas/apps/epiphany/web/font_variable_x-cans + /apps/epiphany/web/font_variable_x-cans + epiphany + string + sans-serif + + Variable width font for "x-cans" + Variable width font for "x-cans" + + + + /schemas/apps/epiphany/web/minimum_font_size_x-cans + /apps/epiphany/web/minimum_font_size_x-cans + epiphany + int + 7 + + Minimum font size for "x-cans" + Minimum font size for "x-cans" + + + + /schemas/apps/epiphany/web/fixed_font_size_x-central-euro + /apps/epiphany/web/fixed_font_size_x-central-euro + epiphany + int + 10 + + Monospaced font size for "x-central-euro" + Monospaced font size for "x-central-euro" + + + + /schemas/apps/epiphany/web/font_monospace_x-central-euro + /apps/epiphany/web/font_monospace_x-central-euro + epiphany + string + monospace + + Monospaced font for "x-central-euro" + Monospaced font for "x-central-euro" + + + + /schemas/apps/epiphany/web/variable_font_size_x-central-euro + /apps/epiphany/web/variable_font_size_x-central-euro + epiphany + int + 11 + + Variable width font size for "x-central-euro" + Variable width font size for "x-central-euro" + + + + /schemas/apps/epiphany/web/font_variable_x-central-euro + /apps/epiphany/web/font_variable_x-central-euro + epiphany + string + sans-serif + + Variable width font for "x-central-euro" + Variable width font for "x-central-euro" + + + + /schemas/apps/epiphany/web/minimum_font_size_x-central-euro + /apps/epiphany/web/minimum_font_size_x-central-euro + epiphany + int + 7 + + Minimum font size for "x-central-euro" + Minimum font size for "x-central-euro" + + + + /schemas/apps/epiphany/web/fixed_font_size_x-cyrillic + /apps/epiphany/web/fixed_font_size_x-cyrillic + epiphany + int + 10 + + Monospaced font size for "x-cyrillic" + Monospaced font size for "x-cyrillic" + + + + /schemas/apps/epiphany/web/font_monospace_x-cyrillic + /apps/epiphany/web/font_monospace_x-cyrillic + epiphany + string + monospace + + Monospaced font for "x-cyrillic" + Monospaced font for "x-cyrillic" + + + + /schemas/apps/epiphany/web/variable_font_size_x-cyrillic + /apps/epiphany/web/variable_font_size_x-cyrillic + epiphany + int + 11 + + Variable width font size for "x-cyrillic" + Variable width font size for "x-cyrillic" + + + + /schemas/apps/epiphany/web/font_variable_x-cyrillic + /apps/epiphany/web/font_variable_x-cyrillic + epiphany + string + sans-serif + + Variable width font for "x-cyrillic" + Variable width font for "x-cyrillic" + + + + /schemas/apps/epiphany/web/minimum_font_size_x-cyrillic + /apps/epiphany/web/minimum_font_size_x-cyrillic + epiphany + int + 7 + + Minimum font size for "x-cyrillic" + Minimum font size for "x-cyrillic" + + + + /schemas/apps/epiphany/web/fixed_font_size_x-devanagari + /apps/epiphany/web/fixed_font_size_x-devanagari + epiphany + int + 10 + + Monospaced font size for "x-devanagari" + Monospaced font size for "x-devanagari" + + + + /schemas/apps/epiphany/web/font_monospace_x-devanagari + /apps/epiphany/web/font_monospace_x-devanagari + epiphany + string + monospace + + Monospaced font for "x-devanagari" + Monospaced font for "x-devanagari" + + + + /schemas/apps/epiphany/web/variable_font_size_x-devanagari + /apps/epiphany/web/variable_font_size_x-devanagari + epiphany + int + 11 + + Variable width font size for "x-devanagari" + Variable width font size for "x-devanagari" + + + + /schemas/apps/epiphany/web/font_variable_x-devanagari + /apps/epiphany/web/font_variable_x-devanagari + epiphany + string + sans-serif + + Variable width font for "x-devanagari" + Variable width font for "x-devanagari" + + + + /schemas/apps/epiphany/web/minimum_font_size_x-devanagari + /apps/epiphany/web/minimum_font_size_x-devanagari + epiphany + int + 7 + + Minimum font size for "x-devanagari" + Minimum font size for "x-devanagari" + + + + /schemas/apps/epiphany/web/fixed_font_size_x-ethi + /apps/epiphany/web/fixed_font_size_x-ethi + epiphany + int + 10 + + Monospaced font size for "x-ethi" + Monospaced font size for "x-ethi" + + + + /schemas/apps/epiphany/web/font_monospace_x-ethi + /apps/epiphany/web/font_monospace_x-ethi + epiphany + string + monospace + + Monospaced font for "x-ethi" + Monospaced font for "x-ethi" + + + + /schemas/apps/epiphany/web/variable_font_size_x-ethi + /apps/epiphany/web/variable_font_size_x-ethi + epiphany + int + 11 + + Variable width font size for "x-ethi" + Variable width font size for "x-ethi" + + + + /schemas/apps/epiphany/web/font_variable_x-ethi + /apps/epiphany/web/font_variable_x-ethi + epiphany + string + sans-serif + + Variable width font for "x-ethi" + Variable width font for "x-ethi" + + + + /schemas/apps/epiphany/web/minimum_font_size_x-ethi + /apps/epiphany/web/minimum_font_size_x-ethi + epiphany + int + 7 + + Minimum font size for "x-ethi" + Minimum font size for "x-ethi" + + + + /schemas/apps/epiphany/web/fixed_font_size_x-geor + /apps/epiphany/web/fixed_font_size_x-geor + epiphany + int + 10 + + Monospaced font size for "x-geor" + Monospaced font size for "x-geor" + + + + /schemas/apps/epiphany/web/font_monospace_x-geor + /apps/epiphany/web/font_monospace_x-geor + epiphany + string + monospace + + Monospaced font for "x-geor" + Monospaced font for "x-geor" + + + + /schemas/apps/epiphany/web/variable_font_size_x-geor + /apps/epiphany/web/variable_font_size_x-geor + epiphany + int + 11 + + Variable width font size for "x-geor" + Variable width font size for "x-geor" + + + + /schemas/apps/epiphany/web/font_variable_x-geor + /apps/epiphany/web/font_variable_x-geor + epiphany + string + sans-serif + + Variable width font for "x-geor" + Variable width font for "x-geor" + + + + /schemas/apps/epiphany/web/minimum_font_size_x-geor + /apps/epiphany/web/minimum_font_size_x-geor + epiphany + int + 7 + + Minimum font size for "x-geor" + Minimum font size for "x-geor" + + + + /schemas/apps/epiphany/web/fixed_font_size_x-gujr + /apps/epiphany/web/fixed_font_size_x-gujr + epiphany + int + 10 + + Monospaced font size for "x-gujr" + Monospaced font size for "x-gujr" + + + + /schemas/apps/epiphany/web/font_monospace_x-gujr + /apps/epiphany/web/font_monospace_x-gujr + epiphany + string + monospace + + Monospaced font for "x-gujr" + Monospaced font for "x-gujr" + + + + /schemas/apps/epiphany/web/variable_font_size_x-gujr + /apps/epiphany/web/variable_font_size_x-gujr + epiphany + int + 11 + + Variable width font size for "x-gujr" + Variable width font size for "x-gujr" + + + + /schemas/apps/epiphany/web/font_variable_x-gujr + /apps/epiphany/web/font_variable_x-gujr + epiphany + string + sans-serif + + Variable width font for "x-gujr" + Variable width font for "x-gujr" + + + + /schemas/apps/epiphany/web/minimum_font_size_x-gujr + /apps/epiphany/web/minimum_font_size_x-gujr + epiphany + int + 7 + + Minimum font size for "x-gujr" + Minimum font size for "x-gujr" + + + + /schemas/apps/epiphany/web/fixed_font_size_x-guru + /apps/epiphany/web/fixed_font_size_x-guru + epiphany + int + 10 + + Monospaced font size for "x-guru" + Monospaced font size for "x-guru" + + + + /schemas/apps/epiphany/web/font_monospace_x-guru + /apps/epiphany/web/font_monospace_x-guru + epiphany + string + monospace + + Monospaced font for "x-guru" + Monospaced font for "x-guru" + + + + /schemas/apps/epiphany/web/variable_font_size_x-guru + /apps/epiphany/web/variable_font_size_x-guru + epiphany + int + 11 + + Variable width font size for "x-guru" + Variable width font size for "x-guru" + + + + /schemas/apps/epiphany/web/font_variable_x-guru + /apps/epiphany/web/font_variable_x-guru + epiphany + string + sans-serif + + Variable width font for "x-guru" + Variable width font for "x-guru" + + + + /schemas/apps/epiphany/web/minimum_font_size_x-guru + /apps/epiphany/web/minimum_font_size_x-guru + epiphany + int + 7 + + Minimum font size for "x-guru" + Minimum font size for "x-guru" + + + + /schemas/apps/epiphany/web/fixed_font_size_x-khmr + /apps/epiphany/web/fixed_font_size_x-khmr + epiphany + int + 10 + + Monospaced font size for "x-khmr" + Monospaced font size for "x-khmr" + + + + /schemas/apps/epiphany/web/font_monospace_x-khmr + /apps/epiphany/web/font_monospace_x-khmr + epiphany + string + monospace + + Monospaced font for "x-khmr" + Monospaced font for "x-khmr" + + + + /schemas/apps/epiphany/web/variable_font_size_x-khmr + /apps/epiphany/web/variable_font_size_x-khmr + epiphany + int + 11 + + Variable width font size for "x-khmr" + Variable width font size for "x-khmr" + + + + /schemas/apps/epiphany/web/font_variable_x-khmr + /apps/epiphany/web/font_variable_x-khmr + epiphany + string + sans-serif + + Variable width font for "x-khmr" + Variable width font for "x-khmr" + + + + /schemas/apps/epiphany/web/minimum_font_size_x-khmr + /apps/epiphany/web/minimum_font_size_x-khmr + epiphany + int + 7 + + Minimum font size for "x-khmr" + Minimum font size for "x-khmr" + + + + /schemas/apps/epiphany/web/fixed_font_size_x-mlym + /apps/epiphany/web/fixed_font_size_x-mlym + epiphany + int + 10 + + Monospaced font size for "x-mlym" + Monospaced font size for "x-mlym" + + + + /schemas/apps/epiphany/web/font_monospace_x-mlym + /apps/epiphany/web/font_monospace_x-mlym + epiphany + string + monospace + + Monospaced font for "x-mlym" + Monospaced font for "x-mlym" + + + + /schemas/apps/epiphany/web/variable_font_size_x-mlym + /apps/epiphany/web/variable_font_size_x-mlym + epiphany + int + 11 + + Variable width font size for "x-mlym" + Variable width font size for "x-mlym" + + + + /schemas/apps/epiphany/web/font_variable_x-mlym + /apps/epiphany/web/font_variable_x-mlym + epiphany + string + sans-serif + + Variable width font for "x-mlym" + Variable width font for "x-mlym" + + + + /schemas/apps/epiphany/web/minimum_font_size_x-mlym + /apps/epiphany/web/minimum_font_size_x-mlym + epiphany + int + 7 + + Minimum font size for "x-mlym" + Minimum font size for "x-mlym" + + + + /schemas/apps/epiphany/web/fixed_font_size_x-tamil + /apps/epiphany/web/fixed_font_size_x-tamil + epiphany + int + 10 + + Monospaced font size for "x-tamil" + Monospaced font size for "x-tamil" + + + + /schemas/apps/epiphany/web/font_monospace_x-tamil + /apps/epiphany/web/font_monospace_x-tamil + epiphany + string + monospace + + Monospaced font for "x-tamil" + Monospaced font for "x-tamil" + + + + /schemas/apps/epiphany/web/variable_font_size_x-tamil + /apps/epiphany/web/variable_font_size_x-tamil + epiphany + int + 11 + + Variable width font size for "x-tamil" + Variable width font size for "x-tamil" + + + + /schemas/apps/epiphany/web/font_variable_x-tamil + /apps/epiphany/web/font_variable_x-tamil + epiphany + string + sans-serif + + Variable width font for "x-tamil" + Variable width font for "x-tamil" + + + + /schemas/apps/epiphany/web/minimum_font_size_x-tamil + /apps/epiphany/web/minimum_font_size_x-tamil + epiphany + int + 7 + + Minimum font size for "x-tamil" + Minimum font size for "x-tamil" + + + + /schemas/apps/epiphany/web/fixed_font_size_x-unicode + /apps/epiphany/web/fixed_font_size_x-unicode + epiphany + int + 10 + + Monospaced font size for "x-unicode" + Monospaced font size for "x-unicode" + + + + /schemas/apps/epiphany/web/font_monospace_x-unicode + /apps/epiphany/web/font_monospace_x-unicode + epiphany + string + monospace + + Monospaced font for "x-unicode" + Monospaced font for "x-unicode" + + + + /schemas/apps/epiphany/web/variable_font_size_x-unicode + /apps/epiphany/web/variable_font_size_x-unicode + epiphany + int + 11 + + Variable width font size for "x-unicode" + Variable width font size for "x-unicode" + + + + /schemas/apps/epiphany/web/font_variable_x-unicode + /apps/epiphany/web/font_variable_x-unicode + epiphany + string + sans-serif + + Variable width font for "x-unicode" + Variable width font for "x-unicode" + + + + /schemas/apps/epiphany/web/minimum_font_size_x-unicode + /apps/epiphany/web/minimum_font_size_x-unicode + epiphany + int + 7 + + Minimum font size for "x-unicode" + Minimum font size for "x-unicode" + + + + /schemas/apps/epiphany/web/fixed_font_size_x-western + /apps/epiphany/web/fixed_font_size_x-western + epiphany + int + 10 + + Monospaced font size for "x-western" + Monospaced font size for "x-western" + + + + /schemas/apps/epiphany/web/font_monospace_x-western + /apps/epiphany/web/font_monospace_x-western + epiphany + string + monospace + + Monospaced font for "x-western" + Monospaced font for "x-western" + + + + /schemas/apps/epiphany/web/variable_font_size_x-western + /apps/epiphany/web/variable_font_size_x-western + epiphany + int + 11 + + Variable width font size for "x-western" + Variable width font size for "x-western" + + + + /schemas/apps/epiphany/web/font_variable_x-western + /apps/epiphany/web/font_variable_x-western + epiphany + string + sans-serif + + Variable width font for "x-western" + Variable width font for "x-western" + + + + /schemas/apps/epiphany/web/minimum_font_size_x-western + /apps/epiphany/web/minimum_font_size_x-western + epiphany + int + 7 + + Minimum font size for "x-western" + Minimum font size for "x-western" + + + + /schemas/apps/epiphany/web/fixed_font_size_zh-CN + /apps/epiphany/web/fixed_font_size_zh-CN + epiphany + int + 10 + + Monospaced font size for "zh-CN" + Monospaced font size for "zh-CN" + + + + /schemas/apps/epiphany/web/font_monospace_zh-CN + /apps/epiphany/web/font_monospace_zh-CN + epiphany + string + monospace + + Monospaced font for "zh-CN" + Monospaced font for "zh-CN" + + + + /schemas/apps/epiphany/web/variable_font_size_zh-CN + /apps/epiphany/web/variable_font_size_zh-CN + epiphany + int + 11 + + Variable width font size for "zh-CN" + Variable width font size for "zh-CN" + + + + /schemas/apps/epiphany/web/font_variable_zh-CN + /apps/epiphany/web/font_variable_zh-CN + epiphany + string + sans-serif + + Variable width font for "zh-CN" + Variable width font for "zh-CN" + + + + /schemas/apps/epiphany/web/minimum_font_size_zh-CN + /apps/epiphany/web/minimum_font_size_zh-CN + epiphany + int + 7 + + Minimum font size for "zh-CN" + Minimum font size for "zh-CN" + + + + /schemas/apps/epiphany/web/fixed_font_size_zh-HK + /apps/epiphany/web/fixed_font_size_zh-HK + epiphany + int + 10 + + Monospaced font size for "zh-HK" + Monospaced font size for "zh-HK" + + + + /schemas/apps/epiphany/web/font_monospace_zh-HK + /apps/epiphany/web/font_monospace_zh-HK + epiphany + string + monospace + + Monospaced font for "zh-HK" + Monospaced font for "zh-HK" + + + + /schemas/apps/epiphany/web/variable_font_size_zh-HK + /apps/epiphany/web/variable_font_size_zh-HK + epiphany + int + 11 + + Variable width font size for "zh-HK" + Variable width font size for "zh-HK" + + + + /schemas/apps/epiphany/web/font_variable_zh-HK + /apps/epiphany/web/font_variable_zh-HK + epiphany + string + sans-serif + + Variable width font for "zh-HK" + Variable width font for "zh-HK" + + + + /schemas/apps/epiphany/web/minimum_font_size_zh-HK + /apps/epiphany/web/minimum_font_size_zh-HK + epiphany + int + 7 + + Minimum font size for "zh-HK" + Minimum font size for "zh-HK" + + + + /schemas/apps/epiphany/web/fixed_font_size_zh-TW + /apps/epiphany/web/fixed_font_size_zh-TW + epiphany + int + 10 + + Monospaced font size for "zh-TW" + Monospaced font size for "zh-TW" + + + + /schemas/apps/epiphany/web/font_monospace_zh-TW + /apps/epiphany/web/font_monospace_zh-TW + epiphany + string + monospace + + Monospaced font for "zh-TW" + Monospaced font for "zh-TW" + + + + /schemas/apps/epiphany/web/variable_font_size_zh-TW + /apps/epiphany/web/variable_font_size_zh-TW + epiphany + int + 11 + + Variable width font size for "zh-TW" + Variable width font size for "zh-TW" + + + + /schemas/apps/epiphany/web/font_variable_zh-TW + /apps/epiphany/web/font_variable_zh-TW + epiphany + string + sans-serif + + Variable width font for "zh-TW" + Variable width font for "zh-TW" + + + + /schemas/apps/epiphany/web/minimum_font_size_zh-TW + /apps/epiphany/web/minimum_font_size_zh-TW + epiphany + int + 7 + + Minimum font size for "zh-TW" + Minimum font size for "zh-TW" + + + + diff --git a/data/generate-font-schemas.py b/data/generate-font-schemas.py new file mode 100755 index 000000000..fc7717f8a --- /dev/null +++ b/data/generate-font-schemas.py @@ -0,0 +1,112 @@ +#!/usr/bin/env python +# -*- coding: UTF-8 -*- +# +# Copyright (C) 2005 Christian Persch +# +# 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 2, or (at your option) +# any later version. +# +# 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. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# $Id$ + +import sys, codecs +from xml import dom; + +sys.stdout = codecs.getwriter("utf-8")(sys.__stdout__) + +def appendTextNode(doc, schemaNode, tag, text): + node = doc.createElement(tag) + schemaNode.appendChild(node) + textNode = doc.createTextNode(text) + node.appendChild(textNode) + + +def appendLocaleNode(doc, schemaNode, localeName, shortSchemaText): + localeNode = doc.createElement("locale") + localeNode.setAttribute("name", localeName) + schemaNode.appendChild(localeNode) + + appendTextNode(doc, localeNode, "short", shortSchemaText) + appendTextNode(doc, localeNode, "long", shortSchemaText) + + +def append_schema(doc, schemalistNode, key, datatype, default, description, schemaText): + schemaNode = doc.createElement("schema") + schemalistNode.appendChild(schemaNode) + appendTextNode (doc, schemaNode, "key", "/schemas" + key) + appendTextNode (doc, schemaNode, "applyto", key) + appendTextNode (doc, schemaNode, "owner", "epiphany") + appendTextNode (doc, schemaNode, "type", datatype) + appendTextNode (doc, schemaNode, "default", default) + appendLocaleNode (doc, schemaNode, "C", schemaText) + + +def append_schemas(docNode, schemalistNode, group): + base = "/apps/epiphany/web/" + append_schema(doc, schemalistNode, base + "fixed_font_size_" + group, + "int", "10", "Monospace font size", + "Monospaced font size for \"" + group + "\"") + append_schema(doc, schemalistNode, base + "font_monospace_" + group, + "string", "monospace", "Monospace font", + "Monospaced font for \"" + group + "\"") + append_schema(doc, schemalistNode, base + "variable_font_size_" + group, + "int", "11", "Proportional font size", + "Variable width font size for \"" + group + "\"") + append_schema(doc, schemalistNode, base + "font_variable_" + group, + "string", "sans-serif", "Proportional font", + "Variable width font for \"" + group + "\"") + append_schema(doc, schemalistNode, base + "minimum_font_size_" + group, + "int", "7", "Minimum font size", + "Minimum font size for \"" + group + "\"") + + +# keep this list in sync with lib/ephy-langs.c +font_languages = [ + "ar", + "el", + "he", + "ja", + "ko", + "th", + "tr", + "x-armn", + "x-baltic", + "x-beng", + "x-cans", + "x-central-euro", + "x-cyrillic", + "x-devanagari", + "x-ethi", + "x-geor", + "x-gujr", + "x-guru", + "x-khmr", + "x-mlym", + "x-tamil", + "x-unicode", + "x-western", + "zh-CN", + "zh-HK", + "zh-TW" ] + +doc = dom.getDOMImplementation().createDocument(None, "gconfschemafile", None) + +schemalistNode = doc.createElement("schemalist") +doc.documentElement.appendChild(schemalistNode) + +for lang in font_languages: + append_schemas(doc, schemalistNode, lang) + +doc.writexml(sys.stdout) + +# Remember to pass the output through "xmllint --format" -- cgit v1.2.3