NAME
CSS::Janus - Converts a left-to-right Cascading Style Sheet (CSS) into a right-to-left one
SYNOPSIS
use CSS::Janus;
$janus = CSS::Janus->new;
@lines_rtl = @{$janus->ChangeLeftToRightToLeft(\@lines)};
DESCRIPTION
CSS::Janus replaces "left" oriented things in a Cascading Style Sheet (CSS) file such as float, padding, margin with "right" oriented values, and vice versa.
This module is a Perl port of CSSJanus by Lindsey Simon <elsigh@google.com>.
Constructor
Method
- ChangeLeftToRightToLeft ( $lines, [ options... ] )
-
Turns lines into a stream and runs the fixing functions against it.
$lines is a reference to array of lines. Following options are available.
- swap_ltr_rtl_in_url => 0|1
-
Overrides this flag if param is set.
- swap_left_right_in_url => 0|1
-
Overrides this flag if param is set.
Returns the reference to array of same lines, but with left and right fixes.
VERSION
Consult $VERSION
variable.
SEE ALSO
CSSJanus http://cssjanus.commoner.com/.
AUTHOR
Hatuka*nezumi - IKEDA Soji <hatuka(at)nezumi.nu>.
COPYRIGHT
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.