From owner-freebsd-doc@FreeBSD.ORG Sun Apr 2 17:33:03 2006 Return-Path: X-Original-To: freebsd-doc@FreeBSD.org Delivered-To: freebsd-doc@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1CF5E16A420; Sun, 2 Apr 2006 17:33:03 +0000 (UTC) (envelope-from root@zhao.intron.ac) Received: from zhao.intron.ac (tu073217.ip.tsinghua.edu.cn [166.111.73.217]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B82343D45; Sun, 2 Apr 2006 17:33:01 +0000 (GMT) (envelope-from root@zhao.intron.ac) Received: from zhao.intron.ac (localhost [127.0.0.1]) by zhao.intron.ac (8.13.6/8.13.4) with ESMTP id k32HWslL099725; Mon, 3 Apr 2006 01:32:54 +0800 (CST) (envelope-from root@zhao.intron.ac) Received: (from root@localhost) by zhao.intron.ac (8.13.6/8.13.4/Submit) id k32HWiqn099718; Mon, 3 Apr 2006 01:32:44 +0800 (CST) (envelope-from root) Message-Id: <200604021732.k32HWiqn099718@zhao.intron.ac> References: <200603271422.k2REMhaX028732@zhao.intron.ac> <20060402.181531.102678596.hrs@allbsd.org> <20060403.004732.73716044.hrs@allbsd.org> In-Reply-To: <20060403.004732.73716044.hrs@allbsd.org> From: intron@intron.ac To: Hiroki Sato Date: Mon, 03 Apr 2006 01:30:24 +0800 Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312"; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-doc@FreeBSD.org, cnproj-cvs@lists.cn.freebsd.org Subject: Re: Chinese Bookmark with DVIPDFMx X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Apr 2006 17:33:03 -0000 I used a word "experimentally" in my previous mails to you just because I am walking on a temporary way for test purpose only. Actually, if FDP is transfered into a XSL system, only a few FreeBSD-specific DSSSL style sheets need to be converted into XSL style sheets, and those SGML DTDs need to be converted into XML DTDs with slight changes. After all, most of style sheets for FDP are provided by Norman Walsh, either in DSSSL or in XSL. In fact, Jade/OpenJade's bugs (mainly around its tex-backend) are only minor. TeX's bugs and the glued relationship between Jade/OpenJade and TeX is the substantial of problems. Sometimes, we cannot find a way out for Jade/OpenJade to let TeX consider it as "correct", and maybe even both two sides of a problem are taken as "wrong" by TeX. At least today XML/XSL is the developing trend rather than SGML/DSSSL. So many efforts are focused on XML/XSL in open source community all over the world. XML/XSL system supports Unicode natively, which means all languages including your Nipponese may be well solved. Now MySQL's docments are typeset by Apache FOP, which have better quality than current FreeBSD documents (http://dev.mysql.com/doc/), even only in English. Their PDFs have commercial-level typesetting styles in some details: word-splitting, margin kerning and font expansion, just as LaTeX + microtype package do. It seems that XSL system is absolutely not a simple "it works" one, at least witnessed by 1727-paged "MySQL 5.1 Reference Manual". FreeBSD's style is stability and dependability, not being behind the times. Hiroki Sato wrote: > intron@intron.ac wrote > in : > > in> 1.For LaTeX+DVIPDFM(x): > in> "\usepackage[bookmarks,CJKbookmarks,dvipdfm]{hyperref}" > in> No need for "\AtBeginDvi{\special{pdf:tounicode XXX}}". > > CJKbookmarks option does not work for some encodings (other > than Chinese). I know Big5 works, though. > > in> 2.For LaTeX+DVIPS+GhostScript: > in> "\usepackage[bookmarks,CJKbookmarks,dvips]{hyperref}" > > in> 3.For PDFTeX: > in> "\usepackage[bookmarks,CJKbookmarks,pdftex]{hyperref}" > > Ditto. Anyway, conversion of bookmarks to UTF is important > for all 1, 2, and 3. On Postscript level, using CMap is > handy and portable among various encodings, I think. > > in> Although Chinese support has been merged into FreeBSD CVS tree, > in> I am still not satisfied with buggy Jade/OpenJade, puzzling LISP-style > in> DSSSL and those shabby PDFs. > in> Are you interested in DB2LaTeX/DBLaTeX or Apache FOP? > in> If DB2LaTeX/DBLaTeX is used, the excellent typesetting engine TeX > in> can be used. But after all TeX is led by western open source community, > in> lacking support for oriental languages. > in> As far as I know, Apache FOP can only be run on Java VM. > > I prefer using Norm's DocBook XSL stylesheets and an XSL-FO > processor rather than DB2LaTeX because TeX is still problematic for > not-well-supported languages. For example, xmlroff (textproc/xmlroff) > can generate PDF document from XSL-FO document without Java (not-well > documented, but it also works well for Asian languages). > However, if we use them, we have to convert the existing DSSSL > stylesheet to XSLT at least. > > Just wondering, what bugs did you experienced with Jade/OpenJade? > For now, fixing Jade and JadeTeX is one of the easier solutions > and actually murray@ has been doing so for publishing FreeBSD > Handbook third edition. Switching the current toolchains over to > another ones will be a pain and needs more discussion about > long term plan for FDP document management. Simple "it works" > is not enough as the reason. > > -- > | Hiroki SATO