MvcRazorToPdf icon indicating copy to clipboard operation
MvcRazorToPdf copied to clipboard

RTL and Arabic language support

Open devmondo opened this issue 10 years ago • 8 comments

hi,

this is awesome work, but does it support RTL Languages like Arabic ?

thanks in advanced.

devmondo avatar Oct 21 '14 22:10 devmondo

Good question. Please try and let us know. On Oct 21, 2014 6:07 PM, "devmondo" [email protected] wrote:

hi,

this is awesome work, but does it support RTL Languages like Arabic ?

thanks in advanced.

— Reply to this email directly or view it on GitHub https://github.com/andyhutch77/MvcRazorToPdf/issues/22.

ElanHasson avatar Oct 22 '14 11:10 ElanHasson

@devmondo Could you get this to work?

andyhutch77 avatar Oct 24 '14 13:10 andyhutch77

Sorry for the late reply, you know when you have a new born, life gets up side down :)

no sadly it does not work, no arabic text is rendered instead this text : ( ) () () :

devmondo avatar Oct 28 '14 08:10 devmondo

I'll look at it. Luckily I speak Hebrew. On Oct 28, 2014 4:35 AM, "devmondo" [email protected] wrote:

Sorry for the late reply, you know when you have a new born, life gets up side down :)

no sadly it does not work, no arabic text is rendered instead this text : ( ) () () :

— Reply to this email directly or view it on GitHub https://github.com/andyhutch77/MvcRazorToPdf/issues/22#issuecomment-60723662 .

ElanHasson avatar Oct 28 '14 09:10 ElanHasson

@devmondo "you know when you have a new born, life gets up side down :)" - This is exactly why I'm not on here as much as I used to be. :+1:

andyhutch77 avatar Oct 28 '14 13:10 andyhutch77

@ElanHasson thanks a lot man, Hebrew and Arabic share the many concepts right to left and are descendant from one language, hope this will be fixed as i am yet to find a solution that doe, it would be amazing if we can use this awesome library.

@andyhutch77
then we are in the same club mate :)

devmondo avatar Oct 28 '14 14:10 devmondo

I tried pasting some RTL text into a view and it was just stripped out.

Check out http://geekswithblogs.net/JaydPage/archive/2011/11/02/using-itextsharp-to-correctly-display-hebrew--arabic-text-right.aspx

Document and writer are exposed, you should be able to set rundirection yourself. Give it a shot..

ElanHasson avatar Oct 29 '14 20:10 ElanHasson

@ElanHasson

thanks a lot for the link, but this has problem that if you have English words mixed with Arabic or Hebrew, things will be messed up. you can try it yourself.

devmondo avatar Oct 30 '14 01:10 devmondo