MKDoc-Core
view release on metacpan or search on metacpan
lib/MKDoc/Core/Language.pm view on Meta::CPAN
];
return @{$::MKD_CORE_LANGUAGE_CODE_LIST};
}
=head2 $self->align();
In order to do proper multilingual HTML formatting, you need to have a
sensible value for the XHTML align="left|right" attribute.
If the language is written left to right, this method returns 'left'.
If the language is written right to left, this method returns 'right'.
=cut
sub align
{
my $self = shift;
my $code = $self->code;
$::MKD_CORE_LANGUAGES_RTL || _mkd_core_languages_rtl();
return $::MKD_CORE_LANGUAGES_RTL->{$code} ? 'right' : 'left';
}
=head2 $self->align_opposite();
In order to do proper multilingual HTML formatting, you need to have a
sensible value for the XHTML align="left|right" attribute.
This method does the exact opposite as $self->align(), i.e.
If the language is written left to right, this method returns 'right'.
If the language is written right to left, this method returns 'left'.
=cut
sub align_opposite
{
lib/MKDoc/Core/Language.pm view on Meta::CPAN
my $code = $self->code;
$::MKD_CORE_LANGUAGES_RTL || _mkd_core_languages_rtl();
return $::MKD_CORE_LANGUAGES_RTL->{$code} ? 'left' : 'right';
}
=head2 $self->dir()
In order to do proper multilingual HTML formatting, you need to have a
sensible value for the XHTML dir="ltr|rtl" attribute.
If the language is written left to right, this method returns 'ltr'.
If the language is written right to left, this method returns 'rtl'.
=cut
sub dir
{
my $self = shift;
my $code = $self->code;
lib/MKDoc/resources/templates/core/it_worked/en.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">
<!--?
MKDoc-Core it_worked template
The page content is split into 3 sections using divs with the classes
header, content and footer.
$Id: en.html,v 1.7 2004/04/26 10:13:55 jhiver Exp $
lib/MKDoc/resources/templates/core/not_found/en.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">
<!--?
MKDoc-Core not_found 404 error template
The page content is split into 3 sections using divs with the classes
header, content and footer.
$Id: en.html,v 1.6 2004/04/26 10:13:55 jhiver Exp $
( run in 0.984 second using v1.01-cache-2.11-cpan-49f99fa48dc )