CSS::Janus - Converts a left-to-right Cascading Style Sheet (CSS) into a right-to-left one
use CSS::Janus; $janus = CSS::Janus->new; $css_source_rtl = $janus->transform($css_source);
As Janus have two faces, horizontal texts can run in two directions: left to right and right to left.
CSS::Janus replaces "left" directed things in a Cascading Style Sheet (CSS) file such as float, padding, margin with "right" directed values, and vice versa.
This module is a Perl port of CSSJanus by Lindsey Simon <elsigh@google.com>.
Creates new CSS::Janus object. Following options are available.
Fixes "left"/"right" string within URLs. Default is 0, won't fix.
0
Fixes "ltr"/"rtl" string within URLs. Default is 0, won't fix.
Ignores unmirrorable background-position values. Default is 0, won't ignore and will croak it.
Runs the fixing functions against CSS source.
$lines is a string. Following options are available.
Overrides this flag if param is set.
Returns same lines directions (left and right) are changed.
Consult $VERSION variable.
$VERSION
CSSJanus http://cssjanus.commoner.com/.
A PHP port of CSSJanus http://www.mediawiki.org/wiki/Manual:CSSJanus.php.
Hatuka*nezumi - IKEDA Soji <hatuka(at)nezumi.nu>.
Copyright (C) 2013 Hatuka*nezumi - IKEDA Soji.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install CSS::Janus, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CSS::Janus
CPAN shell
perl -MCPAN -e shell install CSS::Janus
For more information on module installation, please visit the detailed CPAN module installation guide.