Posted on 2006-03-20 12:36:46-08 by szabgab
Writing a Hebrew (right to left) file
When reading a Hebrew written file the field read first is the right-most field as expected.
How can I write a file so that it will be rendered from right to left?
Direct Responses: 1975 | Write a response
Posted on 2006-03-20 15:35:11-08 by jmcnamara in response to 1974
Re: Writing a Hebrew (right to left) file

The Spreadsheet::WriteExcel parent class supports a worksheet right_to_left() method for Hebew style worksheets. So you should be able to do something like the following with Spreadsheet::WriteExcel::Simple:

my $spreadsheet = Spreadsheet::WriteExcel::Simple->new(); my $worksheet = $spreadsheet->sheet(); $worksheet->right_to_left(); ...
John.
--
Direct Responses: 1977 | Write a response
Posted on 2006-03-20 15:54:32-08 by szabgab in response to 1975
Re: Writing a Hebrew (right to left) file

Thanks!

It is actually works like this:

my $xls = Spreadsheet::WriteExcel::Simple->new; $xls->sheet->right_to_left();

Now I only need to recognize during the time I am parsing the input file if that was L2R or R2L and save it accordingly.

Gabr

Direct Responses: 1978 | Write a response
Posted on 2006-03-20 15:55:50-08 by szabgab in response to 1977
Re: Writing a Hebrew (right to left) file
and if I could spell my own name correctly..... s/Gabr/Gabor/
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.