Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
Excelã§ä½ã£ã表ãã¼ã¿ãJavaScriptã§ãããããããæã«ï¼Excelãã¼ã¿ãJSONã«å¤æããããã¨ããã£ãã®ã§ï¼ãã£ããæ¸ãã¦ã¿ã¾ããï¼ç¹å¾´ã¨ãã¦ã¯ï¼ã»ã«å æ¹è¡ããã£ã¦ãæ£ãããã¼ã¿ãåããã®ã§ï¼CSVãTSVã«æ¯ã¹ãã¨ãã¼ã¿ã«èªç±ãå¹ãç¹ãããã¾ãï¼HTMLãå ¥ãã¦ã¿ããï¼JavaScriptãå ¥ãã¦èªã¿è¾¼ã¿å´ã§eval()ãã¦ã¿ããã¨è²ã å¿ç¨ãå©ãã¨æãã¾ãï¼ åä½ç°å¢ åä½ç°å¢ã¯Ruby 1.9.3ï¼ActiveSupport 3.2.13ï¼roo 1.11.2ã§ãï¼Macç°å¢ã§ã®ã¿ç¢ºèªãã¦ãã¾ãï¼ãå©ç¨ã¯èªå·±è²¬ä»»ã§ãé¡ããã¾ãï¼ å©ç¨æ¹æ³ ã¾ãï¼ä»¥ä¸ã®gemãã¤ã³ã¹ãã¼ã«ãã¾ãï¼ $ gem install active_support roo ãã®å¾ï¼ä»¥ä¸ã®ã³ã¼ããexcel2json.rbã¨ãã¦ä¿åãã¾ãï¼Excelãã¼ã¿ã®ãã¡ã¤ã«åã¯é©å®å¤æ´ãã¦ãã ããï¼ #
TSVãã¡ã¤ã«ãCSVãã¡ã¤ã«ã« ã¿ãåºåãï¼TSVï¼Tab-Separated Valuesï¼ããã¹ããèªãã§CSVï¼Comma-Separated Valuesï¼ã«ãã¦åºåãããç°¡æçã§ããï¼å ã®ãã¼ã¿ã«ã³ã³ããå«ã¾ãã¦ããã¨ã¾ããã1è¡ç®ã® -w ã¯warningãonã«ãããªãã·ã§ã³ã§ãããï¼/usr/bin/env ã¨çµã¿åãããã¨ï¼ç°å¢ã«ãã£ã¦ã¯ãã¾ããããªãããã®å ´å㯠-w ãåããï¼ããã㯠#! /usr/bin/ruby -w ã®ããã«ãã«ãã¹ã«ããã2è¡ç®ã¯çç¥å¯ã #! /usr/bin/env ruby -w # coding: utf-8 while line = gets puts line.split("\t").join(",") end ã¿ãï¼"\t"ï¼ãåºåãã¨ãã¦é åã«åå²ãï¼ãããåã³ã³ã³ãï¼","ï¼ã§çµåãã¦ãããå®ã¯ï¼line ã«ã¯æ¹è¡ãä»ã
ã¯ããã« ããã§ã¯ï¼åã®ã»ã¯ã·ã§ã³ã§ä½æãã FileSystemObject ã¯ã©ã¹ã使ã£ã¦ Excel ãã¡ã¤ã«ããªã¼ãã³ããããã°ã©ã ãæ¸ãã¦ã¿ã¾ãããï¼ãã ãªã¼ãã³ããã®ã§ã¯ãªãï¼èªã¿åãå°ç¨ã§ Excel ãã¡ã¤ã«ããªã¼ãã³ãããã¼ã«ãä½ã£ã¦ã¿ã¾ãï¼ ãªããããªãã¼ã«ãä½ãã®ãã¨ããçç±ãå°ãã ãæ¸ãã¦ããã¾ãããï¼ä»¥åãããã£ãä»äºã§ããï¼ãã®ããã¸ã§ã¯ãã§ã¯éçºææ¸ã Excel ãã¡ã¤ã«ã¨ã㦠Unix ä¸ã«å¤§éã«ããã¾ããï¼ã¨ãããï¼ Samba çµç±ã§ Excel ãã¡ã¤ã«ãéãã¨ä½ãä¿®æ£ãã¦ããªãã®ã«ãã¡ã¤ã«ã®æ´æ°æ¥ä»ãåæã«å¤ãã£ã¦ãã¾ãã®ã§ãï¼ããã¯å°ãã®ã§ï¼æ¥é½ä½ã£ãã®ãããã§ç´¹ä»ããExcelãã¡ã¤ã«ãèªã¿åãå°ç¨ã§éããã¼ã« xls.rb ã§ãï¼ãã®ãã¼ã«ã ããããã¡ã¤ã« xls.bat ããå¼ã¶ããã«ã㦠Meadow ã® dired ãã Exce
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}