DocViewer currently provides three viewers: * A plain text viewer * A PDF viewer * A viewer based on LibreOfficeKit
The DocViewer reads the mime type of each file and uses one of these three viewer for opening it. Currently, no LibreOffice viewer is used to open HTML files, since their mime type is "text/html". The plain text viewer is used instead, and that's the reason you see your document as simple text. I've just tried to open your HTML document with LibreOffice on my phone, and seems that it can actually do it even if it's a minimal build. Anyway, I don't think using LibreOffice for reading HTML files is the best solution we can implement. IIRC there has been some discussion in the past about adding an improved HTML support, but I've argued that other platforms (e.g. Android) provide an HTML viewer as a separate app. In my opinion, webbrowser-app should provide an extended support for such files. Anyway, if we'll have to improve the support, I honestly would choose to use Oxide for rendering HTML documents, since it's faster to load and it's written specifically for that purpose. This is an interesting question, so thanks for your feedback. :) Cheers, Stefano 2015-11-07 17:28 GMT+01:00 Matthias Apitz <[email protected]>: > Hi Alan, > > It seems that the DocViewer does not understand HTML files, for example > the attached one is only presented as text, while the libreoffice in my > FreeBSD netbook renders it fine. > >
-- Mailing list: https://launchpad.net/~ubuntu-phone Post to : [email protected] Unsubscribe : https://launchpad.net/~ubuntu-phone More help : https://help.launchpad.net/ListHelp

