?? wrote: > xmleditor-support???? > > I want to convert the DocBook to pdf document in XXE,But When the > DocBook contains chinese information,The output pdf document will not > correctly display.How can I deal with the problem?
We don't know. We are currently investigating this problem. To our surprise, we have discovered a few months ago that, unlike HTML and XML, PDF (and Acrobat Reader) is a format which cannot be easily internationalized. Solving the question you ask is currently on the top of our TODO list because this problem happens to all non-Latin1 users (that is, not only to Chinese users but also to Russian users, Czech users, etc). > Another question: > there are string in my document: > ADBBBBBBBBCCCCCCCCC > In pdf document,I want to set the font of "BBBBBBBB" as Times new > roman,other string as other font.How can I deal with the question? There is no direct relation between what you write in your DocBook document and the fonts being used in the generated HTML or PDF. The reason is that, with XML, there is a total separation between content and presentation. Now, you clearly need to write in your DocBook document something like this: AD<phrase xml:lang="en">BBBBBBBB</phrase>CCCCCCCCC Because you wrapped the "BBBBBBBB" into a specific element and because you specified the language of this element[*], there is now a chance that the conversion process (DocBook--[Saxon]-->XSL-FO--[FOP]-->PDF) uses Times new roman for string "BBBBBBBB". However this is unlikely to happen unless someone customizes the DocBook XSL style sheets used by Saxon to convert DocBook to XSL-FO. ======================================================================= Our recommendation: You ask legitimate end-user questions. However you need to understand that writing documentation with DocBook (whatever the editing tool) is very different than writing documentation with Microsoft Word. As a writer, your responsibility is to concentrate on the contents. You are not supposed to care about producing HTML, RTF or PDF. You responsibility is just to create the best possible content in DocBook. The problem of converting DocBook to good-looking HTML, RTF or PDF cannot/must not be solved by the end-user. It is the responsibility of your IT staff or internal consultant or external consultant to do that once for all for the all writers in your company. If, in your company, you don't have someone who is ready to invest several days of work to solve the problem "convert Chinese DocBook to good-looking HTML, RTF or PDF" then we strongly recommend to give up the idea of writing documentation in DocBook. ======================================================================= --- [*] Do not specify xml:lang="en" unless "BBBBBBBB" is actually in English. Instead specify something like this: <phrase role="roman">BBBBBBBB</phrase>

