view release on metacpan or search on metacpan
my(undef,$filebase) = fileparse($r->filename);
my $local = $self->playlocal_ok && $self->is_local;
my $base = $self->stream_base;
local $CGI::XHTML = 0;
# check that we aren't running under PerlSetupEnv Off
if ($ENV{MOD_PERL} && !$ENV{SCRIPT_FILENAME}) {
warn "CGI.pm cannot run with 'PerlSetupEnv Off', please set it to On";
}
view all matches for this distribution
view release on metacpan or search on metacpan
Version 0.92, November 8 2003, Wim Kerkhoff <kerw@cpan.org>
- fixes to be XHTML compliant
- fixes to run better under PerlTaintCheck and PerlWarn
- fixed caching code to be aware of maxchanges and maxpages
- added Preview function by popular demand
Version 0.91, October 11 2003, Wim Kerkhoff <kerw@cpan.org>
view all matches for this distribution
view release on metacpan or search on metacpan
PrettyPerl.pm view on Meta::CPAN
my $file = basename ($uri);
my $temp;
my $retval = <<EOF;
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Source of $file</title>
view all matches for this distribution
view release on metacpan or search on metacpan
t/templates/safe.tt view on Meta::CPAN
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/SdnFw/js/tinymce/changelog.txt view on Meta::CPAN
Fixed bug where init event would get fired twice on WebKit on Mac OS X.
Version 3.2.1 (2008-11-04)
Added support for custom icon image for drop menus. Use icon_src to set a custom image directly.
Added new media_strict option to media plugin. Enables you to control if the flash embed is strict or not. Enabled by default.
Fixed so the editors script files gets dynamically loaded without using XHR or eval.
Fixed so the media plugin outputs valid XHTML object elements for Flash movies. Can be disabled with the media_strict option.
Fixed so dynamic loading doesn't require eval calls on non IE browsers for better Air support.
Fixed bug where the editor wasn't treated as empty if the remaining paragraph had attributes.
Fixed bug where id's of elements was removed ones they got wrapped in paragraphs. Patch contributed by ChronoZ.
Fixed bug where WebKit browsers where placing list elements inside paragraph elements.
Fixed bug where inserting images or links would produce absolute urls on WebKit browsers.
lib/Apache/SdnFw/js/tinymce/changelog.txt view on Meta::CPAN
Added new onBeforeSetContent/onBeforeGetContent/onSetContent/onGetContent events to the Selection class.
Added new selectByIndex method to ListBox class. This enables you to select list items by an index instead of a value.
Added new possibility to the select method of the ListBox class. This can now have a selector function as it's value argument.
Added new possibility to skip the loading of popups css by setting the feature popup_css to the value false.
Added new possibility to skip translation of popups by setting the translate_i18n feature to false.
Added new element_format option enables you to produce HTML element endings instead of XHTML. But we are still in the XHTML is better camp.
Added missing allowfullscreen and quality options for flash elements, this will now get correctly stored.
Fixed bug where table cell dialog didn't close properly unless the accessibility_warnings option was set to false.
Fixed bug where the modal dialog blocker element for inlinepopups wasn't placed at a correct location if the page had scroll.
Fixed bug where non inline dialogs didn't close correctly if the inlinepopups plugin was used.
Fixed bug where non inline dialogs could make the modal dialog blocker to work incorrectly.
lib/Apache/SdnFw/js/tinymce/changelog.txt view on Meta::CPAN
Version 3.1.0.1 (2008-06-18)
Fixed bug where the Opera line break fix didn't work correctly on Mac OS X and Unix.
Fixed bug where IE was producing the default value the maxlength attribute of input elements.
Version 3.1.0 (2008-06-17)
Fixed bug where the paste as text didn't work correctly it encoded produced paragraphs and br elements.
Fixed bug where embed element in XHTML style didn't work correctly in the media plugin.
Fixed bug where style elements was forced empty in IE. The will now be wrapped in a comment just like script elements.
Fixed bug where some script elements wrapped in CDATA could fail to be serialized correctly.
Fixed bug where FF 3 produced -moz- internal styles in some style attributes.
Fixed bug where query strings and external URLs didn't work correctly in style attributes.
Fixed bug where shape attribute of area elements got serialized as rect regardless of it's initial value in IE 6.
lib/Apache/SdnFw/js/tinymce/changelog.txt view on Meta::CPAN
Fixed bug where selection would jump one character if you applied a styles to a words in non IE browsers.
Fixed bug where undo levels wasn't added correctly if you went back in undo history and added a new event.
Fixed bug where font size dropdown didn't mark the selected size in IE.
Fixed bug where the size of the editor was determined using clientWidth instead of offsetWidth.
Fixed so the onchange event doesn't fire on the initial undo level, it will also fire when the editor is blurred.
Fixed so the advhr plugin produces XHTML valid output instead of non standard attributes.
Fixed so blockquote gets converted into [quote] in when the bbcode plugin is enabled.
Fixed so theme_advanced_font_sizes can be named for example Font 1=1, Font 2=2 etc.
Fixed so editor_selector/editor_deselector can be regexps. By default only strings are allowed not part regexps like before.
Fixed so that the version suffix is optional. It still requires the build process so you need to export it manually.
Fixed so it's possible to tab to table cells in non Gecko browsers and also produce new rows if you tab at the end of a table. Contributed by Josh Peek.
lib/Apache/SdnFw/js/tinymce/changelog.txt view on Meta::CPAN
Version 3.0.6.1 (2008-04-04)
Added support for the missing mceAddFrameControl command. The input for this command has changed so consult the Wiki.
Fixed bug where sub menus for the drop menus would leave an empty element behind.
Fixed memory leak in IE if the editor was placed in a frame or iframe.
Version 3.0.6 (2008-04-03)
Added elements to the default value of valid_elements option. It now contains all XHTML strict elements and a few transitional.
Added more accessibility fixes, it's now possible to navigate and close list boxes and split button menus with the keyboard.
Added missing getInfo method to the contextmenu and safari plugin, this caused problems for the Drupal module.
Added new inlinepopups_zindex option to the inlinepopups plugin so that you can configure the default start z-index.
Added new setControlType method to the tinymce.ControlManager class. This method enables you to override the default classes.
Added ability to specific an optional control class to use instead of the default one for the ControlManager methods. Based on concept by Josh Peek.
lib/Apache/SdnFw/js/tinymce/changelog.txt view on Meta::CPAN
Added new option constrain_menus, this enables you to force view port constraints on all menus. Contributed by Shane Tomlinson.
Fixed bug where table background wasn't visible inside the editor due to a default CSS rule overriding the style attribute.
Fixed bug where links would get a null class added if no styles was used in IE.
Fixed bug where spellchecker was auto focusing the editor in IE.
Fixed bug where document.domain would produce invalid argument if the editor was loaded in IE6 over a network UNC path.
Fixed bug where table height attribute was used, this is deprecated in XHTML so it now adds it as an style.
Fixed bug where textareas with style values would produce error in IE.
Fixed so the first element in each dialog is focused by default to enhance keyboard usage.
Fixed so you can add a mceFocus class to elements to make it auto focused.
Fixed so you can close dialogs using the esc key.
Fixed so you can press return/enter to submit the action of each dialog.
view all matches for this distribution
view release on metacpan or search on metacpan
examples/templates/layout view on Meta::CPAN
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>mysite.com :: [% title %]</title>
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/UploadMeter/Resources/HTML.pm view on Meta::CPAN
$r->content_type("text/html");
$r->set_etag();
return Apache2::Const::OK if $r->header_only();
my $output=<<"EOF";
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js"></script>
<script type="text/javascript" src="js/behaviour.js"></script>
view all matches for this distribution
view release on metacpan or search on metacpan
VimColor.pm view on Meta::CPAN
return ($req->sendfile ($filename));
}
$req->print (<<HEADER);
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>$filename_without_path</title>
view all matches for this distribution
view release on metacpan or search on metacpan
tags, in that they are formed like HTML tags with named attributes and
(optionally) with enclosed text, i.e.:
<NAME ATTRIBUTENAME="ATTRIBUTE VALUE">ENCLOSED TEXT</NAME>
They follow the XHTML syntax somewhat in that they require a terminating
whitespace followed by a forward-slash (/) before the enclosing brace
when they are embedded as "stand-alone" tags, and require quotes around
all attributes. Therefore:
<BASENAME::WyrdName name=imasample>
view all matches for this distribution
view release on metacpan or search on metacpan
xsl/apache-xbel.xsl view on Meta::CPAN
<title>apache-xbel.xsl</title>
<abstract>
<para>This is an <acronym>XSLT</acronym> stylesheet for
transforming XBEL 1.0 documents in XHTML 1.1 documents</para>
</abstract>
<author>
<surname>Cope</surname>
<firstname>Aaron</firstname>
xsl/apache-xbel.xsl view on Meta::CPAN
</listitem>
</itemizedlist>
<para>If your XSLT processors supports custom functions and the
following functions have been registered, this stylesheet will
create a 'breadcrumb' style navigation list in the XHTML output.</para>
<itemizedlist>
<listitem>
<formalpara>
<title>asc:breadcrumbs</title>
xsl/apache-xbel.xsl view on Meta::CPAN
altogether -->
<xsl:output method = "html" />
<xsl:output indent = "yes" />
<xsl:output doctype-public = "-//W3C//DTD XHTML 1.1//EN" />
<xsl:output doctype-system = "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" />
<!-- ======================================================================
====================================================================== -->
view all matches for this distribution
view release on metacpan or search on metacpan
sbin/asphelper view on Meta::CPAN
Include @{[ cwd() ]}/@{[ $args->{domain} ]}/conf/httpd.conf
";
open my $asp_ofh, '>', "$args->{domain}/htdocs/index.asp";
print $asp_ofh <<'ASP';
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Apache2::ASP Test Page</title>
</head>
sbin/asphelper view on Meta::CPAN
close($data_ofh);
mkdir "$args->{domain}/htdocs/examples" or die "CANNOT MKDIR examples: $!";
open my $contact_asp, '>', "$args->{domain}/htdocs/examples/contact.asp";
print $contact_asp <<"ASP";
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%
# Make a "sticky form":
if( my \$args = \$Session->{__lastArgs} )
{
\$Form->{\$_} = \$args->{\$_} foreach keys(\%\$args);
view all matches for this distribution
view release on metacpan or search on metacpan
the filter trace in error_log file the "user agent" that not are present in WURFL
WURFLFilter 0.4
Correct fix bugs
Added Attribute WMLUrl for WML layout
Change Attribute IntelliUrl in XHTMLUrl for XHTML layout
WURFLFilter 0.3
Optimization of storage data in memroy
Correct README file
view all matches for this distribution
view release on metacpan or search on metacpan
examples/apache/htdocs/index.xslt view on Meta::CPAN
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:output encoding="iso-8859-1" method="html" indent="yes" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"/>
<xsl:variable name="mycomputer_root" select="'true'"/>
<xsl:variable name="sortorder_href">
<xsl:choose>
<xsl:when test="/index/options/option[@name='O']/@value = 'D'"><xsl:text>A</xsl:text></xsl:when>
<xsl:otherwise><xsl:text>D</xsl:text></xsl:otherwise>
view all matches for this distribution
view release on metacpan or search on metacpan
t/htdocs/index.200.html view on Meta::CPAN
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
sup! <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head> sup! <!--
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
This file is generated from xml source: DO NOT EDIT
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-->
view all matches for this distribution
view release on metacpan or search on metacpan
t/htdocs/about.html view on Meta::CPAN
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head>
<title>Information Architecture Institute > About Us - Information Architecture Institute</title>
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache2/Tail.pm view on Meta::CPAN
my ($class, $r) = @_;
my $style = $class->style($r);
$r->print(<<"EOF");
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Apache2::Tail $VERSION</title>
$style
</head>
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache2/UploadProgress.pm view on Meta::CPAN
}
}
$TEMPLATES->{html} = <<'EOF';
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>UploadProgress</title>
<link rel="stylesheet" type="text/css" href="/UploadProgress/progress.css" />
view all matches for this distribution
view release on metacpan or search on metacpan
the filter trace in error_log file the "user agent" that not are present in WURFL
WURFLFilter 0.4
Correct fix bugs
Added Attribute WMLUrl for WML layout
Change Attribute IntelliUrl in XHTMLUrl for XHTML layout
WURFLFilter 0.3
Optimization of storage data in memroy
Correct README file
view all matches for this distribution
view release on metacpan or search on metacpan
usr/share/webapp-toolkit/extra/templates/admin/default.tt view on Meta::CPAN
Licensed under the terms of the BSD License
http://www.opensource.org/licenses/bsd-license.php
-%]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Main</title>
view all matches for this distribution
view release on metacpan or search on metacpan
usr/share/webapp-toolkit/error.tt view on Meta::CPAN
http://template-toolkit.org/docs/manual
-->
[%- stag = "[\%" etag = "%\]" %]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>[% project_title %] - Error</title>
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/ArchiveDevelCover.pm view on Meta::CPAN
my $name = $self->project;
my $class = ref($self);
my $version = $class->VERSION;
return <<"EOTMPL";
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- This file was generated by $class version $version -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
view all matches for this distribution
view release on metacpan or search on metacpan
public/404.html view on Meta::CPAN
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Error 404</title>
<link rel="stylesheet" href="/css/error.css" />
view all matches for this distribution
view release on metacpan or search on metacpan
t/MyTestUA.pm view on Meta::CPAN
Vary: Accept-Encoding
ETag: "5402707f-558"
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!--
This file was generated by Devel::Cover Version 1.29
Devel::Cover is copyright 2001-2017, Paul Johnson (paul@pjcj.net)
t/MyTestUA.pm view on Meta::CPAN
Connection: keep-alive
Vary: Accept-Encoding
ETag: "5402707f-558"
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!--
This file was generated by Devel::Cover Version
Devel::Cover is copyright 2001-2012, Paul Johnson (paul@pjcj.net)
t/MyTestUA.pm view on Meta::CPAN
Connection: keep-alive
Vary: Accept-Encoding
ETag: W/"571b65cf-943"
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
t/MyTestUA.pm view on Meta::CPAN
Connection: keep-alive
Vary: Accept-Encoding
ETag: "5402707f-558"
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!--
This file was generated by Devel::Cover Version
Devel::Cover is copyright 2001-2012, Paul Johnson (paul@pjcj.net)
t/MyTestUA.pm view on Meta::CPAN
Connection: keep-alive
Vary: Accept-Encoding
ETag: "5402707f-558"
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!--
This file was generated by Devel::Cover Version
Devel::Cover is copyright 2001-2012, Paul Johnson (paul@pjcj.net)
t/MyTestUA.pm view on Meta::CPAN
Connection: keep-alive
Vary: Accept-Encoding
ETag: W/"571b65cf-943"
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
view all matches for this distribution
view release on metacpan or search on metacpan
t/05-more-search.t view on Meta::CPAN
ok( $cse->command()->hits() , "Ok got hits");
is( $cse->command()->hits()->total_hits() , 1, "Ok got one hit");
}
{
## Searching for hypertext (from the XHTML file).
local @ARGV = ( '--idx='.$idx_dir, 'HyperText');
my $cse = App::CSE->new();
is( $cse->command()->execute(), 0 , "Ok execute has terminated just fine");
ok( $cse->command()->hits() , "Ok got hits");
is( $cse->command()->hits()->total_hits() , 1, "Ok got one hit");
view all matches for this distribution
view release on metacpan or search on metacpan
t/sample/sample.html view on Meta::CPAN
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Expires" content="-1">
<title>[MP4/1.09GB]DV-1194 Ãô¸ÐÉíówÖ±¶ßà ÖÐÎ÷Àï²Ë(ÖÐÎÄ×ÖÄ») ²ÝÁñÉç
^ - powered by phpwind.net</title>
view all matches for this distribution
view release on metacpan or search on metacpan
---
name: App-Changelog2x
version: 0.11
author:
- 'Randy J. Ray <rjray@blackperl.com>'
abstract: A script to generate XHTML and text from ChangeLogML XML
license: perl
resources:
license: http://dev.perl.org/licenses/
build_requires:
Module::Build: 0.28
view all matches for this distribution
view release on metacpan or search on metacpan
themes/blog.steve.org.uk/archive.tmpl view on Meta::CPAN
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
<head>
<title>Entries posted in <!-- tmpl_var name='month_name' --> <!-- tmpl_var name='year' --></title>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
view all matches for this distribution
view release on metacpan or search on metacpan
# Source
Source files in Dapper are written in
[Markdown](https://daringfireball.net/projects/markdown/). Markdown is a
markup language that allows you to write content in a natural way, and
have that text converted to XHTML for displaying on the web.
Writing with Markdown allows you to separate the content and structure of
your document from the formatting which allows you to focus on the actual
writing.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/DocKnot/Spin/Text.pm view on Meta::CPAN
# Convert some particular text formats into HTML.
#
# This program is an ad hoc set of heuristics and tricks, attempting to
# convert a few text file formats that I commonly use into reasonable HTML.
# General text to XHTML conversions is impossible due to the wildly differing
# formats used by people when writing text, so this module doesn't try to
# solve the general problem. It's good enough to turn the FAQs I maintain
# into HTML documents, which is all that I need of it.
#
# SPDX-License-Identifier: MIT
lib/App/DocKnot/Spin/Text.pm view on Meta::CPAN
##############################################################################
# HTML constructors
##############################################################################
# Output the header of the HTML document. We claim "transitional" XHTML 1.0
# compliance; we can't claim strict solely because we use the value attribute
# in <li> in the absence of widespread implementation of CSS Level 2. Assume
# English output.
#
# $header_ref - Additional information from the headers of the text document
sub _output_header {
my ($self, $header_ref) = @_;
$self->_output(
'<?xml version="1.0" encoding="utf-8"?>', "\n",
'<!DOCTYPE html', "\n",
' PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"', "\n",
' "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">', "\n",
"\n",
'<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">',
"\n",
'<head>', "\n",
lib/App/DocKnot/Spin/Text.pm view on Meta::CPAN
Text marked as C<*bold*> using the standard asterisk notation will be
surrounded by C<< <strong> >> tags, if the asterisks appear to be marking bold
text rather than serving as wildcards or some other function.
App::DocKnot::Spin::Text produces output (at least in the absence of any
lurking bugs) which complies with the XHTML 1.0 Transitional standard. The
input and output character set is assumed to be UTF-8.
=head1 CLASS METHODS
=over 4
view all matches for this distribution