Mice was beginning to get very tired of sitting by her sister on the bank, and of having nothing to do: once or twice she had peeped into the book ler sister was reading, but it had no pictures or conversations in it, "anc what is the use of a book," thought Alice, "without pictures or :onversation?"So she was considering in her own mind (as well as she :outd, for the hot day made her feel very sleepy and stupid), whether the Pleasure of making a daisy-chain would be worth the trouble of getting jp and picking the daisies, when suddenly a White Rabbit with pink eyes ran close by her.There was nothing so very remarkable in that; nor did Mice think it so very much out of the way to hear the Rabbit say to itself, 'Oh dear! Oh dear! I shall be late!" (when she thought it over afterwards, it occurred to her that she ought to have wondered at this, but at the time it all seemed quite natural); but when the Rabbit actually took a watch out of its waistcoat-pocket, and looked at it, and then hurried on, Alice st
Alice was beginning to get very tired of sitting by her
sister on the bank, and of having nothing to do: once or twice she had peeped into the book her sister was reading, but it had no pictures or conversations in it, 'and what is the use of a book," thought Alice, "without pictures or conversation?"So she was considering in her own mind (as well as she could, for the hot day made her feel very sleepy and stupid), whether the pleasure of making a daisy-chain would be worth the trouble of getting up and picking the daisies, when suddenly a White Rabbit with pink eyes ran close by her.There was nothing so very remarkable in that; nor did Alice think it so very much out of the way to hear the Rabbit say to itself, "Oh dear! Oh dear! I shall be late!" (when she thought it over afterwards, it occurred to her that she ought to have wondered at this, but at the time it all seemed quite natural); but when the Rabbit actually took a watch out of its waistcoatpocket, and looked at it, and then hurried on, Alice st
1
TECHNIQUES FOR INVOKING SYSTEM COMMANDS FROM WITHIN A MARK-UP LANGUAGE DOCUMENT
5
FIELD OF THE INVENTION
The present invention relates to mark-up language documents, and more particularly to techniques for invoking system commands from within a mark-up language document.
BACKGROUND OF THE INVENTION
Mark-up languages have become exceedingly popular tools for authoring electronic content. Mark-up languages 15 used today include, for example, Standard Generalized Markup Language (SGML), HyperText Markup Language (HTML), extensible Markup Language (XML), extensible HyperText Markup Language (XHTML), and Synchronized Multimedia Integration Language (SMIL). These languages 20 allow the developer to "mark-up" a document. For example, tags may be inserted within the document to specify how the document, or a portion of the document, should be formatted or displayed. As another example, links may be used to define relationships between the document and other docu- 25 ments and to allow a user to jump from one document to another. Links may also be used to perform various functions including, for example, to create tool bars, to link to a cascading style sheet (rev=stylesheet), a script (rev=script), or a printable version (like a .pdf) of the document (rev= 30 print), and to embed authorship details. Links may also perform a variety of functions, including executing a string of commands such as JavaScript commands.
When viewed through an application program, such as a web browser or a reading device (discussed herein), links are 35 commonly depicted as underlined text having a blue or red color. In the mark-up language document itself, the link is designated by a link attribute and corresponding language to indicate the resource to which it refers. The link attributes generally include, for example, the following: href (URL for 40 linked resource); id (SGML ID attribute); rel (forward link types); rev (reverse link types); and title (advisory title string). Examples of links within a mark-up language document include:
45
1) <A HREF="http://msn.com">
2) <A HREF="ftp://msn.com">
3) <A HREF="javascript://msn.com">
4) <A HREF="mailto:jdoe@webreference.com">
The first link refers to a HyperText Transfer Protocol 50 (HTTP) and provides a Uniform Resource Locator (URL) to which the system should jump. The second link refers to a File Transfer Protocol (FTP) and provides a file the system should retrieve. The third link provides JavaScript that the system should run. The fourth link provides an e-mail 55 address to which the system should send an e-mail message.
Because of their versatility, mark-up languages are now used in a number of applications. One such application is for authoring web-page content. Another such application that is rapidly gaining recognition is for so-called "electronic 60 books" or "e-books." E-books are electronic publications (such as books, journals, magazines, etc.) that can be viewed using computer-based display devices. Application programs running on these reading devices display the e-book content. Examples of such reading devices include the 65 "ROCKET EBOOK" by NuvoMedia, Inc. and the "SOFTBOOK READER" by Softbook Press, Inc. Alternatively,
2
these devices may be traditional computing devices such as personal computers.
E-books are provided in a mark-up language format. As a result, e-book pages may be formatted and linked using the commands available in the mark-up language. For example, e-books may be formatted in a general format in accordance with an Open eBook standard. This standard is set forth in Open eBook Publication Structure 1.0, which can be found at www.openebook.org and Open eBook Forum, 302 A West 12th Street, #304. New York, N.Y 10014. This publication is incorporated herein by reference in its entirety.
One aspect of e-books is that it may be desirable to perform various system commands while viewing an e-book. Consider, for example, a user viewing an e-book from a personal computing environment. The user may wish to adjust the font settings. Present systems are limiting in that the user must take several steps to invoke system commands and operations. To adjust font settings, the user must exit the window for the e-book viewing program, call up the specific commands from the operating system to adjust the font, and then return to the e-book. This may be particularly disruptive where the user is in the middle of reading an e-book. It is therefore desirable to have a system where system commands may be more conveniently accessed and performed without interrupting the user's activity.
Certain techniques can be used to perform functions within a mark-up language document. In particular, JavaScript may be directly embedded with a tag within the mark-up language document. The tag may designate the JavaScript such that when a user selects the corresponding link, the JavaScript is executed. However, this technique is limiting in that the JavaScript may only perform limited operations and, more significantly, cannot execute system commands outside of the application program reading the JavaScript. Further, the entire JavaScript command set must be included within the mark-up language document. The negative consequence is that is possibly undesirable and even malicious functions may be unknowingly executed. Further, the JavaScript-based approach is limiting in that it may unnecessarily increase the size of the document, especially in documents having a large number of JavaScript links. Many e-book documents already are rather large due to the significant amount of text and graphic content. It is therefore desirable to have a system where pre-defined system commands may be easily identified and executed without requiring increased memory for the document.
SUMMARY OF THE INVENTION
The present invention solves many of the aforementioned problems by providing a method of invoking pre-defined system commands directly from a mark-up language document. Links referencing a pre-defined system command to be invoked may be embedded within the document. The specific system command may be identified in the link by an alias, such as, for example, a numeric code. When a user selects the link, the system will analyze the contents of the link. If the link includes an instruction to invoke a system command, the system will extract the corresponding alias, refer to a look-up table to identify the appropriate system command to which the alias refers, and execute the identified system command. The look-up table correlates each alias with a pre-defined system command.
By using the invoking techniques of the present invention, system commands may be invoked directly from within a mark-up language document. Further, since only those system commands identified in the look-up table can be
« ZurückWeiter » |