Hi Manuel,
I'm trying to rebuild fop with the tweaked linebreak rules as
described below, but I it fails, saying:
junit:
BUILD FAILED
/home/brad/Work/fop/trunk/build.xml:947: NOTE:
**************************************************************************
* One or more of the Junit tests had Failures or Errors or were skipped! *
* Please check the output above for relevant messages. *
* Or use the "junit-reports" target to generate HTML test reports. *
**************************************************************************
The "above output" is hundreds of lines of info and warning messages,
but no errors. I ran the junit-reports target and it shows 422 tests
with 0 errors. I'm not sure what "errors were skipped" would entail.
Any suggestions would be appreciated. I'm fairly certain I saw this
the last time I attempted a build, so I don't think it's due to the
change I made.
--Brad
On 1/2/02, Manuel Mall <[EMAIL PROTECTED]> wrote:
On Saturday 09 June 2007 00:50, Brad Smith wrote:
> I'm afraid most of the implementation-level discussion of this is
> above me, but I can give you a hint that might prove helpful: our
> translator did some experimentation and found that fop 0.93 breaks
> ko-KR correctly, whereas fop trunk does not. On the other hand, 0.93
> does not correctly break japanese lines, but trunk does.
>
Brad,
as stated before fop-trunk breaks Korean basically the same as Chinese,
that is each consecutive pair of Korean characters are treated as a
break opportunity. This is consistent with the default specified in the
relevant Unicode standard.
If you want to change this behaviour you need to change the line
breaking pair table used by fop, this means building yourself a custom
fop version.
Here are some hints (not tested) how to do that.
1) Edit the file src/codegen/unicode/data/LineBreakPairTable.txt, which
is basically a table, with a text editor. In the H2/H2, H2/H3, H3/H2,
H3/H3 cells change the character _ (underscore) to % (percent). Note:
Underscore indicates a direct break opportunity between characters of
this class while percent indicates an indirect opportunity, that is
break only if spaces intervene.
2) Now run the codegen-unicode ant target contained in the standard fop
build.xml file. This should create a new LineBreakUtils.java file in
the fop top level build directory.
3) Copy that file to src/java/org/apache/fop/text/linebreak
4) Rebuild fop
Hope this helps
Manuel
> --Brad
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
~ Second Shift: An original, serialized audio adventure ~
http://www.secondshiftpodcast.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]