Re: Hindi typing in ubuntu 12.10

2013-02-09 Thread Hridayesh Gupta
Hi Scott
I was trying to make wiki, but I could not find how to create new page. All
pages have edit options, but no option to add page. Also could not find
ubuntu section.


On Wed, Jan 30, 2013 at 1:25 PM, Jürgen Spitzmüller  wrote:

> 2013/1/30 Hridayesh Gupta:
> > both suggestions worked for me and now i am able to see devanagari
> correctly
> > in pdf and lyx.
> > i will create wiki for this
>
> Good. Note, though that you are likely to get cursor placement
> problems to to the \force_draw_single_char change. You should add this
> warning also to the wiki.
>
> Jürgen
>


Re: Hindi typing in ubuntu 12.10

2013-01-29 Thread Hridayesh Gupta
both suggestions worked for me and now i am able to see devanagari
correctly in pdf and lyx.
i will create wiki for this
On Jan 28, 2013 4:11 PM, "Jürgen Spitzmüller"  wrote:
>
> Hridayesh Gupta wrote:
> > Chandas was already installed in my Ubuntu 12.10. I tried Chandas,
Sahdeva,
> > Nakula, Siddhanta, Sanskrit2003, FreeSans from given list which were
> > already installed, as well as some other installed fonts.
> > Copied the same text mentioned in that email to try these fonts. not
able
> > to understand Why this issue.
>
> Do you refer both to the PDF output and the LyX-internal display? I
understand
> that the display in the LyX view is broken, but I do not understand why
the
> PDF output should be, as long as the LaTeX source preview is correct.
> Did you use
>
> \setmainfont[Script=Devanagari]{Chandas}
>
> in the preamble, while having "Use non-TeX fonts" checked and having
selected
> _no_ particular font from the dropdown boxes?
> This setting seems to work for me. However, I cannot read Devanagari, so I
> cannot really judge whether the output is correct.
>
>
> As far as the LyX view is concerned, the problem comes from the fact that
we
> paint character by character, which breaks ligatures. As far as I can
see, the
> situation improves if you put the following line in your preferences file
in
> ~/.lyx (if you do not have a "preferences" file, do an arbitrary change in
> Tools > Preferences, and it will be generated):
>
> \force_paint_single_char false
>
> You also might need to uncheck "Spellcheck continuously" in Tools >
> Preferences > Language Settings > Spellchecker.
>
> This workaround probably has some disadvantages (else we would not force
this
> by default), but I don't remember which.
>
> Jürgen
>


Re: Hindi typing in ubuntu 12.10

2013-01-27 Thread Hridayesh Gupta
Chandas was already installed in my Ubuntu 12.10. I tried Chandas, Sahdeva,
Nakula, Siddhanta, Sanskrit2003, FreeSans from given list which were
already installed, as well as some other installed fonts.
Copied the same text mentioned in that email to try these fonts. not able
to understand Why this issue.

Thanks everyone for the help.


On Sun, Jan 27, 2013 at 9:48 PM, Jürgen Spitzmüller  wrote:

> Hridayesh Gupta wrote:
> > However my browser can display Devnagari text correctly just by setting
> > encoding to unicode, not font setting is needed and default font is set
> to
> > serif. Same font does not work in LyX.
>
> Maybe this is of interest:
> http://tug.org/pipermail/xetex/2012-January/022573.html
>
> Seems that Chandas (which is also mentioned on the LyX wiki page) is a good
> choice:
> http://www.sanskritweb.net/cakram/
>
> Jürgen
>


Re: Hindi typing in ubuntu 12.10

2013-01-27 Thread Hridayesh Gupta
However my browser can display Devnagari text correctly just by setting
encoding to unicode, not font setting is needed and default font is set to
serif. Same font does not work in LyX.


On Sun, Jan 27, 2013 at 9:10 PM, Hridayesh Gupta wrote:

