This is an old revision of the document!
An overview of translation documentation can be found here.
What is a translator?
(Rintze, Debbie) Migrate Adam's docs (relevant portions) and update
Contrary to what the name may imply, “translator” in this context does not mean Zotero will translate a web page from one language into another (like English into Spanish for example.) A translator is, simply put, that folder, book, newspaper or moviereel icon that pops up in the URL when you're on a page that Zotero can recognize. Programming-wise, a translator is some code bundled into your Zotero translator library which enables Zotero to recognize a particular web page, pull citation data off of it, and convert that data into a form ingest-able by the Zotero client. If no translator script exists in the Zotero translator library for a Web site that you're on, Zotero will not be able to “recognize” the site (and so no cute little icon will appear by the URL.) This section will explain how translators work, how to build and debug a translator, and how to choose the type of translator that's best for the web site in question.
How does a translator work?
Here is a textual explanation of how a translator works, as well as a diagram.
Before You Begin
Translator Types, Skills, Tools, and a Basic Question
What are the types of translators?
What skills are required to build one?
What tools are required to build one?
Does the translator I want to build already exist?
Sometimes, Zotero will not recognize a page for which it has a translator already; in other words, no little icon appears next to the URL when it should. A frequent reason is that the Web site the translator is trying to parse has changed, and the translator needs to be tweaked to accommodate those changes. So that you don't reinvent the wheel and try to re-create a translator Zotero already has, consult the current list of Zotero translators.
A web site I use and like does not currently support Zotero. What are the steps I should take to make Zotero recognize it?
- If you have control over internal site content, click here.
- If you do not have control over internal site content, click here.
|How to Write a Zotero Translator, 2nd Edition||Language tutorials provided||Required tools|
- Table of Contents
This tutorial is an adaptation of 'How to Write a Zotero Translator' (2009) by Adam Crymble. The 2nd Edition has been created to bring the tutorial up-to-date with Zotero 2.x translator development.
|Erik's Translator framework|
|This template code simplifies scraper development and can be used in conjunction with Scaffold (that is, along with Adam's guide) or without.|
|Documentation on the structure and metadata of translators|
|Documentation on the techniques and available functions for translators|
- How to Build a Translator Videos