Switches - selective text formatting in Baraha editor

 

You can apply Language, Font, Text Size, Text Color, Alignment, Bold, Italic, Underline and other attributes for the selected text by using a switch which contains one or more tags specified inside the angle brackets (< >).

 

Example:

Switches containing a single tag.

<justify>
<img=test.bmp height=40 width=40>

 

If more than one tag is specified in a switch, they have to be separated by ' | ' character.

<font="BRH Kailasam" | size=12>
<img=test.bmp height=40 width=40 | lang=kan>

 

A tag is composed of one or more parameters. A parameter can be just a Name or Name=Value pair.

 

Example:

Parameter can be just the Name type.

<newpage>

 

Parameter can be a Name=Value pair type.

<color=red>

 

If more than one parameter has to be specified, a space(' ') or comma(',') is used to separate them.

<img="d:\temp\picture.bmp" width=100 height=100> <box bgcolor="green", border="1" | size=12>

 

If the Value itself has a space or comma character, double quotes should be used to enclose the value.

<font="Times New Roman">

 

Every formatting attribute has an associated tag. A tag affects the value of the corresponding attribute, for all the text that follows it, until it is overridden by the same tag with a different value.

 

For example, size=32 tag specifies the text size of 32 points. This size will be used for all the text that follows the switch. Later, if we use size=12 tag, the size of the following text becomes 12 points.

 

Example:

<size=32>32pt, <size=12>12pt

32pt, 12pt

 

Usage of switches with examples is explained in the following sections.

 

Alignment
Box
Bullet Lists
Columns
Comment
Font
Hyperlink
Indentation
ISO15919 Output
Label
Language
Line
Line Spacing
Page/Column Break
Picture
Tabstops
Text Background Color
Text Color
Text Size
Text Style

 


 

Alignment:

Use left, center, justify and right tags for aligning the text.

 

Example:

<center>kannaDake hOrADu kannaDada kaMda kannaDava kApADu nanna AnaMda jOguLada harakeyidu mareyadiru chinna mareteyAdare nInu maretaMte nanna

 

ಕನ್ನಡಕೆ ಹೋರಾಡು ಕನ್ನಡದ ಕಂದ

ಕನ್ನಡವ ಕಾಪಾಡು ನನ್ನ ಆನಂದ

ಜೋಗುಳದ ಹರಕೆಯಿದು ಮರೆಯದಿರು ಚಿನ್ನ

ಮರೆತೆಯಾದರೆ ನೀನು ಮರೆತಂತೆ ನನ್ನ

 


 

Box:

Use box tag to specify an enclosing box for the text. All the paragraphs that follows until the -box tag, will be drawn inside a box. The background color and the border thickness of the box can also be specified.

 

Parameters:

bgcolor:

Specifies the color of the box. The value can be either a named color (such as red, blue, green, yellow, magenta, cyan, black, white, gray) or a six character hexadecimal RGB (Red, Green and Blue) color code (such as #8ab7e0). By default, the background color is grey.

 

border:

Specifies the thickness of the borderline of the box. The value should be a number between 0 - 10. By default, the border thickness is 0.

 

Example:

<box bgcolor=green border=2> hasiru DabbadoLage akSharagaLu. <-box>

 

ಹಸಿರು ಡಬ್ಬದೊಳಗೆ ಅಕ್ಷರಗಳು.

 

The closing tag -box turns OFF the box attribute.


 

Bullet Lists:

Use list tag to specify the bullet list style for the paragraphs. All the paragraphs that follow, until the -list tag will have the bullet style. The style of the bullets can be specified by style parameter.

 

Parameters:

style:

Specifies the style of the bullets. The various styles are specified using a number between 0 - 7. By default, the style is 0.

 

0:    Squares

1:    Circles

2:    Diamonds

3:    Arrows

4:    No.

5:    No)

6:    (No)

7:    [No]

 

Example:

<list style=4>kuveMpu kAraMta bEMdre <-list>

 

  1. ಕುವೆಂಪು

  2. ಕಾರಂತ

  3. ಬೇಂದ್ರೆ

 

