è«æã®æç®æ å ±ç®¡çã½ããã¦ã§ã¢ãJabRefããMendeleyã«ç½®ãæãããã¤ãã§ã«è«æPDFãã¡ã¤ã«ãããã¤ãã®ããã¤ã¹ã§å ±æããããæ³å®ç°å¢ã¯ä»¥ä¸ã®ã¨ããã
- ãã¼ãPCãèªå®
ãã¹ã¯ãããPC
- OS: Windows XP
- ç¨éï¼è«æé²è¦§ãè«æåé
- è·å ´ãã·ã³
- OS: Ubuntu 11.10
- ç¨éï¼è«æé²è¦§ãè«æåéãè«æå·ç
Mendeleyã®ã¢ã«ã¦ã³ãä½æ
Mendeleyã§ã¢ã«ã¦ã³ãä½æããã
Ubuntu 11.10ã§ã®æä½
Dropboxã®ã¤ã³ã¹ãã¼ã«
Dropbox:インストールãããUbuntuç¨ã¤ã³ã¹ãã¼ã«ãã¡ã¤ã«ããã¦ã³ãã¼ãããã
% sudo dpkg -i nautilus-dropbox_0.7.1_i386.deb
ããã§ã~/Dropbox ãä½æããããã®ãã£ã¬ã¯ããªä»¥ä¸ã«ç½®ããããã£ã¬ã¯ããªããã¡ã¤ã«ãDropboxã«åæããããç§ã¯~/References 以ä¸ã«PDFãã¡ã¤ã«ãä¿åãã¦ããã®ã§ããã¤ãDropboxã¸ç§»åãããã
% mv ~/Refernces ~/Dropbox
ããã§èªåçã«åæéå§ã
Mendeleyã®ã¤ã³ã¹ãã¼ã«
å¿ è¦ãªã©ã¤ãã©ãªã¼ãã¤ã³ã¹ãã¼ã«ã
% sudo aptitude install libqtwebkit-dev
Mendeley: How to install Mendeley Desktop for Ubuntu/DebianããUbuntu/Debianç¨ã®ã¤ã³ã¹ãã¼ã«ãã¤ããªã¼ããã¦ã³ãã¼ããã¦ããã
% sudo dpkg -i mendeleydesktop_1.3_i386.deb
èµ·åããã
% mendeleydesktop &
JabRefã§ç®¡çãã¦ããæ¸èªæ å ±ãã移è¡
JabRefã®ãã¼ã¿ãã¼ã¹ãBibTeXã®bibãã¡ã¤ã«ã¨ãã¦ã¨ã¯ã¹ãã¼ããããJabRefã®bibãã¡ã¤ã«ã¨Mendeleyã®bibãã¡ã¤ã«ã«ã¯éããããã¨ã®ãã¨ã
JabRefã§æ°ãã«ä½ã£ããã£ã¼ã«ãã«ã¤ãã¦ã¯ annoteã¿ã°ãç¨ãã¦æ¸ãæãããä¾ãã°ä»¥ä¸ã®ã¨ããã
fileno = {49} ã annote = {File:49}
PDFã®ãã¡ã¤ã«ã¨æ¸èªæ å ±ã®é¢é£ä»ãã¯C:\rob/PDFs以ä¸ã«PDFãã¡ã¤ã«ãæ ¼ç´ãã¦ããå ´åã«ä»¥ä¸ã®ããã«ãªã£ã¦ããã¨ã®ãã¨ã
- JabRefæè¿ç "file = {deSilEtAl2009_EM.pdf:deSilEtAl2009_EM.pdf:PDF}"
- JabRefå¤ãç "pdf = {deSilEtAl2009_EM.pdf}"
- Mendeleyç "file = {:C$\backslash$:/rob/PDFs/deSilEtAl2009_EM.pdf:pdf}"
Mendeleyã¯çµ¶å¯¾ãã¹ã§ãã¡ã¤ã«ã®ãããããããªããã°ãªããªããããã
ã¾ããMendeleyãåºåããbibãã¡ã¤ã«ã®æåã³ã¼ãã¯UTFã¨ã®ãã¨ã
ç§ã®bibãã¡ã¤ã«ã¯ä»¥ä¸ã®ããã«ãªã£ã¦ããã
- ç¬èªãã£ã¼ã«ãã¨ãã¦jaabstractï¼æ¦è¦æ¥æ¬èªè¨³ï¼ã使ã£ã¦ãã
- pdfã®ç´ä»ãã§ã¯æè¿çã¨å¤ãçã®è¨è¿°ãæ··ãã£ã¦ãã
- JabRefãåºåããbibãã¡ã¤ã«ã®æåã³ã¼ããEUC-JP
- PDFãã¡ã¤ã«ã«æ¡å¼µåãã¤ãã¦ããªãã
ããã§ãã¾ãã¯UTF8çãçæãããJabRefãåºåãã bibãã¡ã¤ã«ã JabRef.bibã¨ããã
% iconv -f EUC-JP -t UTF-8 JabRef.bib > JabRef.bib.utf8
Ruby 1.9ç³»ã§åãæ¸ãæãããã°ã©ã ã¯ä»¥ä¸ã®ã¨ããã
# -*- encoding: utf-8 -*- unless ARGV.size == 2 puts "% ruby JabRefToMendeley.rb inputifle path-of-directory-for-PDFs" puts "Please input filename as full path." exit end inputfile = ARGV[0] pathOfDirectory = ARGV[1].sub(/\/$/,'') unless File.exist?(inputfile) puts "#{inputfile} file doesn't exist" exit end File.open(inputfile){|file| file.each do |line| line.gsub!(/\s+jaabstract\s=\s\{/ , 'annote = {jabstract:') line.gsub!(/pdf\s=\s\{(.+)\}/){ pdfFile = $1.sub(/\.pdf$/,'') pdfFile.gsub!(/\_/,'\_') "file = {:#{pathOfDirectory}/#{pdfFile}.pdf:pdf}" } line.gsub!(/file\s=\s\{(.+):(.+):PDF\}/){ pdfFile = $1.sub(/\.pdf$/,'') pdfFile.gsub!(/\_/,'\_') "file = {:#{pathOfDirectory}/#{pdfFile}.pdf:pdf}" } puts line end }
ä¸è¨ã®ããã°ã©ã ããJabRefToMendeley.rbã¨ãã¦ä¿åãããããã¦ãPDFãã¡ã¤ã«ãç½®ãã¦ãããã£ã¬ã¯ããªã®çµ¶å¯¾ãã¹ã /home/next49/Dropbox/References ã§ããã¨ã以ä¸ã®ããã«ä½¿ãã
%ruby JabRef.bib.utf8 /home/next49/Dropbox/References > New.bib
Mendeley Desktopãèµ·åããã
% mendeleydesktop &
å·¦å´ã®ã¦ã£ã³ãã¦ã«ãã"Welcome to Mendeley ..."ãã¯ãªãã¯ããçæããNew.bibãã¤ã³ãã¼ããããæ¥æ¬èªã®è¦æ ãã¯ãã¾ãã¡ãªããããã¼ã¿ã移è¡ã§ããã
ç¶ãäºå®ã