xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manuel Mall <man...@apache.org>
Subject Re: Alignment of chinese/english characters
Date Fri, 11 May 2007 15:39:11 GMT
On Friday 11 May 2007 22:20, Brad Smith wrote:
> HI all,
> One of our Chinese translators has brought up concerns about fop's
> rendering that I'm not sure what to do about. Aparently in Chinese,
> since all the characters take up the same amount of space, lines
> should always be exactly the same width. Uneven lines look very
> unprofessional.
You are basically mixing a fixed width font (Chinese characters) with a 
variable width font. Its basically the same as when you would mix lets 
say Courier font with Arial. The fixed width characters will not align 
any more because they are are 'intermingled' with the variable width 
characters. Two possible solutions:

1. Use a fixed width font in which the western chars have the same width 
as the Chinese chars.

2. Set text-align to justify but be warned you may not get the same 
effect as with western scripts. Because there are no spaces between the 
Chinese chars it may still look 'funny' as the only adjustable 
whitespace would be around the western chars.

> The problem is that when you mix in western characters and spaces, it
> seems to sometimes offset the line lengths. See the attached snippet
> for an example. I'm a bit confused by this, because line 1 has three
> western characters but sticks out farther than the others, even
> though line 2 has the two western characters and the same number of
> overall characters as line 1 and is the same width as the next line,
> which has only one western character and fewer overall characters.
> But more than what's causing the problem, I guess my question is:
> does anyone know a way to enforce line lengths in the way the my
> translator is asking for? I was hoping there might be a helpful
> fo:block property, but I'm not seeing it.
> Thanks a ton to anyone who can help,
> --Brad

To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org

View raw message