README 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. TazWeb - SliTaz Web Browser
  2. ================================================================================
  3. TazWeb is a modern, radically simple and very light web browser providing all
  4. needed functions for daily browsing on the internet. TazWeb is aware of users
  5. privacy, it handle cookies but will NOT store any passwords or other user info.
  6. It consists of a single window with one small toolbar using buttons, a URL and
  7. search entry, but no menubar. Please keep the code simple and clean. If you are
  8. motivated and want to add some more functionality, please talk to the AUTHOR
  9. before committing anything in the repos.
  10. This application has been created for Tazpanel and future SliTaz integrated
  11. Web applications and it's become a daily usable browser. The idea with TazWeb
  12. is to have a minimal interface, the approach is to build all of the GUI with
  13. xHTML and CSS like in TazPanel or well-known web applications.
  14. For general and end-user documentation have a look at doc/tazweb.html.
  15. TazWeb is published, like webkit source under a free BSD license.
  16. Major features:
  17. * Tabbed browsing (under development: 2.0 next generation)
  18. * Cookie support
  19. * Download support
  20. * Text based config file
  21. * Search engine entry box
  22. * Bookmarks manager
  23. * Print, including to pdf
  24. * Rich contextual menu
  25. * Private browsing
  26. Build and install
  27. --------------------------------------------------------------------------------
  28. TazWeb depends on GTK and libwebkit. To build and test, simply:
  29. $ make
  30. $ ./tazweb
  31. Generate translation files:
  32. $ make msgfmt
  33. Install with 'make install' (PREFIX and DESTDIR are supported for packaging).
  34. Qt Build and install
  35. --------------------------------------------------------------------------------
  36. The Qt port is actually only a little toy to play with!
  37. $ make qt
  38. $ ./tazweb-qt
  39. TazWeb helper script
  40. --------------------------------------------------------------------------------
  41. TazWeb uses a set of SHell functions from /usr/lib/tazweb/helper.sh. These
  42. functions are used to handle bookmarks and cookies. The GTK gui parts use
  43. yad and some functions will generate html files to be used by tazweb menu
  44. or buttons.
  45. Coding notes
  46. --------------------------------------------------------------------------------
  47. * To get the filename of a WebKitDownload:
  48. file = webkit_download_get_suggested_filename (download);
  49. * Check mime-type before download (needs a callback function)
  50. g_signal_connect (web_view, "mime-type-policy-decision-requested",
  51. G_CALLBACK (mime_type_decision_cb), webview);
  52. * Get user config directory path in $HOME:
  53. config = g_strdup_printf ("%s/.config/tazweb", g_get_home_dir ());
  54. * Change font of a widget:
  55. PangoFontDescription *font;
  56. font = pango_font_description_from_string("8");
  57. gtk_widget_modify_font(urientry, font);
  58. pango_font_description_free(font);
  59. * Change size of a widget:
  60. gtk_widget_set_size_request(toolbar, 0, 28);
  61. * Append a string
  62. g_string_append(string, " - TazWeb");
  63. * Editable webview
  64. webkit_web_view_set_editable (webview, TRUE);
  65. Translation (i18n)
  66. --------------------------------------------------------------------------------
  67. Internationalization of TazWeb was introduced since version 1.6.4.
  68. Its standard GLib technique is described in developer notes:
  69. http://developer.gnome.org/glib/2.32/glib-I18N.html
  70. Translation template (tazweb.pot) and all translations (xx.po) contained
  71. in the po/ folder. To start a new translation use msginit from the
  72. po/ directory. Example for French/France locale (fr_FR):
  73. $ msginit -l fr_FR -o fr.po -i tazpanel.pot
  74. If you run msginit directly without any parameters, locale settings of your
  75. system will be used.
  76. To update pot file from a newly updated sources:
  77. $ make pot
  78. To update all translations from a newly updated pot file:
  79. $ make msgmerge
  80. To clear the distro from temporary compiled and generated files:
  81. $ make clean
  82. ================================================================================