Changes

Jump to: navigation, search

Addon:HtmlView

1,853 bytes added, 16:24, 27 February 2021
m
clarify obsolescence note
{{Third-party plugin}}
{{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 previously part of the Gramps core plugins know and was known as the [[Gramps_4.1_Wiki_Manual_-_Categories#Web_Category|Web Category]] from Version the 3.2 to Version 4.1 and Versions. This Category was hidden by default. This addons was created for use by the original geography views in gramps 3.x.}}
[[File:Html View category.png|thumb|right|450px|Html View]]
==Prerequisites==
In order to use the ''Html View'':
* You must ensure that the [https://webkitgtk.org/ webkit] version 3.0 module is installed
<code>gir-webkit</code>
<!--(On Ubuntu install <code>gir116.2-webkit-2-404 & 18.0</code>) does not work!-->04 only:
* When <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 have done thisget 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==
[[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 ).)
* [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..''
* [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...''
* [[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:
** Html Renderer - Can use the Webkit or Gecko ( Mozilla ) library
4,599
edits

Navigation menu