PDA

View Full Version : chinese formatting issue(s)


Superbob0000
01-14-2006, 12:58 AM
hopefully you can help here, because i cant figure out the right combo that will work. I have a input/output big5/unicode html file. i want it to display like you think it should. here is my code.

<a name="雅各雅 434:13"></a>(<strong>雅各雅 434:13</strong>) 人受考驗的時候不該說:“是上帝考驗
我。”因為上帝既不能被
惡事考驗,他自己也不用惡事考驗人。<br /></p>


now if i <pre></pre> this, it goes off the side of the screen. not what i want. if i normal <p></p> or even css <span> , it breaks at the space after the closing ")" . like this

(雅各雅 434:13)
人受考驗的時候不該說:“是上帝考驗我。”因為上帝既不能被惡事考驗,他自己也不用惡事考驗人 。



well i want it to look like this(the break being whereever the right side of screen is. so if someone changes font size in isilo, it adjusts.)


(雅各雅 434:13) 人受考驗的時候不該說:“是上帝考驗我。”因為
上帝既不能被惡事考驗,他自己也不用惡事考驗人。

I just cant seem to get it to work. my assumption is the encoding output, but it doesnt make sense to me.

iSilo
01-14-2006, 07:44 AM
iSilo breaks lines at either whitespace or if there is no whitespace in the space within the screen line, then at the end of the screen line. This works for Western language text. So basically iSilo does not have specialized logic for breaking lines for content in Chinese.

Superbob0000
01-14-2006, 10:40 AM
well i got it to work somewhat. at least it will work. i can use the &nbsp code for unicode only, (big5/simp) inserts a "?" so in my example:

<a name="雅各雅 434:13"></a>(<strong>雅各雅 434:13</strong>)

becomes

<a name="雅各雅 434:13"></a>(<strong>雅各雅&nbsp434:13</strong>)&nbsp

it looks good on screen, because isilo handles the wrap-around for normal chinese characters just fine.

again thanks for help