Wikiæ§æï¼Wikiè¨æ³ã®ã«ã¼ã«ï¼ã¯å±±ã«ããã«ã¤ããã¤ããã¾ãã
ãæ°ãã«ãã1ã¤æ§æãä»ãå ãã¦ãå¥ã«ããã ãããã¨èããããããã以ä¸æ°ããæ§æãå¢ããã¦ã¯ãããªããã¨èãããã¯äººã«ããã§ããããåã¯ããéç´ã»çµ±åãã¦Wikiæ§æãæ¸ããã¹ãã ãã¨èãã¦ãã¾ããããã§ãæ¨æºçãªWikiæ§æã¨ãã¦WikiCreole 1.0ãæ¡ç¨ããKuwataãããCreoleãã¼ã¶ã¼ãå®è£ ãã¦ãã¾ãã
ã¨ããããWikiCreoleã®æ§æè¨è¿°ãææ§éãã¦ãµãããªããããã®ã§ããKuwataãããã¤ã©ã¤ã©ãã¦ããæ§åããã®ãããªç¶æ³ã¯WikiCreoleã«éãã¾ãããããã¦ãã®Wikiæ§æã®è¨è¿°ã¯ã¤ã¤ã«ã²ã³ã§ã -- ããã£ãä»æ§æ¸ãããã ãã§ãã·ãªã®ã§ããã¤ã¤ã«ã²ã³ãªä»æ§ã«é©åããï¼conformantãªï¼å¦çç³»ãä½ãã¨è¨ããã¦ããããå°ãã¾ãããªã
WikiCreoleä»æ§ã®ææ§ãã¯ä»¥åã«ã話é¡ã«ãããã¨ãããã¾ãã
- ã¯ã¬ãªã¼ã«Wikiãã¼ã¯ã¢ããã®ææ§æ§ãå°ãå°ã ï¼2010å¹´3æï¼
- ã«ã¸ã¥ã¢ã«éããWikiCreoleãå°ãã ãå³å¯ã« ï¼2010å¹´4æï¼
ã©ã¡ãã®è¨äºã®ã¿ã¤ãã«ã«ããå°ãããå ¥ã£ã¦ã¾ãããä»åã¯ãå°ããã§ã¯ãªãããã£ãããçªã£è¾¼ãã§è©±é¡ã«ãã¾ããã§ãæ®å¿µãªãããå½¢å¼çãªæ§æè¨è¿°ã«ã¯è³ã£ã¦ãã¾ãã*1ã
å 容ï¼
- æ§é çããã¹ãå¦çã®åºæ¬æ¦å¿µ
- æ§æã®ä»æ§ã§ã¯ä½ã決ããã¹ãã åé¢ã±ã¼ã¹ã¹ã¿ãã£
æ§é çããã¹ãå¦çã®åºæ¬æ¦å¿µ
æ£ç¢ºãªè¨è¿°ãã³ãã¥ãã±ã¼ã·ã§ã³ãããã«ã¯ãã¾ãè¨èããã¡ãã¨å®ç¾©ãã¦ããå¿ è¦ãããã¾ãã次ã®ãããªè¨èã®ï¼ä»åã®è©±é¡ã«ãããï¼æå³ãå®ç¾©ãã¾ããèªç¶è¨èªã®è¨è¿°ãè£ãããã«BNFãä½µç¨ãã¾ãã
- æåãæååãããã¹ããè¦ç´ ãå 容ã空ç½ãåºåãè¨å·ããã¼ã¿æåãç ´æ£æåãæ¹è¡ãè¡é ãè¡æ«ãè¡ãå®å ¨è¡ãä¸å®å ¨è¡ã空è¡ãè¡é 空ç½ãè¡æ«ç©ºç½
æå
以ä¸ã§ãæåãã¨è¨ã£ãå ´åãããã¯ã¦ãã³ã¼ãä»æ§ã§å®ç¾©ãããå°åå¯è½æåã¨è¥å¹²ã®ç¹æ®æåï¼å¾è¿°ï¼ãæå³ãã¾ããWikiãã¼ã¯ã¢ãããããããã¹ãã¯ãã¾ãâæåã®åâã¨ãã¦èªèããã¾ããæåããä½æ°´æºã®ã¬ã¤ã¤ã¼ããã¤ãã¨ããããã«ã¤ãã¦ã¯èãã¾ããããããã£ã¦ãæåã¨ã³ã³ã¼ãã£ã³ã°ã¹ãã¼ã ã«ã¯è¨åãã¾ããã
ç¹å®ã®æåã表è¨ããã«ã¯ããã®æåèªä½ãã·ã³ã°ã«ã¯ã©ã¼ãã§å²ãããã¦ãã³ã¼ãã®16é²æåçªå·ã使ãã¾ããä¾ãã°ã'a' ã¾ã㯠#x61 ï¼U+0061ã¨åãï¼ã®ããã«æ¸ãã¾ãã16é²æåçªå·ã使ãè¨æ³ã¯ã'&'ã¨';'ã§æãã§ãããã°(X)HTMLã®ã¢ã³ããµã³ãã¨ã¹ã±ã¼ãã«ãªãæ¸ãæ¹ã§ãã
è¥å¹²ã®ç¹æ®æåã¨ã¯ã#x09ï¼ã¿ãï¼ã#x20ï¼ã¹ãã¼ã¹ï¼ãæ¹è¡ã§ããæ¹è¡ã«ã¤ãã¦ã¯å¾ã§è©³ããè¿°ã¹ã¾ãã
Char ::= {/* #x09, #x20, æ¹è¡, ã¦ãã³ã¼ãä»æ§ã§å®ç¾©ãããå°åå¯è½æå */}
æååã¨ããã¹ã
ãæååãã¨ãããã¹ããã«æå³ã®éãã¯ããã¾ãããã©ã¡ãããæåã®æéåï¼ãªãã¢ã·ã¼ã±ã³ã¹ï¼ã§ããé°å²æ°çã«ä½¿ãåãã¦ããã ãã§ããã¡ã¢ãªå ã«å¼µãä»ããã·ã¼ã±ã³ã¹ã ã¨æååï¼ã¹ããªã³ã°ï¼ã¨å¼ã³ããã¡ã¤ã«ããã¤ãããããã¯ã¼ã¯ã¹ããªã¼ã ã¨ãã¦ä¸ããããã·ã¼ã±ã³ã¹ã ã¨ããã¹ãã¨å¼ã³ããæ°ããã¾ãããæ°ããããã ãã§ããã以ä¸ã«åºå¥ããæ ¹æ ã¯ããã¾ããã
String ::= Char* Text ::= Char*
æåã¨æåå
æ§æè¨è¿°ã®ããã¯ãåä¸ã®æåã¨é·ã1ã®æååãåºå¥ããå¿ è¦ã¯ã»ã¨ãã©ããã¾ãããååã¨ãã¦ã¯ãåä¸ã®æåã¯ã·ã³ã°ã«ã¯ã©ã¼ããæååã¯ããã«ã¯ã©ã¼ãã§å²ãè¨æ³ã使ãã¾ããã'a' 㨠"a" ãæ··åãã¦ãåé¡ã¯èµ·ããªãã§ãããã
次ã®BNFå®ç¾©ã¯ãã©ããåãæ§æãå®ç¾©ãã¦ãã¾ãã
abc ::= "abc" abc ::= 'a' 'b' 'c' abc ::= "a" "b" "c" abc ::= 'a' "bc" abc ::= #x61 #x62 #x63 abc ::= #x61 "bc"
è¦ç´ ã¨å 容
Wikiãã¼ã¯ã¢ãããããããã¹ãã¯ãXHTMLã«å¤æãããã¨ãåæã«ãã¾ããããã§ãXMLã®è¦ç´ ã«å¯¾å¿ããããã¹ãç¯å²ï¼é£ç¶ããé¨åï¼ããè¦ç´ ãã¨å¼ã¶ãã¨ã«ãã¾ããããã«ãXHTMLã®preè¦ç´ ã«å¤æãããã¹ãWikiã®ããã¹ãç¯å²ããpreè¦ç´ ãã¨å¼ã¶ãããªãç¨èªã®æµç¨ï¼ä¹±ç¨ãï¼ï¼ãè¡ãªãã¾ãã
XMLã§ã¯ãè¦ç´ ããéå§ã¨çµäºã®ç¹æ®æååï¼éå§ã¿ã°ã¨çµäºã¿ã°ï¼ãé¤ããé¨åãå 容ã§ãããå 容ãã¨ããè¨èãWikiã«å¯¾ãã¦ä½¿ç¨ãã¾ãããã ãããã¿ã°ãã¨ããXMLã®è¨èã¯Wikiã«ã¯ä½¿ãã¾ããã
空ç½
ã空ç½ãï¼space, blank, whitespaceï¼ã¨ããè¨èãææ§ã«ä½¿ããã¦æ··ä¹±ãã¾ããã¾ããããã§ã¯ãSPï¼#x20ï¼ãTABï¼#x09ï¼ãSTSï¼SP-TAB Stringï¼ã¨ããè¨å·ã使ã£ã¦èå¥ãããã¨ã«ãã¾ãã
SPãTABã«æ¹è¡ãå«ãã¦ç©ºç½ï¼ãã¯ã¤ãã¹ãã¼ã¹ï¼ã¨å¼ã¶ãã¨ãå¤ãã®ã§ãããWikiã§ã¯æ¹è¡ãç¹å¥æ±ãããã®ã§ãæ¹è¡ã空ç½ã®ä¸ç¨®ï¼ã¾ãã¯ä¸é¨ï¼ã¨ã¯å¼ã°ãªããã¨ã«ãã¾ãã
SP ::= #x20 TAB ::= #x09 STS ::= (SP | TAB)+ /* 空åã¯å«ããªã */
åºåãè¨å·
Wikiå¦çç³»ãèªèãã¹ãç¹æ®æååãåºåãè¨å·ã¨å¼ã³ã¾ããé常ãWikiãã¼ã¯ã¢ãããã¨å¼ã°ãããã®ã¯ãåºåãè¨å·ã®ãã¨ã§ããããåºåãè¨å·ã¯ã次ã®3種ã«åé¡ãã¾ãã
- éå§è¨å· -- è¦ç´ ã®éå§ã示ãã¾ãã
- çµäºè¨å· -- è¦ç´ ã®çµäºã示ãã¾ãã
- åé¢è¨å· -- å 容ãè¤æ°ã®é¨åããæ§æãããã¨ãã®å¢çã示ãã¾ãã
WikiCreoleã®ãªã³ã¯ï¼ã¢ã³ã«ã¼ãXHTMLã®aè¦ç´ ã«å¯¾å¿ï¼ã®æ§æã¯ã[[ï¼URLï¼|ï¼ã¢ã³ã«ã¼ããã¹ãï¼]] ã§ããããã®ä¾ã§ã¯ï¼
- '[[' ã¯éå§è¨å·
- '|' ã¯åé¢è¨å·
- ']]' ã¯çµäºè¨å·
ã¨ãªãã¾ãã
Wikiã§ãã£ãããªãã¨ã¯ãåºåãè¨å·ãæèã«ä¾åãããã¨ã§ããããæèã«ãããåºåãè¨å·ã¯ãå¥ãªæèã§ã¯åºåãè¨å·ã«ãªããªããã¨ãå¤ãã®ã§ãã
ãã¼ã¿æåã¨ç ´æ£æå
Wikiå¦çç³»ãããã®ã¾ã¾åºåã«ãã¼ã¿ã¨ãã¦æ¸ãåºãæåããã¼ã¿æåã¨å¼ã¶ãã¨ã«ãã¾ããåºåãè¨å·ã®ä¸é¨ã§ã¯ãªãã®ã«ããã¼ã¿æåã§ããªããããªæåãããã¾ãããã®ãããªæåã¯Wikiå¦çç³»ãæ¨ã¦ã¦ãã¾ãã®ã§ãç ´æ£æåã¨å¼ã¶ãã¨ã«ãã¾ããç ´æ£æåã®ä¾ã¯ãã¤ã³ãã³ãã®ããã®SPï¼#x20ï¼ãTABï¼#x09ï¼ã§ããã¾ããé£ç¶ãããã¼ã¿æåã®ä¸¦ã³ããã¼ã¿æååãé£ç¶ããç ´æ£æåã®ä¸¦ã³ãç ´æ£æååã¨å¼ã¶ãã¨ã«ãã¾ãã
ãã¼ã¿æåï¼åï¼ãç ´æ£æåï¼åï¼ã¨ããæ¦å¿µãæèã«ä¾åãã¾ãã段è½å ã§ã®è¡é 空ç½ï¼æ£ç¢ºãªå®ç¾©ã¯å¾è¿°ï¼ã¯ç ´æ£æååã§ãããpreè¦ç´ å ã®è¡é 空ç½ã¯ãã¼ã¿æååã§ãã
æ¹è¡
Wikiæ§æã§ã¯æ¹è¡ãéè¦ãªæå³ãæã¡ã¾ããæ¹è¡ã®è¡¨ç¾ã¯OSï¼ãã©ãããã©ã¼ã ãã¨ã«éãã¾ãããªãããã®æ£è¦åããã¦ãããã¨ãä»®å®ãã¦ãæ¹è¡ã表ãæååãNLï¼new-lineï¼ã¨è¡¨è¨ãã¾ããNLã®å®ä½ã1æåã§ããã¨ã¯éãã¾ããã#x0D, #x0A ã®2æåã®çµã¿åããï¼CRLFï¼ããç¥ãã¾ãããããã以ä¸ã§ã¯ãæ¹è¡ã¯ãããã1æåã§ãããã®ããã«æ±ãã¾ããLFï¼#x0Aï¼ãæ¹è¡ã§ããç°å¢ã§ã¯ãå®éã«æ¹è¡ã¯1æåã§ãã
æ¹è¡ã¯ãå¾è¿°ããè¡é ãè¡æ«ã¨ã¯ç°ãªãæ¦å¿µã§ãå®å¨ãããã¼ã¿ã§ãã
è¡é ãè¡æ«ãè¡
è¡é ãè¡æ«ã¯ãããã¹ãï¼æåã®åãã¹ããªã¼ã ï¼ã«å«ã¾ããæåãæååãæå³ãã¾ãããããã¹ãå ã®ä½ç½®ï¼positionï¼ã§ããããã§ãããä½ç½®ãã¯ãããã¹ãå ¨ä½ã®æåã¨æå¾ãæåã¨æåã®ããã ã示ãçªå·ã¨èãã¦ãã ãããããã¹ããnåã®æåãå«ããªãã0ããnã¾ã§ã®(n + 1)åã®ä½ç½®ãåå¨ãã¾ãã
2æåã®ããã¹ããªãã3ã¤ã®ä½ç½®ãæã¤ã _ (æå)_(æå)_ ^ ^ ^ | | 3çªç®ã®ä½ç½®ï¼çªå·ã¯2ï¼ | 2çªç®ã®ä½ç½®ï¼çªå·ã¯1ï¼ æåã®ä½ç½®ï¼çªå·ã¯0)
NLï¼æ¹è¡ï¼ãåå¨ããã¨ãNLã®ç´åã®ä½ç½®ï¼ç´åã®æåã§ã¯ãªãï¼ï¼ãè¡æ«ä½ç½®ãNLã®ç´å¾ã®ä½ç½®ï¼ç´å¾ã®æåã§ã¯ãªãï¼ï¼ãè¡é ä½ç½®ã«ãªãã¾ããNLãåå¨ããªãã¦ããããã¹ãï¼ãã¡ã¤ã«ã¨æã£ã¦ããã§ãï¼å ¨ä½ã®å é ï¼ä½ç½®0ï¼ã¯è¡é ä½ç½®ãããã¹ãå ¨ä½ã®æå¾ï¼ä½ç½®nï¼ã¯è¡æ«ä½ç½®ã¨ãªãã¾ãã
è¡é ï¼¼è¡æ«ã®å®ç¾©ãããè¡é ãã次ã®è¡æ«ã®ç¯å²ã«NLã¯åå¨ã§ãã¾ãããè¡é ãã次ã®è¡æ«ã®ç¯å²ããè¡ãã¨å¼ã³ã¾ãï¼ ã¨ããã®ãè¡ãã®å®ç¾©ã¯ã¾ã ææ§ã§ããã次ã®è¡æ«ããããããªãã¦ãªãããã§ããä¾ãã°ãã©ããªããã¹ãã§ãä½ç½®0ã¯è¡é ã§ãããã¦ãã次ã®è¡æ«ãã¯ã©ãã§ãããï¼
ä½ç½®ã®å¤§å°ãä½ç½®çªå·ã®å¤§å°ã¨èãã¦ä¸çå·ï¼ãï¼ãããâ¦ãï¼ã使ããã¨ã«ãã¾ããä¸çå·ã使ã£ã¦ã次ã®è¡æ«ããå®ç¾©ãã¾ãã
- ä½ç½®nã®æ¬¡ã®è¡æ«ï¼ä½ç½®ï¼ã¯ãnâ¦k ã§ããè¡æ«ï¼ä½ç½®ï¼ã§ãå¤ãæå°ã®ãã®ã§ããã
ãè¡é ããè¡æ«ãã次ã®è¡æ«ãã®å®ç¾©ããã次ãè¨ãã¾ã*2ã
- ã©ããªè¡é nã«å¯¾ãã¦ããä¸æçã«æ¬¡ã®è¡æ«ãåå¨ããã
ããã«ãã£ã¦ãå ã»ã©ã®ãè¡ãã®å®ç¾©ãåçåããã¾ãã
æ£è¦è¡¨ç¾ã§ã¯ãè¡é ã'^'ãè¡æ«ã'$'ã¨ããã¡ã¿æåã§è¡¨ãã¾ãããããã§ã¯è¡é ãBOLï¼beginning of lineï¼ãè¡æ«ãEOLï¼end of lineï¼ã§è¡¨ãã¾ããNLã¨ã¯éããBOLã¨EOLã«ã¯ãã¼ã¿ãä¼´ããªããã¨ã«æ³¨æãã¦ãã ããã
BOLãEOLã¯æåã§ãæååã§ãããã¾ããããBNFå®ç¾©å ã§ä½¿ã£ã¦ãããã¨ã«ãã¾ãããã
LineContent ::= (Char - NL)* /* ãã¤ãã¹ã¯å·®éå */ Line ::= BOL LineContent EOL
å®å ¨è¡ã¨ä¸å®å ¨è¡
å ã®ãè¡ãã®å®ç¾©ã«ããã¨ã空ãªããã¹ãï¼é·ã0ã®ããã¹ãï¼ã§ã空ãªè¡ãæã¡ã¾ãã空ããã¹ãã®è¡æ°ã¯1ã§ã -- 常èçãªè¡æ°æ¦å¿µã¨é£ãéãã¾ããå¥ã«é£ãéã£ã¦ãããã®ã§ããããã®å·®ã¨çç±ãããããªããªãã¨æ°æã¡æªãã§ãããã
è¡ã«ã¯ãNLã§çµç«¯ããè¡ã¨ããã§ãªãè¡ï¼ããã¹ãã®çµäºã«ããçµãã£ã¦ãã¾ã£ãè¡ï¼ãããã¾ãããã®2種ãåºå¥ããé©å½ãªè¨èãè¦å½ãããªãã®ã§ãã¨ãããã次ã®è¨èã使ã£ã¦ããã¾ãã
- NLã«ããçµç«¯ããè¡ãå®å ¨è¡ã¨å¼ã¶ã
- NLã«ããçµç«¯ãã¦ãªãè¡ãä¸å®å ¨è¡ã¨å¼ã¶ã
ä¾ãã°ãNLãå ¨é¨æ¨ã¦ã¦ãâæååã®é åâã¨ãã¦ããã¹ããä¿æããå ´åãæå¾ã®æååããå®å ¨è¡ãä¸å®å ¨è¡ããã®ãã©ã°æ å ±ãæã£ã¦ãªãã¨ãã¨ã®ããã¹ããåç¾ã§ãã¾ããã
å®å ¨è¡ï¼ä¸å®å ¨è¡ã¨ããè¨èã¨ãè¡ã«æåãå«ããã©ããã§è¡ãåé¡ããã¨æ¬¡ã®ããã«ãªãã¾ãã
- 空ã§ãªãå®å ¨è¡ ï¼ç´å¾ã®æ¹è¡ãå«ãã¦ã®é·ãã2以ä¸ï¼
- 空ãªå®å ¨è¡ ï¼ç´å¾ã®æ¹è¡ãå«ãã¦ã®é·ãã1ï¼
- 空ã§ãªãä¸å®å ¨è¡ ï¼ç´å¾ã«æ¹è¡ããªããé·ãã1以ä¸ï¼
- 空ãªä¸å®å ¨è¡ ï¼é·å¾ã«æ¹è¡ããªããé·ãã0ï¼
ã空ãªä¸å®å ¨è¡ãããã¼ã¿ã¨ãã¦æ±ãå¿ç¨ãããã§ããããï¼ åã¯å©ç¨å ´é¢ãæãã¤ããªãã§ããå©ç¨ä¾¡å¤ããªãã®ã§ãããã¯è¡ã¨ãã¦ã¯èªããªããã¨ã«ãã¾ããããããã¨ã空ããã¹ãã«åå¨ããã空ãªä¸å®å ¨è¡ãã¯ã«ã¦ã³ãããããè¡æ°0ã¨ãªãã¾ãã
空è¡
ã空ç½ãã¨åæ§ãã空è¡ãã¨ããè¨èãå®ç¾©ããã£ããããªãã¨æ··ä¹±ãã¾ãã空è¡ã®å®ç¾©ã«ã¯2ã¤ã®å¯è½æ§ãããã§ãããã
BlankLine_1 ::= BOL EOL BlankLine_2 ::= BOL (SP|TAB)* EOL
ã»ã¨ãã©ã®å ´åãBlankLine_2ã空è¡ã®å®ç¾©ã«æ¡ç¨ãã¦ããã¨æãã¾ãã
è¡é 空ç½ãè¡æ«ç©ºç½
è¡é 空ç½ã¨è¡æ«ç©ºç½ã¯ãããããããè¡é ï¼BOL)ããå§ã¾ããããè¡æ«ï¼EOL)ã¾ã§ç¶ããSTSï¼SPã¾ãã¯TBAã®åï¼ã§ãããããã次ã®BNã§Få®ç¾©ã§ããã§ãããã
LeadingSTS ::= BOL (SP | TAB)+ TrailingSTS ::= (SP | TAB)+ EOL
ãããé常ã¯ããé·ããæ大ã®ãã¨ããæ¡ä»¶ãä»ãã¾ããSPã§ãTABã§ããªãæåã«åºä¼ãã¾ã§STSã伸ã°ããã£ãé¨åæååãè¡é 空ç½ãè¡æ«ç©ºç½ã§ããè¡ã«ãSPã¨TABããå«ã¾ããªãã¨ãã¯ãè¡é 空ç½ã¨è¡æ«ç©ºç½ã®åºå¥ã¯ãªããªã£ã¦ãã¾ãã¾ããã§ããããè¡é 空ç½ãè¡æ«ç©ºç½ã¨ããè¨èã¯ãè¡ãé空è¡ã®ã¨ãã ãæå³ãæã¤ã¨èããã»ããããã§ãããã
æ§æã®ä»æ§ã§ã¯ä½ã決ããã¹ãã åé¢ã±ã¼ã¹ã¹ã¿ãã£
æ§æã®ä»æ§ã§ã¯ãä¸ããããããã¹ãã®æ§æçãªæ£ããï¼well-formednessï¼ã¨æå³çãªæ£ããï¼validityï¼ãå®å ¨ã«å¤å®ã§ããã ãã®æ å ±ãä¸ããªãã¦ã¯ãªãã¾ãããWikiã§ã¯ãæå³çãªæ£ããã¯åé¡ã«ãªããªãï¼ã§ããªãï¼ã®ã§ãæ§æçãªæ£ããã ãã«ãã©ã¼ã«ã¹ãã¾ãããã
æ§æçãªæ£ãããå¤å®ã§ããã¨ãã¦ããã®å¾ã®å¦çãä»æ§ã§å®ããã¹ãã§ãã
- æ§æçã«æ£ããã¨ãã®å¦ç
- æ§æçã«æ£ãããªãï¼ã¨ã©ã¼ã®ï¼ã¨ãã®å¦ç
Wikiã®å ´åãé常ã®æ§æ解æã¨éãã®ã¯ãæ§æã¨ã©ã¼ã«å¯¾ãã対å¦æ³ã§ããä¸è¬çã«ãæ§æã¨ã©ã¼ãçºè¦ããã¨ãã®å¦çç³»ã®åä½ã¯æ¬¡ã®ããããã§ãããã
- å¦çãä¸æãã¦ãå©ç¨è ï¼äººéï¼ã«ã¨ã©ã¼ãå ±åããã
- ã¨ã©ã¼ã®ä¿®å¾©ã試ã¿ãã
- ã¨ã©ã¼ãç¡è¦ãã¦å¦çãç¶è¡ããã
ããã°ã©ãã³ã°è¨èªã®å¦çç³»ãªã©ã¯ãæ§æã¨ã©ã¼ã許容ãããã¨ã¯çµ¶å¯¾ã«ã§ããªãã®ã§ãä¸æãã¦ã¨ã©ã¼ãå ±åãã¾ããWikiå¦çç³»ã®å ´åãä¸æãã¨ã©ã¼å ±åãã§ããªãå ´åãå¤ãã§ãããããããªãã¨ãã¨ã©ã¼ã修復ãããï¼ããã¦ãã¯ç¡çï¼ãã¨ã©ã¼ããã£ã¦ããããã¼ãªåºåãã§ã£ã¡ä¸ãã¦ããã¹ãã®æå¾ã¾ã§å¦çãç¶è¡ããããããã¾ããã
ã¨ã©ã¼å¦çãã¨ã©ã¼å ±åã®å ·ä½çãªæ¹æ³ã¯å¦çç³»ä¾åã§ããã®ã§ãããã¨ã©ã¼æã«ä½ããã¹ããã®æ¹éãããã¯ä»æ§ã§å®ãã¦ãªãã¨å®è£ è ãéæ¹ã«ããã¾ãããã¡ãããæ§æçã«æ£ããã£ãã¨ãã®å¦çï¼Wikiã§ã¯XHTMLåºåï¼ã®æ£ç¢ºãªå®ç¾©ãå¿ è¦ã§ã*3ã
以ä¸ã§ã¯ãWikiCreole 1.0 ã«é¢ãã¦ãæ§æçæ£ãããå¤æã§ãããï¼ æ§æçã«æ£ããã¨ãï¼æ£ãããªãã¨ãã®å¦çãè¿·ããªãå®è£ ã§ããã®ããè¦ã¦ãããã¨ã«ãã¾ãã
è¦åºãã®å¦ç
WikiCreoleã®è¦åºããã¼ã¯ã¢ããï¼http://wikicreole.org/wiki/Creole1.0#section-Creole1.0-Headingsï¼ã¯ãè¡é ã®ã¤ã³ã¼ã«è¨å·ã®é£ç¶ãéå§è¨å·ã¨ãªãã¾ãã"="ãªãXHTMLã®h1è¦ç´ ã"=="ãªãh2è¦ç´ ã«å¤æããã¾ããä»æ§ã®ä¸é¨ãå¼ç¨ãã¾ãã大æååã«ãã強調ã¯æªå±±ã«ãããã®ã§ãã
- Whitespace is ALLOWED before the left-side equal signs
- Closing (right-side) equal signs are OPTIONAL, doN'T NEED to be balanced
- ONLY whitespace characters are PERMITTED after the closing equal signs.
- Markup parsing is OPTIONAL within headings.
ã¾ããWhitespaceã®å®ç¾©ãããã¾ãããæèãã次ã®ããã«æ¨æ¸¬ã§ããã ãã§ãã
Whitespace ::= (SP | TAB)+
equal signs ã¯è¦åºããã¼ã¯ã¢ããã®ãã¨ã§ããããã次ã®ããã§ããããï¼WikiCreoleä»æ§ã§ã¯ãè¦åºãã¯3ã¬ãã«ä»¥ä¸ããã°ããã¨è¦å®ãã¦ãã¾ãã6ã¬ãã«ã¯XHTMLã«åãããã ãã§ããï¼
EqualSigns ::= '='{1,6}
{1,6}ã¯ï¼å以ä¸6å以ä¸ã®ç¹°ãè¿ãã®ãã¨ã§ããå¾åã«æ¸ãä¸ããªãï¼
EqualSigns ::= ("=" | "==" | "===" | "====" | "=====" | "======")
å ¨ä½ãBNFã§å®ç¾©ããã¨ï¼
Heading ::= BOL Whitespace? EqualSigns HeadingContent EqualSigns? Whitespace? EOL
ãããåé¡ãããã¾ãã
- Whitespaceã¯ãã³ãã« (SP | TAB)+ ãªã®ãï¼ å ¨è§ã¹ãã¼ã¹ãã¯ããã¨ããã¦ãã³ã¼ãã®â空ç½çâãªæåã¯ã©ããªã®ãã
- å·¦å´ã«ã6åãè¶ ããã¤ã³ã¼ã«è¨å·ãåºç¾ããã¨ãã¯æ§æã¨ã©ã¼ããããã¨ãã¤ã³ã¼ã«ã6åã¨ã¿ãªãã¦å¦çãã¹ããã
- 6å以ä¸ã®ã¤ã³ã¼ã«ã6ååã¨ã¿ãªãã¨ãã¦ãä½åãªã¤ã³ã¼ã«ã¯æ¨ã¦ãã®ãããã¼ã¿æåã¨ãã¦åºåã«åãåºãã®ãã
- å³å´ã®ãªãã·ã§ãã«ãªEqualSignsã®æååæ°ã®å¶éã¯ã©ããï¼ ãªãã·ã§ãã«ã ããã©ã³ã¹ããå¿ è¦ããªããªããä½åã§ã許ãããã®ã§ã¯ãªããã
- å·¦å´ã®EqualSignsã®ç´å¾ã«Whitespaceã¯ä¸è¦ãªã®ãã
- å·¦å´ã®EqualSignsã®ç´å¾ã®Whitespaceã¯ãå ¨ã¦æ¨ã¦ãããã®ããããã¨ãHeadingContentã®ä¸é¨ã¨ãªãã®ãããããã¯æåã®Whitespeceæå以å¤ã¯HeadingContentã®ä¸é¨ã¨ãªãã®ãã
HeadingContentããªãã§ãããï¼ã©ããªãã¹ãã¯ãä»æ§ããã¯ä¸ååããã¾ããã"Markup parsing is OPTIONAL within headings." ãªã®ã§å®è£ ä¾åããåæã«æ±ºãã¦ãããã£ã¦ãã¨ã§ããããä»®ã«ãHeadingContentã¯åãªãæååã§ãã¼ã¯ã¢ãããèªèããªãã¨ãã¾ãããã®ä»®å®ã§æ¬¡ã®äºä¾ãèãã¦ã¿ã¾ãã[BOL]ã¨[EOL]ã¯è¡é ã¨è¡æ«ã表ãè¨å·ã¨ãã¾ãã
- [BOL]=heading[EOL]
- [BOL]= heading = [EOL]
- [BOL]= heading = [EOL]
- [BOL]= heading = = [EOL]
- [BOL]= heading = garbage[EOL]
1çªç®ã®ä¾ã®ãã¤ã³ã¼ã«ã®å³ã«SPãªããæ£ããã®ãã©ããã¯åããã¾ãããæ¢åã®å®è£ ã®ä¸é¨ã§ã¯SPãå¿ è¦ãªããã§ããããç®æ¡æ¸ããéå§ããã*ããã**ããã***ããªã©ã®ç´å¾ã®ç©ºç½ã¯ãªãã¦ããã*4ã®ã§ãã=ãã==ãã===ããªã©ãåããããªæ°ããã¾ãã
2çªç®ã®ä¾ã¯æ§æçã«æ£ãããå³ã®ã¤ã³ã¼ã«ã¨SPã¯æ¨ã¦ãããã§ããããHeadingContentã" heading "ã"heading "ã"heading"ãï¼SPã®æç¡ï¼ã¯åããã¾ããããã®å ´åãã©ãã大差ãªããã¨ãè¨ãã¾ãããSPãTABãæ¹è¡ã®ãããªãã§ããã°ã©ã ã®æåãå¤ãã£ããããå ´åã¯å¤ãã®ã§ããªããããã«ãã¦ãããã®ã§ã¯ããã¾ããã
3çªç®ã®ä¾ã¯SPãä½åã«å ¥ãã¦ããã¾ãããåºåãã¼ã¿ã«å½±é¿ããï¼ãã¹ãï¼ã§ããããï¼ ããåããã¾ããã
4çªç®ã®ä¾ã®2åç®ã®ã¤ã³ã¼ã«ã¯HeadingContentã®ä¸é¨ã¨ãã¦ãHeadingContentã"heading = "ã§ããã¨è§£éããã®ãç¡é£ã§ããããããããã¹ããã©ããã¯ãããåããã¾ãããEqualSignsï¼ã¤ã³ã¼ã«ã®é£ç¶ãï¼ã常ã«end-of-headingã¨ãã解éãããå¾ã¾ãã
ãããEqualSignsã常ã«end-of-headingã¨è§£éãããªãã5çªç®ã®ä¾ã®"garbage"ã¯ã©ãå¦çãã¹ããã¾ã£ãããã£ã¦ä¸æã¨ãªãã¾ãï¼ã ãããããããgarbageãHeadingContentã«å ¥ããã®ã§ããããããã¾ã§æ¨æ¸¬ã§ããï¼ã
ãã£ã¨ãåç´ã ã¨æãããè¦åºãã®è§£æã§ããããã®ãããã¾ã§ãã
ã¤ã³ã©ã¤ã³è¦ç´ ã®å ¥ãåé¢ä¿
ãã®èª¿åã§ãã¡ãã¡ææãã¦ããã¨ã¦ã³ã¶ãªããã»ã©é·ããªãããï¼æ¢ã«ã¦ã³ã¶ãªï¼ï¼ã§ããããããã²ã¨ã¤ã ãï¼ å¼·èª¿ï¼emè¦ç´ ãWikiãã¼ã¯ã¢ããã¯ã// .. //ãï¼ã¨éè¦ï¼strongè¦ç´ ãWikiãã¼ã¯ã¢ããã¯ã** ... **ãï¼ã¨ãªã³ã¯ï¼aè¦ç´ ãWikiãã¼ã¯ã¢ããã¯[[ ... ]]ï¼ã®å ¥ãåé¢ä¿ã§ãã
強調ãéè¦ããéå§è¨å·ã¨çµäºè¨å·ãåããªã®ã§ãèªåèªèº«ã®å ¥ãåã¯ã§ãã¾ãããããã交äºã«"//"ã¨"**"ãæ¸ãã¦ããã¨ããããã§ãå ¥ãåãã§ãã¾ãã
//start level 1 **start level 2 //start level 3 **start level 4 and end level 4** end level 3// end level 2** end level 1//
対å¿ããXHTMLãã©ã°ã¡ã³ãã¯ï¼
<em>start level 1 <strong>start level 2 <em>start level 3 <strong>start level 4 and end level 4</strong> end level 3</em> end level 2</strong> end level 1</em>
ãããã次ã®ä¾ãè¦ãã¨ãæ·±ãã2ã®å ¥ãåããèªãã¦ãªãããã§ãã
**//bold italics//** //**bold italics**// //This is **also** good.//
ãèªåèªèº«ã®å ¥ãåãèªãããæ·±ã2ã®ç¸äºå ¥ãåã ããèªãããã¨ããã«ã¼ã«ãæ£è¦ææ³ã§æ¸ããã¨ããã¨ãã£ããã§ã*5ãä»»æã®å ¥ãåï¼å帰æ§é ï¼ã®ã»ãããããç°¡åãåãã使ã£ã¦ããã¹ãã¼ãè¨èªï¼Catyã¹ãã¼ãï¼ã¯ããæ·±ã2ã®ç¸äºå ¥ãåã ããèªãããã¿ãããªå¤ãªå¶ç´ã¯æ¸ããªãã®ã§å°ãã¾ãã
åã®æ³åã§ããï¼ã£ã¦ãã»ã¨ãã©å ¨é¨ãæ¨æ¸¬ã¨æ³åã ãï¼ãèªåèªèº«ã®å ¥ãåãæ·±ãå ¥ãåã許ãã¨ãã¬ã³ããªã³ã°ï¼ãã©ã¦ã¶ã§ã®è¡¨ç¤ºï¼ã§åºå¥ãä»ããªããªã£ã¦ãã¾ãã®ã§ç¦æ¢ãã¦ããã®ã§ããããããã£ãå ¥ãåã®ç¦æ¢ãæ確ã«ã¯æ¸ãã¦ãªãã®ã§ããã©ã
ã ããããWikiã§ããã«ãç¦æ¢ãããªãã¦è¨ã£ãã£ã¦ã¦ã¼ã¶ã¼ã¯æ¸ãã¡ããããã§ãæ§æã¨ã©ã¼ã¯èµ·ãã¾ããæ§æã¨ã©ã¼ã§æ¢ã¾ãããã«ã¯ããããå¦çã¯ç¶è¡ããªãã¡ããªããªãããªã«ãããåºåãåãåºãå¿ è¦ããããã ããä»æ§ã«ã¯ä½ãæ¸ãã¦ãªããã¨ããããªç¶æ³ãªã®ã§ãã
ã¨ããã§ããªã³ã¯ã¨ä¸ç·ã«å¼·èª¿ï¼emï¼ãéè¦ï¼strongï¼ã使ãã¨ãâç¦æ¢ãããã¯ãï¼æªå±±ã®æ³åï¼ã®å ¥ãåâãã§ãã¦ããã®ã§ããã¾ãããªã³ã¯ï¼ã¢ã³ã«ã¼ï¼ã®å 容ã¯æ¬¡ã®ããã«è¦å®ããã¦ãã¾ãã
- At least images inside links must be supported. Parsing other markup within a link is not required (OPTIONAL).
ãªã³ã¯å 容ã®ãã¼ã¸ã³ã°ã¯ãªãã·ã§ãã«ã§ãããããããããã°ã強調ï¼emï¼ãéè¦ï¼strongï¼ã®ãã¼ã¯ã¢ãããèªèãã¦ãããã§ãããããªã³ã¯èªä½ã強調ãéè¦ã®å 容ã«å ¥ããã®ã¯è¨±ããã¦ããã®ã§ã次ã®ãã¼ã¯ã¢ãããå¯è½ã§ãã
- //[[GreatLink|//ããã¯ãããã§ã//]]//
- **[[GreatLink|//ããã¯**ããã**ã§ã//]]**
ä¸è¨ã®ãã¼ã¯ã¢ãããXHTMLã«å¤æããã®ã¯ç°¡åã§ããããªããéç¶ã¨ãã¾ããããã
Wikiå¦çç³»ã£ã¦ç°¡åãªã®ï¼
ããã°ã©ãã³ã°è¨èªã®å ¥éæ¸ã«ãç·´ç¿åé¡ã¨ãã¦ãWikiå¦çç³»ãä½ã£ã¦ã¿ã¾ããããã¿ããã®ãããã¾ãããã©ããªãã§ããããï¼ ããç¨åº¦ã®å®ç¨æ§ãããããããããªæè¡è¦ç´ ãæ··ãã£ã¦ããä¾é¡ã§ãããã¨ã¯èªãã¾ãããæ§æ解æã¨ãã¦ã¯ãWikiã®å¦çã¯ãããããã¹ã¸ã¯ã«ãªãã¨ãããªãã¦ã¯ãããªãã®ã§ãããã ããªããªã¼ãWikiå¦çç³»ãä½ããããããªãç¶æ³ãªãã¨ããããæ§æ解æã®ç·´ç¿ãªãç®è¡å¼ã¨ãç°¡åãªã¹ã¯ãªããè¨èªãæ±ã£ãã»ããããã§ããã
ãã¦ãï¼Kuwataããã¨åãå«ãã¦ï¼Wikiå¦çç³»ãä½ããããããªã人ã¯ã©ãããããã§ããããï¼ ãWikiãªãã¦æè©® â¦ãã¨éãç´ãã®ãã²ã¨ã¤ã®æã§ãããä¸ã®ä¸ã«ã²ã¨ã¤ãããã¯å½¢å¼ä»æ§ãæã¤Wikiå¦çç³»ããã£ã¦ãããããããªããã¨æã£ããæããªãã£ããã
*1:å½¢å¼çãªæ§æè¨è¿°ãæ¸ãããã¨ã¯æãã¾ãããã¯ããã¦ããæå³ãããã®ãï¼ åºæ¥ããã®ãªã®ãï¼
*2:ãã®æ ¹æ ã¯ï¼ãéè² æ´æ°ã®é¨åéåã空ã§ãªããªãå¯ä¸ã®æå°å¤ãæã¤ãããã§ãã
*3:Wikiã®å ´åãåºåãå¶ç´ããã®ã¯ããã£ã¦ãããªãã§ãããããåç §åºåã¯ã·ãã«ãªå®ç¾©ãã¦ã»ãããæºããã許容ãã¦ããããã©ãåç §çæ¨æºããªãã®ã¯å°ãã®ã§ãã
*4:Whitespace is optional before and after the * or # characters, however a space is required afterwards if the list element starts with bold text. ã¨æ¸ãã¦ããã¾ãããã®ä¸æãã¾ãä½è¨ã£ã¦ãããææ§ã ã£ããããã®ã§ããã
*5:ããããªææ³ã§æ¸ããªããã¨ã¯ãç¡éå èªã¿ãããã¯ãã©ãã¯ãéæ¹åããã®è§£æãªã©ãæ§æ解æã§ã¯é¿ãããæ¹æ³ã使ããããå¾ãªããã¨ãå«æãã¾ãã