Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package suse-xsl-stylesheets for openSUSE:Factory checked in at 2023-08-11 15:55:12 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/suse-xsl-stylesheets (Old) and /work/SRC/openSUSE:Factory/.suse-xsl-stylesheets.new.11712 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "suse-xsl-stylesheets" Fri Aug 11 15:55:12 2023 rev:70 rq:1103340 version:2.92.4 Changes: -------- --- /work/SRC/openSUSE:Factory/suse-xsl-stylesheets/suse-xsl-stylesheets.changes 2023-08-10 15:33:32.272028088 +0200 +++ /work/SRC/openSUSE:Factory/.suse-xsl-stylesheets.new.11712/suse-xsl-stylesheets.changes 2023-08-11 15:55:18.723683631 +0200 @@ -1,0 +2,9 @@ +Thu Aug 10 13:51:57 UTC 2023 - Thomas Schraitle <thomas.schrai...@suse.com> - 2.92.4 + +- Update 2.92.4 + - Update Qualtrics JS script (#560) + - TRD/FO: Process `d:meta[@name="platform"]` in book (#566) + - XHTML: Trim text for twitter:* metadata (#565) + - Change param socialmedia.description.length=125 (83b4557) + +------------------------------------------------------------------- Old: ---- suse-xsl-2.92.3.tar.bz2 New: ---- suse-xsl-2.92.4.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ suse-xsl-stylesheets.spec ++++++ --- /var/tmp/diff_new_pack.K4hJem/_old 2023-08-11 15:55:19.387687588 +0200 +++ /var/tmp/diff_new_pack.K4hJem/_new 2023-08-11 15:55:19.391687611 +0200 @@ -22,7 +22,7 @@ %define suse_styles_dir %{db_xml_dir}/stylesheet # Name: suse-xsl-stylesheets -Version: 2.92.3 +Version: 2.92.4 Release: 0 Summary: SUSE-Branded Stylesheets for DocBook License: GPL-2.0-only OR GPL-3.0-only ++++++ suse-xsl-2.92.3.tar.bz2 -> suse-xsl-2.92.4.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/suse-xsl-2.92.3/ChangeLog new/suse-xsl-2.92.4/ChangeLog --- old/suse-xsl-2.92.3/ChangeLog 2023-08-03 09:14:49.000000000 +0200 +++ new/suse-xsl-2.92.4/ChangeLog 2023-08-10 15:48:53.000000000 +0200 @@ -1,4 +1,13 @@ ------------------------------------------------------------------- +Thu Aug 10 15:46:00 UTC 2022 - toms...@users.noreply.github.com + +- Update 2.92.4 + - Update Qualtrics JS script (#560) + - TRD/FO: Process `d:meta[@name="platform"]` in book (#566) + - XHTML: Trim text for twitter:* metadata (#565) + - Change param socialmedia.description.length=125 (83b4557) + +------------------------------------------------------------------- Thu Aug 03 09:10:00 UTC 2022 - toms...@users.noreply.github.com - Update 2.92.3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/suse-xsl-2.92.3/Makefile new/suse-xsl-2.92.4/Makefile --- old/suse-xsl-2.92.3/Makefile 2023-08-03 09:14:49.000000000 +0200 +++ new/suse-xsl-2.92.4/Makefile 2023-08-10 15:48:53.000000000 +0200 @@ -11,7 +11,7 @@ SHELL := /bin/bash PACKAGE := suse-xsl-stylesheets -VERSION := 2.92.3 +VERSION := 2.92.4 CDIR := $(shell pwd) SUSE_XML_PATH := $(PREFIX)/xml/suse DB_XML_PATH := $(PREFIX)/xml/docbook diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/suse-xsl-2.92.3/suse2022-ns/static/js/qualtrics-feedback.js new/suse-xsl-2.92.4/suse2022-ns/static/js/qualtrics-feedback.js --- old/suse-xsl-2.92.3/suse2022-ns/static/js/qualtrics-feedback.js 1970-01-01 01:00:00.000000000 +0100 +++ new/suse-xsl-2.92.4/suse2022-ns/static/js/qualtrics-feedback.js 2023-08-10 15:48:53.000000000 +0200 @@ -0,0 +1,7 @@ +(function(){var g=function(e,h,f,g){ + this.get=function(a){for(var a=a+"=",c=document.cookie.split(";"),b=0,e=c.length;b<e;b++){for(var d=c[b];" "==d.charAt(0);)d=d.substring(1,d.length);if(0==d.indexOf(a))return d.substring(a.length,d.length)}return null}; + this.set=function(a,c){var b="",b=new Date;b.setTime(b.getTime()+6048E5);b="; expires="+b.toGMTString();document.cookie=a+"="+c+b+"; path=/; "}; + this.check=function(){var a=this.get(f);if(a)a=a.split(":");else if(100!=e)"v"==h&&(e=Math.random()>=e/100?0:100),a=[h,e,0],this.set(f,a.join(":"));else return!0;var c=a[1];if(100==c)return!0;switch(a[0]){case "v":return!1;case "r":return c=a[2]%Math.floor(100/c),a[2]++,this.set(f,a.join(":")),!c}return!0}; + this.go=function(){if(this.check()){var a=document.createElement("script");a.type="text/javascript";a.src=g;document.body&&document.body.appendChild(a)}}; + this.start=function(){var t=this;"complete"!==document.readyState?window.addEventListener?window.addEventListener("load",function(){t.go()},!1):window.attachEvent&&window.attachEvent("onload",function(){t.go()}):t.go()};}; +try{(new g(100,"r","QSI_S_ZN_8qZUmklKYbBqAYe","https://zn8qzumklkybbqaye-suselinux.siteintercept.qualtrics.com/SIE/?Q_ZID=ZN_8qZUmklKYbBqAYe")).start()}catch(i){}})(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/suse-xsl-2.92.3/suse2022-ns/xhtml/docbook.xsl new/suse-xsl-2.92.4/suse2022-ns/xhtml/docbook.xsl --- old/suse-xsl-2.92.3/suse2022-ns/xhtml/docbook.xsl 2023-08-03 09:14:49.000000000 +0200 +++ new/suse-xsl-2.92.4/suse2022-ns/xhtml/docbook.xsl 2023-08-10 15:48:53.000000000 +0200 @@ -357,27 +357,14 @@ <xsl:with-param name="node" select="$node"/> </xsl:call-template> - <xsl:if test="number($generate.qualtrics.div) != 0"> - <xsl:choose> - <xsl:when test="$qualtrics-feedback.js != ''"> - <xsl:copy-of select="document($qualtrics-feedback.js)/*/node()"/> - </xsl:when> - <xsl:otherwise> - <!-- TODO: This is just a fallback and can be removed at some point --> - <xsl:comment>BEGIN QUALTRICS WEBSITE FEEDBACK SNIPPET</xsl:comment> -<script type='text/javascript'><![CDATA[(function(){var g=function(e,h,f,g){ -this.get=function(a){for(var a=a+"=",c=document.cookie.split(";"),b=0,e=c.length;b<e;b++){for(var d=c[b];" "==d.charAt(0);)d=d.substring(1,d.length);if(0==d.indexOf(a))return d.substring(a.length,d.length)}return null}; -this.set=function(a,c){var b="",b=new Date;b.setTime(b.getTime()+6048E5);b="; expires="+b.toGMTString();document.cookie=a+"="+c+b+"; path=/; "}; -this.check=function(){var a=this.get(f);if(a)a=a.split(":");else if(100!=e)"v"==h&&(e=Math.random()>=e/100?0:100),a=[h,e,0],this.set(f,a.join(":"));else return!0;var c=a[1];if(100==c)return!0;switch(a[0]){case "v":return!1;case "r":return c=a[2]%Math.floor(100/c),a[2]++,this.set(f,a.join(":")),!c}return!0}; -this.go=function(){if(this.check()){var a=document.createElement("script");a.type="text/javascript";a.src=g;document.body&&document.body.appendChild(a)}}; -this.start=function(){var t=this;"complete"!==document.readyState?window.addEventListener?window.addEventListener("load",function(){t.go()},!1):window.attachEvent&&window.attachEvent("onload",function(){t.go()}):t.go()};}; -try{(new g(100,"r","QSI_S_ZN_8qZUmklKYbBqAYe","https://zn8qzumklkybbqaye-suselinux.siteintercept.qualtrics.com/SIE/?Q_ZID=ZN_8qZUmklKYbBqAYe")).start()}catch(i){}})();]]> -</script><div id='ZN_8qZUmklKYbBqAYe'><xsl:comment>DO NOT REMOVE-CONTENTS PLACED HERE</xsl:comment></div> + <xsl:if test="number($generate.qualtrics.div) != 0 and $qualtrics-feedback.js != ''"> + <xsl:comment>BEGIN QUALTRICS WEBSITE FEEDBACK SNIPPET</xsl:comment> + <script type='text/javascript' src="{$qualtrics-feedback.js}"/> + <div id="{$qualtrics.div.id}"> + <xsl:comment>DO NOT REMOVE-CONTENTS PLACED HERE</xsl:comment> + </div> + <xsl:comment>END WEBSITE FEEDBACK SNIPPET</xsl:comment> <xsl:text> </xsl:text> - <xsl:comment>END WEBSITE FEEDBACK SNIPPET</xsl:comment> - <xsl:text> </xsl:text> - </xsl:otherwise> - </xsl:choose> </xsl:if> </xsl:template> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/suse-xsl-2.92.3/suse2022-ns/xhtml/meta.xsl new/suse-xsl-2.92.4/suse2022-ns/xhtml/meta.xsl --- old/suse-xsl-2.92.3/suse2022-ns/xhtml/meta.xsl 2023-08-03 09:14:49.000000000 +0200 +++ new/suse-xsl-2.92.4/suse2022-ns/xhtml/meta.xsl 2023-08-10 15:48:53.000000000 +0200 @@ -226,7 +226,9 @@ <xsl:when test="$meta.nodes[@name='social-descr']"> <xsl:choose> <xsl:when test="string-length($meta.nodes[@name='social-descr']) < $socialmedia.description.length"> - <xsl:value-of select="$meta.nodes[@name='social-descr']"/> + <xsl:call-template name="trim.text"> + <xsl:with-param name="contents" select="$meta.nodes[@name = 'social-descr']" /> + </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:call-template name="log.message"> @@ -237,7 +239,7 @@ <xsl:value-of select="concat($socialmedia.description.length, ' characters!')"/> </xsl:with-param> </xsl:call-template> - <xsl:value-of select="substring(normalize-space($meta.nodes[@name = 'social-descr']), 1, $socialmedia.description.length)" /> + <xsl:value-of select="normalize-space(substring($meta.nodes[@name = 'social-descr'], 1, $socialmedia.description.length))" /> </xsl:otherwise> </xsl:choose> </xsl:when> @@ -245,12 +247,18 @@ <xsl:choose> <xsl:when test="string-length($socialmedia.description) > $socialmedia.description.length"> <xsl:call-template name="ellipsize.text"> - <xsl:with-param name="input" select="$socialmedia.description"/> + <xsl:with-param name="input"> + <xsl:call-template name="trim.text"> + <xsl:with-param name="contents" select="$socialmedia.description"/> + </xsl:call-template> + </xsl:with-param> <xsl:with-param name="ellipsize.after" select="$socialmedia.description.length"/> </xsl:call-template> </xsl:when> <xsl:otherwise> - <xsl:value-of select="$socialmedia.description"/> + <xsl:call-template name="trim.text"> + <xsl:with-param name="contents" select="$socialmedia.description" /> + </xsl:call-template> </xsl:otherwise> </xsl:choose> </xsl:when> @@ -268,7 +276,11 @@ <xsl:variable name="title"> <xsl:choose> <xsl:when test="$meta.nodes[@name='title']"> - <xsl:variable name="tmp" select="normalize-space($meta.nodes[@name='title'][last()])"/> + <xsl:variable name="tmp"> + <xsl:call-template name="trim.text"> + <xsl:with-param name="contents" select="$meta.nodes[@name='title'][last()]" /> + </xsl:call-template> + </xsl:variable> <xsl:choose> <xsl:when test="$tmp = ''"> <xsl:call-template name="log.message"> @@ -298,7 +310,9 @@ </xsl:choose> </xsl:when> <xsl:otherwise> - <xsl:value-of select="$socialmedia.title"/> + <xsl:call-template name="trim.text"> + <xsl:with-param name="contents" select="$socialmedia.title" /> + </xsl:call-template> </xsl:otherwise> </xsl:choose> </xsl:variable> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/suse-xsl-2.92.3/suse2022-ns/xhtml/param.xsl new/suse-xsl-2.92.4/suse2022-ns/xhtml/param.xsl --- old/suse-xsl-2.92.3/suse2022-ns/xhtml/param.xsl 2023-08-03 09:14:49.000000000 +0200 +++ new/suse-xsl-2.92.4/suse2022-ns/xhtml/param.xsl 2023-08-10 15:48:53.000000000 +0200 @@ -419,7 +419,7 @@ <xsl:param name="search.description.length" select="55"/> <!-- Open Graph (og:)/Twitter Cards tags used for social-media preview --> <xsl:param name="socialmedia.title.length" select="55"/> - <xsl:param name="socialmedia.description.length" select="150"/> + <xsl:param name="socialmedia.description.length" select="125"/> <!-- Type of content to display in og:type tag, https://ogp.me/#types --> <xsl:param name="opengraph.type" select="'article'"/> <!-- How Twitter Cards should be displayed, as "summary" (uses smaller square @@ -473,6 +473,7 @@ <!-- The ID for the Qualtricks <div> --> <xsl:param name="generate.qualtrics.div" select="0"/> <xsl:param name="qualtrics.id">qualtrics_container</xsl:param> + <xsl:param name="qualtrics.div.id">ZN_8qZUmklKYbBqAYe</xsl:param> <!-- The path to the Qualtrics JS file. By default, it's relative to the stylesheet. The content should be (correct the syntax HTML comment): @@ -486,6 +487,6 @@ The root element is cut off (it can be any tagname, <html> is just an example). Anything below <html> is copied, including HTML comments and the <script>. --> - <xsl:param name="qualtrics-feedback.js">qualtrics-feedback.js</xsl:param> + <xsl:param name="qualtrics-feedback.js">static/js/qualtrics-feedback.js</xsl:param> </xsl:stylesheet> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/suse-xsl-2.92.3/suse2022-ns/xhtml/qualtrics-feedback.js new/suse-xsl-2.92.4/suse2022-ns/xhtml/qualtrics-feedback.js --- old/suse-xsl-2.92.3/suse2022-ns/xhtml/qualtrics-feedback.js 2023-08-03 09:14:49.000000000 +0200 +++ new/suse-xsl-2.92.4/suse2022-ns/xhtml/qualtrics-feedback.js 1970-01-01 01:00:00.000000000 +0100 @@ -1,13 +0,0 @@ -<html xmlns="http://www.w3.org/1999/xhtml"> -<!--BEGIN QUALTRICS WEBSITE FEEDBACK SNIPPET--> -<script type='text/javascript'><![CDATA[(function(){var g=function(e,h,f,g){ -this.get=function(a){for(var a=a+"=",c=document.cookie.split(";"),b=0,e=c.length;b<e;b++){for(var d=c[b];" "==d.charAt(0);)d=d.substring(1,d.length);if(0==d.indexOf(a))return d.substring(a.length,d.length)}return null}; -this.set=function(a,c){var b="",b=new Date;b.setTime(b.getTime()+6048E5);b="; expires="+b.toGMTString();document.cookie=a+"="+c+b+"; path=/; "}; -this.check=function(){var a=this.get(f);if(a)a=a.split(":");else if(100!=e)"v"==h&&(e=Math.random()>=e/100?0:100),a=[h,e,0],this.set(f,a.join(":"));else return!0;var c=a[1];if(100==c)return!0;switch(a[0]){case "v":return!1;case "r":return c=a[2]%Math.floor(100/c),a[2]++,this.set(f,a.join(":")),!c}return!0}; -this.go=function(){if(this.check()){var a=document.createElement("script");a.type="text/javascript";a.src=g;document.body&&document.body.appendChild(a)}}; -this.start=function(){var t=this;"complete"!==document.readyState?window.addEventListener?window.addEventListener("load",function(){t.go()},!1):window.attachEvent&&window.attachEvent("onload",function(){t.go()}):t.go()};}; -try{(new g(100,"r","QSI_S_ZN_8qZUmklKYbBqAYe","https://zn8qzumklkybbqaye-suselinux.siteintercept.qualtrics.com/SIE/?Q_ZID=ZN_8qZUmklKYbBqAYe")).start()}catch(i){}})();]]> -</script> - <div id='ZN_8qZUmklKYbBqAYe'><!--DO NOT REMOVE-CONTENTS PLACED HERE--></div> -<!--END WEBSITE FEEDBACK SNIPPET--> -</html> \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/suse-xsl-2.92.3/trd/fo/book.titlepage.templates.xsl new/suse-xsl-2.92.4/trd/fo/book.titlepage.templates.xsl --- old/suse-xsl-2.92.3/trd/fo/book.titlepage.templates.xsl 2023-08-03 09:14:49.000000000 +0200 +++ new/suse-xsl-2.92.4/trd/fo/book.titlepage.templates.xsl 2023-08-10 15:48:53.000000000 +0200 @@ -105,6 +105,13 @@ </fo:block-container> </xsl:template> + + <xsl:template match="d:meta[@name='platform']" mode="book.titlepage.recto.auto.mode"> + <fo:block> + <xsl:apply-templates/> + </fo:block> + </xsl:template> + <!-- ======== --> <xsl:template match="d:cover[d:mediaobject]" mode="book.titlepage.recto.auto.mode"> <xsl:variable name="n" select="count(d:mediaobject)"/>