The closing tag -list turns OFF the list attribute.


 

Columns:

The no. of columns is usually specified in the "Page Setup" dialog box. But, this value can be overridden by the column information specified in the document itself using the columns tag.

 

Parameters:

columns:

Specifies the no. of columns to be used for the document. The value should be between 1 - 4.

 

Example:

<columns=3>

 


 

Comment:

The text written between /* and */ is called comment. Commented characters are not transliterated by Baraha and are printed in English on the Output Window "as they appear" in the Input Window.

 

When the document is exported as an HTML file, the commented text is copied "as is". So, java scripts, and other HTML code can be used in the Baraha document in the form of comments, which will be retained when exported as HTML document.


 

Font:

Use font tag to specify the font for the output text.

 

Parameters:

font:

Specifies the name (typeface) of the font. The specified font should be installed in the system.

 

English Fonts:

For English text, you may use any English font that is installed in your PC.

 

Example:

<lang=eng|font="Courier">Courier Font Style Text

Courier Font Style Text

 

Kannada Fonts:

Kannada ANSI fonts of Baraha follow the Karnataka govt. standard.

 

Following are the Kannada ANSI fonts provided in Baraha.

 

Example:

<lang=kan|font="BRH Kannada">celuva kannaDa nADu

ಚೆಲುವ ಕನ್ನಡ ನಾಡು

 

Devanagari Fonts:

Following are the Devanagari ANSI fonts provided in Baraha.

 

Example:

<lang=hin|font="BRH Devanagari">merA bhArat mahAn

मेरा भारत महान

 

Tamil Fonts:

Following are the Tamil ANSI fonts provided in Baraha.

 

Example:

<lang=tam|font="BRH Tamil Tab">tamizh mozhi iniyatu

தமிழ் மொழி இனியது

 

Baraha follows TAB standard for Tamil fonts.

 

Telugu Fonts:

Following are the Telugu ANSI fonts provided in Baraha.

 

Example:

<lang=tel|font="BRH Telugu">telugu mATa tIpi

తెలుగు మాట తీపి

 

Malayalam Fonts:

Following are the Malayalam ANSI fonts provided in Baraha.

 

Example:

<lang=mal|font="BRH Malayalam">kEraLa rAjyaM manOharamAN

കേരള രാജ്യം മനോഹരമാണ്

 

Gujarati Fonts:

Following are the Gujarati ANSI fonts provided in Baraha.

 

Example:

<lang=guj|font="BRH Gujarati">ame bhAratIya ChIe

અમે ભારતીય છીએ

 

Gurumukhi Fonts:

Following are the Gurumukhi ANSI fonts provided in Baraha.

 

Example:

<lang=pun|font="BRH Gurumukhi">maiM ikk bhAratIy hAM

ਮੈਂ ਇੱਕ ਭਾਰਤੀਯ ਹਾਂ

 

Bengali Fonts:

Following are the Bengali ANSI fonts provided in Baraha.

 

Example:

<lang=ben|font="BRH Bengali">Ami bhAratIY

আমি ভারতীয

 

Oriya Fonts:

Following are the Oriya ANSI fonts provided in Baraha.

 

Example:

<lang=ori|font="BRH Oriya">mu~M jaNe bhAratIY.

ମୁଁ ଜଣେ ଭାରତୀଯ.

 


 

Hyperlink:

Use link tag to link to external documents, URLs as hyperlinks.

 

Hyperlinks are used to connect two or more related documents for navigational purpose. In Baraha, hyperlinks can be used to navigate(jump) from one baraha document to another baraha document or other types of documents such as MS Word, HTML documents e.t.c. A hyperlink in Baraha is created by associating a target document with a word(s), which creates a "hot spot". When this "hot spot" is clicked, the target document will open either in Baraha or some other application depending on the type of the document.

 

Parameters:

link:

Specifies the URL(path) of the target document. The target document may be either on the local hard disk or on the Internet. The path can be an absolute or a relative one. Relative paths are resolved w.r.t the path of the currently opened document. If the first character of the link is '#', then the link refers to a label within the document.

 

