Thread

Posted on Mon Mar 20 14:36:46 2006 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 Mon Mar 20 17:35:11 2006 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 Mon Mar 20 17:54:32 2006 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 Mon Mar 20 17:55:50 2006 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/
Write a response