tazweb rev 195

Update documentation, CSS style match tazweb/openbox window color
author Christophe Lincoln <pankso@slitaz.org>
date Thu Mar 16 15:09:36 2017 +0100 (2017-03-16)
parents a41749316ea9
children e7d04c8609e2
files README doc/style.css doc/tazweb.en.html lib/helper.sh po/fr.po
line diff
     1.1 --- a/README	Thu Mar 16 13:34:09 2017 +0100
     1.2 +++ b/README	Thu Mar 16 15:09:36 2017 +0100
     1.3 @@ -23,10 +23,10 @@
     1.4  
     1.5      * Tabbed browsing (under development: 2.0 next generation)
     1.6      * Cookie support
     1.7 -    * Download manager
     1.8 +    * Download support
     1.9      * Text based config file
    1.10      * Search engine entry box
    1.11 -    * Bookmarks support
    1.12 +    * Bookmarks manager
    1.13      * Print, including to pdf
    1.14      * Rich contextual menu
    1.15      * Private browsing
     2.1 --- a/doc/style.css	Thu Mar 16 13:34:09 2017 +0100
     2.2 +++ b/doc/style.css	Thu Mar 16 15:09:36 2017 +0100
     2.3 @@ -1,8 +1,8 @@
     2.4 -/* CSS style for SliTaz Doc */
     2.5 +/* CSS style for TazWeb */
     2.6  
     2.7  body { font: 88% sans-serif; margin: 0; }
     2.8 -h1 { margin: 0; padding: 8px; color: #fff; font-size: 20px; }
     2.9 -h2 { color: #444; }
    2.10 +h1 { margin: 0; padding: 8px; color: #666; font-size: 20px; }
    2.11 +h2 { color: #666; }
    2.12  h3 { color: #666; font-size: 140%; }
    2.13  a:hover { text-decoration: none; }
    2.14  pre {
    2.15 @@ -13,9 +13,9 @@
    2.16  }
    2.17  
    2.18  header {
    2.19 -	background: #351a0a;
    2.20 +	background: #ebebeb;
    2.21  	height: 40px;
    2.22 -	border-bottom: 8px solid #d66018;
    2.23 +	border-bottom: 4px solid #d66018;
    2.24  }
    2.25  
    2.26  main {
     3.1 --- a/doc/tazweb.en.html	Thu Mar 16 13:34:09 2017 +0100
     3.2 +++ b/doc/tazweb.en.html	Thu Mar 16 15:09:36 2017 +0100
     3.3 @@ -13,35 +13,60 @@
     3.4  
     3.5  <main>
     3.6  
     3.7 -<h2>SliTaz Web Browser</h2>
     3.8 +<h2>TazWeb Browser</h2>
     3.9  
    3.10 -<p>TazWeb is a radically simple and very light web browser providing a single window with a small
    3.11 -toolbar and a contextual menu, but without any menubar or tabs.
    3.12 -Navigation is done with a right click anywhere in the browser window or from the toolbar.
    3.13 -It can also handle bookmarks in a personal home page, provide a source view mode and zoom and
    3.14 -printing functions.
    3.15 -TazWeb lets you quickly search the web through a search entry and Google.
    3.16 -This documentation file is always accessible from the right-hand side of the toolbar.</p>
    3.17 +<p>TazWeb is a modern, radically simple and very light web browser providing all
    3.18 +needed functions for daily browsing on the internet. TazWeb is aware of users
    3.19 +privacy, it handle cookies but will NOT store any passwords or other user info.</p>
    3.20  
    3.21 -<p>The browser's fast, very fast and small, the binary is about 24 Kb and uses the Webkit engine
    3.22 -for page rendering and therefore supports all the latest web standards as well as Javascript and
    3.23 -Flash animations or videos.</p>
    3.24 +<p>TazWeb provides a single window with a small toolbar and a contextual 
    3.25 +menu, but without any menubar or tabs. Navigation is done with a right click
    3.26 +anywhere in the browser window or from the toolbar. TazWeb lets you quickly
    3.27 +search the web through a search entry redirecting to DuckDuck Go secure search
    3.28 +engine. This documentation file is always accessible from the right-click 
    3.29 +menu.</p>
    3.30  
    3.31 +<p>The browser's fast, very fast and small, the binary is about 30 Kb and
    3.32 +uses the WebkitGTK engine for page rendering and therefore supports all the 
    3.33 +latest web standards as well as Javascript and Flash animations or videos.</p>
    3.34 +
    3.35 +<h3>Major features</h3>
    3.36 +
    3.37 +<ul>
    3.38 +	<li>Cookie support</li>
    3.39 +	<li>Download support</li>
    3.40 +	<li>Text based config file</li>
    3.41 +	<li>Search engine entry box</li>
    3.42 +	<li>Bookmarks manager</li>
    3.43 +	<li>Print, including to pdf</li>
    3.44 +	<li>Rich contextual menu</li>
    3.45 +	<li>Private browsing</li>
    3.46 +</ul>
    3.47  
    3.48  <h3>History</h3>
    3.49  
    3.50 -<p>The SliTaz Web Browser was created for the needs of TazPanel which is the SliTaz administration
    3.51 -and packages manager panel and made with the latest technologies such as HTML 5 and CSS 3 for the
    3.52 -graphical user interface.
    3.53 -The content is powered by CGI scripts and the preferred web server is Busybox httpd.</p>
    3.54 +<p>The SliTaz Web Browser was created for the needs of TazPanel which is 
    3.55 +the SliTaz administration and packages manager panel and made with the 
    3.56 +latest technologies such as HTML 5 and CSS 3 for the graphical user interface.
    3.57 +The content is powered by CGI scripts and the preferred web server is 
    3.58 +Busybox httpd.</p>
    3.59  
    3.60  
    3.61 -<h3>Security and personal data</h3>
    3.62 +<h3>Security and private browsing</h3>
    3.63  
    3.64 -<p>TazWeb is a very secure browser and doesn't store any personal data, therefore no sessions,
    3.65 -cookies or history files are created.
    3.66 -So your websites settings will not be saved and you will have to enter login information each time
    3.67 -you restart the browser (by the way websites can track you with cookies!).</p>
    3.68 +<p>TazWeb is a very secure browser and doesn't store any personal data, 
    3.69 +therefore no sessions, passwords or history files are created but it will
    3.70 +handle cookies by default.
    3.71 +So your websites cookies will save your peer site settings but logins
    3.72 +and passwords will not be saved and you will have to enter login information
    3.73 +each time you restart the browser (by the way websites can track you 
    3.74 +with cookies!).</p>
    3.75 +
    3.76 +<p>TazWeb provide a private browsing mode who will disable cookies, on-disk
    3.77 +session and global history. You can use the command line option to start
    3.78 +TazWeb in private mode:</p>
    3.79 +
    3.80 +<pre>$ tazweb --private</pre>
    3.81  
    3.82  
    3.83  <h3>Kiosk mode</h3>
    3.84 @@ -50,31 +75,39 @@
    3.85  The Kiosk mode will start TazWeb in fullscreen.
    3.86  It will not allow users to bookmark a page, download anything or open a URL in a new window.</p>
    3.87  
    3.88 -<pre>
    3.89 -$ tazweb --kiosk
    3.90 -</pre>
    3.91 +<pre>$ tazweb --kiosk</pre>
    3.92  
    3.93  
    3.94 +<h3>Raw and minimal mode</h3>
    3.95 +
    3.96 +<p>TazWeb have a very modular interface and everything can be disbaled
    3.97 +to provide a raw webkit window, no toolbar our menu. It provide also
    3.98 +a command line option to have a small (640x480) window suitable for tiny
    3.99 +web applications. The option --notoolbar and --nomenu can be used to
   3.100 +hide toolbar and menu, the --raw option will disbale both:</p>
   3.101 +
   3.102 +<pre>$ tazweb --raw</pre>
   3.103 +
   3.104  <h3>Home Page and bookmarks</h3>
   3.105  
   3.106 -<p>TazWeb handles a home page located in your system wide standard configuration directory, the
   3.107 -path is: /usr/share/webhome.</p>
   3.108 +<p>TazWeb handles a home page located in your system wide standard 
   3.109 +configuration directory, the path is: /usr/share/webhome.</p>
   3.110  
   3.111 -<p>The bookmark.txt file is a simple text document with, by default, a list of links.
   3.112 -You can edit this file with you favorite editor and add bookmark entries or use the Tazweb right
   3.113 -click menu.
   3.114 -At first start TazWeb will create and copy your personal bookmarks file to your config
   3.115 +<p>The bookmark.txt file is a simple text document with, by default, a 
   3.116 +list of links. You can edit this file with you favorite editor and add 
   3.117 +bookmark entries or use the Tazweb right click menu. At first start 
   3.118 +TazWeb will create and copy your personal bookmarks file to your config
   3.119  directory.</p>
   3.120  
   3.121 -<p>Bookmarks can be handled by TazWeb and you can easily add a bookmark to your home page with the
   3.122 -right click menu item: <i>“Add a bookmark”</i>.
   3.123 +<p>Bookmarks can be handled by TazWeb and you can easily add a bookmark
   3.124 +to your home page with the right click menu item: <i>“Add a bookmark”</i>.
   3.125  Tazweb also lets you manage your bookmarks via a nifty CGI web interface.</p>
   3.126  
   3.127 -<p>Note: You will find the default bookmarks.txt in: /usr/share/tazweb or you can get an original
   3.128 -copy with the following command in a terminal:</p>
   3.129 +<p>Note: You will find the default bookmarks.txt in: /usr/share/tazweb 
   3.130 +or you can get an original copy with the following command in a terminal:</p>
   3.131  
   3.132  <pre>
   3.133 -$ cp -f /usr/share/tazweb/bookmarks.html $HOME/.config/tazweb
   3.134 +$ cp -f /usr/share/tazweb/bookmarks.txt $HOME/.config/tazweb
   3.135  </pre>
   3.136  
   3.137  
   3.138 @@ -125,7 +158,7 @@
   3.139  Type=Application
   3.140  Name=SliTaz SCN
   3.141  Icon=slitaz-menu
   3.142 -Exec=tazweb http://scn.slitaz.org/
   3.143 +Exec=tazweb --notoolbar http://scn.slitaz.org/
   3.144  </pre>
   3.145  
   3.146  
     4.1 --- a/lib/helper.sh	Thu Mar 16 13:34:09 2017 +0100
     4.2 +++ b/lib/helper.sh	Thu Mar 16 15:09:36 2017 +0100
     4.3 @@ -35,25 +35,20 @@
     4.4  <head>
     4.5  	<meta charset="UTF-8">
     4.6  	<title>$title</title>
     4.7 -	<style>
     4.8 -		body { margin: 2% 10%; font-size: 92%; }
     4.9 -		h1 { color: #CCC; border-bottom: 2px solid #CCC; }
    4.10 -		ul { padding: 0; }
    4.11 -		ul a { text-decoration: none; } ul a:hover { text-decoration: underline; }
    4.12 -		li { list-style-type: none; line-height: 1.4em; padding: 0; }
    4.13 -		footer { font-size: 80%; border-top: 2px solid #CCC; padding: 5px 0; color: #888; }
    4.14 -	</style>
    4.15 +	<link rel="stylesheet" href="/usr/share/doc/tazweb/style.css">
    4.16  </head>
    4.17  <body>
    4.18 -	<section id="content">
    4.19 -		<h1>$title</h1>
    4.20 +	<header>
    4.21 +		<h1>$1</h1>
    4.22 +	</header>
    4.23 +	<main>
    4.24  EOT
    4.25  }
    4.26  
    4.27  # HTML 5 footer: html_footer content
    4.28  html_footer() {
    4.29  	cat <<EOT
    4.30 -	</section>
    4.31 +	</main>
    4.32  	<footer>
    4.33  		$@
    4.34  	</footer>
    4.35 @@ -118,13 +113,11 @@
    4.36  html_cookies() {
    4.37  	{
    4.38  		html_header "$(gettext 'Cookies')"
    4.39 -		echo '<pre>'
    4.40 +		echo '<pre style="overflow: auto;">'
    4.41  
    4.42 -		IFS="|"
    4.43  		while read line; do
    4.44  			echo "${line#\#HttpOnly_}"
    4.45  		done < ${cookies_txt}
    4.46 -		unset IFS
    4.47  
    4.48  		echo '</pre>'
    4.49  		num=$(wc -l < $cookies_txt)
     5.1 --- a/po/fr.po	Thu Mar 16 13:34:09 2017 +0100
     5.2 +++ b/po/fr.po	Thu Mar 16 15:09:36 2017 +0100
     5.3 @@ -8,7 +8,7 @@
     5.4  "Project-Id-Version: TazWeb 1.6.4\n"
     5.5  "Report-Msgid-Bugs-To: \n"
     5.6  "POT-Creation-Date: 2017-03-16 13:23+0100\n"
     5.7 -"PO-Revision-Date: 2017-03-16 13:27+0100\n"
     5.8 +"PO-Revision-Date: 2017-03-16 14:40+0100\n"
     5.9  "Last-Translator: Christophe Lincoln <pankso@slitaz.org>\n"
    5.10  "Language-Team: French\n"
    5.11  "Language: fr\n"
    5.12 @@ -57,8 +57,8 @@
    5.13  #: lib/helper.sh:79
    5.14  msgid "%d bookmark"
    5.15  msgid_plural "%d bookmarks"
    5.16 -msgstr[0] "marque page"
    5.17 -msgstr[1] "marques pages"
    5.18 +msgstr[0] "%d marque page"
    5.19 +msgstr[1] "%d marques pages"
    5.20  
    5.21  #: lib/helper.sh:91
    5.22  msgid "TazWeb Bookmarks"
    5.23 @@ -83,8 +83,8 @@
    5.24  #: lib/helper.sh:130
    5.25  msgid "%d cookie"
    5.26  msgid_plural "%d cookies"
    5.27 -msgstr[0] "Voir le cookie"
    5.28 -msgstr[1] "Voir les cookies"
    5.29 +msgstr[0] "%d cookie"
    5.30 +msgstr[1] "%d cookies"
    5.31  
    5.32  #: data/tazweb.desktop.in:4
    5.33  msgid "TazWeb Browser"