X-Git-Url: https://git.ao2.it/tweeper.git/blobdiff_plain/796f27572846c0276d2867f8f0ded8cd462f3af9..12fc9696194c8017fa4227078c8fd230acf5ff98:/rss_converter_twitter.com.xsl?ds=sidebyside diff --git a/rss_converter_twitter.com.xsl b/rss_converter_twitter.com.xsl index c7f03c2..5c2fb90 100644 --- a/rss_converter_twitter.com.xsl +++ b/rss_converter_twitter.com.xsl @@ -1,7 +1,7 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + - <xsl:value-of select="concat($screen-name, ': ', $tweet-text)"/> + <xsl:value-of select="concat($user-name, ': ')"/> + <!-- + Prepend a space in front of the URLs which are not + preceded by an open parenthesis, for aestethic reasons. + Also, regex, I know: http://xkcd.com/1171/ + --> + <xsl:variable + name="processed-title" + select="php:function('preg_replace', '@((?<!\()(?:http[s]?://|pic.twitter.com))@', ' \1', string($item-content))"/> + <!-- Also strip   and … --> + <xsl:value-of select="normalize-space(translate($processed-title, ' …', ''))"/> - + + + + - + + - + <![CDATA[ - + + ]]> - + + + + + + + + + + + + + + + Tweeper - <xsl:text>Twitter / </xsl:text><xsl:value-of select="$screen-name"/> + <xsl:value-of select="$channel-title"/> - + - + + + <xsl:value-of select="$channel-title"/> + + + + - + - +