How To Generate Files For Internet

Friday, January 15, 2010

GIF Capability
If you wish to publish some urdu/arabic/persian material on internet you can use .GIF generating capability of InPage to make pages for web. For this you will need to look at the Export Page menu item of File menu.
If you have already laid out a page in InPage, then you can export—

· the complete page by opting for the Pages From/To radio button. The page will be exported in GIF format and will be saved under the .GIF file. You can now proceed to use this file in your HTML pages.
· one or more selected object by opting for the Selected Objects radio button. In this case if you want to put a newspaper page on internet then you can first generate .GIF files for the headlines by selecting the individual text or title text boxes and using this Export Page command. Later on you can generate .GIF files for the columnar text containing various newspaper stories by selecting and genrating .GIF for these linked text boxes.

PDF Files
InPage can generate .PDF file if you have installed the Adobe Distiller driver. Then you can use the Print command in InPage to generate a .PDF file. An internet user can use Adobe's Acrobat reader to read and print this .PDF file. But please note that since InPage uses quite a number of fonts, these files can become bery big.
Postscript Files
You can also generate Postscript files by using a standard postscript printer driver like Linotronic 330 and printing to a file. While printing you should ensure that 'Send Truetype as Type 1' has been set on in the Advanced Option dialog.

How To Intermix Arabic-Persian With Urdu...

You can intermix arabic – persian text with nastaliq and naskh styled urdu text by changing to a different font (for example Trad Arabic, Aasaar, etc.) when you need to enter arabic or persian. For example, see the following line with arabic text (with aeraabs) juxtaposed alongside urdu —

If you wish to enter English as well, you can do so by entering in the same line by first toggling to english entry mode and entering English on the same line—

Now as you can see the english text spills over to the next line and actually comes below the arabic text. If you wish to have columnar text of Arabic followed by columnar text of Urdu and columnar text of English, then you have two options—
Using Tables

· Insert a table using Table menu item in the Insert menu and choose a three columnar table.
· Set the font of the first column (by first selecting the column by double clicking) to Trad Arabic, second column to Noori Nastaliq. Other attributes like Forced Justify, Line Direction etc. can also be separately applied to each column in the table.
· Click on first column and enter arabic text. Press Tab key when you have finished with arabic entry.

· Enter the urdu translation in the second column. Press Tab key at the end.
· Now toggle to english entry mode in the third column. Enter the english translation in this column.

Using multiple text chains
This option is useful if you wish to have continuous arabic, urdu and english text (for example an urdu and english translation of The Holy Quran). In this case follow these steps—

· Make a new Right To Left document without automatic text box. If need be make a double sided document.
· Go to Master Page mode by clicking on the Master Page button. On the master page, make three independent and unlinked text boxes.
· Change over to the document mode by clicking again on Master Page button. In the document area, you can set fonts for each of the text chain.
· For the first column, click on the text box by clicking with I-Beam tool and set the font of this text chain by double clicking and setting the font to Trad Arabic font from the urdu fonts combo box.

· For the second column, click on the second text box by clicking with I-Beam tool and set the font of this text chain by double clicking and setting the font to Noori Nastaliq font from the urdu fonts combo box.
· For the third text box, set the line direction of the paragraph to Left to Right.
· If required set the justified option to Full Justify for all the three text chains.
· Now you have the basic infrastructure for entering arabic text in the first text chain, urdu text in the second text box and english text in the third text box.

How To Use Mathematical Equations

You can use InPage to inter mix mathematical equations with urdu/english text. These equations will need to be entered in MS Windows compatible software which supports equation. One such package is Microsoft's Equation Editor.
To use equations, you will need to follow the underlined steps—

· First run Equation Editor.
· In InPage, position your caret at the point where you wish to insert the equation.
· Now go to Equation Editor (by using standard Windows application switching short cut key sequence—Alt-Tab). Type in the equation in the Equation Editor. Copy the equation from the editor and then paste it in InPage at the caret position.
· You will notice that the equation gets pasted as an inline picture. Thus at any point in the text you can paste such equations. Because these equations get pasted as Windows metafile, there will not be any loss in print quality when you take a print out.

Note: If you have problems in baseline alignment of equation and urdu text, it is suggested that you go to the Normal style sheet (from Format Style sheet menu item) and modify the baseline shift in Character dialog to -2 pt. This will lead to shifting of complete urdu text by -2 pt and the text and equations will align on the baseline.