Example:

The following examples show the usage of absolute & relative paths for the target document.

 

<link="http://baraha.com/chapter1.brh">chapter 1<-link>
<link="..\docs\chapter1.brh">adhyAya 1<-link>
<link="c:\baraha\docs\story.htm">ek kahAni<-link>
<link="../pics/house.gif">merA ghar<-link>
<link="..\docs\resume.doc">My resume<-link>


 

The following example shows linking to a label within the same document.

 

<link="#MyLabel">Click here to read Chapter 1.<-link>

Click here to read Chapter 1.

 

When the above link is clicked, the text marked by the label MyLabel will be located and shown at the top of the window.

 

The closing tag -link is used to mark the end of the hyperlink attribute of the text.

 

See: Label


 

Indentation:

Use indent tag to specify the indentation for the text. All the paragraphs enclosed between the indent & -indent tags will have the indentation.

 

Parameters:

left:

Specifies the left indentation in inches.

 

right:

Specifies the right indentation in inches.

 

firstline:

Specifies the extra indentation for the first line of the paragraph in inches.

 

Example:

<lang=kan|indent left=1.0, right=1.0, firstline=0.5>shikShaNadalli mAdhyamada prashne mukhyavAdudu mattu mUlaBUtavAdudu. shaikShaNikavAgi svIkRutavAda vichAraveMdare tAynuDi athavA maguvina parisarada BASheyE shikShaNa mAdhyamakke sUkta. idE maguvina sahaja chiMtaneya, kalpaneya BAShe. yAvudE BAShe arthagrahikegAgi takkadAdudAgirabahudAdarU nAvu beLedubaMdiruva BAShe hAgU adara parisaravE namma chiMtane hAgU aBivyaktige hELi mADisiddu.

 

ಶಿಕ್ಷಣದಲ್ಲಿ ಮಾಧ್ಯಮದ ಪ್ರಶ್ನೆ ಮುಖ್ಯವಾದುದು ಮತ್ತು ಮೂಲಭೂತವಾದುದು. ಶೈಕ್ಷಣಿಕವಾಗಿ ಸ್ವೀಕೃತವಾದ ವಿಚಾರವೆಂದರೆ ತಾಯ್ನುಡಿ ಅಥವಾ ಮಗುವಿನ ಪರಿಸರದ ಭಾಷೆಯೇ ಶಿಕ್ಷಣ ಮಾಧ್ಯಮಕ್ಕೆ ಸೂಕ್ತ. ಇದೇ ಮಗುವಿನ ಸಹಜ ಚಿಂತನೆಯ, ಕಲ್ಪನೆಯ ಭಾಷೆ. ಯಾವುದೇ ಭಾಷೆ ಅರ್ಥಗ್ರಹಿಕೆಗಾಗಿ ತಕ್ಕದಾದುದಾಗಿರಬಹುದಾದರೂ ನಾವು ಬೆಳೆದುಬಂದಿರುವ ಭಾಷೆ ಹಾಗೂ ಅದರ ಪರಿಸರವೇ ನಮ್ಮ ಚಿಂತನೆ ಹಾಗೂ ಅಭಿವ್ಯಕ್ತಿಗೆ ಹೇಳಿ ಮಾಡಿಸಿದ್ದು.

 

The closing tag -indent is used to mark the end of the indentation attribute of the text.


 

ISO15919 Output:

Use latin tag to display Indic scripts using Latin characters.

 

Example:

<lang=guj|latin>vaiShNava janato tene kahiye je pIDa parAyI jANere<-latin>

vaiṣṇava janatō tēnē kahiyē jē pīḍa parāyī jāṇērē

 

The closing tag -latin turns OFF the latin attribute and the respective scripts are used from that point onwards.


 

Label:

Use label tag to insert a label in the document. The labels are useful for linking between the different sections within the same document for navigational purposes. When a hyperlink pointing to a label is clicked, the label will be located and the document scrolls to the section marked by the label to show at the top of the window.

 

Parameters:

label:

