Note: This document is somewhat out of date. There are many new preference settings that still need to be described in this document.
This document describes the specific preference settings defined
in the standard Grail installation. The default values for each of
these setting are defined in the file grail-defaults
in
the main directory of the distribution.
There are a number of ``preferences groups'' defined in Grail. This document is organized with a section devoted to each group. Each of these sections describes the purpose of the group and provides a list of the components within the group and information on the components' type and interpretation. Entries for individual settings will be of the form:
component-name → datatype
datatype
is an enumeration, it will be
shown as option1 | option2 |
option3
, the specific options described in the
text.
groups
→
load →
add-location → file-append |
file-prepend | as-child-or-sib
aggresive-collapse → boolean
include-in-pulldown → boolean
default-height → integer
default-width → integer
initial-geometry → string
initial-geometry
is an X11 geometry
specification which will be used when creating the initial
browser window. If this is an empty string, window manager
policies will dictate window placement.
load-images → boolean
load-initial-page → boolean
show-logo → boolean
show-splash → boolean
smooth-scroll-hack → boolean
checkpoint → boolean
directory → string
freshness-test-type → always |
never | per session | periodic
freshness-test-period → real
freshness-test-type
is
periodic
.
size → integer
view-by → titles | urls
about-grail-page → url
cnri-home-page → url
grail-home-page → url
home-page → url
psa-home-page → url
python-home-page → url
The settings in this group relate to the interpretation of HTML documents. The group name may change in the next release of Grail.
format-h1 → string
format-h2 → string
format-h3 → string
format-h4 → string
format-h5 → string
format-h6 → string
{ 'h1': 1, 'h2': 1, 'h3': 3, 'h4': 0, 'h5': 0, 'h6': 0 }in Python source code. This particular value might represent the header shown in bold below:
<BODY> <H1>...</H1> <H2>...</H2> <H3>...</H3> <H3>...</H3> <H3>this one</H3>
honor-colors → boolean
strict → boolean
The settings in this group are used to control the behavior of the preferences framework.
panel-order → string
Settings in this group control various aspects of Grail's display which are independent of the documents being handled.
message-font → string
The settings in this group control aspects of the printed representation of HTML documents.
command → string
footnote-anchors → boolean
greyscale → boolean
images → boolean
to-file → boolean
ftp_proxy → http url
http://foo.mumble.edu:8080
http_proxy → http url
http://foo.mumble.edu:8080
manual_proxy_enabled → -1 | 0 |
1
manual_proxy_enabled
is -1,
grail looks for http_proxy
and ftp_proxy
environment variables to bootstrap the proxy preferences.
manual_proxy_enabled
is set to 1 if it finds
either ftp_proxy
or http_proxy
defined
and non-NULL in the environment, 0 otherwise.
no_proxy_enabled → -1 | 0 |
1
no_proxy_enabled
is -1,
grail looks for no_proxy
defined and non-NULL in the environment.
Upon finding it, grail sets the no_proxy
preference to match the
environment variable and sets no_proxy_enabled
to 1,
otherwise,, no_proxy_enabled
is set to 0.
no_proxy → string
ftp.python.org, ftp.dlib.org, www.python.org
By following the following instructions you can add specifications for new font families and sizes to a grail preferences file, so it will automatically be recognized for use by the Styles preference panel.
name-sizes
style pref, specifying the respective point-sizes.
all-sizes
style pref.
size
and/or default-size
style pref to this size name.
<name>-italic
style pref, specifying the character to use for an oblique
slant for that family.
all-families
style pref.
family
and/or default-family
style pref to this family name.
Styles
preferences -
Grail font parameters size → string
all-sizes
style pref, it
designates the font size class for all browser text. medium
family → string
all-families
style
pref, it designates the font family for all excepting fixed-width
browser text. helvetica
default-size →
string
size
(which
should be one of those listed on the
all-sizes style pref) is invalid.
default-family →
string
family
(which
should be one of those listed on the
all-families
style pref)
is invalid.
all-sizes → string
<name>-sizes
entry, detailing the point-size values corresponding to the
size-names
style pref.tiny small medium large huge
<name>-sizes →
string
all-families →
string
family
and default-family
style prefs. For each family name,
you must create a
<name>-italic
style
preference.
Example: helvetica times
<name>-italic →
string
all-families
,
with a value of either 'i' or 'o', indicating the
character indicating the oblique slant for the font family.
size-names → string
<name>-sizes
style prefs with tag font
sizes. Items would be added here, and on the respective
<name>-sizes
, when new text tag entities are
created, or existing ones are changed. default h1_b h2_b h3_b h4_b h5_b h6_b
_b _i _b_i _tt _tt_i _tt_b _tt_b_i
<name>-sizes
→ string
all-sizes
,
with components designating the point-sizes of the
corresponding size-names text tag
entity. 14 18 18 14 12 12 12
14 14 14 14 14 14 14
Styles-common
preferences -
Grail anchor presentation styles-a-foreground → string
styles-a-underline → Boolean
#0000EE
) and underline presentation style.
styles-ahist-foreground → string
styles-ahist-underline → Boolean
#551A8B
) and underline presentation style.
styles-atemp-foreground → string
styles-atemp-underline → Boolean
#FF0000
) and underline presentation style.
Styles-fonts
preferences -
Templates for Grail font construction styles-fonts--default-font → string
styles-fonts--styles-h1_b-font → string
styles-fonts--styles-h2_b-font → string
styles-fonts--styles-h3_b-font → string
styles-fonts--styles-h4_b-font → string
styles-fonts--styles-h5_b-font → string
styles-fonts--styles-h6_b-font → string
styles-fonts--styles-_i-font → string
styles-fonts--styles-_b-font → string
styles-fonts--styles-_b_i-font → string
styles-fonts--styles-_tt-font → string
styles-fonts--styles-_tt_i-font → string
styles-fonts--styles-_tt_b-font → string
styles-fonts--styles-_tt_b_i-font → string