> I think it maybe font issue. Not only in pdf file but inside LyX too same
> text is being displayed.
> see the screenshot below.
> The text display in with red circle (in LaTeX source pane) is the correct
> one, This is how text should appear everywhere. But in LyX main main body
> and in pdf it is showing incorrectly.
> Note that this result I am getting with both fonts(Siddhanta.ttf and
> Sanskrit.ttf) those were given in Windows Devnagari wiki and I have set
> those fonts in Document Settings as well as LyX look and feel.
>
> I wonder how LyX is able to display correct font in LaTeX source pane.
>
> [image: Inline image 1]
>
>
>
>
> On Sun, Jan 27, 2013 at 8:42 PM, Liviu Andronic wrote:
>
>> On Sun, Jan 27, 2013 at 2:38 PM, Hridayesh Gupta
>>  wrote:
>> > Actually I tried things on Linux, and also followed given steps on wiki
>> for
>> > windows. I was able to compile and generate pdf but it does not display
>> > fonts correctly. The same problem I have seen with Devnagari on linux
>> > terminal and many other softwares too.
>> >
>> It is possible that the problem lies with your PDF reader. Did you try
>> with another one?
>>
>> Liviu
>>
>>
>> >
>> > On Sat, Jan 26, 2013 at 7:09 AM, Scott Kostyshak 
>> wrote:
>> >>
>> >> On Tue, Jan 15, 2013 at 11:37 PM, Hridayesh Gupta
>> >>  wrote:
>> >> > I have installed lyx 2.0.3 from ubuntu package manager, I hindi fonts
>> >> > installed in my system and I am able to read hindi in my system.
>> >> >
>> >> > Whenever I type something in hindi in lyx, font appears to be broken.
>> >> > When
>> >> > vew source, it shows correct font. When i try to preview/export pdf I
>> >> > get
>> >> > garbage.
>> >> >
>> >> > Is there any guide on how for Devnagri in Ubuntu as there is one for
>> >> > windows
>> >> > at http://wiki.lyx.org/Windows/Devanagari
>> >>
>> >> Hi Hridayesh,
>> >>
>> >> Can you please make a guide on the wiki for Devnagri under Ubuntu? It
>> >> seems that there is some good information in this email between your
>> >> and Liviu's findings that you could help out future users with similar
>> >> issues. You might also help out yourself next time you install Ubuntu.
>> >>
>> >> It is easy to register and edit the wiki.
>> >>
>> >> Thanks,
>> >>
>> >> Scott
>> >
>> >
>>
>>
>>
>> --
>> Do you know how to read?
>> http://www.alienetworks.com/srtest.cfm
>> http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
>> Do you know how to write?
>> http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
>>
>
>
<>

Re: Hindi typing in ubuntu 12.10

2013-01-27 Thread Hridayesh Gupta
I think it maybe font issue. Not only in pdf file but inside LyX too same
text is being displayed.
see the screenshot below.
The text display in with red circle (in LaTeX source pane) is the correct
one, This is how text should appear everywhere. But in LyX main main body
and in pdf it is showing incorrectly.
Note that this result I am getting with both fonts(Siddhanta.ttf and
Sanskrit.ttf) those were given in Windows Devnagari wiki and I have set
those fonts in Document Settings as well as LyX look and feel.

I wonder how LyX is able to display correct font in LaTeX source pane.

[image: Inline image 1]




On Sun, Jan 27, 2013 at 8:42 PM, Liviu Andronic wrote:

> On Sun, Jan 27, 2013 at 2:38 PM, Hridayesh Gupta
>  wrote:
> > Actually I tried things on Linux, and also followed given steps on wiki
> for
> > windows. I was able to compile and generate pdf but it does not display
> > fonts correctly. The same problem I have seen with Devnagari on linux
> > terminal and many other softwares too.
> >
> It is possible that the problem lies with your PDF reader. Did you try
> with another one?
>
> Liviu
>
>
> >
> > On Sat, Jan 26, 2013 at 7:09 AM, Scott Kostyshak 
> wrote:
> >>
> >> On Tue, Jan 15, 2013 at 11:37 PM, Hridayesh Gupta
> >>  wrote:
> >> > I have installed lyx 2.0.3 from ubuntu package manager, I hindi fonts
> >> > installed in my system and I am able to read hindi in my system.
> >> >
> >> > Whenever I type something in hindi in lyx, font appears to be broken.
> >> > When
> >> > vew source, it shows correct font. When i try to preview/export pdf I
> >> > get
> >> > garbage.
> >> >
> >> > Is there any guide on how for Devnagri in Ubuntu as there is one for
> >> > windows
> >> > at http://wiki.lyx.org/Windows/Devanagari
> >>
> >> Hi Hridayesh,
> >>
> >> Can you please make a guide on the wiki for Devnagri under Ubuntu? It
> >> seems that there is some good information in this email between your
> >> and Liviu's findings that you could help out future users with similar
> >> issues. You might also help out yourself next time you install Ubuntu.
> >>
> >> It is easy to register and edit the wiki.
> >>
> >> Thanks,
> >>
> >> Scott
> >
> >
>
>
>
> --
> Do you know how to read?
> http://www.alienetworks.com/srtest.cfm
> http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
> Do you know how to write?
> http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
>
<>

Re: Hindi typing in ubuntu 12.10

