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

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

Serving Software Downloads in 956 Categories, Downloaded 50.051.617 Times

HTML::WikiConverter::Dialects 0.61

  Date Added: July 17, 2010  |  Visits: 909

HTML::WikiConverter::Dialects

Report Broken Link
Printer Friendly Version


Product Homepage
Download (91 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
USER REVIEWS
More Reviews or Write Review


HTML::WIKICONVERTER::DIALECTS RELATED
MS Office Add-Ins  -  Free Convert PDF to HTML 2.7.1
HTML is preferable to PDF for website uploading. Free Convert PDF to HTML can convert PDF documents to HTML files, saving you time from using HTML editor to recompose the textual & graphical contents in PDF. You can add as many PDF files as you...
3.38 MB  
Word Processing  -  UniPDF PDF to HTML Converter 1.3.3
100% Free PDF to HTML converter software. Convert PDF to HTML format in batch mode and keep original document texts, layouts, images. This easy-to-use PDF to HTML converter allows you to change PDF files into HTML images in seconds in only two...
4.57 MB  
HTML Utilities  -  Easy Text To HTML Converter 3.0.0
Easy Text To HTML Converter provides fast and easy conversion of Text Files (in *.txt, *.rtf formats) and Text Blocks pasted from Clipboard to HTML. The conversion is being performed in four different modes , placed on separate tabs of the main...
253.86 KB  
Word Processing  -  Some PDF to Html Converter 2.0.0701
Some PDF to Html Converter is a powerful tool to convert pdf to html. You can preserve original layout, links, bookmarks, images, vector drawings of your pdf file. Allows your files to be indexed and made available on the internet as fully...
784.1 KB  
HTML Database Converters  -  Word To HTML Converter 3.35
Word to HTML Converter is powerful tool developped to convert a word documents to HTML file. Word to HTML converting Software makes it easy and spontaneous to create fully formatted, linked HTML publications from within Microsoft Word. Doc to HTML...
831.5 KB  
HTML Database Converters  -  Doc To HTML Converter 3.35
Doc to HTML Converter is a powerful tool developped to convert a word documents in to HTML file. Doc to HTML is only converter that preserve the word format in html document after conversion. Software is useful for those people who want to create...
831.5 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  
Word Processing  -  RTF to HTML convertor 3.6
The RTF to HTML convertor converts RTF files (in Windows-1250 encoding) to HTML file (in ISO-8859-2 encoding)..
41.98 KB  
Backup Utilities  -  LotApps Free PDF to HTML Converter 3.0
LotApps Free PDF To HTML Converter LotApps Free PDF to HTML Converter can help you converts PDF documents to HTML files for the Internet, while preserving the original layouts, text content, images, and hyperlinks, share your PDF contents...
5.74 MB  
Web Site Promotion  -  Flip PDF to HTML - Freeware 2.1
FlipPDF to HTML Converter is a 100% free, professional and accurate PDF to HTML Converter software. It can help you convert PDF file to HTML, and then you can view it with your browser, such as IE, Firefox, Chrome, Safari, Opera, etc. And we can...
10.19 MB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
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  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.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...
3.88 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