Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  nodelist  faq  login

Message from Our Sponsor on ttyTV at 13:58 ...


programming / comp.lang.tcl / Re: ANNOUNCE: shtmlview 1.0.0

SubjectAuthor
* ANNOUNCE: shtmlview 1.0.0D Groth
`* Re: ANNOUNCE: shtmlview 1.0.0Gerry
 `* Re: ANNOUNCE: shtmlview 1.0.0Bezoar
  `- Re: ANNOUNCE: shtmlview 1.0.0D Groth

1
Subject: ANNOUNCE: shtmlview 1.0.0
From: D Groth
Newsgroups: comp.lang.tcl
Date: Wed, 23 Mar 2022 06:37 UTC
X-Received: by 2002:a05:622a:d4:b0:2e0:673f:fd9b with SMTP id p20-20020a05622a00d400b002e0673ffd9bmr22781247qtw.575.1648017474996;
Tue, 22 Mar 2022 23:37:54 -0700 (PDT)
X-Received: by 2002:a05:6870:2486:b0:d4:164a:a230 with SMTP id
s6-20020a056870248600b000d4164aa230mr3395335oaq.152.1648017473745; Tue, 22
Mar 2022 23:37:53 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Tue, 22 Mar 2022 23:37:53 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=2001:9e8:c8:3300:f2e1:4cee:8e90:7727;
posting-account=l1SsogoAAADI9wGGep0j80-iEOPtae47
NNTP-Posting-Host: 2001:9e8:c8:3300:f2e1:4cee:8e90:7727
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <0ebec7fa-c8ff-4c21-b79e-08c38ba5ff3bn@googlegroups.com>
Subject: ANNOUNCE: shtmlview 1.0.0
From: tbgrot...@gmail.com (D Groth)
Injection-Date: Wed, 23 Mar 2022 06:37:53 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
View all headers
shtmlview is a Tcl only snit megawidget to display  HTML pages  with support for most HTML 3.2 tags and Markdown files. It should be used for local HTML and Markdown files only for instance to display help pages within a Tk application. It does not support stylesheets, not web forms and not http(s) addresses. As it is a Tcl only extension it does not require any compilation. It is based on old code from Stephen Uhler, Clif Flynt and Robert Heller..

* Project page: hhttps://github.com/mittelmark/shtmlview
* Download: https://github.com/mittelmark/shtmlview/archive/refs/tags/v1.0.0.zip
* Manual: http://htmlpreview.github.io/?https://github.com/mittelmark/shtmlview/blob/master/shtmlview/shtmlview.html
* Wikipage: https://wiki.tcl-lang.org/page/shtmlview

Version 1.0.0 adds support for Markdown documents (using tcllibs Markdown library), base64 encoded inline images, support for jpeg (using img::jpeg) and svg images (using svgconvert or terminal applications rsvg-convert or cairosvg), support for the HTML 3.2 tags sub, sup, small, big, div (the latter can be used for styling). The rendering speed was as well improved, but obviously it is much slower than the binary counterparts tkhtml and tkhtml3. The project has now it's own Github page to allow tagging and real versioning.

Thanks to aplsimple and pepdiz for bug reports and suggestions. Without feedback - no progress!

D Groth


Subject: Re:ANNOUNCE: shtmlview 1.0.0
From: Gerry
Newsgroups: comp.lang.tcl
Organization: news.easynews.com
Date: Tue, 29 Mar 2022 14:41 UTC
References: 1
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!news-out.netnews.com!news.alt.net!fdc2.netnews.com!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx40.iad.POSTED!not-for-mail
From: mesmeriz...@gmail.com (Gerry)
References: <0ebec7fa-c8ff-4c21-b79e-08c38ba5ff3bn@googlegroups.com>
Subject: Re:ANNOUNCE: shtmlview 1.0.0
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Newsgroups: comp.lang.tcl
Organization: news.easynews.com
X-Newsreader: PiaoHong.Usenet.Client.VIP:2.02
Lines: 7
Message-ID: <NUE0K.221694$H_t7.5976@fx40.iad>
X-Complaints-To: abuse@easynews.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.
Date: Tue, 29 Mar 2022 07:41:49 -0700 (MST)
X-Received-Bytes: 971
View all headers
Your package looks interesting. One of these long spring evenings
 I may look into it to see how hard it would be to have it use
 entries in an SQLite database rather than files.
 

Gerry Snyder
--


Subject: Re: ANNOUNCE: shtmlview 1.0.0
From: Bezoar
Newsgroups: comp.lang.tcl
Date: Tue, 12 Apr 2022 13:55 UTC
References: 1 2
X-Received: by 2002:ac8:7281:0:b0:2ee:ed60:777a with SMTP id v1-20020ac87281000000b002eeed60777amr3346854qto.197.1649771739778;
Tue, 12 Apr 2022 06:55:39 -0700 (PDT)
X-Received: by 2002:a05:6214:2601:b0:444:51fb:d4df with SMTP id
gu1-20020a056214260100b0044451fbd4dfmr5024886qvb.62.1649771739581; Tue, 12
Apr 2022 06:55:39 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Tue, 12 Apr 2022 06:55:39 -0700 (PDT)
In-Reply-To: <NUE0K.221694$H_t7.5976@fx40.iad>
Injection-Info: google-groups.googlegroups.com; posting-host=2603:6000:d401:d1d6:bbee:a652:e255:dead;
posting-account=PgTumwgAAAANHcRl_JKGG6anlrNd8s1N
NNTP-Posting-Host: 2603:6000:d401:d1d6:bbee:a652:e255:dead
References: <0ebec7fa-c8ff-4c21-b79e-08c38ba5ff3bn@googlegroups.com> <NUE0K.221694$H_t7.5976@fx40.iad>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ca64befa-bf86-424b-b2dd-6d00b2bb0bf4n@googlegroups.com>
Subject: Re: ANNOUNCE: shtmlview 1.0.0
From: cwjo...@gmail.com (Bezoar)
Injection-Date: Tue, 12 Apr 2022 13:55:39 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 8
View all headers
On Tuesday, March 29, 2022 at 9:41:53 AM UTC-5, Gerry wrote:
Your package looks interesting. One of these long spring evenings
I may look into it to see how hard it would be to have it use
entries in an SQLite database rather than files.


Gerry Snyder
--
Yes if it supported  loading from a buffer rather than just from a file  that would be a good enhancement.


Subject: Re: ANNOUNCE: shtmlview 1.0.0
From: D Groth
Newsgroups: comp.lang.tcl
Date: Fri, 22 Apr 2022 04:31 UTC
References: 1 2 3
X-Received: by 2002:a05:620a:2988:b0:69c:712c:6230 with SMTP id r8-20020a05620a298800b0069c712c6230mr1625277qkp.278.1650601882347;
Thu, 21 Apr 2022 21:31:22 -0700 (PDT)
X-Received: by 2002:a05:6870:630d:b0:e2:6498:6734 with SMTP id
s13-20020a056870630d00b000e264986734mr1140888oao.3.1650601882051; Thu, 21 Apr
2022 21:31:22 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Thu, 21 Apr 2022 21:31:21 -0700 (PDT)
In-Reply-To: <ca64befa-bf86-424b-b2dd-6d00b2bb0bf4n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2001:9e8:d1:fb00:8903:36:7f9b:ba9;
posting-account=l1SsogoAAADI9wGGep0j80-iEOPtae47
NNTP-Posting-Host: 2001:9e8:d1:fb00:8903:36:7f9b:ba9
References: <0ebec7fa-c8ff-4c21-b79e-08c38ba5ff3bn@googlegroups.com>
<NUE0K.221694$H_t7.5976@fx40.iad> <ca64befa-bf86-424b-b2dd-6d00b2bb0bf4n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5715348a-72f0-41c9-8a2f-327ac37967b8n@googlegroups.com>
Subject: Re: ANNOUNCE: shtmlview 1.0.0
From: tbgrot...@gmail.com (D Groth)
Injection-Date: Fri, 22 Apr 2022 04:31:22 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 44
View all headers
Dear Gerry and Bezoar,

In the current Github code I implemented your suggestion so that you can render directly HTML or Markdown strings.

The method is: `pathName render text ?ext?`

if html tags are present it will be rendered as HTML. If there are no tags at the beginning  per default Markdown is assumed. The format can be enforced as well by providing the default file extension.

Have a look at the manual page. I am only in doubt currently how to handle links if there are no files ... I think there should be a user defined function to handle  links to non-existing files. I'm open here for suggestions.

https://htmlpreview.github.io/?https://github.com/mittelmark/shtmlview/blob/master/shtmlview/shtmlview.html#section4

The current Git source code can be downloaded here:

https://downgit.github.io/#/home?url=https://github.com/mittelmark/shtmlview/tree/main/shtmlview

Please note that the script was reorganized together with akupries to allow inclusion into tklib. shtmlview is as well there in the current fossil trunk (slighly behind my github code).

Furthermore a plugin structure was added to allow rendering of other file formats which can be translated into HTML. As an example Tcl's doctools format was already added. So you can render now Tcl doctools manual pages like this: `tclsh shtmlview.tcl shtmlview.man`

Detlef

Bezoar schrieb am Dienstag, 12. April 2022 um 15:55:41 UTC+2:
On Tuesday, March 29, 2022 at 9:41:53 AM UTC-5, Gerry wrote:
Your package looks interesting. One of these long spring evenings
I may look into it to see how hard it would be to have it use
entries in an SQLite database rather than files.


Gerry Snyder
--
Yes if it supported loading from a buffer rather than just from a file that would be a good enhancement.


1
rocksolid light 0.7.2
clearneti2ptor