options.inc

来自「一个很有名的浏览器」· INC 代码 · 共 1,215 行 · 第 1/3 页

INC
1,215
字号
		N_("Start typeahead searching when an unbound key is pressed without\n"		"any modifiers. Note that most keys have default bindings, so this\n"		"feature will not be useful unless you unbind them.\n\n"		"0 disables this feature; typeahead searching will only be used\n"		"  when you press a key bound to search-typeahead or similar\n"		"1 automatically starts typeahead searching thru link text\n"		"2 automatically starts typeahead searching thru all document text")),	INIT_OPT_INT("document.browse", N_("Horizontal text margin"),		"margin_width", 0, 0, 9, 3,		N_("Horizontal text margin.")),	INIT_OPT_BOOL("document.browse", N_("Document meta refresh"),		"refresh", 0, 1,		N_("Automatically follow document-specified refresh directives ('<meta>\n"		"refresh' tags). Web-page authors use these to instruct the browser\n"		"to reload a document at a given interval or to load another page.\n"		"Regardless of the value the refresh URI is accessible as a link.\n"		"Use the document.browse.minimum_refresh_time to control the minimum\n"		"number of seconds a refresh will wait.")),	INIT_OPT_INT("document.browse", N_("Document meta refresh minimum time"),		"minimum_refresh_time", 0, 0, INT_MAX, 1000,		N_("The minimum number of milliseconds that should pass before\n"		"refreshing. If set to zero the document refresh time is used\n"		"unchanged. It can fix going back in history for some sites that\n"		"use refreshing with zero values.")),	INIT_OPT_BOOL("document.browse", N_("Tables navigation order"),		"table_move_order", 0, 0,		N_("Move by columns in table, instead of rows.")),	/* Keep options in alphabetical order. */	INIT_OPT_TREE("document", N_("Cache"),		"cache", OPT_SORT,		N_("Cache options.")),	INIT_OPT_BOOL("document.cache", N_("Cache information about redirects"),		"cache_redirects", 0, 0,		N_("Cache even redirects sent by server (usually thru HTTP by a 302\n"		"HTTP code and a Location header). This was the original behaviour\n"		"for a quite some time, but it causes problems in a situation very\n"		"common to various web login systems - frequently, when accessing\n"		"certain location, they will redirect you to a login page if they\n"		"don't receive an auth cookie, the login page then gives you the\n"		"cookie and redirects you back to the original page, but there you\n"		"have already cached redirect back to the login page! If this\n"		"option has value of 0, this malfunction is fixed, but occasionally\n"		"you may get superfluous (depends on how you take it ;-) requests to\n"		"the server. If this option has value of 1, experienced users can\n"		"still workaround it by clever combination of usage of reload,\n"		"jumping around in session history and hitting ctrl+enter.\n"		"Note that this option is checked when retrieving the information\n"		"from cache, not when saving it to cache - thus if you will enable\n"		"it, even previous redirects will be taken from cache instead of\n"		"asking the server.")),	INIT_OPT_BOOL("document.cache", N_("Ignore cache-control info from server"),		"ignore_cache_control", 0, 1,		N_("Ignore Cache-Control and Pragma server headers.\n"		"When set, the document is cached even with 'Cache-Control: no-cache'.")),	INIT_OPT_TREE("document.cache", N_("Formatted documents"),		"format", 0,		N_("Format cache options.")),	INIT_OPT_INT("document.cache.format", N_("Number"),		"size", 0, 0, 256, 5,		N_("Number of cached formatted pages. Do not get too generous\n"		"here, 'formatted' means that all the accompanying structures\n"		"are kept in memory so that you get the cached document\n"		"immediatelly, but these structures may take a lot - 2x the\n"		"size of the HTML source is probably not unusual, but it can\n"		"be even more if the document consists of a lot of short lines\n"		"(padded right, if possible) and links and not much other markup.\n"		"So if you set this to 256 and then you don't like your ELinks\n"		"eating 90M, don't come complaining to us. ;-)\n"		"Also note that the format cache itself is not counted to the\n"		"memory cache size, but the HTML source of the formatted documents\n"		"is always cached, even if it is over the memory cache size\n"		"threshold. (Then of course no other documents can be cached.)")),	INIT_OPT_TREE("document.cache", N_("Memory cache"),		"memory", 0,		N_("Memory cache options.")),	INIT_OPT_LONG("document.cache.memory", N_("Size"),		"size", 0, 0, LONG_MAX, 1048576,		N_("Memory cache size (in bytes).")),	INIT_OPT_TREE("document", N_("Charset"),		"codepage", 0,		N_("Charset options.")),	INIT_OPT_CODEPAGE("document.codepage", N_("Default codepage"),		"assume", 0, "System",		N_("Default document codepage. 'System' stands for\n"		"a codepage determined by a selected locale.")),	INIT_OPT_BOOL("document.codepage", N_("Ignore charset info from server"),		"force_assumed", 0, 0,		N_("Ignore charset info sent by server.")),	INIT_OPT_TREE("document", N_("Default color settings"),		"colors", 0,		N_("Default document color settings.")),	INIT_OPT_COLOR("document.colors", N_("Text color"),		"text", 0, "#bfbfbf",		N_("Default text color.")),	INIT_OPT_COLOR("document.colors", N_("Background color"),		"background", 0, "#000000",		N_("Default background color.")),	INIT_OPT_COLOR("document.colors", N_("Link color"),		"link", 0, "#0000ff",		N_("Default link color.")),	INIT_OPT_COLOR("document.colors", N_("Visited-link color"),		"vlink", 0, "#ffff00",		N_("Default visited link color.")),	INIT_OPT_COLOR("document.colors", N_("Image-link color"),		"image", 0, "darkolivegreen",		N_("Default image link color.")),	INIT_OPT_COLOR("document.colors", N_("Bookmarked-link color"),		"bookmark", 0, "hotpink",		N_("Default bookmarked link color.")),	INIT_OPT_COLOR("document.colors", N_("Directory color"),		"dirs", 0, "#ffff00",		N_("Default directory color.\n"		"See document.browse.links.color_dirs option.")),	/* TODO: Rename this option to increase_contrast. */	INIT_OPT_BOOL("document.colors", N_("Allow dark colors on black background"),		"allow_dark_on_black", 0, 0,		N_("Setting this option to 0 will increase the contrast\n"		"between the foreground and background colors to ensure\n"		"readability. For example it disallows dark colors on a\n"		"black background. Note, this is different from ensuring\n"		"the contrast with the ensure_contrast option.")),	INIT_OPT_BOOL("document.colors", N_("Ensure contrast"),		"ensure_contrast", 0, 1,		N_("Makes sure that the back- and foreground color are never "		"equal.")),	/* If you change this please also change ACT_MAIN_DOCUMENT_COLORS action	 * handling. */	INIT_OPT_INT("document.colors", N_("Use document-specified colors"),		"use_document_colors", 0, 0, 2, 2,		N_("Use colors specified in document:\n"		"0 is use always the default settings\n"		"1 is use document colors if available, except background\n"		"2 is use document colors, including background. This can\n"		"  mostly look very impressive, but some sites will appear\n"		"  really ugly. Note, that obviously if the background is\n"		"  not black, it will break the behaviour of transparency.")),	/* Keep options in alphabetical order. */	INIT_OPT_TREE("document", N_("Downloading"),		"download", 0,		N_("Options regarding files downloading and handling.")),	INIT_OPT_STRING("document.download", N_("Default download directory"),		"directory", 0, "./",		N_("Default download directory.")),	INIT_OPT_BOOL("document.download", N_("Set original time"),		"set_original_time", 0, 0,		N_("Set the timestamp of each downloaded file to the timestamp\n"		"stored on the server.")),	/* Does automatic resuming make sense as an option? */	INIT_OPT_INT("document.download", N_("Prevent overwriting"),		"overwrite", 0, 0, 2, 2,		N_("Prevent overwriting the local files:\n"		"0 is files will silently be overwritten\n"		"1 is add a suffix .{number} (for example '.1') to the name\n"		"2 is ask the user")),	INIT_OPT_INT("document.download", N_("Notify download completion by bell"),		"notify_bell", 0, 0, 2, 0,		N_("Audio notification when download is completed:\n"		"0 is never\n"		"1 is when background notification is active\n"		"2 is always")),	INIT_OPT_TREE("document", N_("Dump output"),		"dump", 0,		N_("Dump output options.")),	INIT_OPT_CODEPAGE("document.dump", N_("Codepage"),		"codepage", 0, "System",		N_("Codepage used in dump output. 'System' stands for\n"		"a codepage determined by a selected locale.")),	INIT_OPT_STRING("document.dump", N_("Header"),		"header", 0, "",		N_("Header string used in dumps. %u is substituted by URL.")),	INIT_OPT_STRING("document.dump", N_("Footer"),		"footer", 0, "",		N_("Footer string used in dumps. %u is substituted by URL.")),	INIT_OPT_STRING("document.dump", N_("Separator"),		"separator", 0, "\n\n",		N_("String which separates two dumps.")),	INIT_OPT_INT("document.dump", N_("Width"),		"width", 0, 1, 65536, DEFAULT_TERMINAL_WIDTH,		N_("Width of screen in characters when dumping documents.")),	INIT_OPT_TREE("document", N_("History"),		"history", OPT_SORT,		N_("History options.")),	INIT_OPT_BOOL("document.history", N_("Keep unhistory"),		"keep_unhistory", 0, 1,		N_("Keep unhistory (\"forward history\").")),	INIT_OPT_TREE("document", N_("HTML rendering"),		"html", 0,		N_("Options concerning the display of HTML pages.")),	INIT_OPT_BOOL("document.html", N_("Display frames"),		"display_frames", 0, 1,		N_("Display frames.")),	INIT_OPT_BOOL("document.html", N_("Display tables"),		"display_tables", 0, 1,		N_("Display tables.")),	INIT_OPT_BOOL("document.html", N_("Display subscripts"),		"display_subs", 0, 1,		N_("Display subscripts (as [thing]).")),	INIT_OPT_BOOL("document.html", N_("Display superscripts"),		"display_sups", 0, 1,		N_("Display superscripts (as ^thing).")),	INIT_OPT_INT("document.html", N_("Rendering of html link element"),		"link_display", 0, 0, 5, 2,		N_("How to render <link> tags from the HTML header:\n"		"0 is nothing\n"		"1 is title\n"		"2 is name in addition\n"		"3 is hreflang in addition\n"		"4 is type in addition\n"		"5 is everything")),	INIT_OPT_BOOL("document.html", N_("Underline links"),		"underline_links", 0, 0,		N_("Underline links.")),	INIT_OPT_BOOL("document.html", N_("Wrap non breaking space"),		"wrap_nbsp", 0, 0,		N_("If set do not honour non breaking space (the nbsp entity)\n"		"but allow to wrap the text. This can help keeping the width\n"		"of documents down so no horizontal scrolling is needed.")),	INIT_OPT_TREE("document", N_("Plain rendering"),		"plain", 0,		N_("Options concerning the display of plain text pages.")),	INIT_OPT_BOOL("document.plain", N_("Display URIs"),		"display_links", 0, 0,		N_("Display URIs in the document as links.")),	INIT_OPT_BOOL("document.plain", N_("Compress empty lines"),		"compress_empty_lines", 0, 0,		N_("Compress successive empty lines to only one in displayed text.")),	INIT_OPT_TREE("document", N_("URI passing"),		"uri_passing", OPT_SORT | OPT_AUTOCREATE,		N_("Rules for passing URIs to external commands.")),	INIT_OPT_STRING("document.uri_passing", NULL,		"_template_", 0, "",		N_("A rule for passing URI to an external command.\n"		"The format is:\n"		"%c in the string means the current URL\n"		"%% in the string means '%'\n\n"		"Do _not_ put single- or double-quotes around %c.")),	/* Keep options in alphabetical order. */	INIT_OPT_TREE("", N_("Information files"),		"infofiles", OPT_SORT,		N_("Options for information files in ~/.elinks.")),	INIT_OPT_INT("infofiles", N_("Save interval"),		"save_interval", 0, 0, INT_MAX, 300,		N_("Interval at which to trigger information files in ~/.elinks\n"		"to be saved to disk if they has changed (seconds; 0 to disable)")),	INIT_OPT_BOOL("infofiles", N_("Use secure file saving"),		"secure_save", 0, 1,		N_("First write data to unique temporary file, then rename this file\n"		"upon successfully finishing this. Note that this relates only to\n"		"config files, not downloaded files. You may want to disable\n"		"it if you are using some exotic permissions for concerned files.\n"		"Secure file saving is automagically disabled if file is symlink.\n"		"Warning: some systems (ie. OS/2, Win32) require that destination\n"		"file doesn't exist when rename(3) is called, breaking atomicity,\n"		"and reducing reliability of this feature.")),	INIT_OPT_BOOL("infofiles", N_("Use fsync(3) with secure file saving"),		"secure_save_fsync", 0, 1,		N_("When using secure file saving, call fsync(3), if the OS\n"		   "supports it, to force the OS immediately to write the data\n"		   "to permanent storage. This is optional for those who wish\n"		   "to avoid excessive disk I/O.")),	/* Keep options in alphabetical order. */	INIT_OPT_TREE("", N_("Terminals"),		"terminal", OPT_AUTOCREATE,		N_("Terminal options.")),	INIT_OPT_TREE("terminal", NULL,		"_template_", 0,		N_("Options specific to this terminal type (according to $TERM value).")),	INIT_OPT_INT("terminal._template_", N_("Type"),		"type", 0, 0, 4, 0,		N_("Terminal type; matters mostly only when drawing frames and\n"		"dialog box borders:\n"		"0 is dumb terminal type, ASCII art\n"		"1 is VT100, simple but portable\n"		"2 is Linux, you get double frames and other goodies\n"		"3 is KOI-8\n"		"4 is FreeBSD")),	INIT_OPT_BOOL("terminal._template_", N_("Switch fonts for line drawing"),		"m11_hack", 0, 0,		N_("Switch fonts when drawing lines, enabling both local characters\n"		"and lines working at the same time. Makes sense only with linux\n"		"terminal.")),	INIT_OPT_BOOL("terminal._template_", N_("UTF-8 I/O"),		"utf_8_io", 0, 0,		N_("Enable I/O in UTF8 for Unicode terminals. Note that currently,\n"		"only the subset of UTF8 according to terminal codepage is used.")),	INIT_OPT_BOOL("terminal._template_", N_("Restrict frames in cp850/852"),		"restrict_852", 0, 0,		N_("Restrict the characters used when drawing lines. Makes sense\n"		"only with linux terminals using the cp850/852 character sets.")),	INIT_OPT_BOOL("terminal._template_", N_("Block cursor"),		"block_cursor", 0, 0,		N_("Move cursor to bottom right corner when done drawing.\n"		"This is particularly useful when we have a block cursor,\n"		"so that inversed text is displayed correctly.")),	INIT_OPT_INT("terminal._template_", N_("Color mode"),		"colors", 0, 0, COLOR_MODES - 1, 0,		N_("The color mode controls what colors are used and how they are\n"		"output to the terminal. The color modes are:\n"		"0 is mono mode, only 2 colors are used\n"		"1 is 16 color mode, uses the common ANSI colors\n"		"2 is 256 color mode, uses XTerm RGB codes")),	INIT_OPT_BOOL("terminal._template_", N_("Transparency"),		"transparency", 0, 1,		N_("If we should not set the background to black. This is particularly\n"		"useful when we have a terminal (typically in some windowing\n"		"environment) with a background image or a transparent background -\n"		"it will be visible in ELinks as well. Note that this option makes\n"		"sense only when colors are enabled.")),	INIT_OPT_BOOL("terminal._template_", N_("Underline"),		"underline", 0, 0,		N_("If we should use underline or enhance the color instead.")),	INIT_OPT_CODEPAGE("terminal._template_", N_("Codepage"),		"charset", 0, "System",		N_("Codepage of charset used for displaying content on terminal.\n"

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?