In the following example, after entering the urdu text , you move to Equation Editor, enter the equation using Equation Editor command, select the equation and copy it onto the clipboard. Now come back to InPage and paste the copied picture at the caret position. You will notice a grey boundary comes around the inline equation thereby depicting that it has been pasted as a graphic.

As you can see that the baseline of urdu text appears below the inline picture. Please see the attached sample on Equations in the sample appendix where the baseline shift has been specified for the selected paragraph(s).

Using Diacritical Marks & Special Symbols

InPage allows you to use all the diacritical (or Aeraabs) marks used in Urdu, Arabic, Kashmiri and other Perso-Arabic Scripts. For details view the keyboard through Keyboard Preferences. Many special symbols have also been provided. Some of these can be entered using the keyboard whereas others can be inserted in the textbox from the Symbol menu

Using Corel Draw With InPage

With InPage, you can now enter text in urdu, copy the text box and paste it in Corel Draw 5.0. The various steps are—

· First run InPage.
· Now launch Corel Draw.
· Make a headline in InPage by first creating a text box or a title text box and entering urdu in the text box.
· Once the text has been completely entered, select the Arrow Tool from the tool strip and now select this text box in the arrow mode.
· Copy this text box onto the clipboard by using the Copy command.
· Now switch to Corel Draw and paste the text box you have already copied onto the clipboard.

· Go to the Arrange menu and choose Ungroup.
· Sometimes a text box appears as a frame when you paste the text in Corel Draw. After ungrouping, you can select the frame and delete the extra frame.
· Now select the complete text using the selection rectangle and choose Combine menu item from the Arrange menu.

Note: If you wish to apply inter character scaling and/or inter character spacing, you should not do so in InPage. Rather once the text has been pasted in Corel Draw, these effects should be applied from Corel Draw itself.

How To Layout A Ghazal?

Ghazals have a special place in urdu literature. There are essentially two ways to layout a ghazal.

Ghazal Style 1

To set the ghazal in this fashion, please follow these steps—

· Insert a Table with three columns. The extreme left and extreme right columns are to be used for entering ghazal text. The middle column will be used for controlling space between the text.
· Set the table width of the extreme right column (column no. 1) and extreme left (column no. 3) to 3 cm. Set the middle column to 0.2 cm. Set the Table Alignment to Centred. All these operations are to be carried from Format Table menu item in Format menu.
· Select all the columns and click on the Forced Justify icon from the Text Ribbon.

· Now enter urdu text in column no. 1. Follow it up with two tabs to reach column no. 3 and enter the corresponding second part of the couplet.
· Continue till you have entered all the four lines.
· For the bottom portion of the ghazal, enter one column table and specify the width as 3 cm. Again select the column and set the Forced Justify option.
· Now enter urdu text for the bottom portion of the ghazal.
· Repeat the above steps till you have laid out the complete ghazal.

Ghazal Style 2

To set this style of ghazal, you will need to use style sheet functionality. Follow these underlined steps—

· Create a style sheet by choosing the Style sheet menu item from the Format menu and clicking on the New button in the ensuing Style sheet dialog.
· Enter the name of the new style sheet as lets say 'Right' and click on OK button.
· Now click on the Paragraph button and specify the beginning indent (from left) as 5 cm and end indent (from right) as 2 cm. Also choose the Alignment as Forced Justify.
· Enter the keyboard shortcut for the style sheet as 'R'.

· Make another style sheet and call it 'Left' with keyboard shortcut as 'L'.
· Specify the beginning indent as 2 cm and end indent as 5 cm.
· Once you have these style sheets, you can use Ctrl+Shift+R and Ctrl+Shift+L to apply the style sheet to the current paragraphs.
· First apply Ctrl+Shift+R and enter first two lines of urdu text.
· Now apply Ctrl+Shift+L and enter next two lines of urdu text.
· Repeat the last two steps till you have entered the complete ghazal.

How To Layout An Urdu-English Dictionary?

Supposing you need to create an urdu to english dictionary (or for that matter english to arabic dictionary), like follows—

As you will notice that urdu text and english text appear in the same line and yet urdu is right to left and english appears left to right. The above has been created as follows—

· Insert Table by using the Table menu item in the Insert menu.
· Specify number of columns (2 in this case) required along with its width if any. If you do not specify the width of the column, the text box width will be divided by number of columns required and you will get the default column width.
· Select the right column & click on arabic character alignment button.
· Select the left column & click on the Latin character alignment button.

· Now start in urdu entry mode and enter urdu text. Once the text has been entered in a cell, press Tab.
· In this cell switch to english entry mode and enter the english text.
· Repeat the above steps to completely enter all the urdu and english text.