2013-01-27 Thread Hridayesh Gupta
Hi

Actually I tried things on Linux, and also followed given steps on wiki for
windows. I was able to compile and generate pdf but it does not display
fonts correctly. The same problem I have seen with Devnagari on linux
terminal and many other softwares too.


On Sat, Jan 26, 2013 at 7:09 AM, Scott Kostyshak  wrote:

> On Tue, Jan 15, 2013 at 11:37 PM, Hridayesh Gupta
>  wrote:
> > I have installed lyx 2.0.3 from ubuntu package manager, I hindi fonts
> > installed in my system and I am able to read hindi in my system.
> >
> > Whenever I type something in hindi in lyx, font appears to be broken.
> When
> > vew source, it shows correct font. When i try to preview/export pdf I get
> > garbage.
> >
> > Is there any guide on how for Devnagri in Ubuntu as there is one for
> windows
> > at http://wiki.lyx.org/Windows/Devanagari
>
> Hi Hridayesh,
>
> Can you please make a guide on the wiki for Devnagri under Ubuntu? It
> seems that there is some good information in this email between your
> and Liviu's findings that you could help out future users with similar
> issues. You might also help out yourself next time you install Ubuntu.
>
> It is easy to register and edit the wiki.
>
> Thanks,
>
> Scott
>


Re: Hindi typing in ubuntu 12.10

2013-01-17 Thread Hridayesh Gupta
Changing font worked and I am able to view proper font in generated pdf
when compiling with XeTeX.
There is small issue with display of font on LyX. In LyX font appears to be
broken. Is there any option to use same font to display in LyX window,
which I used to compile the file?

Thank you so much!

Regards
Hridayesh


On Thu, Jan 17, 2013 at 1:05 PM, Liviu Andronic wrote:

> On Thu, Jan 17, 2013 at 3:54 AM, Hridayesh Gupta
>  wrote:
> >  I have installed all the packages as suggested and updated LyX to latest
> > version 2.0.5 using ppa. I also need to change to LuaTeX/XeTeX font in
> > Document -> Settings -> Font -> checked Use XeTeX/LuaTeX font. After
> that I
> > am able to successfully compile the file without any errors, however In
> the
> > pdf the spots with hindi language just shows up blank. tried with chinese
> > and russian language as well but same thing.
> >
> I assume that the default font doesn't contain the necessary chars.
> Try to select something like DejaVu or some other font that you know
> it contains the needed chars.
>
> Liviu
>
>
> > I am able to see those languages correctly in LyX, firefox, text editor
> but
> > not in pdf generated.
> > Do I need to include any font anywhere in settings?
> >
> >
> >
> > On Thu, Jan 17, 2013 at 1:26 AM, Scott Kostyshak 
> wrote:
> >>
> >> On Wed, Jan 16, 2013 at 7:53 AM, Liviu Andronic  >
> >> wrote:
> >> > On Wed, Jan 16, 2013 at 12:18 PM, Hridayesh Gupta
> >> >  wrote:
> >> >> I have selected system fonts as you told. Still getting error when
> >> >> compiling
> >> >> using LuaTeX. I got following errors
> >> >> 1. Package fontenc error: package file eu2enc.def not found
> >> >> 2. encoding scheme eu2 unknown.
> >> >> 3. file xunicode.sty not found
> >> >>
> >> > You have some missing packages. Go to packages.ubuntu.com and 'Search
> >> > the contents of packages'. If you search for 'eu2enc.def', you will
> >> > get [1]. This will indicate the Debian packages that you are still
> >> > missing, in this case 'texlive-xetex', that you can install via
> >> > Synaptic. Do the same for 'xunicode.sty', etc.
> >> > [1]
> >> >
> http://packages.ubuntu.com/search?searchon=contents&keywords=eu2enc.def&mode=exactfilename&suite=quantal&arch=any
> >> >
> >> > Liviu
> >>
> >> In addition to Liviu's suggestion, annother useful program to install
> >> is apt-file:
> >> $ apt-file find eu2enc.def
> >> texlive-luatex:
> >> /usr/share/texmf-texlive/tex/lualatex/luainputenc/eu2enc.def
> >> $ apt-file find xunicode.sty
> >> texlive-xetex:
> /usr/share/texmf-texlive/tex/xelatex/xunicode/xunicode.sty
> >>
> >> Also, since you're on Ubuntu, consider the LyX PPA if you want a newer
> >> version of LyX:
> >> http://wiki.lyx.org/LyX/LyXOnUbuntu#toc3
> >>
> >> Scott
> >
> >
>
>
>
> --
> Do you know how to read?
> http://www.alienetworks.com/srtest.cfm
> http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
> Do you know how to write?
> http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
>


