Page 1 of 1

How to view xhtml body content in Bangla

Posted: Sun Jul 28, 2013 4:02 pm
by Nabodita
Hello

I'm creating epub ebooks in Bangla language. My problem is that the content of the ebook within the <body> of the xhtml file is displaying boxes instead of the actual text. I'm sure there's something I need to do to view this correctly, but I just can't figure it out.

I'm evaluating Oxygen XML Editor for the purpose of this project. I'm already very comfortable with this software and would really like to create my ebooks using Oxygen. Any help in sorting this out would be really appreciated!

Thanks
Nabodita

Re: How to view xhtml body content in Bangla

Posted: Mon Jul 29, 2013 10:15 am
by alex_jitianu
Hello,

The boxes that you see are an indication that the used font doesn't know how to render those characters. The first thing you should do is to identify a font that supports the Bangala language. I have found one here: http://www.omicronlab.com/bangla-fonts.html. After installing the font restart Oxygen then go to Options->Preferences..., on the Fonts page. If you are using the author mode then on the option Author default font click Choose and select the font you've just installed. If you are using the text mode then the option you should change is the one called Editor.

Best regards,
Alex

Re: How to view xhtml body content in Bangla

Posted: Tue Jul 30, 2013 10:51 pm
by Nabodita
Hi Alex

Thanks for the prompt reply... Unfortunately, before I read your reply, I was fiddling with the general global settings and I changed the language to 'Other' and now Oxygen Editor is crashing every time. I've tried uninstalling and reinstalling the program, cleaning the registry but still can't get it to work...

I'll get back to you when I get Oxygen working again. Any suggestions would be welcome!

Nabodita

Re: How to view xhtml body content in Bangla

Posted: Wed Jul 31, 2013 9:27 am
by alex_jitianu
Hello,

You have to identify and delete the options file. Before deleting it please make a copy and send it to us so that we can analyze what it's the problem.

Depending on the platform the options folder is located as follows:
- Windows XP - [user-home-folder]\Application Data\com.oxygenxml
- Windows Vista/7 - [user-home-folder]\AppData\Roaming\com.oxygenxml
- Mac OS X - [user-home-folder]/Library/Preferences/com.oxygenxml
- Mac OS X - ~/Library/Preferences/com.oxygenxml
- Linux - [user-home-folder]/.com.oxygenxml

In Windows if you have trouble locating the AppData/Application Data folder(it is hidden), open Windows Explorer, type in the Address bar %APPDATA% and press Enter.

Look for a file named oxyOptionsSa15.1.xml (assuming you have Oxygen version 15).

Best regards,
Alex

Re: How to view xhtml body content in Bangla

Posted: Thu Aug 01, 2013 9:27 am
by Nabodita
This is what I did:

Option/Preferences/Global:
Changed the Language to 'Other' and typed Bangla in the box.

This is the error message I was getting:

Cannot start <oXygen/> XML Editor.
Due to:java.lang.NullPointerException
java.lang.NullPointerException
at ro.sync.ui.application.ApplicationLauncher.launch(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at ro.sync.exml.Oxygen.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.exe4j.runtime.WinLauncher.main(Unknown Source)
at com.install4j.runtime.launcher.WinLauncher.main(Unknown Source)

Please give me an address where I can mail the options file; I can't figure out how to attach it with this post! :oops:

Alex, thanks for the help... I sincerely appreciate it! I will revert about my original problem ASAP.

Thanks
Nabodita

Re: How to view xhtml body content in Bangla

Posted: Thu Aug 01, 2013 10:24 am
by alex_jitianu
Hi,

Sorry I forgot to mention that you should send the file on the support email address: support@oxygenxml.com.

We managed to reproduce the issue by following the steps you described so there is no need to send the options file.

Thank you,
Alex

Re: How to view xhtml body content in Bangla

Posted: Tue Aug 13, 2013 4:05 pm
by Nabodita
Hi

I am now being able to correctly view Bangla in the body of the xhtml file by following the given instructions.

I would really appreciate if someone could assist me with another problem that I am facing. I am attempting to copy some text (this is formatted into several paragraphs) from an htm file and paste it into a new xhtml document in Oxygen. When I paste the text, each <p> element is indenting automatically to the right eg:

<p>this is some text</p>
<p>some more text</p>
<p>and more text</p>

By the time I reach the end of the document the elements have indented so far to the right that I have to keep scrolling back and forth when I am editing the code. Not only is this annoying, it is somehow affecting the find and replace feature; Say I want to search for "<span>" and replace it with ""; although I can see that there are multiple occurrences of <span>, the find function cannot find a match. My guess is it is because of the spaces that are getting added automatically between lines in the same <p> element.

I'm not sure whether I have been able to explain my problem clearly; I will try and clarify if needed. Please help!

Nabodita

Re: How to view xhtml body content in Bangla

Posted: Tue Aug 13, 2013 4:11 pm
by Nabodita
Just saw my post and found that I made an error in the example I gave but I can't edit that post;

it should be:
<p>text text text</>
*indent*<p>more text</p>
*indent* *indent*<p>even more text</p>

Re: How to view xhtml body content in Bangla

Posted: Wed Aug 14, 2013 9:04 am
by alex_jitianu
Hi,

I've tried a scenario like the one you described but I wasn't able to reproduce the problem. A little more details would help. Are you copying these paragraphs from the browser or the html file is opened in Oxygen? Do you use the text mode or the author mode? Could you please send us some samples to reproduce the issue on support@oxygenxml.com?

Thank you,
Alex

Re: How to view xhtml body content in Bangla

Posted: Fri Oct 07, 2016 2:32 pm
by TomD
Hi there, i'm having a similar problem with Oxygen representing Bangla as boxes. My file is hOCR which i'm hoping to transform to ALTO XML. I've already downloaded the hocr2alto stylesheets from GitHub but my problem is getting Oxygen to read the Bangla.

I went to the fonts you linked to. https://www.omicronlab.com/bangla-fonts.html

Do you know if it matters which one I choose?

Thanks in advance.

Re: How to view xhtml body content in Bangla

Posted: Mon Oct 10, 2016 11:21 am
by alex_jitianu
Hello,

Unfortunately I can't recommend a specific font from that page because I haven't worked with Bangla language myself. After installing the font and setting up Oxygen to use that font, take a look inside your documents wand see if the correct glyph is presented in the places where a box was before.

Best regards,
Alex