RE: Support for Arabic in FOP
Hi Prakash, I need fop to be able to handle arabic text. I tried to generate a PDF file with the Sebastian fop code, but the arabic text is not correctly shaped. I must be doing something wrong... Can you please send me an example? Thanks in advance. best regards, Sérgio Lopes Prakash sen wrote: Hi, I am not sure on the licensing part as sebastian did some changes in FOP code and he provided me the jars. And as per what i had checked those jar print arabic correctly. Possibly he will only be able to answer and I am nots ure whether the change was made keeping FOP standards. He was planning to do bidi algorithm, no idea whether he worked on it later and whether he contribuited the below change to FOP. Below were his comments - If I set the writing-mode to rl-tb my text is flipped vertical. This happens because the CTM class rotates the transformation matrix for rendering according to the writing mode. If I want to write right-to-left this has nothing to do with mirroring of cause and I disabled it, because I want to print arabic text. So what is the purpose of mirroring in rl-tb writing-mode? What errors will appear if I disable the CTM.getWMctm() function that does the mirroring according to the writing-mode? I achived printing (pdf) arabic text after some weeks of work ignoring any xsl:fo recommendations. The most things I did in the TextLayoutManager. Now I'm thinking about implementing it according to the recommendations and the BIDI algorithm. Hi Prakash, you can download the version of FOP that I use to print Arabic script from www.anneundsebp.de/fop/fop.html I hope it works for you. Unfortunately I don't understand Arabic but I know that there are still some problems with the type setting. Maybe you can inform me about bugs you'll find. I'll add some explanations and the source code in a few days. Regards Sebastian -- View this message in context: http://old.nabble.com/Volunteering-to-work-on-FOP-development-tp25442059p26499904.html Sent from the FOP - Dev mailing list archive at Nabble.com.
RE: Support for Arabic in FOP
Hi, I cannot sign the license because not all the work is mine. I've uploaded it again here: http://www.hmedia.de/wiki/doku.php?id=forum:foparabic The classes in the intl package are free available in the internet but under other licenses. I think all the changes in the org.apache.fop.* packages are my 'intellectual property'. So I could sign the contributor license for these changes, if needed. But as Jeremias already said, the things I did are not correct (e.g. mirroring in the CTM class or whatever). Maybe its ok to take my stuff as a starting point and implement it in the right way. Good Luck. Sebastian -- View this message in context: http://www.nabble.com/Volunteering-to-work-on-FOP-development-tp25442059p26024361.html Sent from the FOP - Dev mailing list archive at Nabble.com.
Re: Support for Arabic in FOP
Prakash, I think you can safely remove the mirroring in the CTM. It's definitely not the right thing to do for rl-tb. However, please check the test cases in test/layoutengine/standard-testcases which probably contain checks for the CTM. These will need to be changed. Please try to contact the original author of the changes you picked up. If we can get hold of him, we can probably get the necessary license clearing from him. If his changes add considerable new code and functionality, we'll need a ICLA [1] of him in the ASF's records at the very least. The same applies to you if you add more than just a few lines of code. [1] http://www.apache.org/licenses/#clas I think it's great that there's motion once more in the area of Arabic script. Many have talked about it (or requested it) but so far nobody followed through to the end. Please keep in mind that most (if not all) of the existing committers don't have knowledge about Arabic script so it's difficult for us to recognize whether a result is right or wrong. So I think it's going to be important to have some documentation (for example on the Wiki) on the topic. Some images that illustrate the results will be helpful. Also, our layout engine test suite should get some test cases for Arabic script which serve as regression tests. That way we can slowly build knowledge about non-latin scripts and avoid accidentally breaking working code after any such functionality has been added. I know we may be asking a lot, so thanks a lot in advance for your patience and persistence. On 30.09.2009 14:27:33 Prakash sen wrote: Hi, I am not sure on the licensing part as sebastian did some changes in FOP code and he provided me the jars. And as per what i had checked those jar print arabic correctly. Possibly he will only be able to answer and I am nots ure whether the change was made keeping FOP standards. He was planning to do bidi algorithm, no idea whether he worked on it later and whether he contribuited the below change to FOP. Below were his comments - If I set the writing-mode to rl-tb my text is flipped vertical. This happens because the CTM class rotates the transformation matrix for rendering according to the writing mode. If I want to write right-to-left this has nothing to do with mirroring of cause and I disabled it, because I want to print arabic text. So what is the purpose of mirroring in rl-tb writing-mode? What errors will appear if I disable the CTM.getWMctm() function that does the mirroring according to the writing-mode? I achived printing (pdf) arabic text after some weeks of work ignoring any xsl:fo recommendations. The most things I did in the TextLayoutManager. Now I'm thinking about implementing it according to the recommendations and the BIDI algorithm. Hi Prakash, you can download the version of FOP that I use to print Arabic script from www.anneundsebp.de/fop/fop.html I hope it works for you. Unfortunately I don't understand Arabic but I know that there are still some problems with the type setting. Maybe you can inform me about bugs you'll find. I'll add some explanations and the source code in a few days. Regards Sebastian -- View this message in context: http://www.nabble.com/Volunteering-to-work-on-FOP-development-tp25442059p25680065.html Sent from the FOP - Dev mailing list archive at Nabble.com. Jeremias Maerki
RE: Support for Arabic in FOP
Hi, I am not sure on the licensing part as sebastian did some changes in FOP code and he provided me the jars. And as per what i had checked those jar print arabic correctly. Possibly he will only be able to answer and I am nots ure whether the change was made keeping FOP standards. He was planning to do bidi algorithm, no idea whether he worked on it later and whether he contribuited the below change to FOP. Below were his comments - If I set the writing-mode to rl-tb my text is flipped vertical. This happens because the CTM class rotates the transformation matrix for rendering according to the writing mode. If I want to write right-to-left this has nothing to do with mirroring of cause and I disabled it, because I want to print arabic text. So what is the purpose of mirroring in rl-tb writing-mode? What errors will appear if I disable the CTM.getWMctm() function that does the mirroring according to the writing-mode? I achived printing (pdf) arabic text after some weeks of work ignoring any xsl:fo recommendations. The most things I did in the TextLayoutManager. Now I'm thinking about implementing it according to the recommendations and the BIDI algorithm. Hi Prakash, you can download the version of FOP that I use to print Arabic script from www.anneundsebp.de/fop/fop.html I hope it works for you. Unfortunately I don't understand Arabic but I know that there are still some problems with the type setting. Maybe you can inform me about bugs you'll find. I'll add some explanations and the source code in a few days. Regards Sebastian -- View this message in context: http://www.nabble.com/Volunteering-to-work-on-FOP-development-tp25442059p25680065.html Sent from the FOP - Dev mailing list archive at Nabble.com.
RE: Support for Arabic in FOP
Quoting Prakash sen prakash@gmail.com: Hi, I am not sure on the licensing part as sebastian did some changes in FOP code and he provided me the jars. And as per what i had checked those jar print arabic correctly. Possibly he will only be able to answer and I am nots ure whether the change was made keeping FOP standards. He was planning to do bidi algorithm, no idea whether he worked on it later and whether he contribuited the below change to FOP. He did not commit any change to FOP. Simon This message was sent using IMP, the Internet Messaging Program.
RE: Support for Arabic in FOP
Licensing is not that easy. The ASF requires that the code be submitted under a Contributor License Agreement, see http://www.apache.org/licenses/. Even under more liberal regimes, having no license would not work, because there is nothing that states that it is open source. Simon Quoting Prakash sen prakash@gmail.com: Thank you for your kind offer. What license applies to the jars? Best Regards, Jonathan S. Levinson Senior Software Developer Object Group InterSystems 617-621-0600 Hi, I am not sure on what changes sebastian had made in the source code, but i do have the jar files. If needed i can send them with some sample example. Regards, Prakash Sen. Hi, I dont think there is any license for it... Simply we can use it as it is opensource.. I hope it helps everyone.. Regards, Prakash Sen. This message was sent using IMP, the Internet Messaging Program.
RE: Support for Arabic in FOP
Thank you for your kind offer. What license applies to the jars? Best Regards, Jonathan S. Levinson Senior Software Developer Object Group InterSystems 617-621-0600 -Original Message- From: Prakash sen [mailto:prakash@gmail.com] Sent: Friday, September 18, 2009 1:13 PM To: fop-dev@xmlgraphics.apache.org Subject: RE: Volunteering to work on FOP development Simon Pepping @ Home wrote: Arabic support is very important for us. I looked in nabble for Sebastian's post that would allow FOP to work with Arabic, but was unable to find his post, though I found a reference to it, with a no longer valid hyper-link. This is a link to his message: http://markmail.org/message/qu534sfte3xaaosb#query:sebastian%20weber%20a rabic+page:1+mid:tbj7vyt56wim4bfj+state:results, but the link to his work is no longer valid. Kia Teymourian also worked on Arabic support in FOP, and his work is available at http://user.cs.tu-berlin.de/~kiat/fop/. Regards, Simon Hi, I am not sure on what changes sebastian had made in the source code, but i do have the jar files. If needed i can send them with some sample example. Regards, Prakash Sen. -- View this message in context: http://www.nabble.com/Volunteering-to-work-on-FOP-development-tp25442059 p25512296.html Sent from the FOP - Dev mailing list archive at Nabble.com.
RE: Support for Arabic in FOP
Thank you for your kind offer. What license applies to the jars? Best Regards, Jonathan S. Levinson Senior Software Developer Object Group InterSystems 617-621-0600 -Original Message- From: Prakash sen [mailto:prakash@gmail.com] Sent: Friday, September 18, 2009 1:13 PM To: fop-dev@xmlgraphics.apache.org Subject: RE: Volunteering to work on FOP development Simon Pepping @ Home wrote: Arabic support is very important for us. I looked in nabble for Sebastian's post that would allow FOP to work with Arabic, but was unable to find his post, though I found a reference to it, with a no longer valid hyper-link. This is a link to his message: http://markmail.org/message/qu534sfte3xaaosb#query:sebastian%20weber%20a rabic+page:1+mid:tbj7vyt56wim4bfj+state:results, but the link to his work is no longer valid. Kia Teymourian also worked on Arabic support in FOP, and his work is available at http://user.cs.tu-berlin.de/~kiat/fop/. Regards, Simon Hi, I am not sure on what changes sebastian had made in the source code, but i do have the jar files. If needed i can send them with some sample example. Regards, Prakash Sen. -- View this message in context: http://www.nabble.com/Volunteering-to-work-on-FOP-development-tp25442059 p25512296.html Sent from the FOP - Dev mailing list archive at Nabble.com. Hi, I dont think there is any license for it... Simply we can use it as it is opensource.. I hope it helps everyone.. Regards, Prakash Sen. -- View this message in context: http://www.nabble.com/Volunteering-to-work-on-FOP-development-tp25442059p25516658.html Sent from the FOP - Dev mailing list archive at Nabble.com.