X-Git-Url: https://git.ao2.it/tweeper.git/blobdiff_plain/b7350069c36900359b8f26c6e9794f614a40b20e..6e513d255b204e746d194a0b1d1590751f31a9d0:/rss_converter_twitter.com.xsl?ds=inline diff --git a/rss_converter_twitter.com.xsl b/rss_converter_twitter.com.xsl index 6ef86dd..c154141 100644 --- a/rss_converter_twitter.com.xsl +++ b/rss_converter_twitter.com.xsl @@ -32,8 +32,83 @@ https://twitter.com + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -41,10 +116,26 @@ + + + - <xsl:value-of select="concat($user-name, ': ', $item-content)"/> + <xsl:value-of select="concat($user-name, ': ')"/> + <xsl:if test="$item-has-video"> + <xsl:text>(Video) </xsl:text> + </xsl:if> + <!-- + 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:functionString('preg_replace', '@((?<!\()(?:http[s]?://|pic.twitter.com))@', ' \1', $item-content)"/> + <!-- Also strip   and … --> + <xsl:value-of select="normalize-space(translate($processed-title, ' …', ''))"/> @@ -59,11 +150,16 @@ <![CDATA[ - + + (Video) + + + ]]> - + +