HtmlMgr is a simple open-source java html-browser, that:
a) Creates automatically the ToC of html-files that contain LocDocs (= Locators inside Documents).
b) Shows automatically in the ToC the location of the cursor in the doc.
c) Indexes the words and terms (= sequence of characters that contain '-','_',''') of the files, with the LocDocs they reside.
LocDoc (= Locator inside Document) is a URL that denotes a PORTION of an html-text-file, like the file you are reading which also includes LocDocs.
HtmlMgr demostrates the usefulness of LocDocs . #@h3c1#
- h0, h0c1, h0c2, ...
- h1, h1c1, ... h1.1, ... h1.2, ... h1.2.1, h1.2.1c1, h1.2.1c2, ...
- h2, h2c1, ... h2.1, ... h2.2, ... h2.2.1, h2.2.1c1, h2.2.1c2, ...
- h?, h?c1, ... h?.1, ... h?.2, ... h?.2.1, h?.2.1c1, h?.2.1c2, ... #@h3c2#
In the "doc" directory I have some example-html-files with LocDocs.
1) a big law-file: Law_Eu_Treaties_2008.html. I have done some processing on this file, but you can see my objective.
This file is my approach to online-law-texts.
2) a w3.org recommendation file: w3_org_css21_generate.html and
3) this file. #@h3c3#
I have implemented LocDocs using the existing html-standards.
a) I used XHTML 1.0 Strict files, for increased consistency.
b) I used h1, h2, ... elements as heading-elements and paragraph-elements as content-elements.
c) A css can serve for consistent presentation and
d) we have only to add an empty-anchor-element with the name-attribute and value the LocDoc in the beginning and another achor-element with class-attribute "hide" at the end of heading and content elements. For example:
WHAT WE NEED (STANDARDIZATION):
By standardizing LocDocs, anyone could refer to any place inside an html-file without knowing the concrete anchors the author uses inside his document. We need:
a) an h0-element for the title of the document, but to display as the other heading. Also we could add and h7, h8, h9 elements, just in case anyone could need them but to suggest not to use them.
b) a content-element (<c>) and anything that can serve as content (=information), text, audio, image, video to reside inside this element.
- lists (ol, ul, dl) and tables, are considered content.
- it is useful to add and sentence-elements, and to have locators and for every sentence, inside paragraphs.
- Finally syntax and meaning elements could be added to resolve ambiguities in the text that the reader will NOT see when he reads the text, but he can have access to them if he needs them. At the same time, any program that manages text, can use them in order to do a better job, eg translation. #@h3c5#
The program is in alpha version, but its main functionality works. I've tested ONLY in windows!!! #@h4c1#
Download the file HtmlMgr-date-version.jar, which contains the executable-code, the source-code and the example-html-files.
* HtmlMgr-2010.06.02-00.02.02.jar, bug-fix release.
* HtmlMgr-2010.05.30-00.02.02.jar #@h4c2#
Unzip the jar-file and double-click on
1) create a folder and store the jar-file you downloaded.
2) unzip this jar-file (which is a zip-file) in the same directory. You need the directory "doc", which contains the example-html-files with LocDocs, to be in the same directory with the jar-file.
3) double-click on the jar-file. I suppose your system has java installed. Alternatively you can run the command, from the downloaded-directory:
HtmlMgr now is an html-viewer. I call it "manager" because I would like to incorporate the functionality of the Ekit html-editor, an open-source java program of Howard Kistler. Then we could create html-text-files with the HtmlMgr and LocDocs could be added automatically. #@h5c1#
Opens a directory with LocDoc-files and creates recursively the ToC of its subdirectories and of the files in these directories, AND indexes the words and terms of all these files. #@h5.1.4c1#
Open-File | ToC:
Opens ONE LocDoc-file, or
opens a "toc.xml" file that contains a structure of LocDoc-files and creates a ToC of these files with the structure denotes in the toc.xml file. #@h5.1.4c2#
Goes to previous LocDoc. #@h5.1.4c3#
Goes to next LocDoc, IF we navigate in the history of LocDocs. #@h5.1.4c4#
Goes to this file. #@h5.1.4c5#
Reloads the displayed-file. #@h5.1.4c6#
Lists the contents of a directory, so you can copy this list. #@h5.1.4c7#
About HtmlMgr: #@h5.1.5c1#
Java does not support yet the "display" property. So the LocDocs always appear. Today browsers, hide them and display only when the we put the mouse over the paragraph. #@h5.2c2#
Infinite things!!! #@h5.2c1#
FIRST release of the HtmlMgr. #@h5.3c3#
Project registration. #@h5.3c2#
HtmlMgr is part of my life-long AAj project, a knowledge-management project. I begun HtmlMgr using the open-source code of jEdit's help package of Slava Pestov and jEdit's plugin InfoViewer of Dirk Moebius. #@h5.3c1#
GNU GENERAL PUBLIC LICENSE (GPL) #@h5.4c1#
LAST MODIFIED: 2010.06.02
MAIL: userid@domain, where userid=nikkas and domain=otenet.gr #@h6c2#