Bug 14057 - [PATCH] implement "text-transform"
Summary: [PATCH] implement "text-transform"
Status: CLOSED WONTFIX
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: general (show other bugs)
Version: 0.20.4
Hardware: All All
: P3 enhancement
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-29 18:35 UTC by Victor Mote
Modified: 2012-04-01 13:51 UTC (History)
0 users



Attachments
patch file for text-transform logic (maintenance branch) (13.62 KB, patch)
2002-10-29 18:36 UTC, Victor Mote
Details | Diff
xsl-fo document for testing features of text-transform (6.67 KB, text/plain)
2002-10-29 18:37 UTC, Victor Mote
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Victor Mote 2002-10-29 18:35:07 UTC
This patch implements the text-transform property. It correctly handles every 
English-language nuance that I have been able to think of. It adds fields to 
each FOText object that point to previous & next FOText objects within the same 
Block, so that the text in related FOText objects can be considered for needed 
context. It then transforms the text as part of the FOText Constructor. Some of 
the fields and methods added may be useful for other parts of FOP as well. This 
code assumes that words do not span multiple blocks.

Caveat: I cannot think of any, but if there are cases (now or in the future)
where FOText objects do not have ancestor Block objects, text-transform will 
not be able to consider other FOText objects for context. This can be fixed by 
storing the Block-like ancestor instead.

Caveat: The definition of "word" for purposes of this property is ambiguous. It 
may need to be tweaked over time, especially for scripts other than Latin. I 
have tried to build an infrastructure that will allow such modifications to be 
pretty easily implemented.

Victor Mote (vic@outfitr.com)
Comment 1 Victor Mote 2002-10-29 18:36:24 UTC
Created attachment 3650 [details]
patch file for text-transform logic (maintenance branch)
Comment 2 Victor Mote 2002-10-29 18:37:32 UTC
Created attachment 3651 [details]
xsl-fo document for testing features of text-transform
Comment 3 Victor Mote 2002-11-04 15:37:00 UTC
As discussed on dev mailing list, we will not do this work in the maintenance 
branch. This patch will be resubmitted if and when it can be reworked for the 
trunk.
Comment 4 Glenn Adams 2012-04-01 13:51:30 UTC
batch transition to closed remaining pre-FOP1.0 resolved bugs