Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.982.522 Times

HTML::WikiConverter::Dialects 0.61

  Date Added: July 17, 2010  |  Visits: 655

HTML::WikiConverter::Dialects

Report Broken Link
Printer Friendly Version


Product Homepage
Download (72 downloads)

HTML::WikiConverter::Dialects is a Perl module which contains a tutorial on how to add a dialect. SYNOPSIS # In your dialect module: package HTML::WikiConverter::MySlimWiki; use HTML::WikiConverter -dialect; rule b => { start => **, end => ** }; rule i => { start => //, end => // }; rule strong => { alias => b }; rule em => { alias => i }; rule hr => { replace => "n----n" }; # In a nearby piece of code: package main; use Test::More tests => 5; my $wc = new HTML::WikiConverter( dialect => MySlimWiki ); is( $wc->html2wiki( text ), **text**, b ); is( $wc->html2wiki( text ), //text//, i ); is( $wc->html2wiki( text ), **text**, strong ); is( $wc->html2wiki( text ), //text//, em ); is( $wc->html2wiki( ), ----, hr ); HTML::WikiConverter (or H::WC, for short) is an HTML to wiki converter. It can convert HTML source into a variety of wiki markups, called wiki "dialects". This manual describes how you to create your own dialect to be plugged into HTML::WikiConverter. DIALECTS Each dialect has a separate dialect module containing rules for converting HTML into wiki markup specific for that dialect. Currently, all dialect modules are in the HTML::WikiConverter:: package space and subclass HTML::WikiConverter. For example, the MediaWiki dialect module is HTML::WikiConverter::MediaWiki, while PhpWikis is HTML::WikiConverter::PhpWiki. However, dialect modules need not be in the HTML::WikiConverter:: package space; you may just as easily use package MyWikiDialect; and H::WC will Do The Right Thing. From now on, Ill be using the terms "dialect" and "dialect module" interchangeably. Subclassing To interface with H::WC, dialects need to subclass it. Because youll probably be wanting the rule() and attribute() functions as well, subclassing and importing these functions is done in a single step: use HTML::WikiConverter -dialect; This will add HTML::WikiConverter to your dialects @ISA and will import the attribute() and rule() functions into your dialects package. Conversion rules Dialects guide H::WCs conversion process with a set of rules that define how HTML elements are turned into their wiki counterparts. Each rule corresponds to an HTML tag (including nonstandard tags), and there may be any number of rules. Rules are added with the rule() function that was imported when you subclassed H::WC (see above). The syntax for rule() is as follows: rule $tag => %subrules; where $tag is the name of the HTML tag (e.g., "b", "em", etc.) and %subrules contains subrules that specify how that tag will be converted..

Requirements: No special requirements
Platforms: Linux
Keyword: Dialect Dialects How To Html Htmlwikiconverterdialects Libraries Module Package Perl Module Programming Rule Text Wc Wikiconverter
Users rating: 0/10

License: Freeware Size: 34.82 KB
HTML::WIKICONVERTER::DIALECTS RELATED
Libraries  -  HTML::Widgets::NavMenu 1.0001
HTML::Widgets::NavMenu is a Perl module for Generating HTML Navigation Menus. SYNOPSIS use HTML::Widgets::NavMenu; my $nav_menu = HTML::Widgets::NavMenu->new( path_info => "/me/", current_host => "default", hosts => { default => {...
41.98 KB  
Libraries  -  OpenInteract2::Manual::Tutorial 1.99_06
OpenInteract2::Manual::Tutorial is a Perl module that will teach learn you how to create and modify a package. SYNOPSIS This tutorial will show you the different methods for creating a package and how to maintain them. CREATING THE PACKAGE...
931.84 KB  
Libraries  -  HTML::Widgets::Index 0.6
HTML::Widgets::Index is a Perl module for creating web indexes and menus. This module renders the index of a document tree using the data stored in a MySQL database generated by anxova. It has a flexible set of render options that gives the...
65.54 KB  
Libraries  -  HTML::Widgets::DateEntry 1.5
HTML::Widgets::DateEntry is a Perl module that creates date entry widgets for HTML forms. SYNOPSIS use HTML::Widgets::DateEntry; $de = new HTML::Widgets::DateEntry( year => [date_year, $date_year], month => [date_month, $date_month], day...
4.1 KB  
Libraries  -  HTML::Mason::Devel 1.34
HTML::Mason::Devel is a Perl module with Mason Developers Manual. This manual is written for content developers who know HTML and at least a little Perl. The goal is to write, run, and debug Mason components. If you are the webmaster (or...
378.88 KB  
Libraries  -  HTML::Entities::Numbered 0.04
HTML::Entities::Numbered is a Perl module for conversion of numbered HTML entities. SYNOPSIS use HTML::Entities::Numbered; $html = Hi Honey♥; # convert named HTML entities to numbered (decimal) $decimal = name2decimal($html); # Hi...
8 MB  
Network & Internet  -  HTML-Widgets-NavMenu 1.0001
HTML-Widgets-NavMenu is a Perl module to generate navigation menus and control site flow. HTML-Widgets-NavMenu has many advanced features, is extensively tested, and should be easily extensible and customizable..
41.98 KB  
Utilities  -  cpan2tgz 0.6.2
cpan2tgz is a utility to create Slackware packages from CPAN Perl module distributions, inspired by Erick Calders cpan2rpm.. GNOME SlackBuild (GSB) - a GNOME distribution for Slackware Linux
15.36 KB  
Libraries  -  HTML::CGIChecker 0.90
HTML::CGIChecker is a Perl module to detect dangerous HTML code. SYNOPSIS use HTML::CGIChecker; $feedback = One column " Arrays & variables " Dough > Hi, how are you ?...
14.34 KB  
Libraries  -  Xmldoom::doc::UsingTorque 0.0.16
Xmldoom::doc::UsingTorque Perl module contains a how to about making Torque generator to work with your database.xml. Because the format used in the database definition (commonly named database.xml) is the same as Apache Torque, we can use their...
102.4 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.12.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
2.73 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB