Update (2012-08-16): I’ve patched the Zotero source and posted a pull request on github. I asked Zotero developers to add this feature to the main distribution. Please support it by asking the Zotero developers to merge the pull request via email or forum.
Pull request page: https://github.com/zotero/zotero/pull/157
Related forum post: http://forums.zotero.org/discussion/10879
In a previous post, I wrote about Zotero and the lack for supporting RTL languages in its note editor and how to work around this problem. In this post a better procedure for adding RTL support to Zotero is presented that also works in newer versions of Firefox.
The procedure is similar to the previous post with one difference: This time, you modify the Zotero plugin before installing it in Firefox.
mkdir ~/work cd ~/work wget http://download.zotero.org/extension/zotero-2.1.10.xpi unzip -d xpi zotero-2.1.10.xpi mkdir jar cd jar jar -xf ../xpi/chrome/zotero.jar cd .. wget http://downloads.sourceforge.net/project/tinymce/TinyMCE/3.3.9.2/tinymce_3_3_9_2.zip unzip tinymce_3_3_9_2.zip cp -au tinymce/jscripts/tiny_mce/* jar/content/zotero/tinymce/ sed -i 's/paste,contextmenu/paste,contextmenu,directionality/g' jar/content/zotero/tinymce/note.html sed -i 's/sup,|,forecolor/sup,|,ltr,rtl,|,forecolor/g' jar/content/zotero/tinymce/note.html cd jar jar -c0f ../xpi/chrome/zotero.jar * cd ../xpi zip -r ../zotero-2.1.10-rtl.xpi *
The above procedure worked for me on Zotero 2.1.10 and Firefox 9.0.1.
The version of TinyMCE that should be downloaded can be determined by inspecting the file jar/content/zotero/tinymce/tiny_mce.js before downloading it.