PDA

View Full Version : Automatic (template-driven) Bookmarks


viacoboni
11-16-2004, 11:03 AM
Maybe its been requested before and I've missed it, but something I feel would be quite useful is automated bookmarks. Often I'll import a text file or html doc that has no bookmarks. The text usually has numbering conventions, dashed lines, subheadings set of with extra newlines, etc. -- something that could mark the location and text of bookmarks.

It would be great to find those benchmarks automatically, preferably with wildcards or even regular expressions, but I'll take whatever we can get.

Perhaps the regex searches could live in iSiloX only, but the Automatic bookmark (option on Find?) could live with just wildcards.

Do you feel this is reasonable? Is there a regex workaround? I'm proficient in Perl but didn't really want to make this a project...

Voltage Spike
11-16-2004, 12:12 PM
While not completely what you are looking for, iSiloX does support the generation of bookmarks from filtered anchor names (http://isilox.com/support/manual/iSiloX/ReferenceManual/DocumentProperties/Bookmarks.htm).

Personally, I tend to convert my books (with custom regular expressions) from plain ASCII to XHTML before conversion. By making sure that chapter anchors have a unique name format, I can then have iSiloX generate the appropriate bookmarks.

viacoboni
11-17-2004, 05:13 AM
Yes, I saw the named anchors option, but a pure text file has no such anchors, true? It would require making a pass on the file to generate an HTML file with anchors in it, correct?

That is what I probably can do technically with Perl but don't really have time for. I'll struggle along without bookmarks.

The suggestion is for either iSiloX or iSilo itself to do that pass to generate the anchor file, using a regular expression that the user provides.

If you wanted to share your code to convert from ASCII to XHTML, it might provide a starting point for myself and others who would like that capability.

Thanks for the reply.

Vince