Specifies the label. The value can be any text string.

 

Example:

<label="MyLabel">Chapter 1:

Chapter 1:

 

 

See: Hyperlinks


 

Language:

Use lang tag to specify the language (Input Format).

 

Parameters:

lang:

Specifies the language (Input Format). Following values are allowed.

 

kan    => Kannada phonetic keyboard

san    => Sanskrit phonetic keyboard

hin    => Hindi phonetic keyboard

mar    => Marathi phonetic keyboard

tam    => Tamil phonetic keyboard

tel    => Telugu phonetic keyboard

mal    => Malayalam phonetic keyboard

guj    => Gujarati phonetic keyboard

pun    => Punjabi phonetic keyboard

ben    => Bengali phonetic keyboard

ass    => Assamese phonetic keyboard

ori    => Oriya phonetic keyboard

eng    => English

 

Example:

<lang=kan>bI<lang=eng>chi <lang=kan>yavara tiMmana tale

ಬೀchi ಯವರ ತಿಂಮನ ತಲೆ

 

<lang=san>bhAShAsu mukhyA madhurA divyA gIrvANabhArati |

भाषासु मुख्या मधुरा दिव्या गीर्वाणभारति ।

 

<lang=eng>I Love My<lang=hin> iMDiyA

I Love My इंडिया

 

<lang=tam>tamizh mozhi iniyatu

தமிழ் மொழி இனியது

 

<lang=tel>eMdarO mahAnubhAvulu... aMdariki vaMdanamulu...

ఎందరో మహానుభావులు... అందరికి వందనములు...

 

<lang=mal>kEraLa rAjyaM manOharamAN

കേരള രാജ്യം മനോഹരമാണ്

 

<lang=guj>amAro desh bhArat Che

અમારો દેશ ભારત છે

 

<lang=pun>bhArat sADA desh hai

ਭਾਰਤ ਸਾਡਾ ਦੇਸ਼ ਹੈ

 

<lang=ben>bhArat AmAr desh

ভারত আমার দেশ

 

<lang=ori>mor janmabhoomi bhaarat

ମୋର ଜନ୍ମଭୂମି ଭାରତ

 

 


 

Line:

Use line tag to insert a horizontal line. Line length, thickness, color, and style can be specified using the parameters.

 

Parameters:

width:

Specifies the thickness of the line in pixels. The value should be a number between 0 - 10.

 

length:

Specifies the length of the line in inches. If the length is not specified, the line will be drawn for the entire width of the page.

 

color:

