| html :: wikiConverter :: dialcts. HTML :: WIKICORTER :: DIALECTECT´Â ¹æ¾ðÀ» Ãß°¡ÇÏ´Â ¹æ¹ý¿¡ ´ëÇÑ ÀÚ½À¼°¡ Æ÷ÇÔ µÈ PERL ¸ðµâÀÔ´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
html :: wikiConverter :: dialcts. ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À̸§:
- David J. Iberri
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~diberri/HTML-WikiConverter-MediaWiki-0.55/lib/HTML/WikiConverter/MediaWiki.pm
html :: wikiConverter :: dialcts. ű×
html :: wikiConverter :: dialcts. ¼³¸í
html :: wikiConverter :: dialcts´Â dialect¸¦ Ãß°¡ÇÏ´Â ¹æ¹ý¿¡ ´ëÇÑ ÀÚ½À¼°¡ µé¾îÀÖ´Â perl ¸ðµâÀÔ´Ï´Ù. html :: wikiConverter :: dialcts´Â dialect ¸ðµâ¿¡ dialect.synopsis #À» Ãß°¡ÇÏ´Â ¹æ¹ý¿¡ ´ëÇÑ ÀÚ½À¼°¡ Æ÷ÇÔ µÈ perl ¸ðµâÀÔ´Ï´Ù. ÆÐÅ°Áö html :: wikiConverter :: myslimwiki; html :: wikiConverter - µðÀÏ ·º½º; ±ÔÄ¢ b => {start => '**', end => '**'}; ±ÔÄ¢ i => {start => '//', end => '//'}; ±ÔÄ¢ °·Â => {alias => 'b'}; ±ÔÄ¢ em => {alias => 'i'}; ±ÔÄ¢ hr => {replace => "n ---- n"}; # Àα٠Äڵ忡¼ : ÆÐÅ°Áö ¸ÞÀÎ; Å×½ºÆ®¸¦ »ç¿ëÇϽʽÿÀ :: ´õ ¸¹Àº Å×½ºÆ® => 5; $ WC = »õ HTML :: WikiConverter (dialect => 'myslimwiki'); ($ wc-> html2wiki ( 'text'), '** text **', b); ($ wc-> html2wiki ( 'text'), '// text //', i); ($ wc-> html2wiki ( 'text'), '** text **', 'strong'); ($ wc-> html2wiki ( 'text'), '// text //', 'em'); ($ wc-> html2wiki ( '),'---- ','hr '); html :: wikiConverter (¶Ç´Â H :: WC)´Â Wiki º¯È¯±âÀÇ HTMLÀÔ´Ï´Ù. HTML ¼Ò½º¸¦ Wiki "¹æ¾ð"À̶ó°íÇÏ´Â ´Ù¾çÇÑ Wiki ¸¶Å© ¾÷À¸·Î º¯È¯ ÇÒ ¼ö ÀÖ½À´Ï´Ù. ÀÌ ¼³¸í¼´Â HTML :: WikiConverter.DialCTEACh Dialect¿¡ ¿¬°áµÇ¾î HTMLÀ» ÇØ´ç ¹æ¾ð¿¡ ´ëÇÑ Wiki ¸¶Å© ¾÷À¸·Î º¯È¯ÇϱâÀ§ÇÑ ±ÔÄ¢À» Æ÷ÇÔÇÏ´Â º°µµÀÇ ¹æ¾ð ¸ðµâÀ» °¡Áö°íÀÖ´Â ÀÚ½ÅÀÇ ¹æ¾ðÀ» ¾î¶»°Ô ¸¸µå´Â ¹æ¹ýÀ» ¼³¸íÇÕ´Ï´Ù. ÇöÀç ¸ðµç ¹æ¾ð ¸ðµâÀº HTML :: WikiConverter :: ÆÐÅ°Áö °ø°£ ¹× ÇÏÀ§ Ŭ·¡½º HTML :: WikiConverter¿¡ ÀÖ½À´Ï´Ù. ¿¹¸¦ µé¾î, MediaWiki Dialect ¸ðµâÀº HTML :: WikiConverter :: MediaWiki, Phpwiki 's´Â HTML :: WikiConverter :: PhpwikiÀÔ´Ï´Ù. ±×·¯³ª ¹æ¾ð ¸ðµâÀº HTML :: WikiConverter :: ÆÐÅ°Áö °ø°£¿¡ÀÖÀ» ÇÊ¿ä´Â ¾ø½À´Ï´Ù. ÆÐÅ°Áö MyWikialect ÆÐÅ°Áö¸¦ ½±°Ô »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. ±×¸®°í H :: WC´Â ÀÌÁ¦ ¿ÇÀº ÀÏÀ» ÇÒ °ÍÀÔ´Ï´Ù. ÀÌÁ¦ "¹æ¾ð"¹× "¹æ¾ð ¸ðµâ"»óÈ£ ±³È¯ °¡´É. H :: WC¿Í ÀÎÅÍÆäÀ̽º¸¦ ÀÎÅÍ ±³´ë·Î »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. H :: WC, ¹æ¾ðÀº ÇÏÀ§ Ŭ·¡½º¸¦ ÇÏÀ§ Ŭ·¡½ºÇؾßÇÕ´Ï´Ù. rule () ¹× ¼Ó¼º () ÇÔ¼ö¸¦ ¿øÇÒ ¼öµµ Àֱ⠶§¹®¿¡ ÀÌ·¯ÇÑ ±â´ÉÀ» ÇÏÀ§ Ŭ·¡½º ¸µ ¹× °¡Á® ¿À±â´Â ´ÙÀ½ ´Ü°è¿¡¼ ¼öÇàµË´Ï´Ù. html :: wikiConverter - dialect; ÀÌ·¸°ÔÇϸé html :: wikiConverter¸¦ dialectÀÇ @ ISA¸¦ »ç¿ëÇϸé Attribute ()¿Í ±ÔÄ¢ () ÇÔ¼ö¸¦ DialectÀÇ Package.Conversion RulesDialects °¡À̵å HTML ¿ä¼Ò°¡ Wiki CounterPart·Î ÀüȯµÇ´Â ¹æ¹ýÀ» Á¤ÀÇÇÏ´Â ÀÏ·ÃÀÇ ±ÔÄ¢À» »ç¿ëÇÏ¿© H :: WCÀÇ º¯È¯ ÇÁ·Î¼¼½º¸¦ »ç¿ë ¾È³»ÇÕ´Ï´Ù. °¢ ±ÔÄ¢Àº HTML ÅÂ±× (ºñÇ¥ÁØ ÅÂ±× Æ÷ÇÔ)¿¡ ÇØ´çÇÏ¸ç ¿©·¯ °¡Áö ±ÔÄ¢ÀÌÀÖÀ» ¼ö ÀÖ½À´Ï´Ù. ±ÔÄ¢Àº h :: WC¸¦ ÇÏÀ§ Ŭ·¡½Ã (À§ ÂüÁ¶) ÇÏÀ§ Ŭ·¡½º ÇÒ ¶§ °¡Á®¿Â ±ÔÄ¢ () ÇÔ¼ö°¡ Ãß°¡µË´Ï´Ù. ±ÔÄ¢¿¡ ´ëÇÑ ±¸¹®Àº ´ÙÀ½°ú °°½À´Ï´Ù. ±ÔÄ¢ $ tag => % ¼ºê rub; $ $ ű״ HTML ÅÂ±× (¿¹ : "B", "EM"µî) ¹× % ¼ºê ·êÀº ÇØ´ç ű׸¦ º¯È¯ÇÏ´Â ¹æ¹ýÀ» ÁöÁ¤ÇÏ´Â ÇÏÀ§ ºÐÇظ¦ Æ÷ÇÔÇÕ´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ Perl.
html :: wikiConverter :: dialcts. °ü·Ã ¼ÒÇÁÆ®¿þ¾î