From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/106076 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Rik Kabel Newsgroups: gmane.comp.tex.context Subject: Re: Epub export css buglets Date: Fri, 17 Jan 2020 13:56:45 -0500 Message-ID: <90931889-5d12-68ad-10a8-98440abe81ab@rik.users.panix.com> References: <4a76c534-43a8-9461-fa98-f732948f5149@rik.users.panix.com> <1ce8eb9b-c88b-eee0-28d0-39066501cff4@rik.users.panix.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8079913161517681122==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="66200"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Firefox/68.0 Thunderbird/68.4.1 To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Jan 17 19:57:14 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1isWnx-000H8G-CZ for gctc-ntg-context-518@m.gmane-mx.org; Fri, 17 Jan 2020 19:57:13 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 21A34164E90; Fri, 17 Jan 2020 19:56:52 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3jW-HzhfVGgK; Fri, 17 Jan 2020 19:56:48 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A6946164E82; Fri, 17 Jan 2020 19:56:48 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 67BC0164E82 for ; Fri, 17 Jan 2020 19:56:47 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 37I1sgSD2Ivd for ; Fri, 17 Jan 2020 19:56:46 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=166.84.1.89; helo=mailbackend.panix.com; envelope-from=context@rik.users.panix.com; receiver= Original-Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 5788B164C4B for ; Fri, 17 Jan 2020 19:56:46 +0100 (CET) Original-Received: from [192.168.201.21] (cpe-72-228-11-252.nycap.res.rr.com [72.228.11.252]) by mailbackend.panix.com (Postfix) with ESMTPSA id 47zqzc6Szyz1dJk for ; Fri, 17 Jan 2020 13:56:44 -0500 (EST) In-Reply-To: <1ce8eb9b-c88b-eee0-28d0-39066501cff4@rik.users.panix.com> Content-Language: en-US X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:106076 Archived-At: This is a multi-part message in MIME format. --===============8079913161517681122== Content-Type: multipart/alternative; boundary="------------55A0B5D2C9408E4200D59397" Content-Language: en-US This is a multi-part message in MIME format. --------------55A0B5D2C9408E4200D59397 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 1/10/2020 10:59, Rik Kabel wrote: > Here ya go, about as minimal as I can imagine: > > \setupbackend [export=yes] > \setupexport [] > \starttext > ! > \stoptext > > and in the resulting export styles directory, I get: > > g:\yoiks-export\styles>grep "namespace\|weight.*italic\|text-width" *.css > yoiks-defaults.css:@namespace context url('http://www.pragma-ade.com/context/export') ; > yoiks-defaults.css: font-weight : italic ; > yoiks-images.css:@namespace context url('%namespace%') ; > yoiks-styles.css:@namespace context url('%namespace%') ; > yoiks-styles.css: text-width : justify !important ; > yoiks-templates.css:@namespace context url('%namespace%') ; > > So: > > * three unexpanded %namespace%s, > * one invalid property (text-width), > * and one incorrect property (font-weight should be font-style). > The *namespace* and *text-width* issues are now fixed, but the *font-weight : italic* fault in default.css remains. I also note that the W3C CSS validator reports for styles.css: 11     document, div.document     inherited is not a hyphens value : inherited That validator (and others) also report a number of issues for the @counter-style rule, which seems to have changed significantly since this CSS was developed. Validators report a number of smaller issues as well. I understand that export output is a low-priority feature. -- Rik --------------55A0B5D2C9408E4200D59397 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
On 1/10/2020 10:59, Rik Kabel wrote:
Here ya go, about as minimal as I can imagine:
\setupbackend [export=yes]
\setupexport  []
\starttext
!
\stoptext

and in the resulting export styles directory, I get:

g:\yoiks-export\styles>grep "namespace\|weight.*italic\|text-width" *.css
yoiks-defaults.css:@namespace context url('http://www.pragma-ade.com/context/export') ;
yoiks-defaults.css:     font-weight : italic ;
yoiks-images.css:@namespace context url('%namespace%') ;
yoiks-styles.css:@namespace context url('%namespace%') ;
yoiks-styles.css:    text-width : justify !important ;
yoiks-templates.css:@namespace context url('%namespace%') ;

So:

  • three unexpanded %namespace%s,
  • one invalid property (text-width),
  • and one incorrect property (font-weight should be font-style).

The namespace and text-width issues are now fixed, but the font-weight : italic fault in default.css remains.

I also note that the W3C CSS validator reports for styles.css:

11     document, div.document     inherited is not a hyphens value : inherited

That validator (and others) also report a number of issues for the @counter-style rule, which seems to have changed significantly since this CSS was developed. Validators report a number of smaller issues as well.

I understand that export output is a low-priority feature.

--
Rik


--------------55A0B5D2C9408E4200D59397-- --===============8079913161517681122== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============8079913161517681122==--