anything-books.elãWindowsã§ä½¿ã
å æ¥ã®è¨äºï¼anything-books.el ver 1.1 アップデート、機能追加などï¼ã«Windowsã§åããªãã¨ã³ã¡ã³ãããããã¾ããã®ã§ãã¡ãã£ã¨å¯¾å¿ãã¦ã¿ã¾ããã
以ä¸ã¯ Window XP (32bit) ã§ã®èª¬æã§ããWindows 7 ã 64bit ã§ã¯ããããããè¨å®ãå¤ããå¿ è¦ãããããç¥ãã¾ããã
(2011/04/14追è¨ï¼ GSãããMuPADã®æ¹ãæ軽ã§ããGSã®ã¤ã³ã¹ãã¼ã«ã¯é£ã°ãã¦ã代ããã«MuPDFãå ¥ãã¦ããã¡ãã®è¨å®(https://gist.github.com/915070)ãåèã«ãã¦ã¿ã¦ãã ããã@osamu2001ãããæ å ±ãããã¨ããããã¾ãã)
å¿ è¦ãªãã®
- Emacs
- anything.el
- anything-books.el
- deferred.el, concurrent.el
- ImageMagick
- Windowsç¨ã®ã¤ã³ã¹ãã¼ã©ã¼ã§ããããã®
- GhostScript
- Windowsç¨ã®ã¤ã³ã¹ãã¼ã©ã¼ã§ããããã®
- æ¥æ¬èªå ¥ãPDFã使ããªãæ¥æ¬èªå¯¾å¿ç
- PDFãã¥ã¼ã¢ã¼ï¼AdobeReaderã¨ãï¼
Windowsç¨ã®Emacsã«ã¤ãã¦ã¯ãæ¬å®¶Emacs23ï¼23.1.50.1 i386-mingwï¼ã¨Meadow 3.00ï¼22.3.1ï¼ã§ç¢ºèªãã¦ãã¾ããæ¬å®¶ã¨Meadowç³»ã§è¥å¹²åä½ãéãã¨ãããããã¾ãã®ã§ãè¨å®ã«æ³¨æãã¦ãã ããã
ImageMagickã¨GhostScriptã¯Windowsç¨ã®ãã®ãå ¥ãã¾ããã¤ã³ã¹ãã¼ã«å ã¯ã©ãã§ãï¼ç©ºç½ä»ãã®ãã¹ã§ãï¼çµæ§ã§ãã
- ImageMagick
- http://www.imagemagick.org/script/binary-releases.php#windows
- ImageMagick-6.6.7-4-Q8-windows-dll.exe ããããã
- GhostScript
- Ghostscript and GSView
- gs900w32full-gpl.zip ãå ¥ãã¾ããGSViewãã¤ãã§ã«å ¥ãã¦ããã¾ãããã
- ããããç´°ãããã¨ãæ¸ãã¦ããã¾ãããinstall.txtã®éãã«ãã£ã¦ãæ²æ³ã表示ã§ããã°OKã§ãã
- Windowsåæããã®æ´å²ççµç·¯ããã£ã¦ãããã®ãµã¤ãã¯åãã¦è¦ã人ã«ã¯åããã¥ããããããã¾ãããèªåã«ã¨ã£ã¦ã¯æãã大å¤ãä¸è©±ã«ãªã£ã¦ã¾ãã
注æã¨ãã¦ã¯Cygwinã®ãã®ã§ã¯åãã¾ãããï¼ä¸¡æ¹å ¥ãã¦ãã¦ãããã«ãã¹ã§æå®ããã®ã§å¤§ä¸å¤«ã ã¨ã¯æãã¾ããå¤åãï¼
PDFãã¥ã¼ã¢ã¼ã«ã¤ãã¦ã¯ãPDFãã¡ã¤ã«ã«é¢é£ã¥ãããã¦ããã°ä½ã§ãè¯ãã¨æãã¾ãã
åelãã¡ã¤ã«ã¯最初の記事ãåèã«å ¥ãã¦ãã ãããdeferred.elãæ´æ°ãã¦ããã¾ãã®ã§ãä¸å¿å ¨é¨ææ°ã«ãã¦ã¿ã¦ãã ããã
GhostScriptã®è¨å®
ã¾ããinstall.txtã®å 容ã«å¾ã£ã¦ãGSViewã§æ²æ³ã表示ã§ããã¨ããã¾ã§æ¥ã¦ãã ããã
次ã«ãGhostScriptã®ã¤ã³ã¹ãã¼ã«ãã©ã«ãã®ä¸ã«ããcidfmapãã¡ã¤ã«ãç·¨éãã¦è¶³ããªããã©ã³ãæ å ±ã追å ãã¾ããï¼ä»å¾ã®GSã®ãã¼ã¸ã§ã³ã®å¤åã«ãã£ã¦ãä»å¾å¿ è¦ãªè¨å®ãå¤ããããç¥ãã¾ãããï¼
\gs9.00\lib\cidfmap ãããã¹ãã¨ãã£ã¿ã§éãã¦ä»¥ä¸ã®è¡ãæå¾ã«è¿½å ãã¾ããæ¹è¡ãLFã®ã¿ãªã®ã§ãã¡ããã¨ããã¨ãã£ã¿ã使ãå¿ è¦ãããã¾ãã
/MSMincho /MS-Mincho04 ;
Emacsã®è¨å®
è¨å®ã®ä¸ã®ãxxxxxãã¯ãé©åãªã¤ã³ã¹ãã¼ã«ãã¹ã«æ¸ãæãã¦ãã ããã
ä½æ¥ãã©ã«ãããC:/tempãã¨ãã¦ãã¾ãã®ã§ã以ä¸ã®è¨å®ããã®ã¾ã¾ä½¿ãå ´åã¯ãã©ã«ããä½ã£ã¦ãã ããããããã¯é©å½ãªãã©ã«ãã«æ¸ãæãã¦ãè¯ãã¨æãã¾ãã
(require 'anything-books) (setq abks:books-dir "/home/foo/bar/pdf-files") ; PDFãã¡ã¤ã«ã®ãããã£ã¬ã¯ã㪠(setq abks:preview-temp-dir "C:/temp") (setq abks:mkcover-cmd '("C:/xxxxx/gs9.00/bin/gswin32c.exe" "-dSAFER" "-dBATCH" "-dNOPAUSE" "-sDEVICE=png16m" "-r50" "-dLastPage=1" (format "-sOutputFile=%s" (cdr (assq 'thum data-alist))) pdf)) (setq abks:convert-cmd '("C:/Program Files/ImageMagick-xxxxx/convert.exe" "-resize" size from to)) (setq abks:mkcover-image-ext ".png") (setq abks:copy-by-command nil) (setq abks:open-command '("CMD.exe" "/C" file)) ; æ¬å®¶Emacsã®å ´å (setq abks:open-command "fiber") ; Meadowã®å ´å (global-set-key (kbd "M-8") 'anything-books-command) ; ãã¼ãã¤ã³ã
ããã§åãã¯ãã§ããåããªãå ´åã¯ãã使ãã®ç°å¢ãªã©ãæ·»ãã¦ã³ã¡ã³ããªã©ã«ã©ããã
ããã¾ã§æ¥ãã¨ãã¹ã¿ã¼ãã¡ãã¥ã¼ããanythingåºæ¥ãããã«ãã¦ãPDFãéãå°ç¨ã®ã©ã³ãã£ã¼ã¿ããã«ãã¦ãè¯ãã®ããªã¨ãæãã¾ããã