From: Juergen Katins Date: 2002-08-16T14:56:07+09:00 Subject: Re: A few newbie questions... "Kent Dahl" schrieb: > "Hal E. Fulton" wrote: > > I *have* noticed some annoying anti-features: No page > > numbers, much less links to them; and even more > > importantly, the figures seem to be missing. > > About the figures, did someone mention modifying the JPEGs from the free > german translation some time back? [ > http://home.vr-web.de/juergen.katins/ruby/buch/ ] > Most of these are directly usable, and in the remainders the text can be > changed in any paint program (though the quality does suffer somewhat), > and I think you don't have to go about changing all the XML documents. > (Some clever changes to convert.xsl and an extra XML document if you > want the figure captions should suffice, I think.) It is a bit of a > quick hack, and I'd like to have input from J�rgen Katins, before I give > out any modified files. I inserted links to the pictures into the xml files, and in convert.xsl I used an extra instruction for "img" then. It is included in http://home.vr-web.de/juergen.katins/ruby/downloads/book.zip You can see the results (in english language) at http://home.vr-web.de/juergen.katins/ruby/book/index.html > As for the page numbers/links, are you thinking: > - display pagenumbers in HTML > - links to each and every pagenumber > - links to pagenumbers explicitly stated > > The last of these three I am planning to add to the norwegian > translation, and I see that Katins have done so also. However, here I > see less chance of avoiding going into the XML. Since Dave and Andy use > the LaTeX as source to generate the XML, I'm not sure how to do this > without the solution being fragile. I would have been glad too if Dave and Andy had preserved the LaTex links in the xml files. Instead I had to search the LaTex links in the LaTex files and compare the associated page numbers with the page numbers used in the xml files (while counting paragraphs to better the hits). Then I replaced the page numbers in the xml files by xml tags. These tags were then transformed into html links using some modifications on convert.xsl. It has been a dirty hack and a really tricky undertaking and I hope instead of transforming the LaTex links to page numbers Dave and Andy will transfer them into neat xml tags some time in the future. Same goes for the links used for the index. If someone is interested in the ruby scripts I used I could make them available. Juergen