I.ãªãNW.jsãå¿ èŠãªã®ã§ããïŒ
1.èŸæžã®WebããŒãžã®æ§é ãè€éã«ãªãã»ã©ãæŽç·Žããããã©ãŠã¶ãšã³ãžã³ãæäŸãããã¹ãŠã®æ©èœã«äŸåããçç±ãå¢ããŸãã JSDOMã¯ããªãéçºãããã©ã€ãã©ãªã§ãããããã§ãChromiumã®å®å šãªããŒã«ã»ãããšæ¯èŒããããšã¯ã§ããŸããã
2.ããžã¿ã«èŸæžã®äœæãšå€æã«é¢äžãã人ã ã¯ã倧éšåã¯ã人é䞻矩è ã§ãããéåœã®ææã«ãããITåéã«æã¡èŸŒãŸããŸãã ç¹ã«ãŠãŒãã£ãªãã£èªäœãäœæãããååã«ããæ¢æã®éçºã䜿çšããå Žåã¯ãã³ãã³ãã©ã€ã³ã€ã³ã¿ãŒãã§ã€ã¹ãããGUIã§äœæ¥ããæ¹ãå¿«é©ãªå ŽåããããŸãã NW.jsã¯ãWebããŒãžãåæãåŠçãå€æããããã®ç°¡åãªã¢ããªã±ãŒã·ã§ã³çšã®GUIãç°¡åã«äœæããæ¹æ³ãæäŸããŸãã
äŸãšããŠããã®ããŒã«ã®ç°¡åãªèª¬æãšããŠããµã€ãwww.wordspy.comãéžæããŸãã ã Word Spyã¯ããã§ã«èšèªã®äžéšã«ãªã£ãŠããè±èªã®æ°èªåŠã®çµ¶ããæŽæ°ãããŠããèŸæžã§ãã ã€ãŸãããããã¯äœæãããŠãããããã€ãŠç§çããŒãºã®ããã«èè ã«ãã£ãŠäœ¿çšããããã®ã§ã¯ãããŸããïŒãã®ãããªèšèã¯ãææ䞻矩ããšåŒã°ããŸãïŒããç°ãªãèµ·æºã®ããã€ãã®å°å·ç©ããããã¯ãŒã¯ãœãŒã¹ã§ãã©ã€ãã¢ããããããŸããã æåã®èšäºã®ã€ã©ã¹ããšããŠäœ¿çšãããUrban Dictionaryãšæ¯èŒãããšã Word Sp yã«ã¯2ã€ã®å€§ããªéãããããŸããããŒãžã®ã³ã³ãã³ãã¯ã¹ã¯ãªããã®éåææäœã«ãã£ãŠåœ¢æããããããã®ããŒãžã®æ§é ã¯ã»ãšãã©äºæž¬äžå¯èœã§è€éã§ãïŒäžæ¹ã Urban Dictionaryã§ã¯ããã¹ããæ倧éã«äœ¿çšãããŸããïŒã¿ã°ã®å°ããªã»ãããããã³ãã®é åºãšçµã¿åããã¯åäžã§ããïŒã ãããNW.jsã«é Œã決å®çãªçç±ã§ããã
ãã§ã«å®å šã§äœç³»çãªå ¬åŒããã¥ã¡ã³ãã®äžéšãç¹°ãè¿ãäºå®ã¯ãããŸãããã NW.jsã«æ £ããŠããªãå Žåã¯ãããããå§ããããšããå§ãããŸãïŒGitHubã®WikiããŒãžãã¹ã¯ããŒã«ã§ããŸã-ãããã®å€ãã¯æ¢ã«å€ããªã£ãŠããŸããããŸã ãããŸãã¡ã€ã³ã®ããã¥ã¡ã³ãã«ã¯èšèŒãããŠããŸããããèå³æ·±ããã®ã«åºäŒããŸãã éžæããã¿ã¹ã¯ãžã®ãããžã§ã¯ãã®é©çšã«é¢ããã¡ã¢ã®ã¿ã«éå®ããŸãã
IIã æºå段é
1.èŸæžãšã³ããªã®ã¢ãã¬ã¹ã®ãªã¹ããååŸãã
åºæ¬çã«ãæåã®æºåã¹ã¯ãªããã¯ãæåã®èšäºã®ããã°ã©ã ã«ã»ãŒäŒŒãŠããŸãã ããŒãžããå¿ èŠãªãªã³ã¯ãåŒãåºãã ãã§ããã®ã§ã åœé¢ã¯NW.jsã«æ¥ç¶ããããšããããŸãããJSDOMã¯ããã«ããŸã察åŠããŸãã
ã
éèŠãªéãã®ã¿ãæŠèª¬ããŸãã
aã ããŒãžãèªã¿èŸŒãŸãã
window
ããã³
document
ãªããžã§ã¯ãã
window
ããã³
document
ãªããžã§ã¯ããåãåããŸã§ã«ãããŒãžã®ã³ã³ãã³ãã¯ãŸã æºåãã§ããŠããªããããè¿œå ã®ãã§ãã¯ãµã€ã¯ã«ãå°å ¥ããå¿ èŠããããŸãïŒããŒãžã¯éåæã¹ã¯ãªããã§æºããããŠããããã
load
ã€ãã³ãã远跡ããŠãäœãåŸãããŸãã; DOMã®å€æŽæã«ã€ãã³ããã³ãã©ãŒããã³ã°ã¢ããããŸããããã®ç¶æ³ã§ã¯ãããã¯äžåœãªè€éãã®ããã§ãïŒã ãŠã§ããµã€ãã®ã¹ã¯ãªããã®äœæ¥ãåæããåŸãããŒãžã®éèŠãªèŠçŽ ãèŠã€ããŸããããã®ååšã¯ãå¿ èŠãªæ§é ïŒãã®å Žåã¯ãèŸæžãšã³ããªãžã®ãªã³ã¯ã®ãªã¹ããæã€ãããã¯ïŒã®æ§ç¯ã®å®äºãæå³ããŸãã æ¢ã«ç¥ã£ãŠããå€æ°ã«å ããŠããã®èŠçŽ ã®ã»ã¬ã¯ã¿ãŒãå®çŸ©ããŸãïŒã³ãŒãã®åæãããã¯ã§
selectorsToCheck
ãå°æ¥ã®ã±ãŒã¹ã§ã¯ãç°ãªãããŒãžã§ç°ãªããã¹ãèŠçŽ ãå¿ èŠãªå Žåããã®å€æ°ãé åã«ããŸãïŒã 2çªç®ã®è¿œå ã¯ããªç§æ°ã«ãªããããŒèŠçŽ ããã§ãã¯ããé »åºŠïŒ
checkFrequency
ïŒãèšå®ããŸãã
bã Word Spyã«ã¯ãèŸæžå šäœã®äŸ¿å©ãª2段éã®ã³ã³ãã³ããå«ãŸããŠããŸãã1ïŒãã¹ãŠã®ã¿ã°ã®ãªã¹ããããã€ãã®ããŒããããã¯ã«åå²ãããŠããŸãã 2ïŒåã¿ã°ãžã®ãªã³ã¯ã¯ããã®ã¿ã°ã«é¢é£ãããã¹ãŠã®èªåœã®ãªã¹ããéããŸãã èŸæžã«ãæåã®ã¿ã°ãªã¹ããšã¿ã°ã®äžã®ãã¹ãŠã®èªåœãªã¹ãã®äž¡æ¹ãè¿œå ããŸãã ãããè¡ãããã«ãã¿ã°ä»ãã®äžèšã®éå§ããŒãžãã¢ãã¬ã¹ã®åæé åïŒ
tocURLs
ïŒã«
tocURLs
ãŸããããã¯ãèŸæžãšã³ããªã®ãªã¹ãã®ãœãŒã¹ã«ãªããŸãã ãŸãããã®é åã
abc
ãšåŒã°ããæåã®èšäºã®ã¹ã¯ãªãããšã¯ç°ãªããã¿ã°ã®ããã¢ãã¬ã¹ã¯åäžã®URLãã¿ãŒã³ã«é©åããªããããããã«ãããURLã®ãªã¹ãã«å€æããã¢ã«ãã¡ããããããã®å Žã§ããã圢æããŸããã
cã çŸåšã®ã¿ã¹ã¯ã®äžéšã¯åçŽåãããŸããWordSpyã¯Urban Dictionaryãããæ°æ¡å°ããèŸæžã§ããããã1ããŒãžã®ã¢ãã¬ã¹äžèŠ§ãšèŸæžãšã³ããªããããŸãã ãã®ã¹ã¯ãªãããŸãã¯èŸæžèªäœãä¿åããã¹ã¯ãªããã§è€æ°ããŒãžã®ç¶ç¶ããã§ãã¯ããå¿ èŠã¯ãããŸãããããã«ãããURLãšå¯Ÿå¿ããã³ãŒãã®ã»ã¯ã·ã§ã³ã®æ§ç¯ãç°¡åã«ãªããŸãã
getDoc
é¢æ°ã§ã¯ã
getDoc
ã©ã€ãã©ãªã®ã¯ãšãªããããã«å€æŽãããŸãïŒ ã¢ãŒãã³ãã£ã¯ã·ã§ããªã¯éçãã£ã¯ã·ã§ããªã§ããããããã§ã¯ã¯ãšãªãªãã·ã§ã³ã«è¡šç€ºãããããŒãžäžã®ã¹ã¯ãªããã®èªã¿èŸŒã¿ãšå®è¡ãå¿ èŠã§ãã
eãã³ãŒãã«å¥ã®éåæã®ç¬éãçŸãããããåã®
processDoc
é¢æ°ã2ã€ã«åå²ããŸãïŒ
checkDoc
é¢æ°ã§ã¯ãèµ·ãããããšã©ãŒãšWebãµã€ãã¹ã¯ãªããã®çµäºã®äž¡æ¹ããã§ãã¯ããå®æããããã¥ã¡ã³ãã®åŠçãé 延é¢æ°
processDoc
ãŸãã æ€èšŒãµã€ã¯ã«ã¯å€ãã®å埩ãå®è¡ããŸãïŒããšãã°ã5ç§ãçµéãããŸã§ïŒã ãã®éã«æ€èšŒèŠçŽ ãçŸããå Žåãããã¥ã¡ã³ãåŠçæ©èœã«é²ã¿ãŸãã ã¿ã€ã ã¢ãŠãåŸã«èŠçŽ ããªãå Žåã¯ããªãã€ã¬ã¯ãããã£ããã©ããã確èªããŸãïŒããã§ãªãå Žåã¯ããµãŒããŒã§ããããçã£ãŠãªã¯ãšã¹ããç¹°ãè¿ãããšãã§ããŸãããµãŒããŒãã©ããã«ãªãã€ã¬ã¯ããããå ŽåããŠãŒã¶ãŒã«èŠåãçºè¡ããŠããã°ã©ã ãäžæçã«çµäºããã ãã§ãã çµéšäžãã»ãšãã©ã®å ŽåãWebãµã€ãã®ã¹ã¯ãªãããå®äºããã®ã«100ã400ããªç§ããããŸããããé 延ã¯æ°ç§ã§ãããã¿ã€ã ã¢ãŠããè¶ ããããšããããŸããïŒãã®ãããªå Žåãåäžã®èŠæ±ã§ååã§ããïŒã
eãå®æããããŒãžã®åŠçãšå¿ èŠãªãªã³ã¯ã®æœåºã¯ãçæãããèŸæžãšã³ããªã®ãªã¹ãã«ãã¹ãŠã®ã¿ã°ã®ããŒããªã¹ãã§ã¢ãã¬ã¹ãå ¥åãããã®äžè¬çãªã³ã³ãã³ããä¿åããŠç°¡åã«ããã²ãŒã·ã§ã³ã§ããããã«ããªãéããæåã®èšäºã§èª¬æãããã®ãšå€ãããŸããå°æ¥ã®èŸæžã
2.ã¿ã°ã®ãªã¹ã
éžæãããã£ã¯ã·ã§ããªã®ããŒãžæ§é ã¯ç¹å®ã®ã¬ãã«ã§ã®ã¿è€éã§äºæž¬å¯èœãªããã䜿çšããã¿ã°ã®ã¿ã€ããšé »åºŠã«é¢ããæ å ±ãåéããããã«ãå¿ èŠãªãã¹ãŠã®ããŒãžãééããäºåãã¹ãä¿åããã»ã¹ã«è¿œå ããããšããŸãã ãããè¡ãã«ã¯ãèŸæžä¿åã¹ã¯ãªããã«éåžžã«äŒŒãã¹ã¯ãªãããäœæããŸãããçŸæç¹ã§ã¯éåžžã«åçŽãªæ å ±ãæœåºããŸãïŒãããã£ãŠãåŒãç¶ãJSDOMã«éå®ããŸã ïŒã
ã
ãã®ã¹ã¯ãªããã¯ã ã¢ãŒãã³ãã£ã¯ã·ã§ããªã®ä¿åã«ç²ŸéããŠããã¹ã¯ãªãããšãããå°ã詳ãã説æããã¹ã¯ãªããã®éšåçãªãã€ããªãããšåŒã¶ããšãã§ããŸããæ¢è£œã®ã¢ãã¬ã¹ã®ãªã¹ããèªã¿åããŸãïŒæåãŸãã¯åæ¢ããå Žæãããåæ¢ããåã«ç¹å¥ãªãã°ã«ããŒã¯ãããã®ïŒãããŒãžãããŒãããã¹ã¯ãªãããå®è¡ããŠãèŸæžãšã³ããªã®å¿ èŠãªã³ã³ãã³ãããã¹ãŠæ§ç¯ããããŸã§åŸ ã¡ãŸãã ããã€ãã®æ°ãã詳现ã®ã¿ã説æããŸãã
aã èŸæžãä¿åãããšãã«ãèŸæžã³ãŒãèªäœãä¿åãããã¢ãã¬ã¹ãå«ãããã»ã¹ãã°ãããã³ãšã©ãŒãã°ã®3ã€ã®ãã¡ã€ã«ãäœæããŸããã ãã®å Žåã2ã€ã®ãã¡ã€ã«ã§ååã§ããå¿ èŠã«å¿ããŠããããã®ãã¡ã€ã«ãäŒæ©åŸã«åŸ©å ããããã«è¡ãããäœæ¥ã®ãã°ã®åœ¹å²ãæããããšãã§ããããã«ã¿ã°ãä¿æããŸãã
bã ããŒã»ã¬ã¯ã¿ãŒã®é åããŒ
selectorsToCheck
ã«ã¯ã2ã€ã®èŠçŽ ãå«ãŸããããã«ãªããŸãããéåžžã®èŸæžããŒãžãšã¿ã°ã®ãªã¹ãïŒãŸãã¯åäžã®ã¿ã°ã§çµåãããèªåœïŒã®ããŒãžçšã§ãã
cã åæã«äžèŠãªæ å ±ãéå°ã«ãªããªãããã«ã倧ãŸããªäºåè©äŸ¡ã«åºã¥ããŠãèŸæžã«ä¿åãããã¿ã°ã«è§£æã§ããªãèŠçŽ ãç¹å®ããŸãïŒãããã®èŠçŽ ã®
selectorsToDelete
å€æ°ã«ä¿åããŠã解æãéå§ããåã«äžèŠãªèŠçŽ ãåé€ããŸãã
dãåããŒãžã®åæã¯ãé¢å¿ã®ããèŠçŽ ãããã¹ãŠã®ã¿ã°ãæœåºããèŠçŽ
tags
ãªããžã§ã¯ãã«ãã®ååãç»é²ãïŒåã¿ã°ã®çµ±èšãåžžã«å¢å ããïŒãããŒãžã¢ãã¬ã¹ãã¡ã€ã«ãšãã®äžã®ã¿ã°ã®ãªã¹ãã«æžã蟌ã¿ãŸãã ã¹ã¯ãªããã®æåŸã«ãçµæã®
tags
ãªããžã§ã¯ãããã¡ã€ã«ã«æžã蟌ãŸããŸãã ãããã£ãŠãã¿ã°ã®äžè¬çãªçµ±èšãšããŒãžäžã®ååžã®äž¡æ¹ãååŸããŸããããã«ããããã®ã¿ã°ãèšé²ãããŠããã¢ãã¬ã¹ã®ãããããéãããšã§ãã¿ã°ã®äœ¿çšäŸãèŠãããšãã§ããŸãã ã¹ã¯ãªãããäžæãããå Žåããã¡ã€ã«ã«ãã§ã«æžã蟌ãŸããŠããæ å ±ããçµ±èš
tags
ãªããžã§ã¯ãã埩å ã§ããŸãã ãããã®2ã€ã®é¡äŒŒããããã»ã¹-ããŒãžã®èªã¿åããšãã°ããã®ã¹ã¯ã€ãŒãºã®èªã¿åã-ã¯ãã¹ã¯ãªããå ã®å¯Ÿå¿ãã2ã€ã®å Žæã«ãããŸããæåã®éšåïŒ
console.log('Reading the tag file...');
ïŒããã³
processDoc
é¢æ°ã§ãã
ããã°ã©ã ã³ãŒãã®æ®ãã®éšåã«ã¯ããªãã¿ã®ãªããã®ã¯å«ãŸããŠããŸããã
IIIã èŸæžãä¿åããŠããŸã
NW.jsã®ããã°ã©ã ã¯ãå°ãªããšã2ã€ã®ãã¡ã€ã«ã§æ§æãããŠããŸããJSON圢åŒã®ãµãŒãã¹ãã¡ã€ã«ïŒããã°ã©ã ã®äž»ãªãã©ã¡ãŒã¿ãŒã説æããïŒãšãGUIã説æããã¹ã¯ãªãããå«ãHTMLããŒãžã§ãã åŸè ã¯å¥ã®ãã¡ã€ã«ã«ç§»åããããŒã«ã«ãŸãã¯ãããã¯ãŒã¯ã¢ãã¬ã¹ã§ããããåç §ã§ããŸãã
1. package.json
ãµãŒãã¹ãã¡ã€ã«ã®æå°ã³ã³ãã³ãã¯æ¬¡ã®ãšããã§ãã
{ "name": "NW.WordSpy.get_dic", "main": "WordSpy.get_dic.html", "window": { "title": "Save WordSpy.com" } }
NW.jsã®ããã°ã©ã ã¯ãæåã®èµ·åæã«ãŠãŒã¶ãŒããŒã¿çšã®ã·ã¹ãã ãã©ã«ããŒã«ç¬èªã®ãµããã©ã«ããŒãäœæãããã®ååã¯ã
name
ãã£ãŒã«ãã®ããã°ã©ã ã®ååã«ãã£ãŠåœ¢æãããŸãã
main
ãã£ãŒã«ãã«ã¯ãGUIèŠçŽ ãšããã°ã©ã ã®ã¡ã€ã³ã¹ã¯ãªãããå«ãã¡ã€ã³ãã¡ã€ã«ãžã®ãã¹ãå«ãŸããŠããŸãã
ãªãã·ã§ã³ã®ãµãã»ã¯ã·ã§ã³
window
ã«ã¯ãäœæãããããã°ã©ã ãŠã£ã³ããŠã®ãã©ã¡ãŒã¿ãŒãå«ãŸããŸãããããŸã§ã¯ãã¿ã€ãã«ã«å¶éããŸãã
ãµãŒãã¹ãã¡ã€ã«ã®åœ¢åŒãšã³ã³ããŒãã³ãã®è©³çŽ°ã«ã€ããŠã¯ããã«ããåç §ããŠãã ãã ã
2. WordSpy.get_dic.html
ããã°ã©ã ã®ãŠã£ã³ããŠã¯æ¯èŒçã·ã³ãã«ã§ãããæå³ã§ã¯ã³ã³ãœãŒã«ã¢ããªã±ãŒã·ã§ã³ã«äŒŒãŠããŸãã
HTML-
ã
ããŒã¯ã¢ããã®ããããŒéšåã«ã¯ãå¿ èŠãªæå°å€ã«å ããŠãä»»æã®CSSãããã¯ãè¿œå ã§ããŸãã ããã§ã¯ãããã¯çŽç²ã«äŸç€ºçãªãã®ã§ãããç§ãã¡ã¯ããã«ãã ãããªãã
GUIã®æåã®èŠçŽ ã¯ãã³ãã³ãã©ã€ã³ããŒã§ä»¥åã«èšå®ãããã©ã¡ãŒã¿ãŒã®2ã€ã®ãã£ãŒã«ãã«ãªããŸããèŸæžããŒãžã®ã¢ãã¬ã¹ãæã€å ¥åãã¡ã€ã«ïŒä»¥åã«å ¥åãã¡ã€ã«ã§ãã©ã«ããŒãèšå®ãããã¡ã€ã«åãã³ãŒãã§èšå®ããŠããŒãçãããŸãã-ããã¯ä»ã§ã¯ãããŸããïŒå¿ èŠã§ãããã³ã³ãã³ããã¡ã€ã«ãçŽæ¥éžæã§ããŸãïŒããã³åºåãã¡ã€ã«ãäœæããããã©ã«ããŒ-èŸæžèªäœãä¿åãããããŒãžã®ãã°ãããã³ãšã©ãŒãã°ã NW.jsã®ãã¡ã€ã«ãã£ãŒã«ãã®æ©èœã®è©³çŽ°ã«ã€ããŠã¯ã ãã¡ããã芧 ãã ãã ã
次ã¯ãããã°ã©ã ã®ã¡ã€ã³ã¢ã¯ã·ã§ã³ãèµ·åãããã¿ã³ã§ãããã®åŸã«ãæ å ±ã衚瀺ãããã£ãŒã«ãããããŸãã CSSãšããã€ãã®ã¹ã¯ãªããããªãã¯ã䜿çšããŠãã³ã³ãœãŒã«åºåãŠã£ã³ããŠã®ããã«èŠããŠãã¹ã¯ãªããã®éåžžã®ã³ã³ãœãŒã«ããŒãžã§ã³ãšé£çµ¡ãåããŸãã
ç®ã«èŠããªã
audio
èŠçŽ ã¯ããŠãŒã¶ãŒã®æ³šæãåŒãã®ã«åœ¹ç«ã¡ãŸã-ããã«ã¯ã³ã³ãœãŒã«ãã¬ãŒã€ãŒã䜿çšããŠããŸããã ãµãŠã³ããã¡ã€ã«ã®ã¢ãã¬ã¹ã¯ä»ã®ãã®ã§ãæ§ããŸãããã€ãã³ãã®æšæºãµãŠã³ãã¹ããŒã ã®ã·ã¹ãã ãã¡ã€ã«ã®1ã€ã䜿çšããŸããã
æåŸã«ãæåŸã®èŠçŽ ãããã©ãŠã¶ãã®éèŠãªåœ¹å²ãæãããŸããããŒã¿ã®åæãšæœåºã®ããã«ããã®çµã¿èŸŒã¿ãã¬ãŒã ã«ããŒãžãããŒãããŸãã NW.jsã®ãã¬ãŒã ã®æ©èœãšé¢é£ããããã€ãã®äºé²æªçœ®ã«ã€ããŠã¯ãæ¢ã«ç¥ã£ãŠãããªã³ã¯ã䜿çšããŠèªãããšãã§ããŸãã
èŸæžã®ä¿åããã»ã¹ã®éå§æãšçµäºæã®ããã°ã©ã ã®ã¿ã€ãã¯ãã¹ã¯ãªãŒã³ã·ã§ããããæšå®ã§ããŸãã
䟿å®äžãããã°ã©ã ã®ã¹ã¯ãªããéšåãå¥ã®ãã¡ã€ã«ã«åé€ããŸããã ããŒãžã®æåŸã§åç §ããããšããå§ãããŸããããã«ãããèµ·åæã«ã¹ã¯ãªããããŠã£ã³ããŠã®ãã¹ãŠã®å¿ èŠãªèŠçŽ ãèŠã€ããŠããããã®èŠçŽ ãšã®å¯Ÿè©±ãéå§ã§ããããã«ãªããŸãã
3. WordSpy.get_dic.js
ã
ã³ã¡ã³ãã§ã¯ãäž»ãªæ§é ãšã³ãŒãã®å€ãã®ã»ã¯ã·ã§ã³ã®äž¡æ¹ãå ±éãããããååã®èšäºã®ã³ã³ãœãŒã«ã¹ã¯ãªãããšæ¯èŒããéããšé©æ°ã®ã¿ã«çŠç¹ãåœãŠãŸãã
aã ã¯ããã«èŠãæåã®éãã ãŠã£ã³ããŠãšããã°ã©ã èªäœã®ããã¥ã¡ã³ãã«å¯ŸããŠå€æ°ã衚瀺ãããŸãïŒããã«ããããŠã£ã³ããŠã®å€æ°ãããŒããããããŒãžã®ããã¥ã¡ã³ããšæ··åãã«ãããªããŸãïŒã次ã«ãGUIã®åèŠçŽ ã«å¯ŸããŠå€æ°ã衚瀺ãããŸãã ãã¡ã€ã«ãžã®ãã¹ã¯åçã«ïŒã³ãã³ãã©ã€ã³ããŒã«ãã£ãŠã§ã¯ãªãããŠãŒã¶ãŒã¢ã¯ã·ã§ã³ã«å¿ããŠïŒåçã«æ§ç¯ããããããç°ãªãå®æ°ã»ãããšããŠã§ã¯ãªãã
io
ãªããžã§ã¯ãã®å¯å€ããããã£ãšããŠä¿åããŸãã ãã1ã€ã®éãã¯ãããã¥ã¡ã³ãã®è€éãªæ§é ã§ãã䟿å©ãªæäœãè¡ãããã®ããŸããŸãªç®çã®ã»ã¬ã¯ã¿ãŒã®ã»ããã§ãïŒãããã¯ãã¿ã°åæçšã®ä»¥åã®ã¹ã¯ãªãããããã§ã«ããç¥ãããŠããŸãïŒã æåŸã«ã察話æ©èœãå¢å ããã«ã€ããŠãå°å ¥éšåã®æåŸã«ãããã°ã©ã ãšãŠãŒã¶ãŒã³ãã³ãã®çŸåšã®ç¶æ ã瀺ãããã€ãã®ã€ã³ãžã±ãŒã¿ãŒå€æ°ãäœæããŸãã
bã GUIã䜿çšããå Žåãæéã©ããã«ãŠã£ã³ããŠãéããªããšããèªæã¯ãã³ã³ãœãŒã«ã䜿çšããå Žåããã倧ãããªããŸãã ãã®ãããããã°ã©ã ãæ£ããçµäºããªãããã«ããããã«å€§ããªãã¥ãŒãºã·ã¹ãã ãäœæããŸãã æåã«ãåŸã§èª¬æãã
onExit()
é¢æ°ã
onExit()
é¢æ°ã«
onExit()
ãŸãã
cã ãã«ããããããããã«ãæšæºã®HTML 5ã®äºé²æªçœ®ã¯ãŸã æå¹ã§ããããã¡ã€ã«ãã£ãŒã«ãã®å±æ§ãŸãã¯ããããã£ã䜿çšããŠãã¡ã€ã«ã®çµäºã¢ãã¬ã¹ãèšå®ããããšã¯ã§ããŸãã-ããã¯ããã€ã¢ãã°ããã¯ã¹ã®ã«ã¹ã¿ã ã¢ã¯ã·ã§ã³ã§ã®ã¿å®è¡ã§ããŸãã ãã ãããŠãŒã¶ãŒããã¡ã€ã«ãéžæããããã«æ±ãããããã©ã«ããŒãžã®ãã¹ãä¿åããããšã§ããŠãŒã¶ãŒã®æéãšåŽåãåæžã§ããŸãïŒãã¡ã€ã«ããã©ã«ããŒã®å Žåãäºåã¢ãã¬ã¹ãšæçµã¢ãã¬ã¹ã¯å¥è·¡çã«äžèŽããŸãïŒã ãããè¡ãã«ã¯ã JSON圢åŒã®å¥ã®ãŠãŒãã£ãªãã£ãã¡ã€ã«
config.json
ã䜿çšããŸãããã®ãã¡ã€ã«ã«ã¯ãå¿ èŠãªãã¹ã®æ°ã«å¿ããŠã2ã€ã®ããããã£ãæã€ãªããžã§ã¯ããæ ŒçŽãããŸãã äœæ¥ã®éå§æã«ãããã°ã©ã ã¯ãã®ãã¡ã€ã«ã®ååšã確èªããŸãããã¡ã€ã«ãååšããå Žåã
config
ãªããžã§ã¯ãã®å 容ãèªã¿åããäž¡æ¹ã®ãã£ãŒã«ãã®
nwworkingdir
ããããã£ã«å¿ èŠãªãã¹ãæžã蟌ã¿ãŸãã ãã¡ã€ã«ããªãå Žåããªããžã§ã¯ãã¯ç©ºã«ãªãããã©ãŠã¶ã®éå§ãã£ã¬ã¯ããªãéåžžã®æ¹æ³ã§å®çŸ©ãããŸãã
dãä¿åãããèšå®ã®ãã¡ã€ã«ã確èªããåŸããã¹ãŠã®ã€ã³ã¿ã©ã¯ãã£ãèŠçŽ ã«ã€ãã³ããã³ãã©ãŒãèšå®ããæåã®èŠçŽ ã«èŠçŽ ãæ£ããåæç¶æ ã«åŒ·å¶ããŸãã
checkDirs()
é¢æ°ã¯ãå¿ èŠãªãã¹ãŠã®ãã¹ã®æ±ºå®ããã§ãã¯ããŸããå°ãªããšã1ã€ãæªå®çŸ©ã®å Žåãæ å ±ãããã¯ã«ã¡ãã»ãŒãžã衚瀺ããŸããããã§ãªãå Žåã¯ãä¿åãããèšå®ãã¡ã€ã«ã«ããŒã¿ãæžã蟌ã¿ãã¡ã€ã³ããã»ã¹ã®éå§ãã¿ã³ãããã¯è§£é€ããŸãã
onStop()
é¢æ°ã¯ãã¡ã€ã³ããã»ã¹ãäžæããã³ãã³ãã«å¿çããŸãïŒãã®ã³ãã³ãã®ã€ã³ãžã±ãŒã¿ãonäœçœ®ã«çœ®ãã ãã§ãããã»ã¹ãéœåã®ããæéã«äžæã§ããŸãã
ã
onExit()
é¢æ°ã¯ãããã°ã©ã ãŠã£ã³ããŠã
onExit()
ããšããè©Šã¿ã«å¿çããŸãã ãã®æç¹ã§èŸæžãä¿åãããŠããå Žåã圌女ã¯ç¢ºèªã®è³ªåãããŸãã 確èªåŸãããã»ã¹ã®äžæãšããã°ã©ã ã®çµäºã®ã€ã³ãžã±ãŒã¿ã¯ãéœåã®è¯ããšãã«åŸç¶ã®ã¢ã¯ã·ã§ã³ã®ããã«ãªã³ã®äœçœ®ã«é 眮ãããŸãã ãŠãŒã¶ãŒãã¢ã¯ã·ã§ã³ã確èªããªãå Žåãç¡èŠãããŸãã ä¿åãå®è¡ãããªãå Žåãããã°ã©ã ã¯ãã以äžè³ªåããã«éããŸãã
gã
setSpeedInfo()
é¢æ°ã§ã¯ãéèŠãªå€æŽã¯ãªãŒãã£ãªä¿¡å·ã«ã®ã¿åœ±é¿ããŸããã ãªãã¬ãã·ã¥ã¬ãŒããšäœæ¥é床ã«é¢ããæ å ±ã®åœ¢åŒã¯åãã¬ãã«ïŒ1æéã«1åïŒã®ãŸãŸã«ããŸããããå¿ èŠã«å¿ããŠä¿®æ£ã§ããŸãïŒçµå±ã Urban Dictionaryã¯äœæ¥ãç¶ãã Word Spyã¯çŽ1æéåãªã®ã§ãå€æé »åºŠãšåäœã¯åã«å¢å ããŸãïŒã
hã
updateInfo(str)
é¢æ°ã¯ãã³ã³ãœãŒã«ã®æ å ±ãããã¯ãæ¯èŒããŸãã ãããã¡ãŒãµã€ãºã10è¡ã«èšå®ããæåã«äœåãªè¡ãåãåããŸãïŒæãå€ãæ å ±ãããã«ãããŸãïŒãæåŸã®è¡ãŸã§ãããã¯ãã¹ã¯ããŒã«ããŸãã ãã®æ©èœã«ãããã¹ãã¬ãŒãžããã»ã¹äžã«åžžã«ææ°ã®æ å ±ã衚瀺ããŸãã å°ããªèŸæžã§ã¯ããã®åäœãç¡å¹ã«ããããšãã§ããŸãïŒripãããã³ã«å šäœãä¿åãããŸãïŒããé·ãããã»ã¹ã§ã¯ããã®ãããªå¶éã«ããã¡ã¢ãªãç¯çŽãããåé·æ§ãåé€ãããŸãïŒç¹ã«å¿ èŠãªãã®ã¯ãã¹ãŠãã°ã«æžã蟌ãŸããããïŒã
ãããŠã
logError(evt)
é¢æ°ã¯ãã€ã³ã©ã€ã³ãã¬ãŒã ãŠã£ã³ããŠå ã®
error
ã€ãã³ãã«å¿çããããã«èšèšãããŠããŸãã 圌女ã¯ãŸã ç§ã®ããã«åããããšããªãã
çªç®ã
secureLow(str)
é¢æ°ã¯ãããŒããããããŒãžã®äœã¬ãã«ã®ããã¹ãåŠçãšããŠæ©èœããDSLèŠä»¶ãã€ãŸãç¹æ®æåããšã¹ã±ãŒãããŸãã äžæ¹ã
secureHigh
ã¯ããã¹ããããã¯ã®åŠçã«äœ¿çšãããŸãïŒäœåãªã¹ããŒã¹ã®åé€ãDSLèŸæžãšã³ããªã®æ¬æã®åãžã®ã€ã³ãã³ãã®æ¿å ¥ã空çœè¡ãä¿åããããã®ç¹å¥ãªæ¿å ¥ïŒã æåã®èšäºã®ã³ã³ãœãŒã«ããŒãžã§ã³ã§ã¯ã1ã€ã®é¢æ°ã§ç®¡çããŠããŸããããããã§ã¯æ å ±ã®æœåºãšåŠçã®æé ãå€å°å€æŽãããããããã®åŠçãåé¢ããå¿ èŠããããŸãã
saveDic()
-èŸæžã®ä¿åãã¿ã³ãã¯ãªãã¯ãããšèµ·åãããããã°ã©ã ã®äž»ãªæ©èœã ããã¯ãæåã®èšäºã®ã³ã³ãœãŒã«ã¹ã¯ãªããã®æåã®æé éšåã«ã»ãŒå¯Ÿå¿ããŠããŸãããããã€ãã®éãããããŸãã ãŸããä¿åããã»ã¹ã®ã€ã³ãžã±ãŒã¿å€æ°ããªã³ã«ããŠãã¡ã€ã³ãã¿ã³ã®å€èŠ³ãšåäœãå€æŽããŸããããã§ãããã»ã¹ã®äžæãçºçããŸãã ãŸãã圹å²ãå®è¡ãããã¡ã€ã«ãã£ãŒã«ããç¡å¹ã«ããŸãã 次ã«ã䜿ãæ £ãããã¡ã€ã«æäœãå®è¡ããŸãïŒã¢ãã¬ã¹äžèŠ§ã®å¯çšæ§ã確èªããèŸæžãäœæãã空çœãå ±åããã¢ãã¬ã¹äžèŠ§ãèªã¿åããä¿åãã°ã§æ¢ã«ä¿åãããŠããããŒãžãããå Žåã¯ãã®æ å ±ãèªã¿åããå¿ èŠã«å¿ããŠã¿ã¹ã¯ãççž®ããæçµçã«æåã®ããŒãžãèŠæ±ããŠä¿åãµã€ã¯ã«ãéå§ããŸããªã¹ãã ã³ãŒãã®ãã®ã»ã°ã¡ã³ãã«æ°ããè¿œå ãããã®ã¯ããµã€ã¯ã«ã®æäœã«å¿ èŠãªçµã¿èŸŒã¿ãã¬ãŒã ã®ãŠã£ã³ããŠã®ã€ãã³ããã³ãã©ãŒã®
load
ãš
error
ã¿ã¹ã¯ã§ãã
l
getDoc(url)
-埪ç°ã»ãŒããã§ãŒã³ã®éå§ãªã³ã¯ã ãã®é¢æ°ã¯ããµã€ã¯ã«ã®éå§æãšåããŒãžã®åŠçåŸã«åŒã³åºããŸãã å²ã蟌ã¿ã€ã³ãžã±ãŒã¿ã確èªããããšããå§ãŸããŸãããªã³ã«ãªã£ãŠããå Žåããµã€ã¯ã«ã¯äžæãããããã»ã¹ã¯åæ¢ããŸãã ãªãã«ãªã£ãŠããå Žåãæ £ã芪ããã æäœã®åŸããã¬ãŒã ã®ã¢ãã¬ã¹ãå€æŽããæ°ããããŒãžã匷å¶çã«ããŒãããŸãã
checkDoc()
é¢æ°ã¯ããã«ãã€ã³ãã©ãŠã¶ãŒã§ã®ããŒãžå šäœã®èªã¿èŸŒã¿ã«å¿çããŠèªåçã«éå§ããŸãã 圌女ã¯ããã®èšäºã®åã®ã¹ã¯ãªããããç§ãã¡ã«ããçšåºŠéŠŽæã¿ããããŸãã ããã°ã©ã ãŠã£ã³ããŠã®ã¡ã€ã³ãªããžã§ã¯ããšèªã¿èŸŒãŸããããŒãžã®ãŠã£ã³ããŠãæ··åããªãããã«ããå€æ°ãäœæããããšããå§ããŸãããã 次ã«ãããŒãžã³ã³ãã³ãã®æºåãã§ãã¯ã®äžè¬çãªãµã€ã¯ã«ã«åŸããŸãã ãã®çµæã«å¿ããŠãæ å ±ã®åŠçã«é²ãããããŒãžããªããŒãããããäžæãªãšã©ãŒã«é¢ããã¡ãã»ãŒãžã衚瀺ããŠçµäºããŸãã
n
processDoc(iWin, iDoc, iLoc, iter)
é¢æ°
processDoc(iWin, iDoc, iLoc, iter)
ã¯ãèŸæžããŒãžããŒã¿ã®æœåºãåŠçãä¿åãå«ãŸããŸãã ããã¯ãã³ãŒãã®å¯Ÿå¿ããã³ã³ãœãŒã«éšåãšæãç°ãªããŸã-èŸæžã®éããšãæ°ããããŒã«ã®æ©èœã®ããã§ãã
èŸæžãšã³ããªã®äžèŠãªéšåãã¯ãªãŒã³ã¢ããããããšããå§ããŸãã 次ã«ãããŒèŠçŽ ã決å®ãããã®ãã¹ãŠã®ããã¹ãéšåã®ãªã¹ããååŸããŸãïŒ XPathã®æ©èœã«ãããHTMLèŠçŽ ãåã蟌ãŸããŠããªãæçµçãªæéããã¹ãããŒããæ£ç¢ºã«ååŸã§ãããããããã¥ã¡ã³ãã®æ§é ãæãªãããšãªãã³ã³ãã³ããå€æŽã§ããŸãïŒããããŠããããã¹ãŠãå ¬éããŸãäžèšã®äœã¬ãã«ã¯ãªãŒãã³ã°ã®èŠçŽ -ãã®ããã«ãæåããèšäºã®ããã¹ãå šäœã§ç¹æ®æåã®ã¹ã¯ãªãŒãã³ã°ãååŸãããã®ããã¹ãã®äžã«DSLã¿ã°ã®è¿œå ããã§ã«ç°¡åã«è¡ãããšãã§ããŸãã
次ã«ãå°æ¥ã®èŸæžãšã³ããªã®ã¿ã€ãã«ãäœæããŸãã
ãããéåžžã®èŸæžããŒãžã§ããå Žåãç®çã®èŠçŽ ããã¡ã€ã³ã®èŠåºããæœåºããããã«ã¹ãã«ãªãã·ã§ã³ããã©ãŒã ãããã³æŽŸçèªãè¿œå ããŸãïŒèŸæžã®ã·ã§ã«ã§æ°èªã®åœ¢æ ãã¢ãã«åããã®ã¯é£ããå ŽåããããããèŸæžã®äœæ¥ãä¿é²ããããšããå§ãããŸãïŒãããã§ãNW.jsãæ¥ç¶ããäž»ãªçç±ã®1ã€ã§ããèŠçŽ ã®ããããã£ã«åããŠäŒããŸã
innerText
ãJSDOMã«ã¯ã¢ã¯ã»ã¹ã§ããŸããïŒçç±ã®èª¬æïŒãã©ã€ãã©ãªã«ã¯
textContent
ãè€éãªèŠçŽ ããããã¹ããæœåºããã®ã«éåžžã«äžäŸ¿ãªããããã£ãããããŸããã§ããïŒããŒã¯ã¢ããããã¹ãïŒHTMLã³ãŒãïŒãšè¡šç€ºããã¹ãã®æ··åã®ããïŒãç©ä»¶
innerText
è€éãªããŒãžã«å¿ èŠãªèªä¿¡ãäžããŠãããŸãïŒèŸæžèšäºããã®éšåã®æ§é ãäœã§ãããæçšãªèªã¿ãããããã¹ããæ£ç¢ºã«æœåºããŸãïŒã¯ãªããããŒããä»ããŠã·ã¹ãã æ段ã«ãã£ãŠããŒãžãŠã£ã³ããŠããæ å ±ãã³ããŒãããšåŸãããŸãïŒãåãããããã£ã䜿çšããŠãæœåºããåã«äœåãªããã¹ããäžæçã«é€å€ããããšãã§ããŸãïŒããšãã°ãèŠåºããªã¹ãã«åèªãã©ãŒã ãé 眮ããåã«ææ³ããŒã¯ãåé€ããŸãïŒïŒäžèŠãªèŠçŽ ãé衚瀺ã«ãããšããããã®ããã¹ãã¯ããããã£ã®æ§æã«ãªããŸããïŒãã®åŸã衚瀺ããªã³ã«ãããŽãã¯èšäºã®æ¬æã«æ®ããŸãïŒã
ã¿ã°ããŒãžã®1ã€ãåŠçãããšãã¿ã¹ã¯ã¯ããåçŽã«ãªããŸãããïŒãã®çµã¿åãããå é ã«ããã¡ã€ã³ã®èŠåºãã®ã¿ãä¿åããŸãããããã£ãŠãã¿ã°ã®äžè¬çãªãªã¹ãã¯ãïŒTags by Categoryããšããèªåœã®äžã§èŠã€ããããšãã§ããåäžã®ã¿ã°ã«ãã£ãŠçµåãããããããŒã®ãªã¹ãã¯ãïŒacronyms and abbreviationsããªã©ã®èªåœã®äžã§èŠã€ããããšãã§ããŸãã
次ã«ãèšäºã®äž»èŠéšåã®æœåºãšåçºè¡ãéå§ããŸããäºå段éã§ååŸãããã¿ã°ã®ãªã¹ãã«ãããããããã®åŠçèšç»ã®æŠèŠã瀺ããé©ããæå°éã«æããããšãã§ããŸããããã®åŠçã¯å±éºãªåŠ¥åæ¡ã§ããèšäºã®æ§é ã®äžéšãäºèŠããŠèªä¿¡ãæã£ãŠäœ¿çšã§ããŸãããä»ã®é©ãã«å¯ŸããŠå®å šã«ãã¬ã€ããããšããã§ããŸããã
æ¿å ¥ãšçœ®æã«ã¯ãã¡ãœããã䜿çšããŸã
insertAdjacentHTML()
ãããã¯ããŒã¯ã¢ããæ§é ã«é¢ããŠæãæ§ããã ããã§ãã
ãããã£ãŠããŸããã¯ãæ§é ã䜿çšããŠãèšäºã®å€§ããªãããã¯ãæäœããŸãããããã¯èŠçŽ ã®éã«ç©ºã®è¡ãæ¿å ¥ããããããã£
innerText
ãèŠæ±ããåŸãããèªã¿ãããããã¹ããååŸããŸããã¿ã°
hr
ãã·ã³ããªãã¯ç䌌è¡ã«çœ®ãæããŸããçµã¿èŸŒã¿ã®ãã¬ãŒã ïŒãããªããã€ãŒããªã©ïŒãèŠåã«çœ®ãæãããµã€ãäžã§ãããã«æ £ããæåŸ ãè¡ããŸãã
次ã«ãæ§é ãå°ãäžããŸããåŒçšç¬Šã¯åŒçšç¬Šã§å²ã¿ãŸãããªã¹ãããŒã«ãŒã®é 眮ãã©ã³ãã ããŒã¯ã¢ãããšã©ãŒãä¿®æ£ããŸãïŒããšãã°ãèšäºã®ããããã®æ¬äŒŒã¿ã°
smirk
ãš
flame
åŒçšãããã³ãŒãã®äžéšãã誀ã£ãŠããŒã¯ã¢ããã«å€ããã衚瀺ãããããã¹ãããæ¶ããŸãïŒãã䜿çšããŠããŒãžã«è¿œå ãããã³ã³ãã³ããããã¹ãã«è²Œãä»ã
CSS
ãŸã
innerText
ããããã£ãŠãããããã£ã«ã¯å«ãŸããŸããã
ãã®åŸãäžèŽããèŠçŽ ãDSLã¿ã°ã§ã©ãããå§ããŸãã
è²ãšãã©ã³ãã®å€ªãã§èŠåºããšå°èŠåºãã匷調衚瀺ããŸããã¿ã°èªäœã®ããããã£ã«ãã£ãŠããŸãã¯CSSã«ãã£ãŠãããŒãžäžã§åŒ·èª¿è¡šç€ºãããèŠçŽ ãæäœãšãã©ã³ãã®å€ªãã§éžæããŸããåæã«ãäºåã«äœããäºæž¬ããããšãã§ãïŒã¿ã°ãŸãã¯ã¯ã©ã¹ã®ååãæã€ã»ã¬ã¯ã¿ãŒã䜿çšããŠãªã¯ãšã¹ãããïŒããã®å Žã§äœããèŠã€ããå¿ èŠããããŸãïŒãã®ããã«ããã¹ãŠã®èŠçŽ ããªã¯ãšã¹ãããŸã
span
èšäºå ã§ãèšç®ãããã¹ã¿ã€ã«ãã©ã¡ãŒã¿ãŒã確èªããå¿ èŠã«å¿ããŠã¿ã°ãè¿œå ããŸããåæã«ãçžäºã«åããã©ãŒãããã¿ã°ãè€è£œããªãããã«ããŸãïŒHTMLãšã¯ç°ãªããããã¯DSLã§èš±å¯ãããŠããŸããïŒ-ãã®ãããåŠçãããèŠçŽ ãç¹å¥ãªå±æ§ã§ããŒã¯ããDOMããªãŒã§ãã®ååšã確èªããŸãã
次ã®ã¹ããã-ãããŠããã¹ãŠã®äžéããã³äžéã€ã³ããã¯ã¹ãããŒã¯ããŸããã
次ã«ããªã³ã¯ãåŠçããŸãããçŸåšã®ããŒãžãžã®èªåãªã³ã¯ããã®ãŸãŸä¿åããŸãããµã€ãå ãªã³ã¯ã¯ãDSL圢åŒã®èŸæžå ãªã³ã¯ã«ãªããŸãããå€éšãªã³ã¯ã¯ããããã¯ãŒã¯URLãšããŠèšèšãããŸããïŒåæã«ãDSL圢åŒãªã®ã§ããªã³ã¯ã®åã«èªã¿åãå¯èœãªããã¹ããä¿åããäžç·ãåŒãããšããŸãããããã¯ãŒã¯ã¢ãã¬ã¹ãããã¹ãã®åŸãã«é ããŠããã¹ãŠã1ã€ã®å šäœã«ãŸãšããããšã¯ã§ããŸããïŒã
ãŸããç»åãå€éšãªã³ã¯ã«çœ®ãæããŸããïŒãµã€ãäžã®ç»åã¯éåžžã«å€§ãããããèŸæžã«åã蟌ã¿ãŸããã§ãã-å¿ èŠã«å¿ããŠããŠãŒã¶ãŒã¯ãµã€ãã®ã¢ãã¬ã¹ã«ã¢ã¯ã»ã¹ã§ããŸãïŒã
æåŸã«ãåŒçšã匷調ããããã«è¿œå ã®ã€ã³ãã³ããæ¿å ¥ããŸããïŒã€ãŸããåæ°èªã®äœ¿çšäŸïŒã
çµæã¯1ã«2ã€ã§ããïŒãã¹ãŠã®ããŒãã³ã°ä¿åãããHTMLãããããŠãã®äžã«-ããŒãã³ã°DSLããåæã«ãããã®éã®ççŸãªãããããŠãããããã£ããªã¯ãšã¹ããããšã
innerText
ãHTMLã«æ®ãããŠããã®ã¯ãDSLã¿ã°ã§ã©ãããããæ§é åãããèªã¿åãå¯èœãªããã¹ãã§ãããèŸæžã³ãŒããšããŠçŽæ¥ä¿åããæºåãã§ããŠããŸãã
é¢æ°ã«ãã£ãŠæçµåŠçãè¡ãããšãå¿ããã«ãããããŒã®ãªã¹ãã®åŸã«èŸæžãã¡ã€ã«ã«æžã蟌ã¿ãŸã
secureHigh
ã次ã«ãä¿åãã°ãšããã°ã©ã ãŠã£ã³ããŠã®æ å ±ãããã¯ãæŽæ°ãïŒéåæã¹ã¯ãªããã«ãã£ãŠããŒãžã³ã³ãã³ãã圢æããããŸã§ã®æéã«é¢ãããããã°æ å ±ãè¿œå ããããšã«ããŸããïŒã次ã®å埩ã®åã«ããããŒã®ãªã¹ããã¯ãªã¢ããã¢ãã¬ã¹é åã確èªããŠæ¬¡ã®ããŒãžãèŠæ±ãããããµã€ã¯ã«å®äºã
ã«ã€ããŠãæ©èœ
endSaving()
ããã¯ãä¿åãµã€ã¯ã«ã®çµäºæããŸãã¯ãŠãŒã¶ãŒã®èŠæ±ã§ã®ãšã©ãŒã®çµæãšããŠããŸãã¯ãšã©ãŒã®åŸã«åŒã³åºãããŸãããã®äžã§ããã¡ã€ã«èšè¿°åãéããå ¥å/åºåãã¹å€æ°ãã¯ãªã¢ããäžèŠã«ãªã£ãã€ãã³ããã³ãã©ãŒããã£ã³ã»ã«ããã€ã³ã¿ãŒãã§ã€ã¹èŠçŽ ã«åæãã©ãŒã ãè¿ããŸããçµäºãã©ã°ããªã³ã®å Žåãé¢æ°ã®æåŸã«åŒ·å¶çã«ã¡ã€ã³ãŠã£ã³ããŠãéããŸãã
4.ãªãœãŒã¹
ãã§ã«è¿°ã¹ãããã«ãNW.jsã®ããã°ã©ã ã¯ããŠãŒã¶ãŒããŒã¿ã®ã·ã¹ãã ãã©ã«ããŒã«ããã©ãŠã¶ãŒã®ãããã¡ã€ã«ãã©ã«ããŒã«äŒŒããµããã©ã«ããŒãäœæããŸããç¹ã«ãåãã¿ã€ãã®ããŒãžã®èªã¿èŸŒã¿ãé«éåãããã£ãã·ã¥ãã¡ã€ã«ãæ ŒçŽãããšæ³å®ã§ããŸããç§ã®å ŽåãèŸæžãä¿åããåŸã®ãã®ãµããã©ã«ããŒã¯138ã¡ã¬ãã€ãããããŸãããäœæ¥ã®æåŸã«ãå®å šã«åé€ã§ããŸã-次åããã°ã©ã ãèªåçã«äœæãããšãïŒæåã®èµ·åã«æéãããããªãå ŽåïŒã
ã¹ã¯ãªããã¯ãèŸæžã1æéåä¿åãããã®éã«ãã¹ãŠã®ãªãœãŒã¹ã§ã»ãŒ3äž5åããŒãžãåŠçããŸããããããã»ããµãŒã¯å€§å¹ ã«ããŒãããŸããã§ããããã®ã¹ã¯ãªãŒã³ã·ã§ãããããã¡ã¢ãªæ¶è²»éãšããã°ã©ã ã®æåŸãŸã§ã®èªã¿åã/æžã蟌ã¿ããªã¥ãŒã ãèŠç©ããããšãã§ããŸãã
èŸæžïŒ2016幎2æ16æ¥æç¹ã®ãµã€ãïŒã¯ãrghost.netããã³drive.google.comã§å ¥æã§ããŸããã¢ãŒã«ã€ãã«ã¯ãUTF-8ããã³UTF-16ã§ãšã³ã³ãŒããããDSLãœãŒã¹ã®ã»ããABBYY Lingvoã®ææ°ã®3ã€ã®ããŒãžã§ã³çšã«LSDã§ã³ã³ãã€ã«ãããèŸæžãå«ãŸããŠããŸããèŠåºãïŒ5827; ã«ãŒãïŒ3419; 䜿çšäŸïŒ9311ã
ãæž èŽããããšãããããŸããã