Skip to content

Commit

Permalink
Add gif to lookup preview
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiago Felix committed Jul 4, 2018
1 parent d535cd9 commit 69853d8
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 16 deletions.
12 changes: 5 additions & 7 deletions DicionarioLibras.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<xsl:variable name="uppercase" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'" />

<xsl:variable name="gif" select="substring-before(video, '.mp4')" />
<xsl:variable name="escape_word" select="translate(palavra,'ÁÀÂÄÉÈÊËÍÌÎÏÓÒÔÖÚÙÛÜÇ','AAAAEEEEIIIIOOOOUUUUC')" />
<xsl:variable name="escape_word" select="translate(palavra,'ÃÁÀÂÄÉÈÊËÍÌÎÏÓÒÔÖÚÙÛÜÇ','AAAAAEEEEIIIIOOOOUUUUC')" />
<xsl:variable name="index" select="translate($escape_word, $uppercase, $lowercase)" />

<xsl:attribute name="id">id_<xsl:number value="id"/></xsl:attribute>
Expand All @@ -29,14 +29,12 @@
<d:index d:value="{$index}" d:title="{$index}" d:anchor="xpointer(//*[@id='{$index}'])"/>

<h1><xsl:value-of select="palavra"/></h1>
<div>
<img src="https://raw.githubusercontent.com/thiagofelix/um-sinal-por-dia/site-estatico/data/gifs/{$gif}.gif" width="240" height="176"/>
<img src="https://raw.githubusercontent.com/thiagofelix/um-sinal-por-dia/site-estatico/data/maos/{mao}" width="50" style='float=right'/>
</div>

<p><xsl:value-of select="acepcao"/></p>
<table>
<tr>
<td><img src="https://github.com/thiagofelix/um-sinal-por-dia/blob/site-estatico/data/gifs/{$gif}.gif?raw=true"/></td>
<td><img src="https://github.com/thiagofelix/um-sinal-por-dia/blob/site-estatico/data/maos/{mao}?raw=true" width="100"/></td>
</tr>
</table>
</d:entry>
</xsl:template>
</xsl:stylesheet>
6 changes: 3 additions & 3 deletions DicionarioLibrasInfo.plist
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>DCSDictionaryCopyright</key>
<string>Copyright © 2007 Apple Inc.</string>
<string>Copyright © 2018 acessibilidadebrasil.org.br</string>
<key>DCSDictionaryManufacturerName</key>
<string>Apple Inc.</string>
<string>www.acessibilidadebrasil.org.br</string>
<key>DCSDictionaryPrefsHTML</key>
<string>DicionarioLibras_prefs.html</string>
<key>DCSDictionaryXSL</key>
Expand All @@ -23,7 +23,7 @@
<key>pronunciation</key>
<string>0</string>
<key>display-column</key>
<string>0</string>
<string>1</string>
<key>display-picture</key>
<string>1</string>
<key>version</key>
Expand Down
20 changes: 14 additions & 6 deletions OtherResources/DicionarioLibras_prefs.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,18 @@
This file is not necessary if you don't need preference for the dictionary.
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
</head>
<body>
<img src="logo.png" alt=""/>
</body>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
</head>
<body>
<div class="query">
<input type="hidden" name="version" value="1" />
</div>
<div class="query">
<img src="logo.png" alt="" width="100"/>
</div>
<hr />
<div id="copyright"></div>
</body>
</html>

0 comments on commit 69853d8

Please sign in to comment.