LANGUAGETEACH Technologies
Developer's Manual
Introduction
Introduction
Getting_Started
Using LTeditor
2.0. Introduction
2.1. Manipulating Font
2.2.  Manipulating_Color
2.3.  Del._Font_Attributes
2.4. Virtual Keyboard
2.5. Paragraph
2.6. Undo Menu Cmd
2.7. Undo Typing
2.8. Saving Text
2.9. Managing Pages
2.10. Editor Utilities
2.11. HTML Language
LT Objects
3.1. Popup Windows
3.2. Layer
3.3.  Alternating_Text
3.4. Media
3.5. Pictures
3.6. Instant Quiz
3.7. Online Test [+][-]
       3.7.1.  Check_Box
       3.7.2.  Text_Field
       3.7.3.  Menu

3.8. Dynamic Text
3.9.  Expand / Collapse
3.10. Tip Text
3.11. Links
3.12. Essay
3.13. Stress
3.14. Manipulating_Objects
Project
4.1. Components
4.2. Configuration
4.3. Attributes
4.4. Customizing
4.5.  Modifying_files
4.6. Templates
4.7. Inline Script
4.8.  Creating_project
Media
5.1. Media Players
5.2. Media Formats
5.3.  Dynamic_Media
Publishing
6.1.  Inserting_Index
6.2. FTP Manager
Adjustment
Adjustment
 

Page: 1 2 3 4 5 6 7 8 9 10 11 12 13  [ 14 ] 15

4.1. Project Components



The text created with LT Editor is only part of the web page. LT Development Tool takes this text and wraps it with two HTML files: template1.html  and  template2.html, creating a complete web page.  

Three more files are linked to the page.

 interact.js  is a JavaScript file, which makes the page interactive.

 media.js  is also a JavaSctipt file, which defines the type of media player and makes it interactive.

 viewpage.css  defines a view of the page and plays an important role in the page's interactivity.


The "Reference to scripts" statement by default is inserted by LT Development Tool and this statement always refers to the set of these three files. However, an advanced developer or web programmer can disable the "reference to scripts" statement by setting "Template mode" in the project configuration dialog box. In this case the developer is responsible for inserting all or only part of the references either into the template portion or into the body portion of the page.

4.2. Project Configuration


Each topic has it's own copy of  the configuration file "config.prj". This file keeps paths to templates, scripts, and css files as well as information about language, mode and editor's style. To create a working environment, the tool copies interact.js, media.js and viewpage.css files into the LangTeach folder, the root folder. Template1.html and Template2.html are copied into the LangTeach\Templates folder. All graphic and media files which belong to template1 or template2 are copied into the LangTeach\Templates\Files folder.

The developer can modify or change the working environment at any time by calling "Project Configuration" dialog box.  Any of the files can be customized, modified, completely redeveloped or substituted, giving unlimited flexibility in development.


------- ♦ ♦ ♦ -------

4.3. Project Attributes

Attributes are part of any project. They are saved in the same config.prj file and apply at load time.



Kernel / Template  mode
To work properly, the final HTML page must have reference to the "interact.js", "media.js" and "viewpage.css" files. By default ( Kernel Mode ) these references are inserted by LT Development Tool  into the page automatically, but if for any reason you want to handle these files manually, you can set Template mode and include the references (or part of them, say if you don't need media) manually either into template1.html file or into the text, which is created with LT Editor.
Text / HTML mode
Important: Always set HTML mode when you import  a Microsoft FrontPage file.

Text mode: LT editor automatically converts regular "Space" and  "Enter" signs into corresponding HTML statements.

HTML mode: LT editor ignores "Space" and  "Enter" signs. To implement "space" or "enter" the user must insert the corresponding  HTML statements.

Text: Skip First Enter
To improve readability of the text in the LT Editor, check the option "ON".  It instructs LT Development Tool to ignore the first (or single) "Enter" command and allows the user to separate HTML tags from text, making  the editor's page clearer and more understandable. For example, if you press enter only once, there is no change in the browser, though  "enter" is visible in the Editor.  Pressing "Enter" 3 times creates 2 line spaces in the browser, etc.
Code Page
While you are developing a topic, you are working  with the Unicode character set. When creating the Web version of your topic, select a language to convert the Unicode format into the ANSI format. Most languages that make use of the Latin alphabet are divided into a few groups (also known as Code Pages) named Latin_1, Latin_2, Latin_5.
  • Select English code page if you are not using any foreign languages.
  • Select Latin_1 code page for most Western European languages.
  • Select Latin_2 for   most Central European languages.  
  • Select Cyrillic for Russian.
This setting is saved between sessions and does not need to be reset. In fact, if you work with only one foreign language, you can set it once and you will never have to change it.
How to set the attributes for the current project
To set the attributes for the current project, make the desired changes in the configuration box and click the "Activate" button.

------- ♦ ♦ ♦ -------

4.4. Customizing Current Configuration

1. Open Config. Project dialog box.



2. Click on the buttons and find the file which you want to apply to your current topic.3. Set topic's attributes


4. Click on "Activate" button.

------- ♦ ♦ ♦ -------

4.5. Modifying files



  1. Open Config Project dialog box.
  2. Click on the "question mark" sign,  drag it and drop it on the file you want to edit. By default the file will be opened in Wordpad editor. (How to substitute Wordpad with your favorite editor is explained below ). Finally, close the dialog box.
  3. Edit and save the file.
  4. Open  Config Project Dialog box again and click on "Activate" button.

------- ♦ ♦ ♦ -------


4.6. Templates development technique   ( Important ! )


1. template1.html  and   template2.html  can be saved eather in Unicode or plain text format.

2.    If your templates include any graphics, media or other external files, create a folder with the name "Files" and copy all of the external files into the folder. The folder must be placed under the same directory as templates. For example:

3.   Inside your template1.html and template2.html  files make all "src" references to "Templates\Files" folder. For example:   <img src = _Templates\Files\mypicture.jpg ... />

4.   media.js, interact.js, viewpage.css must be saved  in  plain text  format.  Don't use LT Editor, Word, Works or other complex text editors to modify them. Use WordPad, Notepad or special HTML editors.

------- ♦ ♦ ♦ -------


4.7. Inline Script development technique

(no restrictions for ver. 1.0.4 and above)
It's also possible to insert script directly into the text of the page. If you insert script into the page the following restriction must be adhered to:

 If editor style is Text:  If editor style is HTML, there are no restrictions.

------- ♦ ♦ ♦ -------

4.8. Creating a project folder

Templates, scripts and style sheet files are shared resources. Other your projects also use them. So if you make any change in the files to customize your current project, all other projects will be affected. To avoid it you can create separate project folder. Tool copies all related files into the folder and refer your current project to the folder. After that you can modify any project-related file and these changes will affect only the current project and all future projects, which will be refered to the project folder.


------- ♦ ♦ ♦ -------




Powered by LanguageTeach Software.
Last updated in January 02, 2005
Copyright © 2003-2004 All Rights Reserved.