[jira] [Updated] (FOP-2452) the string-length($str) result is incorrect if $str contains japanese character
[ https://issues.apache.org/jira/browse/FOP-2452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] zhangcui updated FOP-2452: -- Description: xsl:variable name=aa xsl:value-of select=string-length('1ff{H1}ガメン') + 10 / xsl:value-of select='mm' / /xsl:variable fo:table fo:table-column column-number=1 / fo:table-body fo:table-row fo:table-cell fo:block xsl:value-of select='1ff{H1}ガメン' /xsl:value-of select='H1' / /fo:block fo:block start-indent={$aa} xsl:value-of select='HH' / /fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table result: 1ff{H1}ガメンH1 HH it should be like this 1ff{H1}ガメンH1 HH actually,i want layout like this,H1andHH are Vertical alignment 1ff{H1}ガメン H1 HH how can theH1andHH become vertical alignment ? if anyone can help,thank you! was: xsl:variable name=aa xsl:value-of select=string-length('1ff{H1}ガメン') + 10 /xsl:value-of select='mm' / /xsl:variable fo:table fo:table-column column-number=1 / fo:table-body fo:table-row fo:table-cell fo:block xsl:value-of select='1ff{H1}ガメン' /xsl:value-of select='H1' / /fo:block fo:block start-indent={$aa} xsl:value-of select='HH' / /fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table result: 1ff{H1}ガメンH1 HH it should be like this 1ff{H1}ガメンH1 HH actually,i want layout like this,H1andHH are Vertical alignment 1ff{H1}ガメン H1 HH how can theH1andHH become vertical alignment ? if anyone can help,thank you! the string-length($str) result is incorrect if $str contains japanese character --- Key: FOP-2452 URL: https://issues.apache.org/jira/browse/FOP-2452 Project: Fop Issue Type: Bug Environment: fop1.0 Reporter: zhangcui xsl:variable name=aa xsl:value-of select=string-length('1ff{H1}ガメン') + 10 / xsl:value-of select='mm' / /xsl:variable fo:table fo:table-column column-number=1 / fo:table-body fo:table-row fo:table-cell fo:block xsl:value-of select='1ff{H1}ガメン' /xsl:value-of select='H1' / /fo:block fo:block start-indent={$aa} xsl:value-of select='HH' / /fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table result: 1ff{H1}ガメンH1 HH it should be like this 1ff{H1}ガメンH1 HH actually,i want layout like this,H1andHH are Vertical alignment 1ff{H1}ガメン H1 HH how can theH1andHH become vertical alignment ? if anyone can help,thank you! -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (FOP-2452) the string-length($str) result is incorrect if $str contains japanese character
[ https://issues.apache.org/jira/browse/FOP-2452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] zhangcui updated FOP-2452: -- Description: xsl:variable name=aa xsl:value-of select=string-length('1ffガメン') + 10 / xsl:value-of select='mm' / /xsl:variable fo:table fo:table-column column-number=1 / fo:table-body fo:table-row fo:table-cell fo:block xsl:value-of select='1ffガメン' /xsl:value-of select='H1' / /fo:block fo:block start-indent={$aa} xsl:value-of select='HH' / /fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table result: 1ffガメンH1 ---HH it should be like this 1ffガメンH1 --HH actually,i want layout like this,H1andHH are Vertical alignment 1ffガメン---H1 --HH how can theH1andHH become vertical alignment ? if anyone can help,thank you! was: xsl:variable name=aa xsl:value-of select=string-length('1ff{H1}ガメン') + 10 / xsl:value-of select='mm' / /xsl:variable fo:table fo:table-column column-number=1 / fo:table-body fo:table-row fo:table-cell fo:block xsl:value-of select='1ff{H1}ガメン' /xsl:value-of select='H1' / /fo:block fo:block start-indent={$aa} xsl:value-of select='HH' / /fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table result: 1ff{H1}ガメンH1 HH it should be like this 1ff{H1}ガメンH1 HH actually,i want layout like this,H1andHH are Vertical alignment 1ff{H1}ガメン H1 HH how can theH1andHH become vertical alignment ? if anyone can help,thank you! the string-length($str) result is incorrect if $str contains japanese character --- Key: FOP-2452 URL: https://issues.apache.org/jira/browse/FOP-2452 Project: Fop Issue Type: Bug Environment: fop1.0 Reporter: zhangcui xsl:variable name=aa xsl:value-of select=string-length('1ffガメン') + 10 / xsl:value-of select='mm' / /xsl:variable fo:table fo:table-column column-number=1 / fo:table-body fo:table-row fo:table-cell fo:block xsl:value-of select='1ffガメン' /xsl:value-of select='H1' / /fo:block fo:block start-indent={$aa} xsl:value-of select='HH' / /fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table result: 1ffガメンH1 ---HH it should be like this 1ffガメンH1 --HH actually,i want layout like this,H1andHH are Vertical alignment 1ffガメン---H1 --HH how can theH1andHH become vertical alignment ? if anyone can help,thank you! -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (FOP-2333) knowing Multi threading issues for FOP 1.1
[ https://issues.apache.org/jira/browse/FOP-2333?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14338196#comment-14338196 ] Krishankant singh commented on FOP-2333: We cached the Teamplates Object for this project and saw a dramatic reduction in CPU usage and it brought stability to the application as well. The CPU usage was halved after implementing this in production environment. Refer to- http://www.onjava.com/pub/a/oreilly/java/news/javaxslt_0801.html http://docstore.mik.ua/orelly/xml/jxslt/ch09_03.htm knowing Multi threading issues for FOP 1.1 -- Key: FOP-2333 URL: https://issues.apache.org/jira/browse/FOP-2333 Project: Fop Issue Type: Improvement Components: unqualified Affects Versions: 1.1 Environment: Production Reporter: Krishankant singh Priority: Critical Labels: performance Fix For: 1.1 Original Estimate: 672h Remaining Estimate: 672h Hi, I am a software engineer - java/j2ee We have a production application that creates 500 thousand pdf/day and it has implemented fop 0.95 As per current implementation in our code, we have not shared the FopFactory instance for threads. For each thread, we create a new FopFactory instance, so after 6 or 7 days, the application CPU usage is too high and the application needs to be restarted every 6 - 7 days. As we know that creating new FopFactory instance for each thread is a very costly operation, so to cater to above problem can we share one FopFactory instance for all threads. Are there any problems reported with this approach in fop 1.1 because we can for sure upgrade to fop 1.1 from fop 0.95 -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Closed] (FOP-2452) the string-length($str) result is incorrect if $str contains japanese character
[ https://issues.apache.org/jira/browse/FOP-2452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pascal Sancho closed FOP-2452. -- Resolution: Invalid this issue is a pure XSLT issue, and is out of the scope of FOP. the string-length($str) result is incorrect if $str contains japanese character --- Key: FOP-2452 URL: https://issues.apache.org/jira/browse/FOP-2452 Project: Fop Issue Type: Bug Environment: fop1.0 Reporter: zhangcui xsl:variable name=aa xsl:value-of select=string-length('1ffガメン') + 10 / xsl:value-of select='mm' / /xsl:variable fo:table fo:table-column column-number=1 / fo:table-body fo:table-row fo:table-cell fo:block xsl:value-of select='1ffガメン' /xsl:value-of select='H1' / /fo:block fo:block start-indent={$aa} xsl:value-of select='HH' / /fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table result: 1ffガメンH1 ---HH it should be like this 1ffガメンH1 --HH actually,i want layout like this,H1andHH are Vertical alignment 1ffガメン---H1 --HH how can theH1andHH become vertical alignment ? if anyone can help,thank you! -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (FOP-2452) the string-length($str) result is incorrect if $str contains japanese character
[ https://issues.apache.org/jira/browse/FOP-2452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14338204#comment-14338204 ] Pascal Sancho commented on FOP-2452: oups, big fingers... the string-length($str) result is incorrect if $str contains japanese character --- Key: FOP-2452 URL: https://issues.apache.org/jira/browse/FOP-2452 Project: Fop Issue Type: Bug Environment: fop1.0 Reporter: zhangcui xsl:variable name=aa xsl:value-of select=string-length('1ffガメン') + 10 / xsl:value-of select='mm' / /xsl:variable fo:table fo:table-column column-number=1 / fo:table-body fo:table-row fo:table-cell fo:block xsl:value-of select='1ffガメン' /xsl:value-of select='H1' / /fo:block fo:block start-indent={$aa} xsl:value-of select='HH' / /fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table result: 1ffガメンH1 ---HH it should be like this 1ffガメンH1 --HH actually,i want layout like this,H1andHH are Vertical alignment 1ffガメン---H1 --HH how can theH1andHH become vertical alignment ? if anyone can help,thank you! -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (FOP-2450) [PATCH] preprocessing for table-layout=auto
[ https://issues.apache.org/jira/browse/FOP-2450?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gregor Berg updated FOP-2450: - Attachment: 2015-02-26-auto-fop-1_1v2.patch *V2* (2015-02-26-auto-fop-1_1v2.patch): - tables contained in other tables propagate their width requirements (fixes main problem of V1) - for now, at least one specific type of ExternalGraphic propagates a suitable width requirement - removed redundant code [PATCH] preprocessing for table-layout=auto - Key: FOP-2450 URL: https://issues.apache.org/jira/browse/FOP-2450 Project: Fop Issue Type: New Feature Components: fo/unqualified Affects Versions: 1.1 Environment: tested on Win7 (JDK 7) and Mac OS 10.9 (JDK8) Reporter: Gregor Berg Labels: patch Fix For: 1.1 Attachments: 2015-02-20-fop-1_1v1.patch, 2015-02-26-auto-fop-1_1v2.patch, auto-table-in-fixed-table-in-auto-table.xml, auto-table-in-fixed-table-in-auto-table.xml.pdf, resize-all-but-static-spanned-columns.pdf, resize-all-but-static-spanned-columns.xml Hi everybody, I had some time to work on the table-layout=auto feature. Inspired by the postprocessing done in issue FOP-1226, I tried to propagate the computed values up the rendering process. Finally, I decided to opt for preprocessing and what can I tell you - it works, even for auto tables in fixed tables in auto tables (see attached xml files). Since I was mainly focused on the kind of tables found at my employer, I would like to get your feedback on how well this patch does for other users' tables. If you deem the effort worthwhile, I would try to port this patch into the trunk version - currently, it only applies to the tagged version 1.1. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (FOP-2452) the string-length($str) result is incorrect if $str contains japanese character
zhangcui created FOP-2452: - Summary: the string-length($str) result is incorrect if $str contains japanese character Key: FOP-2452 URL: https://issues.apache.org/jira/browse/FOP-2452 Project: Fop Issue Type: Bug Environment: fop1.0 Reporter: zhangcui xsl:variable name=aa xsl:value-of select=string-length('1ff{H1}ガメン') + 10 /xsl:value-of select='mm' / /xsl:variable fo:table fo:table-column column-number=1 / fo:table-body fo:table-row fo:table-cell fo:block xsl:value-of select='1ff{H1}ガメン' /xsl:value-of select='H1' / /fo:block fo:block start-indent={$aa} xsl:value-of select='HH' / /fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table result: 1ff{H1}ガメンH1 HH it should be like this 1ff{H1}ガメンH1 HH actually,i want layout like this,H1andHH are Vertical alignment 1ff{H1}ガメン H1 HH how can theH1andHH become vertical alignment ? if anyone can help,thank you! -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (FOP-2452) the string-length($str) result is incorrect if $str contains japanese character
[ https://issues.apache.org/jira/browse/FOP-2452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14338208#comment-14338208 ] Pascal Sancho commented on FOP-2452: you should 1st ask on XSLT user list (Cf. [1]), more appropriate for such question, and, if issue is confirmed, open an issue on relevant bugtracker, depending on what XSLT engine you are using. Note that for convenience, FOP comes with Xalan. [1] http://xmlgraphics.apache.org/fop/maillist.html#xslt-mulberry the string-length($str) result is incorrect if $str contains japanese character --- Key: FOP-2452 URL: https://issues.apache.org/jira/browse/FOP-2452 Project: Fop Issue Type: Bug Environment: fop1.0 Reporter: zhangcui xsl:variable name=aa xsl:value-of select=string-length('1ffガメン') + 10 / xsl:value-of select='mm' / /xsl:variable fo:table fo:table-column column-number=1 / fo:table-body fo:table-row fo:table-cell fo:block xsl:value-of select='1ffガメン' /xsl:value-of select='H1' / /fo:block fo:block start-indent={$aa} xsl:value-of select='HH' / /fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table result: 1ffガメンH1 ---HH it should be like this 1ffガメンH1 --HH actually,i want layout like this,H1andHH are Vertical alignment 1ffガメン---H1 --HH how can theH1andHH become vertical alignment ? if anyone can help,thank you! -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (FOP-2250) Arabic characters are not connected on PCL
[ https://issues.apache.org/jira/browse/FOP-2250?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Luis Bernardo updated FOP-2250: --- Attachment: fop-courier.xconf arabic-trunk.pdf arabic-trunk.pcl The output from trunk (arabic-trunk.pcl) is attached, together with its conversion to pdf. Is the out put wrong? The fop.xconf attached to the issue has no fonts configured so you should not expect much if you use it... Attached is fop-courier.xconf which has the font configured. Arabic characters are not connected on PCL -- Key: FOP-2250 URL: https://issues.apache.org/jira/browse/FOP-2250 Project: Fop Issue Type: Bug Affects Versions: 1.1 Environment: Windows 7, x64 Reporter: Konrad Gajewski Attachments: PCL_issue.jpg, arabic-trunk.pcl, arabic-trunk.pdf, arabic.fo, arabic.pcl, arabic.pcl.pdf, fop-courier.xconf, fop.xconf, test2.pdf Hi, When I try to print document on HP printer, Arabic characters are not printed correctly. They should be connected. regards, Konrad Gajewski -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (FOP-2453) fo:list-item-label Automatically wrap when it contains japanese character
zhangcui created FOP-2453: - Summary: fo:list-item-label Automatically wrap when it contains japanese character Key: FOP-2453 URL: https://issues.apache.org/jira/browse/FOP-2453 Project: Fop Issue Type: Bug Reporter: zhangcui xsl:variable name=aa xsl:value-of select=string-length('1ff章2') + 10 / xsl:value-of select='mm' / /xsl:variable fo:table fo:table-column column-number=1 / fo:table-body fo:table-row fo:table-cell fo:list-block fo:list-item fo:list-item-label end-indent=label-end() fo:block xsl:value-of select='1ff章2' / /fo:block /fo:list-item-label fo:list-item-body start-indent={$aa} fo:blockxsl:value-of select='HH1' //fo:block /fo:list-item-body /fo:list-item fo:list-item fo:list-item-label end-indent=label-end() fo:block/fo:block /fo:list-item-label fo:list-item-body start-indent={$startIndent} fo:blockxsl:value-of select='HH2' //fo:block /fo:list-item-body /fo:list-item /fo:list-block /fo:table-cell /fo:table-row /fo:table-body /fo:table it should be 1ff章2---HH1 ---HH2 but the result is 1ff---HH1 章 2 ---HH2 and if change the '1ff章2' to '1fff6662',it goes well. if do not use the fo:list-block,like this fo:table-cell fo:block xsl:value-of select='1ff章2' / /fo:block /fo:table-cell the '1ff章2'display in a line,do not wrap. i cannot find the reason. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (FOP-2452) the string-length($str) result is incorrect if $str contains japanese character
[ https://issues.apache.org/jira/browse/FOP-2452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14339676#comment-14339676 ] zhangcui commented on FOP-2452: --- thanks for your reply. i change the code, could you check this https://issues.apache.org/jira/browse/FOP-2453 the string-length($str) result is incorrect if $str contains japanese character --- Key: FOP-2452 URL: https://issues.apache.org/jira/browse/FOP-2452 Project: Fop Issue Type: Bug Environment: fop1.0 Reporter: zhangcui xsl:variable name=aa xsl:value-of select=string-length('1ffガメン') + 10 / xsl:value-of select='mm' / /xsl:variable fo:table fo:table-column column-number=1 / fo:table-body fo:table-row fo:table-cell fo:block xsl:value-of select='1ffガメン' /xsl:value-of select='H1' / /fo:block fo:block start-indent={$aa} xsl:value-of select='HH' / /fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table result: 1ffガメンH1 ---HH it should be like this 1ffガメンH1 --HH actually,i want layout like this,H1andHH are Vertical alignment 1ffガメン---H1 --HH how can theH1andHH become vertical alignment ? if anyone can help,thank you! -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (FOP-2452) the string-length($str) result is incorrect if $str contains japanese character
[ https://issues.apache.org/jira/browse/FOP-2452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14339677#comment-14339677 ] zhangcui commented on FOP-2452: --- thanks for your reply. i change the code, could you check this https://issues.apache.org/jira/browse/FOP-2453 the string-length($str) result is incorrect if $str contains japanese character --- Key: FOP-2452 URL: https://issues.apache.org/jira/browse/FOP-2452 Project: Fop Issue Type: Bug Environment: fop1.0 Reporter: zhangcui xsl:variable name=aa xsl:value-of select=string-length('1ffガメン') + 10 / xsl:value-of select='mm' / /xsl:variable fo:table fo:table-column column-number=1 / fo:table-body fo:table-row fo:table-cell fo:block xsl:value-of select='1ffガメン' /xsl:value-of select='H1' / /fo:block fo:block start-indent={$aa} xsl:value-of select='HH' / /fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table result: 1ffガメンH1 ---HH it should be like this 1ffガメンH1 --HH actually,i want layout like this,H1andHH are Vertical alignment 1ffガメン---H1 --HH how can theH1andHH become vertical alignment ? if anyone can help,thank you! -- This message was sent by Atlassian JIRA (v6.3.4#6332)