Difference between revisions of "Addon:HtmlView"

From Gramps
Jump to: navigation, search
(History)
m (clarify obsolescence note)
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{Third-party plugin}}
 
{{Third-party plugin}}
{{man tip|History|The HtmlView Addon was previously part of the Gramps core plugins know as the [[Gramps_4.1_Wiki_Manual_-_Categories#Web_Category|Web Category]] from Version 3.2 to Version 4.1 and was hidden by default. This addons was created for use by the original geography views in gramps 3.x.}}
+
{{man tip|History|The '''HtmlView Addon''' is no longer used. The addon was created as a prerequisite for the original Geography views in the Gramps 3.x. version.  However, the developer determined that the dependencies consumed too many resources in the Windows port... so more efficient alternatives were implemented. <br /><br />Before conversion to an Addon, it was part of the Gramps core plugins and was known as the [[Gramps_4.1_Wiki_Manual_-_Categories#Web_Category|Web Category]] from the 3.2 to 4.1 Versions. This Category was hidden by default.}}
  
 
[[File:Html View category.png|thumb|right|450px|Html View]]
 
[[File:Html View category.png|thumb|right|450px|Html View]]
Line 10: Line 10:
 
==Prerequisites==
 
==Prerequisites==
 
In order to use the ''Html View'':
 
In order to use the ''Html View'':
* You must ensure that the [https://webkitgtk.org/ webkit] module is installed
+
* You must ensure that the [https://webkitgtk.org/ webkit] version 3.0 module is installed
  
 
<code>gir-webkit</code>
 
<code>gir-webkit</code>
  
<!--(On Ubuntu install <code>gir1.2-webkit-2-4.0</code>) does not work!-->
+
Ubuntu 16.04 & 18.04 only:
  
* When you have done this, the new {{man label|Web}} Category will appear the navigator.
+
<code>gir1.2-webkit-3.0</code>
 +
 
 +
<!--(On Ubuntu install <code>gir1.2-webkit-2-4.0</code>) (which is webkit2 version 4.0 ) does not work! actually requires the older  gir1.2-webkit-3.0 which is "webkit 1 version 3.0" and is not available on Ubuntu 20.04  ( https://pkgs.org/download/gir1.2-webkit-3.0 )
 +
 
 +
If you install the newer <code>gir1.2-webkit-2-4.0</code>  and change the code lines to
 +
 
 +
gi.require_version('WebKit2', '4.0')
 +
from gi.repository import WebKit2 as webkit
 +
 
 +
the category shows but you get the following error
 +
 
 +
Traceback (most recent call last):
 +
  File "/usr/lib/python3/dist-packages/gramps/gui/viewmanager.py", line 817, in __create_page
 +
    page_display = page.get_display()
 +
  File "/usr/lib/python3/dist-packages/gramps/gui/views/pageview.py", line 421, in get_display
 +
    self.top = self.build_interface()
 +
  File "/usr/lib/python3/dist-packages/gramps/gui/views/pageview.py", line 163, in build_interface
 +
    self.widget = self.build_widget()
 +
  File "/home/me/.gramps/gramps51/plugins/HtmlView/htmlview.py", line 350, in build_widget
 +
    self.renderer = RendererWebkit()
 +
  File "/home/me/.gramps/gramps51/plugins/HtmlView/htmlview.py", line 267, in __init__
 +
    self.frame = self.window.get_main_frame()
 +
AttributeError: 'WebView' object has no attribute 'get_main_frame'
 +
-->
 +
 
 +
Once installed the new {{man label|Web}} Category will appear in the navigator.
  
 
{{-}}
 
{{-}}
  
 
==History==
 
==History==
 +
[[File:Geoview4.png|right|450px|thumb|The original Geoview using the HTML View backend]]
 
* [https://gramps-project.org/blog/2008/12/gramps-is-not-a-web-browser-yes/ Gramps is not a web browser …. yes?], December 10th, 2008, by Benny  (originally supported two backends WebKit or Mozilla ( gtkmozembed ).)
 
* [https://gramps-project.org/blog/2008/12/gramps-is-not-a-web-browser-yes/ Gramps is not a web browser …. yes?], December 10th, 2008, by Benny  (originally supported two backends WebKit or Mozilla ( gtkmozembed ).)
 
* [http://gramps.1791082.n4.nabble.com/HTML-view-td4669792.html HTML view] 2015,''...This module was linked to the old geography view before 3.3...I'll move it into the third-party addons repository..''
 
* [http://gramps.1791082.n4.nabble.com/HTML-view-td4669792.html HTML view] 2015,''...This module was linked to the old geography view before 3.3...I'll move it into the third-party addons repository..''
Line 26: Line 52:
 
* [https://gramps-project.org/bugs/view.php?id=8023 8023] HTML view fails to load
 
* [https://gramps-project.org/bugs/view.php?id=8023 8023] HTML view fails to load
 
* [https://gramps-project.org/bugs/view.php?id=11628 11628] ''..This addon is not any more supported...It will never work on windows because dependencies are too heavy ( the size of the package)...It can work only on linux if you install the prerequisite packages....This addons was created for the geography views in gramps 3.x...''
 
* [https://gramps-project.org/bugs/view.php?id=11628 11628] ''..This addon is not any more supported...It will never work on windows because dependencies are too heavy ( the size of the package)...It can work only on linux if you install the prerequisite packages....This addons was created for the geography views in gramps 3.x...''
 
+
* [[GEPS_029:_GTK3-GObject_introspection_Conversion#WebKit_for_Htmlrenderer]] - The htmlview requires WebKit. Introspection bindings for this is available, in Ubuntu package gir1.2-webkit-3.0
 +
* [[Linux:Build_from_source#Linux_package_requirements]] - python-webkit python-gtkmozembed (WebKitgtk pywebkitgtk) Required for the HTML view
 
* Code on Github [https://github.com/gramps-project/addons-source/tree/master/HtmlView addons-source/tree/master/HtmlView] the comments mention:
 
* Code on Github [https://github.com/gramps-project/addons-source/tree/master/HtmlView addons-source/tree/master/HtmlView] the comments mention:
 
** Html Renderer - Can use the Webkit or Gecko ( Mozilla ) library
 
** Html Renderer - Can use the Webkit or Gecko ( Mozilla ) library

Revision as of 16:24, 27 February 2021

Gramps-notes.png

Please use carefully on data that is backed up, and help make it better by reporting any comments or problems to the author, or issues to the bug tracker
Unless otherwise stated on this page, you can download this addon by following these instructions.
Please note that some Addons have prerequisites that need to be installed before they can be used.
This Addon/Plugin system is controlled by the Plugin Manager.

Tango-Dialog-information.png
History

The HtmlView Addon is no longer used. The addon was created as a prerequisite for the original Geography views in the Gramps 3.x. version. However, the developer determined that the dependencies consumed too many resources in the Windows port... so more efficient alternatives were implemented.

Before conversion to an Addon, it was part of the Gramps core plugins and was known as the Web Category from the 3.2 to 4.1 Versions. This Category was hidden by default.


Html View

The Html View (Web Category) allows you to browse web pages from within Gramps.

Simply type the web address, and the page will be displayed in the normal way.

Prerequisites

In order to use the Html View:

  • You must ensure that the webkit version 3.0 module is installed

gir-webkit

Ubuntu 16.04 & 18.04 only:

gir1.2-webkit-3.0


Once installed the new Web Category will appear in the navigator.


History

The original Geoview using the HTML View backend
  • Gramps is not a web browser …. yes?, December 10th, 2008, by Benny (originally supported two backends WebKit or Mozilla ( gtkmozembed ).)
  • HTML view 2015,...This module was linked to the old geography view before 3.3...I'll move it into the third-party addons repository..
  • 8023 HTML view fails to load
  • 11628 ..This addon is not any more supported...It will never work on windows because dependencies are too heavy ( the size of the package)...It can work only on linux if you install the prerequisite packages....This addons was created for the geography views in gramps 3.x...
  • GEPS_029:_GTK3-GObject_introspection_Conversion#WebKit_for_Htmlrenderer - The htmlview requires WebKit. Introspection bindings for this is available, in Ubuntu package gir1.2-webkit-3.0
  • Linux:Build_from_source#Linux_package_requirements - python-webkit python-gtkmozembed (WebKitgtk pywebkitgtk) Required for the HTML view
  • Code on Github addons-source/tree/master/HtmlView the comments mention:
    • Html Renderer - Can use the Webkit or Gecko ( Mozilla ) library
    • We use firstly webkit if it is present. If not, we use gtkmozembed.