Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Marpa::R2::HTML is now configurable
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jeffrey Kegler  
View profile  
 More options Oct 7 2012, 2:39 pm
From: Jeffrey Kegler <jeffreykeg...@jeffreykegler.com>
Date: Sun, 07 Oct 2012 11:39:12 -0700
Local: Sun, Oct 7 2012 2:39 pm
Subject: Marpa::R2::HTML is now configurable

I've just put Marpa-R2-2.021_004
<https://metacpan.org/release/JKEGL/Marpa-R2-2.021_004/> (a developer's
release) on CPAN.
It's most important new feature is a configurable HTML parser.

Marpa::HTML already accepted user-defined tokens.  It silently
accepted these in the input, giving them very liberal defaults for
where they could go and what they could contain.  As of 2.021_004,
Marpa::R2::HTML allows the user to define the context and contents
of new tokens.  It also allows the user to redefine these for
existing tokens.

The definition of the HTML is isolated in its own file
<https://metacpan.org/source/JKEGL/Marpa-R2-2.021_004/html/lib/Marpa/R...>.  
The file
is self-contained -- any changes needed to redefine the HTML variant
are confined to Marpa::R2::HTML::dev::Configuration.pm.  Substituting
different files could change Marpa::R2::HTML to parse loose or
strict HTML 4.01, for example; or to use a "lowest common denominator"
based on the set of browsers most important to your situation.

Marpa::R2::HTML::dev::Configuration.pm
<https://metacpan.org/source/JKEGL/Marpa-R2-2.021_004/html/lib/Marpa/R...>
is less than 3 pages of code.
It could be significantly shortened, by removing the definitions
for deprecated tags.  Their behavior would revert to liberal defaults.
(In this configurable version, Marpa::R2::HTML allows tags not
mentioned in the configuration.)

Factoring out the definition of the HTML into this very concise
form, makes Marpa::R2::HTML much more easier to maintain than
alternatives.  In many HTML parsers, once you've determined which
3 pages of code contain the problem, you can consider the problem
half solved.

"Configurable" here for the moment means "very easily forked." The
extension from isolation of the HTML into its own file to allowing
the user to supply his configuration file, (or even alter the
configuration via command-line options) is very direct.  I am
undecided what priority to give this -- there are many directions
in which to go at this point.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ron Savage  
View profile  
 More options Oct 7 2012, 10:07 pm
From: Ron Savage <r...@savage.net.au>
Date: Mon, 08 Oct 2012 13:06:13 +1100
Local: Sun, Oct 7 2012 10:06 pm
Subject: Re: Marpa::R2::HTML is now configurable
Hi Jeffrey

On 08/10/12 05:39, Jeffrey Kegler wrote:

> I've just put Marpa-R2-2.021_004
> <https://metacpan.org/release/JKEGL/Marpa-R2-2.021_004/> (a developer's
> release) on CPAN.

I ran 398 tests for 3 of my modules (3 being POD tests) and all passed.

--
Ron Savage
http://savage.net.au/
Ph: 0421 920 622


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »