MyBB Community Forums

Full Version: add nepali font in editer
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
hello all

i want to add nepali font in my editer, how to do this.

please give me help here.

thanks
how you normally type in Nepali in the forums ? if you post in Nepali then can all your members read it ?

if a suitable Nepali typing tool is available then I can add it to your forums provided I get required temporary privileges
yes all members can read in board in nepali.

most members are from nepal.

i wana add nepali font as an option. in fonts.

members will decide that witch font they want to use.

they can post in english also.

please help me that how to add nepali font to editer.

thanks
first make a copy of editor.js file ( it is in jscripts folder )
open editor.js in a special code editor ( eg. notepad++ )

around line 65 find below code
// Defines an array of fonts to be shown in the font drop down.
		this.fonts = new Object();
		this.fonts["Arial"] = "Arial";
		this.fonts["Courier"] = "Courier";
		this.fonts["Impact"] = "Impact";
		this.fonts["Tahoma"] = "Tahoma";
		this.fonts["Times New Roman"] = "Times New Roman";
		this.fonts["Trebuchet MS"] = "Trebuchet MS";
		this.fonts["Verdana"] = "Verdana";

add your font may be as the first font in above

like this :
// Defines an array of fonts to be shown in the font drop down.
		this.fonts = new Object();
                this.fonts["Nepali"] = "Nepali";
		this.fonts["Arial"] = "Arial";
		this.fonts["Courier"] = "Courier";
		this.fonts["Impact"] = "Impact";
		this.fonts["Tahoma"] = "Tahoma";
		this.fonts["Times New Roman"] = "Times New Roman";
		this.fonts["Trebuchet MS"] = "Trebuchet MS";
		this.fonts["Verdana"] = "Verdana";

put actual font Nepali font name in place of Nepali in the above code.

now adding the font alone might not help if one does not know how to type it !!

you might need adding a typing tool for it ( eg. look at top right of Nepali Wikipedia )
i dont know about tool,

m uploading the file. and font also

please edit for me,
download here uploaded files please
http://www.ziddu.com/download/15547033/Desktop.rar.html
thankful to you
that editor.js file already has the Nepali font in it ! so rename your current editor.js
file in jscripts folder as editor.js_orig AND copy edited editor.js file to jscripts folder.
i do as you say but editer has no nepali font.

what about tool you said.

[Image: nepali.png]

( image link )

I have tested it to be working ; but not sure if you use inscript method OR
phonetic method to type Nepali . is it a unicode font ? if you have to type
in word document in Nepali then how do you type ?
i cant see the font in my editer

see here please

[Image: 2r4u79c.jpg]


Are you using any special editor (WYSIWYG) ? if so you need to modify related js file

have you replaced the editor.js in jscripts folder ? your site URL and a test user account please...
Pages: 1 2