Tellico/pt-br: Difference between revisions

From KDE UserBase Wiki
(Created page with "[https://bugs.kde.org/buglist.cgi?query_format=specific&order=relevance+desc&bug_status=__all__&product=tellico Veja todos os bugs do Tellico].")
No edit summary
 
(7 intermediate revisions by 2 users not shown)
Line 17: Line 17:
== Obtendo o Tellico ==
== Obtendo o Tellico ==


'''Tellico''' is available for most Linux distributions, as well as the ports repository for the BSD variants. Please check your package manager to see if a package is available there.
'''Tellico''' está disponível para a maioria das distribuições Linux, bem como o repositório ports para as variantes de BSD. Por favor, verifique seu gerenciador de pacotes para ver se existe um pacote está disponível por lá.


Links to many of the packages are listed on the [http://tellico-project.org/download Tellico download page].
Links to many of the packages are listed on the [http://tellico-project.org/download Tellico download page].
Line 25: Line 25:
Para o Ubuntu/Kubuntu existem pacotes não oficiais disponíveis em [https://launchpad.net/~dominik-stadler/ PPA].
Para o Ubuntu/Kubuntu existem pacotes não oficiais disponíveis em [https://launchpad.net/~dominik-stadler/ PPA].


<span class="mw-translate-fuzzy">
== Mais informações ==
== Mais informações ==
* O  site do '''Tellico''' é http://tellico-project.org
* O  site do '''Tellico''' é http://tellico-project.org
* A documentação de usuário do '''Tellico'''  também esta [http://docs.kde.org/development/en/extragear-office/tellico/index.html disponível online].
* A documentação de usuário do '''Tellico'''  também esta [http://docs.kde.org/development/en/extragear-office/tellico/index.html disponível online].
* Dúvidas e comentários podem ser enviados para a [http://tellico-project.org/mailing-list lista de usuários Tellico].
* Dúvidas e comentários podem ser enviados para a [http://tellico-project.org/mailing-list lista de usuários Tellico].
</span>


= Bugs =
= Bugs =


Bug reports for '''Tellico''' use [http://bugs.kde.org KDE's bugzilla].
Para reportar bugs para o '''Tellico''' use [http://bugs.kde.org KDE's bugzilla].


[https://bugs.kde.org/buglist.cgi?query_format=specific&order=relevance+desc&bug_status=__all__&product=tellico Veja todos os bugs do Tellico].
[https://bugs.kde.org/buglist.cgi?query_format=specific&order=relevance+desc&bug_status=__all__&product=tellico Veja todos os bugs do Tellico].


[[Category:Office]]
 
= XSLT processing =
 
Tellico use XSL files for templates, reports, import, processing data source and export. XSL files apply on XML data.
The Tellico's DTD will give you the exact name of fields (because Tellico displays translated titles instead of names). Common places for this file are /usr/share/tellico/tellico.dtd or /usr/share/kde4/apps/tellico/tellico.dtd
Beware that Tellico use [http://xmlsoft.org/XSLT/index.html libxslt1.1] which implement [http://www.w3.org/TR/xpath XPath 1.0] functions only. Fortunately, you can use [http://www.exslt.org EXSLT] extensions.
 
== Basical XSLT for transforming export ==
 
First, do an XML export. The file will serve as a reference for testing.
Testing will be easier if you install an XSLT processor ([http://xmlsoft.org/XSLT/xsltproc2.html xsltproc] is available on every distribution).
Then write an xsl stylesheet. Here's a basic one :
 
{{Input|<syntaxhighlight lang="xml" line>
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:tc="http://periapsis.org/tellico/"
                version="1.0">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
 
<xsl:template match="/">
  <xsl:apply-templates select="tc:tellico"/>
</xsl:template>
 
<xsl:template match="tc:tellico">
  <xsl:apply-templates select="tc:collection"/>
</xsl:template>
 
<!-- about your collection -->
<xsl:template match="tc:collection">
<books><!-- sample xml  output -->
<xsl:apply-templates select="tc:entry"/>
<books>
</xsl:template>
 
<!-- transform each entry -->
<xsl:template match="tc:entry">
<book><!-- sample xml  output -->
<title><xsl:value-of select="title"/></title>
<!-- other fields -->
</book>
</xsl:template>
 
</xsl:stylesheet>
</syntaxhighlight>}}
 
 
== Default fields in use for import ==
 
If you want to extend '''Tellico''', you will certainly modify its XSLT processing files.
To do this you will need the name of fields from the DTD, but current xsl files use several other names specific of collections and data sources. Using these default names for fields will makes your XSLT more compatible with others (for example "dewey" and "loc" are used for several data sources).
 
The list is built at [[Tellico/DefaultFields]]
 
[[Category:Escritório/pt-br]]

Latest revision as of 01:54, 3 August 2015

Other languages:
Tellico is a catalogue application, making it easy to track your books, videos, music, even your wine and anything else. A simple and intuitive interface shows cover images, groupings, and any detail you want. Grab information from many popular Internet sites, including IMDB.com, Amazon.com, and many libraries.

Tellico is a part of KDE Extragear, in the Office module

Dando uma olhada

A janela principal do Tellico é álgo como:

Tellico can use a variety of templates for changing the formatting of the collection information.

Obtendo o Tellico

Tellico está disponível para a maioria das distribuições Linux, bem como o repositório ports para as variantes de BSD. Por favor, verifique seu gerenciador de pacotes para ver se existe um pacote está disponível por lá.

Links to many of the packages are listed on the Tellico download page.

Compiling Tellico from the source code requires installing several development packages.

Para o Ubuntu/Kubuntu existem pacotes não oficiais disponíveis em PPA.

Mais informações

Bugs

Para reportar bugs para o Tellico use KDE's bugzilla.

Veja todos os bugs do Tellico.


XSLT processing

Tellico use XSL files for templates, reports, import, processing data source and export. XSL files apply on XML data. The Tellico's DTD will give you the exact name of fields (because Tellico displays translated titles instead of names). Common places for this file are /usr/share/tellico/tellico.dtd or /usr/share/kde4/apps/tellico/tellico.dtd Beware that Tellico use libxslt1.1 which implement XPath 1.0 functions only. Fortunately, you can use EXSLT extensions.

Basical XSLT for transforming export

First, do an XML export. The file will serve as a reference for testing. Testing will be easier if you install an XSLT processor (xsltproc is available on every distribution). Then write an xsl stylesheet. Here's a basic one :

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:tc="http://periapsis.org/tellico/"
                version="1.0">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>

<xsl:template match="/">
  <xsl:apply-templates select="tc:tellico"/>
</xsl:template>

<xsl:template match="tc:tellico">
  <xsl:apply-templates select="tc:collection"/>
</xsl:template>

<!-- about your collection -->
<xsl:template match="tc:collection">
<books><!-- sample xml  output -->
<xsl:apply-templates select="tc:entry"/>
<books>
</xsl:template>

<!-- transform each entry -->
<xsl:template match="tc:entry">
<book><!-- sample xml  output -->
<title><xsl:value-of select="title"/></title>
<!-- other fields -->
</book>
</xsl:template>

</xsl:stylesheet>


Default fields in use for import

If you want to extend Tellico, you will certainly modify its XSLT processing files. To do this you will need the name of fields from the DTD, but current xsl files use several other names specific of collections and data sources. Using these default names for fields will makes your XSLT more compatible with others (for example "dewey" and "loc" are used for several data sources).

The list is built at Tellico/DefaultFields