From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/106010 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Rik Kabel Newsgroups: gmane.comp.tex.context Subject: Re: Epub export css buglets Date: Fri, 10 Jan 2020 10:59:20 -0500 Message-ID: <1ce8eb9b-c88b-eee0-28d0-39066501cff4@rik.users.panix.com> References: <4a76c534-43a8-9461-fa98-f732948f5149@rik.users.panix.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5483641615346507549==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="152894"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Firefox/60.0 Thunderbird/60.9.1 To: Hans Hagen , "ntg-context@ntg.nl >> mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Fri Jan 10 17:02:45 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 blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ipwhU-000AvS-O6 for gctc-ntg-context-518@m.gmane-mx.org; Fri, 10 Jan 2020 16:59:52 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 973B6164B83; Fri, 10 Jan 2020 16:59:28 +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 GZtAIA15DF8w; Fri, 10 Jan 2020 16:59:27 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 088A1164B7E; Fri, 10 Jan 2020 16:59:27 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D6A78164B7C for ; Fri, 10 Jan 2020 16:59:25 +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 i_DayJyEdFIu for ; Fri, 10 Jan 2020 16:59:24 +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 D92A6164B60 for ; Fri, 10 Jan 2020 16:59:24 +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 47vSN95qn6z1MC9; Fri, 10 Jan 2020 10:59:21 -0500 (EST) In-Reply-To: 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.org gmane.comp.tex.context:106010 Archived-At: This is a multi-part message in MIME format. --===============5483641615346507549== Content-Type: multipart/alternative; boundary="------------B6C71038DE743BF7A2578291" Content-Language: en-US This is a multi-part message in MIME format. --------------B6C71038DE743BF7A2578291 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 1/9/2020 11:25, Hans Hagen wrote: > On 1/6/2020 7:08 PM, Rik Kabel wrote: >> A couple of small issues with the css for epub output. >> >> First, back-exp.lua creates, in \jobname-styles.css >> >>     @namespace context url('%namespace%') ; >> >> This should probably be: >> >>     @namespace context url('http://www.pragma-ade.com/context/export') ; >> >> That file also has: >> >>     document, >>     %namespace%div.document { >>          font-size  : %size% !important ; >>          max-width  : %width% !important ; >>          text-width : %align% !important ; >>          hyphens    : %hyphens% !important ; >>     } >> >> which contains the invalid css property text-width. Perhaps that >> should be text-align or text-justify. >> >> Something else appears to be creating, in \jobname-defaults.css: >> >>     pubfld[detail="title"], >>     div.pubfld.title { >>          display     : inline ; >>          font-weight : italic ; >>     } >> >> which incorrectly assigns italic to font-weight when of course it  is >> a font-style as far as css is concerned. This can be seen in file >> export-example.css in the distribution. > can you make a mwe ... > 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). -- Rik --------------B6C71038DE743BF7A2578291 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit On 1/9/2020 11:25, Hans Hagen wrote:
On 1/6/2020 7:08 PM, Rik Kabel wrote:
A couple of small issues with the css for epub output.

First, back-exp.lua creates, in \jobname-styles.css

    @namespace context url('%namespace%') ;

This should probably be:

    @namespace context url('http://www.pragma-ade.com/context/export') ;

That file also has:

    document,
    %namespace%div.document {
         font-size  : %size% !important ;
         max-width  : %width% !important ;
         text-width : %align% !important ;
         hyphens    : %hyphens% !important ;
    }

which contains the invalid css property text-width. Perhaps that should be text-align or text-justify.

Something else appears to be creating, in \jobname-defaults.css:

    pubfld[detail="title"],
    div.pubfld.title {
         display     : inline ;
         font-weight : italic ;
    }

which incorrectly assigns italic to font-weight when of course it  is a font-style as far as css is concerned. This can be seen in file export-example.css in the distribution.
can you make a mwe ...


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).

--
Rik

--------------B6C71038DE743BF7A2578291-- --===============5483641615346507549== 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== --===============5483641615346507549==--