On 2002.07.23, at 02:26, Robert O'Connor wrote:
>> Here is the sample viewer: >> http://www.chem.nagoya-u.ac.jp/matto/plucker/viewer_en_20020722.prc >> >> Enjoy! > > That is quite a tour de force! > Thank you. > It works extremely well, especially since so many of the documents I > carry are organized into > sections, with a descriptive header at the top of the part I want to > bookmark. > Current one extracts the first line in the view, not the first line in the first visible paragraph. Is it really OK for you? Or please advice me better way. Anyway it is difficult to put meaningful message in only 20 characters..... > Do you think it would be a good idea to add in a line to strip any > newline characters before > you send the string to the bookmak edit field? They are either newlines > or a function code for > an empty space between the text, or similar, showing up as square boxed > characters, since they > aren't in the font set. This is certainly not-critical--it just gives > it little extra polish to > have the square boxes removed from the string in the bookmark field. I > don't know how you would > implement that (since I don't know what way you are getting this great > feature to work), > perhaps read some extra beyond the current length that is read, strip > any newlines from that > string and use the resulting. Or if you are using a stepwise read > approach to read each of the > 16 letters in turn, checking to see whether they are part of a > function code, just replace the > first newline as a space? > I implemented it as an application of "textify view" functions which I'm writing now. The codes are put in view.c file of i18n-bookmark branch. (Thank to Micke for allowing me to access CVS tree, it becomes very confortable to develop multiple extentions at a time) I will add function to strip extra characters. Wait a moment please.
