On Wednesday 25 Nov 2009 15:15:19 CM wrote: > Deal all, > > INFO> uname -a => Linux perlsrv 2.4.27 #1 Tue Sep 23 15:34:56 CEST > 2008 i686 GNU/Linux > INFO> perl -v => This is perl, v5.8.4 built for i386-linux-thread- > multi
1. Linux Kernel 2.4.27 is incredibly old: http://en.wikipedia.org/wiki/Linux_kernel#Timeline There's already kernel 2.4.37 and kernel 2.6.31.6. Please upgrade, for your own good. 2. perl-5.8.4 is very old as well. There's already 5.8.9 and 5.10.1. ----------- Which system is this? Is it RHEL / CentOS ? I think both of these should not pose a problem in what I'm saying. > > I am seeking advice on how to generate multi-language output in > Perl. > > The task here is to generate a single page of HTML, PDF and plain > text files with each run of the Perl script. > Each of the above has to be in the language chosen by the user in a > web-interface. > The possible choices are : Danish, Finnish , Swedish > Based on the language, I would like to read text from a file > containing language specific characters (like AE and umlaut ) and > generate PDF,HTML and plain text output. > > > > My questions are: > - How do I know if my OS supports printing of these languages Look at your distribution's documentation. It should make use of CUPS ( http://www.cups.org/ , http://en.wikipedia.org/wiki/Common_Unix_Printing_System ) or something. > - How I can type in text in a editor like vi with Finnish/Danish/Swed > characters You can either use the compose key or use vim's (not vi's) Ctrl+K feature: http://vimdoc.sourceforge.net/search.php?search=digraphs&docs=help I have the following mapping for the compose key: <<<<<<<<<<< setxkbmap \ -option "compose:ralt,grp:switch,grp:alt_shift_toggle,grp_led:scroll" \ -variant ",lyx" \ 'us,il' >>>>>>>>>>> Note that it also defines a hebrew keyboard which is less useful for you. You probably want only (untested): <<< setxkbmap -option "compose" 'us' >>> > - How do I enable Perl to understand that a file contains language > specific characters. See: * http://perldoc.perl.org/perlunitut.html > - And finally what should I do to ensure that the output produced by > Perl : PDF, HTML and plain text files dont mess up the special > characters > See above. > > Any advice on this is much appreciated. I know I can do the file read/ > write operations and output generation parts with Perl with some > effort but the language part seems quite a challenge. > > I am in a situation where I do not know where to start. > Regards, Shlomi Fish -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ Parody on "The Fountainhead" - http://shlom.in/towtf Chuck Norris read the entire English Wikipedia in 24 hours. Twice. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/