Specifies the color of the line. The value can be either a named color (such as red, blue, green, yellow, magenta, cyan, black, white, gray) or a six-character hexadecimal RGB (Red, Green and Blue) color code (such as #8ab7e0).

 

style:

Specifies the style of the line. The values can be solid, dash, dot, and dashdot. Only solid styled lines can have thickness > 1.

 

Example:

<line style=solid length=2.0 width=5>


 

 


 

Line Spacing:

Use ls tag to specify the spacing between the lines.

 

Parameters:

ls:

Specifies line spacing. The value should be a number between 0.5 - 4.0. Value 1 represents single line spacing.

 

Example:

<ls=0.8>kaDime aMtarada sAlugaLu

ಕಡಿಮೆ ಅಂತರದ ಸಾಲುಗಳು

ಕಡಿಮೆ ಅಂತರದ ಸಾಲುಗಳು

 

<ls=1.4>heccu aMtarada sAlugaLu

ಹೆಚ್ಚು ಅಂತರದ ಸಾಲುಗಳು

ಹೆಚ್ಚು ಅಂತರದ ಸಾಲುಗಳು

 


 

Page/Column Break:

Use newpage, newcolumn tags to specify a hard page break or column break.

 

Page (column) break is the point at which one page (column) ends and another begins when the document is printed or exported as picture files. When a page (column) is filled with text, Baraha "automatically" starts on a new page (column), which is called soft page (column) break. To force a page (column) break at a specific location, you can insert a newpage (newcolumn) tag. This is called hard page (column) break. In the print preview, in a printed document, and when exported as picture files, the text after a hard page (column) break appears on a new page (column).

 

Example:

<newpage> <newcolumn>

 


 

Picture:

Use img tag to insert a picture in the document. BMP, GIF, JPG and PNG file formats are supported.

 

Parameters:

img:

Specifies path of the picture file. This path can be an absolute or a relative one.

 

width:

Specifies output width of the picture file in pixels. If this value is not specified, the actual width of the picture will be used.

 

height:

Specifies output height of the picture file in pixels. If this value is not specified, the actual height of the picture will be used.

 

Example:

<img="d:\pics\karnataka.bmp">

 

<img="d:\pics\karnataka.bmp" width=70 height=100>

 

 


 

Tabstops:

Use tabs tag to specify the tab stops of required sizes. For tabs to work properly, left alignment should be used.

 

Parameters:

tabs:

Specifies comma separated tab stops in inches. The value should be enclosed in double quotes("").

 

Example:

<tabs="0.75,1.25,1.0"> <b>    shikhara    rAShTra    ettara<-b> 1.    everesT    nEpALa    8854 2.    ke-2    BArata    8616 3.    kAMcanajuMga    BArata    8585

 

    ಶಿಖರ    ರಾಷ್ಟ್ರ    ಎತ್ತರ

೧.    ಎವೆರೆಸ್ಟ್    ನೇಪಾಳ    ೮೮೫೪

೨.    ಕೆ-೨    ಭಾರತ    ೮೬೧೬

೩.    ಕಾಂಚನಜುಂಗ    ಭಾರತ    ೮೫೮೫

 


 

Text Background Color:

Use bkcolor tag to specify the background color of the text.

 

Parameters:

bkcolor:

Specifies text background color. The value can be either a named color (such as red, blue, green, yellow, magenta, cyan, black, white, gray, none) or a six-character hexadecimal RGB (Red, Green and Blue) color code (such as #8ab7e0).

 

Example:

<lang=kan|bkcolor=#ffff00>haLadi baNNada hinnale

ಹಳದಿ ಬಣ್ಣದ ಹಿನ್ನಲೆ

 

Use none to turn OFF the text background color attribute.


 

Text Color:

Use color tag to specify the color of the text.

 

Parameters:

color:

Specifies text color. The value can be either a named color (such as red, blue, green, yellow, magenta, cyan, black, white, gray) or a six-character hexadecimal RGB (Red, Green and Blue) color code (such as #8ab7e0).

 

Example:

<lang=kan|color=blue>nIli baNNa

ನೀಲಿ ಬಣ್ಣ

 


 

Text Size:

Use size switch to specify the text size(height).

 

Parameters:

size:

Specifies text size in points. The valid range for the value is 8 - 96 points.

 

Example:

<lang=kan|size=14>saNNa akSharagaLu

ಸಣ್ಣ ಅಕ್ಷರಗಳು

 

<lang=kan|size=28>doDDa akSharagaLu

ದೊಡ್ಡ ಅಕ್ಷರಗಳು

 


 

Text Style:

Use b, i, u, s, sub, and sup to turn ON the bold, italic, underline, strikeout, subscript, and superscript attributes respectively.

 

Example:

<lang=eng|b>Bold <-b|i>Italic <-i|u>Underlined <-u|s>StrikeOut<-s> text

Bold Italic Underlined StrikeOut text

 

<lang=eng>2H<sub>2<-sub> + O<sub>2<-sub> = 2H<sub>2<-sub>O

2H2 + O2 = 2H2O

 

<lang=eng>E=MC<sup>2<-sup>

E=MC2

 

Use -b, -i, -u, -s, -sub, and -sup to turn OFF the bold, italic, underline, strikeout, subscript, and superscript attributes respectively.

 

Use sul, dul, sol, and dol to turn ON the single underline, double underline, single overline, and double overline attributes respectively.

 

<lang=eng|sul>sarigama <dul|i>padanisa <sol|u>sanidapa <dol|s>magarisa<-line> text

 

Use -line to turn OFF the underline, overline attributes.