which PDF plug-in is support to Asian languages? i tried prawn PDF::writer both of those dosen''t workout for me. any idea?? -nirosh- -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Marnen Laibow-Koser
2010-Jul-08 16:05 UTC
Re: need pdf gen which is support to Asian languages
nirosh wrote:> which PDF plug-in is support to Asian languages? i tried prawn > PDF::writer both of those dosen''t workout for me. > any idea?? >Prawn should support UTF-8 text. It wouldn''t do font fallback last time I tried, though, so you need to select a font that actually contains the characters you want.> -nirosh-Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org Sent from my iPhone -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
i tried so many time but didn''t get the proper output yet -nirosh- On Jul 8, 9:05 pm, Marnen Laibow-Koser <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> nirosh wrote: > > whichPDF plug-in is support to Asian languages? i tried prawn > >PDF::writer both of those dosen''t workout for me. > > any idea?? > > Prawn should support UTF-8 text. It wouldn''t do font fallback last time > I tried, though, so you need to select a font that actually contains the > characters you want. > > > -nirosh- > > Best, > > -- > Marnen Laibow-Koserhttp://www.marnen.org > mar...-sbuyVjPbboAdnm+yROfE0A@public.gmane.org > > Sent from my iPhone > -- > Posted viahttp://www.ruby-forum.com/.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Peter De Berdt
2010-Jul-09 07:08 UTC
Re: Re: need pdf gen which is support to Asian languages
PrinceXML will do it, but it''s quite expensive (great product with excellent support though). On 09 Jul 2010, at 08:59, nirosh wrote:> i tried so many time but didn''t get the proper output yet > > -nirosh- > > On Jul 8, 9:05 pm, Marnen Laibow-Koser <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: >> nirosh wrote: >>> whichPDF plug-in is support to Asian languages? i tried prawn >>> PDF::writer both of those dosen''t workout for me. >>> any idea?? >> >> Prawn should support UTF-8 text. It wouldn''t do font fallback last >> time >> I tried, though, so you need to select a font that actually >> contains the >> characters you want.Best regards Peter De Berdt -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Mark Kremer
2010-Jul-10 11:42 UTC
Re: Re: need pdf gen which is support to Asian languages
While Prawn does support UTF-8, it doesn''t mean you can print all Asian characters. To print Asian characters you''ll need to have a font (a TTF file if I remember it correctly) that supports them and use that with Prawn, I don''t think the built in fonts support Asian characters. On 8-7-2010 18:05, Marnen Laibow-Koser wrote:> nirosh wrote: > >> which PDF plug-in is support to Asian languages? i tried prawn >> PDF::writer both of those dosen''t workout for me. >> any idea?? >> >> > Prawn should support UTF-8 text. It wouldn''t do font fallback last time > I tried, though, so you need to select a font that actually contains the > characters you want. > > >> -nirosh- >> > Best, > > -- > Marnen Laibow-Koser > http://www.marnen.org > marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org > > Sent from my iPhone >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
i integrate the google indic in my app. So which font i have to use to print those characters in prawn. i almost stuck here. On Jul 10, 4:42 pm, Mark Kremer <m...-35I9eEnyf3ce/i+EH++dVqxOck334EZe@public.gmane.org> wrote:> While Prawn does support UTF-8, it doesn''t mean you can print all Asian > characters. > > To print Asian characters you''ll need to have a font (a TTF file if I > remember it correctly) that supports them and use that with Prawn, I > don''t think the built in fonts support Asian characters. > > On 8-7-2010 18:05, Marnen Laibow-Koser wrote: > > > nirosh wrote: > > >> which PDF plug-in is support to Asian languages? i tried prawn > >> PDF::writer both of those dosen''t workout for me. > >> any idea?? > > > Prawn should support UTF-8 text. It wouldn''t do font fallback last time > > I tried, though, so you need to select a font that actually contains the > > characters you want. > > >> -nirosh- > > > Best, > > > -- > > Marnen Laibow-Koser > >http://www.marnen.org > > mar...-sbuyVjPbboAdnm+yROfE0A@public.gmane.org > > > Sent from my iPhone-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Marnen Laibow-Koser
2010-Jul-10 13:43 UTC
Re: Re: need pdf gen which is support to Asian languages
Mark Kremer wrote:> While Prawn does support UTF-8, it doesn''t mean you can print all Asian > characters. >Yes it does, and you even go on to explain how.> To print Asian characters you''ll need to have a font (a TTF file if I > remember it correctly) that supports them and use that with Prawn, I > don''t think the built in fonts support Asian characters.If that''s so, it''s simply a matter of finding an appropriate font. There are lists on the Web of which fonts contain which characters. Alan Wood maintains a site with that info and more, though I''m not sure it''s up to date. In any case, there are lots of suitable fonts. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Mark Kremer
2010-Jul-11 06:23 UTC
Re: Re: Re: need pdf gen which is support to Asian languages
My previous response was incomplete, let me elaborate. While Unicode supports a lot of Asian characters it does not support all Asian characters (they''re working on it). You can read a bit about it on Wikipedia on http://en.wikipedia.org/wiki/Unicode and http://en.wikipedia.org/wiki/Unicode#Issues, and you can read about it on unicode.org on these FAQs: http://www.unicode.org/faq/han_cjk.html and http://www.unicode.org/faq/indic.html Yehuda Katz also wrote a very informative article on encodings in Ruby: http://yehudakatz.com/2010/05/17/encodings-unabridged/ I hope this information is of some use to you. On 10-7-2010 15:43, Marnen Laibow-Koser wrote:> Mark Kremer wrote: > >> While Prawn does support UTF-8, it doesn''t mean you can print all Asian >> characters. >> >> > Yes it does, and you even go on to explain how. > > >> To print Asian characters you''ll need to have a font (a TTF file if I >> remember it correctly) that supports them and use that with Prawn, I >> don''t think the built in fonts support Asian characters. >> > If that''s so, it''s simply a matter of finding an appropriate font. > There are lists on the Web of which fonts contain which characters. > Alan Wood maintains a site with that info and more, though I''m not sure > it''s up to date. In any case, there are lots of suitable fonts. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Marnen Laibow-Koser
2010-Jul-11 15:31 UTC
Re: Re: Re: need pdf gen which is support to Asian languages
Mark Kremer wrote:> My previous response was incomplete, let me elaborate. > > While Unicode supports a lot of Asian characters it does not support all > Asian characters (they''re working on it).It supports all Indic, East Asian, and Southeast Asian scripts. The only major issue is that there are some lingering questions about certain Chinese characters. However, it is perfectly feasible to use Unicode for any modern Asian script (including Chinese -- the remaining issues are not deal-breakers). I do not believe, then, that this is the OP''s problem. -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org Sent from my iPhone -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.