Re: Hindi typing in ubuntu 12.10

2013-01-16 Thread Hridayesh Gupta
 I have installed all the packages as suggested and updated LyX to latest
version 2.0.5 using ppa. I also need to change to LuaTeX/XeTeX font in
Document -> Settings -> Font -> checked Use XeTeX/LuaTeX font. After that I
am able to successfully compile the file without any errors, however In the
pdf the spots with hindi language just shows up blank. tried with chinese
and russian language as well but same thing.

I am able to see those languages correctly in LyX, firefox, text editor but
not in pdf generated.
Do I need to include any font anywhere in settings?


On Thu, Jan 17, 2013 at 1:26 AM, Scott Kostyshak  wrote:

> On Wed, Jan 16, 2013 at 7:53 AM, Liviu Andronic 
> wrote:
> > On Wed, Jan 16, 2013 at 12:18 PM, Hridayesh Gupta
> >  wrote:
> >> I have selected system fonts as you told. Still getting error when
> compiling
> >> using LuaTeX. I got following errors
> >> 1. Package fontenc error: package file eu2enc.def not found
> >> 2. encoding scheme eu2 unknown.
> >> 3. file xunicode.sty not found
> >>
> > You have some missing packages. Go to packages.ubuntu.com and 'Search
> > the contents of packages'. If you search for 'eu2enc.def', you will
> > get [1]. This will indicate the Debian packages that you are still
> > missing, in this case 'texlive-xetex', that you can install via
> > Synaptic. Do the same for 'xunicode.sty', etc.
> > [1]
> http://packages.ubuntu.com/search?searchon=contents&keywords=eu2enc.def&mode=exactfilename&suite=quantal&arch=any
> >
> > Liviu
>
> In addition to Liviu's suggestion, annother useful program to install
> is apt-file:
> $ apt-file find eu2enc.def
> texlive-luatex:
> /usr/share/texmf-texlive/tex/lualatex/luainputenc/eu2enc.def
> $ apt-file find xunicode.sty
> texlive-xetex: /usr/share/texmf-texlive/tex/xelatex/xunicode/xunicode.sty
>
> Also, since you're on Ubuntu, consider the LyX PPA if you want a newer
> version of LyX:
> http://wiki.lyx.org/LyX/LyXOnUbuntu#toc3
>
> Scott
>


Re: Hindi typing in ubuntu 12.10

2013-01-16 Thread Hridayesh Gupta
Thanks for the reply.

I have selected system fonts as you told. Still getting error when
compiling using LuaTeX. I got following errors
1. Package fontenc error: package file eu2enc.def not found
2. encoding scheme eu2 unknown.
3. file xunicode.sty not found


On Wed, Jan 16, 2013 at 1:30 PM, Liviu Andronic wrote:

> On Wed, Jan 16, 2013 at 5:37 AM, Hridayesh Gupta
>  wrote:
> > I have installed lyx 2.0.3 from ubuntu package manager, I hindi fonts
> > installed in my system and I am able to read hindi in my system.
> >
> > Whenever I type something in hindi in lyx, font appears to be broken.
> When
> > vew source, it shows correct font. When i try to preview/export pdf I get
> > garbage.
> >
> No expert, but I expect that if you use pdflatex then you need to load
> some specialized LaTeX package, perhaps via the Preamble. If however
> you use Document > Fonts > Non-TeX fonts, then you should be able to
> select any of your system fonts, and then compile the document using
> XeTeX or LuaTeX.
>
> Liviu
>
>
> > Is there any guide on how for Devnagri in Ubuntu as there is one for
> windows
> > at http://wiki.lyx.org/Windows/Devanagari
> >
> > I have installed texlive-lang-indic package as well.
> >
> > Thank you!
> > Hridayesh
>
>
>
> --
> Do you know how to read?
> http://www.alienetworks.com/srtest.cfm
> http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
> Do you know how to write?
> http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
>


Hindi typing in ubuntu 12.10

2013-01-15 Thread Hridayesh Gupta
I have installed lyx 2.0.3 from ubuntu package manager, I hindi fonts
installed in my system and I am able to read hindi in my system.

Whenever I type something in hindi in lyx, font appears to be broken. When
vew source, it shows correct font. When i try to preview/export pdf I get
garbage.

Is there any guide on how for Devnagri in Ubuntu as there is one for
windows at http://wiki.lyx.org/Windows/Devanagari

I have installed texlive-lang-indic package as well.

Thank you!
Hridayesh