Integrating generalized hypertext

This information is intended for web developers

Basic principles

The dictionaries' hyperlinking functions enable easy integration of generalized hypertext into your HTML pages. This functionality allows users to double-click on any word to access its dictionary entry. You can enhance your web pages and website with this new feature.

This integration makes sense only if the users of your site are authorized to access the dictionary. We recommend integrating it into the portal of a university, public organization, or similar entity that has subscribed to the online dictionary.

Note: You cannot directly install the hypertext functionality for both Le Petit Robert and Le Grand Robert & Collins simultaneously. You must choose which of the two dictionaries you want the double-click to activate. Alternatively, you could develop a small JavaScript app that allows users to select between the two dictionaries via the user interface.

You can try out this feature on our page on hyperlinking. Try double-clicking on a word.

Installation

To install generalized hypertext for Le Petit Robert on an HTML page, simply add the following code to the header section of your page (between the <head> and </head> tags):

<script language="JavaScript" src="http://ressources.lerobert.com/public/hyper_pr1.js"></script>

Similarly, to install generalized hypertext for other Le Robert dictionaries on an HTML page, simply add the corresponding code from the following list to the header section of your page:

Dictionary Code
Le Petit Robert <script language="JavaScript" src="http://ressources.lerobert.com/public/hypers/statics/js/hyper_pr1.js"></script>
Le Petit Robert de la langue française et des noms propres <script language="JavaScript" src="http://ressources.lerobert.com/public/hypers/statics/js/hyper_pr12.js"></script>
Le Grand Robert <script language="JavaScript" src="http://ressources.lerobert.com/public/hypers/statics/js/hyper_gr.js"></script>
Le Grand Robert & Collins <script language="JavaScript" src="http://ressources.lerobert.com/public/hypers/statics/js/hyper_grc.js"></script>
Le Robert Collège <script language="JavaScript" src="http://ressources.lerobert.com/public/hypers/statics/js/hyper_college.js"></script>
Le Robert Junior <script language="JavaScript" src="http://ressources.lerobert.com/public/hypers/statics/js/hyper_junior.js"></script>
Le Robert illustré <script language="JavaScript" src="http://ressources.lerobert.com/public/hypers/statics/js/hyper_dixel.js"></script>

Note: these hyperlinks will always open the dictionary in a new browser window.