File: mkffaqpage.tcl

package info (click to toggle)
tk-html3 3.0~fossil20110109-7
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 6,632 kB
  • sloc: ansic: 48,994; tcl: 26,030; sh: 1,190; yacc: 161; makefile: 24
file content (105 lines) | stat: -rw-r--r-- 3,244 bytes parent folder | download | duplicates (5)
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105

source [file join [file dirname [info script]] common.tcl]

addPageSection "Download"            download
addPageSection "Source Code/Hacking" source
addPageSection "More Information"    info

proc VERSION {} {
  if {[info exists ::env(VERSION)]} {return $::env(VERSION)}
  return "alpha-15"
}

set idx 1

proc Q {id Question Answer} {
  global idx

  append ::BODY "<h2 id=\"$id\">${idx}. $Question</h2>"
  append ::BODY $Answer
  append ::TOC "<li>${idx}. <a href=\"#${id}\">$Question</a>"
  incr idx
}

Q statefile {How can I save my options/cookies/history-list etc.?} {
  <p>
    By default, Hv3 saves absolutely no data to the file system.
    After the Hv3 window has been closed, it is not possible for anyone else
    using the same computer to discover which websites you have visited or
    logged in to. 
  </p>
  <p>
    However, although this preserves your privacy, sometimes it is not
    conveniant. If a "state file" is enabled, Hv3 stores the following 
    data to a file on disk: 

  <ul>
  <li> HTTP cookies.
  <li> The list of visited URIs (used for auto-completion in the location 
       bar and for coloring visited hyperlinks).
  <li> The values of the settings configured in the "Options" pull-down menu,
       except for the "Hide GUI" option.
  <li> User bookmarks.
  </ul>
<p>
  To use a state file, specify the "-statefile" option as part of the command
  line used to start Hv3. The -statefile option is used to specify a file on
  disk used to persistently store various elements of the browser application
  state. Windows users may need to create a "batch file" to achieve this. For
  example, assuming that the Hv3 binary is named
  "hv3-linux-nightly-07_0723" and you wish to use the file
  "/home/dan/hv3_state.db" as the statefile, the full command line would be:
</p>

<pre>
    hv3-linux-nightly-07_0723 -statefile /home/dan/hv3_state.db
</pre>
<p>
  Because the state file is actually an <a href="http://www.sqlite.org">
  SQLite</a> database, there is no problem with two or more Hv3 processes
  using the same state file simultaneously. Bookmarked and configuration
  settings are propagated between instances automatically.
</p>

}

Q hv3_polipo {What is this hv3_polipo?} {
  <p>
    hv3_polipo is a very slightly modified version of the standard
    polipo program by Juliusz Chroboczek, available at 
    <a href="http://www.pps.jussieu.fr/~jch/software/polipo/">
    http://www.pps.jussieu.fr/~jch/software/polipo/</a>. The modifications
    are designed to make sure that no hv3_polipo processes are
    left running if hv3 crashes or is terminated by the operating system.
    The patch used to create the custom version is available 
    <a href="hv3_polipo.patch">here</a>.
  </p>
  <p>
    If building Hv3 from source code, you probably want to obtain hv3_polipo
    as well. The starkit and other pre-built packages 
    <a href="hv3.html#download">available here</a>  already include 
    pre-compiled versions.
  </p>
}

puts [subst {

<html>
<head>
<link rel="stylesheet" href="tkhtml_tcl_tk.css">
<title>tkhtml.tcl.tk FFAQ</title>
</head>
<body>

[getTabs 5]

<div id="body">
<h1>tkhtml.tcl.tk FFAQ</h1>
<div id="text">
<ul style="list-style-type:none">
  $::TOC
</ul>
$::BODY

}]