Arabic\Farsi and XeTeX, testing a patch

2012-07-23 Thread Ronen Abravanel
Hello to you all,

Recently, I bumped into a 'bug' that effects the export of Hebrew LyX
document into XeTeX documents. The bug was fixed by Jürgen Spitzmüller and
myself, and it works grate for Hebrew.
For more information, see
http://www.lyx.org/trac/ticket/8251


But as Arabic and Farsi are also Right-To-Left languages, I assume this
correction also effect these languages. From 1st glance, it seems that
Arabic also works good now, but I have no real experience in writing
Arabic\Farsi in LyX. If you do use LyX in Arabic or Farsi, I will be happy
if you'll help checking it.

System Req:
- New version of LaTeX, like texLive 2011 (texLive 2009, as in Ubuntu, have
an old version of Bidi and polyglassia packages, so you'll have to install
them manually,  http://ctan.org/tex-archive/macros/xetex/latex/polyglossia,
http://www.ctan.org/tex-archive/macros/latex/contrib/bidi/ )
 - LyX, updated GIT version with the patch rtl2.diff from
http://www.lyx.org/trac/ticket/8251
 - Unicode-enabled TTF arabic\farci font. I used Debian package
fonts-sil-scheherazade for arabic font.

What to do:
- In an old (2.0x) LyX version, write an arabic document.
- Document-Preferences-Fonts.  mark 'use non-Tex fonts' and choose a
proper arabic\farsi font from the available combos.
- Write a document that contains many braces, ( ) ,  , {} , []  [in
Arabic\Farsi and in English, not in math)
- Compile the document using XeTex  (View-View [other formats] - PDF
(XeTeX)
- Is the document compiled properly? is all the braces are as expected?

Do the same thing with the patched GIT version:
- Is the document compiled properly? is all the braces are as expected?

If, in the patched version not everything works grate, please attached the
original LyX file, the output PDF, and if possible, also the XeTeX output.


Thanks,
Ronen.


Re: Arabic\Farsi and XeTeX, testing a patch

2012-07-23 Thread Guenter Milde
On 2012-07-23, Ronen Abravanel wrote:

 Recently, I bumped into a 'bug' that effects the export of Hebrew LyX
 document into XeTeX documents. The bug was fixed by Jürgen Spitzmüller and
 myself, and it works grate for Hebrew.
 For more information, see
 http://www.lyx.org/trac/ticket/8251

 What to do:
 - In an old (2.0x) LyX version, write an arabic document.
 - Document-Preferences-Fonts.  mark 'use non-Tex fonts' and choose a
 proper arabic\farsi font from the available combos.
 - Write a document that contains many braces, ( ) ,  , {} , []  [in
 Arabic\Farsi and in English, not in math)
 - Compile the document using XeTex  (View-View [other formats] - PDF
 (XeTeX)
 - Is the document compiled properly? is all the braces are as expected?

 Do the same thing with the patched GIT version:
 - Is the document compiled properly? is all the braces are as expected?

Please also check, if you prefer to input the braces in the way old LyX
documents do it, )siht ekil(, or if you prefer to input the braces in
the Unicode way (siht ekil). The latter should come out right without
the patch but may no longer with it!

 If, in the patched version not everything works grate, please attached the
 original LyX file, the output PDF, and if possible, also the XeTeX output.

Günter



Re: Arabic\Farsi and XeTeX, testing a patch

2012-07-23 Thread Jürgen Spitzmüller
Guenter Milde wrote:
 Please also check, if you prefer to input the braces in the way old LyX
 documents do it, )siht ekil(, or if you prefer to input the braces in
 the Unicode way (siht ekil). The latter should come out right without
 the patch but may no longer with it!

This has not been changed (it would be a file format change).

Jürgen


Re: Arabic\Farsi and XeTeX, testing a patch

2012-07-23 Thread Jürgen Spitzmüller
Ronen Abravanel wrote:
 Recently, I bumped into a 'bug' that effects the export of Hebrew LyX
 document into XeTeX documents. The bug was fixed by Jürgen Spitzmüller and
 myself, and it works grate for Hebrew.
 For more information, see
 http://www.lyx.org/trac/ticket/8251
 
 
 But as Arabic and Farsi are also Right-To-Left languages, I assume this
 correction also effect these languages. From 1st glance, it seems that
 Arabic also works good now, but I have no real experience in writing
 Arabic\Farsi in LyX. If you do use LyX in Arabic or Farsi, I will be happy
 if you'll help checking it.
 
 System Req:
[...]
  - LyX, updated GIT version with the patch rtl2.diff from
 http://www.lyx.org/trac/ticket/8251

Since the patch has meanwhile been applied, you do not need the mentioned 
patch. Just pull the most recent master.

Jürgen


Re: Arabic\Farsi and XeTeX, testing a patch

2012-07-23 Thread Guenter Milde
On 2012-07-23, Jürgen Spitzmüller wrote:
 Guenter Milde wrote:
 Please also check, if you prefer to input the braces in the way old LyX
 documents do it, )siht ekil(, or if you prefer to input the braces in
 the Unicode way (siht ekil). The latter should come out right without
 the patch but may no longer with it!

 This has not been changed (it would be a file format change).

If I understand right, 

  babel converts the input )siht ekil( to (like this) 
  
while

  xelatex+polyglossia converts (siht ekil) to (like this).
  
IMO, this is a polyglossia feature. It may be regarded as a regression, if
we fix it to behave like babel:

However, the applied patch seems to do exactly this. Whether it is a
fix or a regression depends on the use case.

 + documents written for babel also work with polyglossia,
 - text pasted from other applications now fails with both, babel and
   polyglossia.


Please correct me if I am wrong. 

Günter




Re: errors typesetting UserGuide.lyx

2012-07-23 Thread Richard Talley
Rather than further troubleshoot my issues with LyX on Snow Leopard, I
decided to wait until I could start fresh with Lion.

After some hardware repairs, I wiped the hard drive on my MacBook Pro and
installed Lion 10.7.4, MaxTeX-2012 (which I immediately updated with the
TeX Live Utility), LyX2.0.4+qt4, and Skim 1.3.21.

I ran LyX - Reconfigure, and then set LyX and Skim to sync with each other.

Now I can successfully typeset LyX documentation without error.

I want to thank everybody on this mailing list who tried to help me
troubleshoot; sometimes an OS simply has too much cruft from being ridden
and put up wet too many times, and it's simpler just to start over.

-- Rich

On Tue, Feb 7, 2012 at 9:58 AM, Richard Heck rgh...@comcast.net wrote:

  On 02/07/2012 11:35 AM, Rich Talley wrote:

 Yes, I did reconfigure LyX.

  I am going to create a small test document that only has a title and a
 couple of the problematic graphics files from the User's Manual, one eps
 and one pdf. Then I'll see what's in the LaTeX log when I try to typeset it
  get back to the list.

  You should also try typesetting it manually from the command line, in so
 far as that is possible.

 Richard


  -- Rich

 On Tue, Feb 7, 2012 at 9:29 AM, Jens Nöckel noec...@uoregon.edu wrote:


 On Feb 7, 2012, at 6:12 AM, Richard Heck wrote:

  On 02/07/2012 12:50 AM, Jens Nöckel wrote:
 
  I think this can only be solved if you save the user's guide to an
 external file, bisect that new file until you localize the error to a
 reasonably small portion of the file, and then inspect the LaTeX log.
 
  Did the OP reconfigure LyX after getting convert working?
 

  Good question. Rich -- that should definitely be the first thing to do!

 Jens







Hanging indents in bibliography

2012-07-23 Thread Francis
Hello,

I am writing my PhD thesis in the book(memoir) class and need hanging indents in
the bibliography. I am typing the bibliography by hand in MHRA format. Does
someone know how I can change the paragraph settings to get hanging indents?

Many thanks, 

Sam



Arabic\Farsi and XeTeX, testing a patch

2012-07-23 Thread Ronen Abravanel
Hello to you all,

Recently, I bumped into a 'bug' that effects the export of Hebrew LyX
document into XeTeX documents. The bug was fixed by Jürgen Spitzmüller and
myself, and it works grate for Hebrew.
For more information, see
http://www.lyx.org/trac/ticket/8251


But as Arabic and Farsi are also Right-To-Left languages, I assume this
correction also effect these languages. From 1st glance, it seems that
Arabic also works good now, but I have no real experience in writing
Arabic\Farsi in LyX. If you do use LyX in Arabic or Farsi, I will be happy
if you'll help checking it.

System Req:
- New version of LaTeX, like texLive 2011 (texLive 2009, as in Ubuntu, have
an old version of Bidi and polyglassia packages, so you'll have to install
them manually,  http://ctan.org/tex-archive/macros/xetex/latex/polyglossia,
http://www.ctan.org/tex-archive/macros/latex/contrib/bidi/ )
 - LyX, updated GIT version with the patch rtl2.diff from
http://www.lyx.org/trac/ticket/8251
 - Unicode-enabled TTF arabic\farci font. I used Debian package
fonts-sil-scheherazade for arabic font.

What to do:
- In an old (2.0x) LyX version, write an arabic document.
- Document-Preferences-Fonts.  mark 'use non-Tex fonts' and choose a
proper arabic\farsi font from the available combos.
- Write a document that contains many braces, ( ) ,  , {} , []  [in
Arabic\Farsi and in English, not in math)
- Compile the document using XeTex  (View-View [other formats] - PDF
(XeTeX)
- Is the document compiled properly? is all the braces are as expected?

Do the same thing with the patched GIT version:
- Is the document compiled properly? is all the braces are as expected?

If, in the patched version not everything works grate, please attached the
original LyX file, the output PDF, and if possible, also the XeTeX output.


Thanks,
Ronen.


Re: Arabic\Farsi and XeTeX, testing a patch

2012-07-23 Thread Guenter Milde
On 2012-07-23, Ronen Abravanel wrote:

 Recently, I bumped into a 'bug' that effects the export of Hebrew LyX
 document into XeTeX documents. The bug was fixed by Jürgen Spitzmüller and
 myself, and it works grate for Hebrew.
 For more information, see
 http://www.lyx.org/trac/ticket/8251

 What to do:
 - In an old (2.0x) LyX version, write an arabic document.
 - Document-Preferences-Fonts.  mark 'use non-Tex fonts' and choose a
 proper arabic\farsi font from the available combos.
 - Write a document that contains many braces, ( ) ,  , {} , []  [in
 Arabic\Farsi and in English, not in math)
 - Compile the document using XeTex  (View-View [other formats] - PDF
 (XeTeX)
 - Is the document compiled properly? is all the braces are as expected?

 Do the same thing with the patched GIT version:
 - Is the document compiled properly? is all the braces are as expected?

Please also check, if you prefer to input the braces in the way old LyX
documents do it, )siht ekil(, or if you prefer to input the braces in
the Unicode way (siht ekil). The latter should come out right without
the patch but may no longer with it!

 If, in the patched version not everything works grate, please attached the
 original LyX file, the output PDF, and if possible, also the XeTeX output.

Günter



Re: Arabic\Farsi and XeTeX, testing a patch

2012-07-23 Thread Jürgen Spitzmüller
Guenter Milde wrote:
 Please also check, if you prefer to input the braces in the way old LyX
 documents do it, )siht ekil(, or if you prefer to input the braces in
 the Unicode way (siht ekil). The latter should come out right without
 the patch but may no longer with it!

This has not been changed (it would be a file format change).

Jürgen


Re: Arabic\Farsi and XeTeX, testing a patch

2012-07-23 Thread Jürgen Spitzmüller
Ronen Abravanel wrote:
 Recently, I bumped into a 'bug' that effects the export of Hebrew LyX
 document into XeTeX documents. The bug was fixed by Jürgen Spitzmüller and
 myself, and it works grate for Hebrew.
 For more information, see
 http://www.lyx.org/trac/ticket/8251
 
 
 But as Arabic and Farsi are also Right-To-Left languages, I assume this
 correction also effect these languages. From 1st glance, it seems that
 Arabic also works good now, but I have no real experience in writing
 Arabic\Farsi in LyX. If you do use LyX in Arabic or Farsi, I will be happy
 if you'll help checking it.
 
 System Req:
[...]
  - LyX, updated GIT version with the patch rtl2.diff from
 http://www.lyx.org/trac/ticket/8251

Since the patch has meanwhile been applied, you do not need the mentioned 
patch. Just pull the most recent master.

Jürgen


Re: Arabic\Farsi and XeTeX, testing a patch

2012-07-23 Thread Guenter Milde
On 2012-07-23, Jürgen Spitzmüller wrote:
 Guenter Milde wrote:
 Please also check, if you prefer to input the braces in the way old LyX
 documents do it, )siht ekil(, or if you prefer to input the braces in
 the Unicode way (siht ekil). The latter should come out right without
 the patch but may no longer with it!

 This has not been changed (it would be a file format change).

If I understand right, 

  babel converts the input )siht ekil( to (like this) 
  
while

  xelatex+polyglossia converts (siht ekil) to (like this).
  
IMO, this is a polyglossia feature. It may be regarded as a regression, if
we fix it to behave like babel:

However, the applied patch seems to do exactly this. Whether it is a
fix or a regression depends on the use case.

 + documents written for babel also work with polyglossia,
 - text pasted from other applications now fails with both, babel and
   polyglossia.


Please correct me if I am wrong. 

Günter




Re: errors typesetting UserGuide.lyx

2012-07-23 Thread Richard Talley
Rather than further troubleshoot my issues with LyX on Snow Leopard, I
decided to wait until I could start fresh with Lion.

After some hardware repairs, I wiped the hard drive on my MacBook Pro and
installed Lion 10.7.4, MaxTeX-2012 (which I immediately updated with the
TeX Live Utility), LyX2.0.4+qt4, and Skim 1.3.21.

I ran LyX - Reconfigure, and then set LyX and Skim to sync with each other.

Now I can successfully typeset LyX documentation without error.

I want to thank everybody on this mailing list who tried to help me
troubleshoot; sometimes an OS simply has too much cruft from being ridden
and put up wet too many times, and it's simpler just to start over.

-- Rich

On Tue, Feb 7, 2012 at 9:58 AM, Richard Heck rgh...@comcast.net wrote:

  On 02/07/2012 11:35 AM, Rich Talley wrote:

 Yes, I did reconfigure LyX.

  I am going to create a small test document that only has a title and a
 couple of the problematic graphics files from the User's Manual, one eps
 and one pdf. Then I'll see what's in the LaTeX log when I try to typeset it
  get back to the list.

  You should also try typesetting it manually from the command line, in so
 far as that is possible.

 Richard


  -- Rich

 On Tue, Feb 7, 2012 at 9:29 AM, Jens Nöckel noec...@uoregon.edu wrote:


 On Feb 7, 2012, at 6:12 AM, Richard Heck wrote:

  On 02/07/2012 12:50 AM, Jens Nöckel wrote:
 
  I think this can only be solved if you save the user's guide to an
 external file, bisect that new file until you localize the error to a
 reasonably small portion of the file, and then inspect the LaTeX log.
 
  Did the OP reconfigure LyX after getting convert working?
 

  Good question. Rich -- that should definitely be the first thing to do!

 Jens







Hanging indents in bibliography

2012-07-23 Thread Francis
Hello,

I am writing my PhD thesis in the book(memoir) class and need hanging indents in
the bibliography. I am typing the bibliography by hand in MHRA format. Does
someone know how I can change the paragraph settings to get hanging indents?

Many thanks, 

Sam



Arabic\Farsi and XeTeX, testing a patch

2012-07-23 Thread Ronen Abravanel
Hello to you all,

Recently, I bumped into a 'bug' that effects the export of Hebrew LyX
document into XeTeX documents. The bug was fixed by Jürgen Spitzmüller and
myself, and it works grate for Hebrew.
For more information, see
http://www.lyx.org/trac/ticket/8251


But as Arabic and Farsi are also Right-To-Left languages, I assume this
correction also effect these languages. From 1st glance, it seems that
Arabic also works good now, but I have no real experience in writing
Arabic\Farsi in LyX. If you do use LyX in Arabic or Farsi, I will be happy
if you'll help checking it.

System Req:
- New version of LaTeX, like texLive 2011 (texLive 2009, as in Ubuntu, have
an old version of Bidi and polyglassia packages, so you'll have to install
them manually,  http://ctan.org/tex-archive/macros/xetex/latex/polyglossia,
http://www.ctan.org/tex-archive/macros/latex/contrib/bidi/ )
 - LyX, updated GIT version with the patch rtl2.diff from
http://www.lyx.org/trac/ticket/8251
 - Unicode-enabled TTF arabic\farci font. I used Debian package
fonts-sil-scheherazade for arabic font.

What to do:
- In an old (2.0x) LyX version, write an arabic document.
- Document->Preferences->Fonts.  mark 'use non-Tex fonts' and choose a
proper arabic\farsi font from the available combos.
- Write a document that contains many braces, ( ) , <> , {} , []  [in
Arabic\Farsi and in English, not in math)
- Compile the document using XeTex  (View->View [other formats] -> PDF
(XeTeX)
- Is the document compiled properly? is all the braces are as expected?

Do the same thing with the patched GIT version:
- Is the document compiled properly? is all the braces are as expected?

If, in the patched version not everything works grate, please attached the
original LyX file, the output PDF, and if possible, also the XeTeX output.


Thanks,
Ronen.


Re: Arabic\Farsi and XeTeX, testing a patch

2012-07-23 Thread Guenter Milde
On 2012-07-23, Ronen Abravanel wrote:

> Recently, I bumped into a 'bug' that effects the export of Hebrew LyX
> document into XeTeX documents. The bug was fixed by Jürgen Spitzmüller and
> myself, and it works grate for Hebrew.
> For more information, see
> http://www.lyx.org/trac/ticket/8251

> What to do:
> - In an old (2.0x) LyX version, write an arabic document.
> - Document->Preferences->Fonts.  mark 'use non-Tex fonts' and choose a
> proper arabic\farsi font from the available combos.
> - Write a document that contains many braces, ( ) , <> , {} , []  [in
> Arabic\Farsi and in English, not in math)
> - Compile the document using XeTex  (View->View [other formats] -> PDF
> (XeTeX)
> - Is the document compiled properly? is all the braces are as expected?

> Do the same thing with the patched GIT version:
> - Is the document compiled properly? is all the braces are as expected?

Please also check, if you prefer to input the braces in the way old LyX
documents do it, ")siht ekil(", or if you prefer to input the braces in
the "Unicode" way "(siht ekil)". The latter should come out right without
the patch but may no longer with it!

> If, in the patched version not everything works grate, please attached the
> original LyX file, the output PDF, and if possible, also the XeTeX output.

Günter



Re: Arabic\Farsi and XeTeX, testing a patch

2012-07-23 Thread Jürgen Spitzmüller
Guenter Milde wrote:
> Please also check, if you prefer to input the braces in the way old LyX
> documents do it, ")siht ekil(", or if you prefer to input the braces in
> the "Unicode" way "(siht ekil)". The latter should come out right without
> the patch but may no longer with it!

This has not been changed (it would be a file format change).

Jürgen


Re: Arabic\Farsi and XeTeX, testing a patch

2012-07-23 Thread Jürgen Spitzmüller
Ronen Abravanel wrote:
> Recently, I bumped into a 'bug' that effects the export of Hebrew LyX
> document into XeTeX documents. The bug was fixed by Jürgen Spitzmüller and
> myself, and it works grate for Hebrew.
> For more information, see
> http://www.lyx.org/trac/ticket/8251
> 
> 
> But as Arabic and Farsi are also Right-To-Left languages, I assume this
> correction also effect these languages. From 1st glance, it seems that
> Arabic also works good now, but I have no real experience in writing
> Arabic\Farsi in LyX. If you do use LyX in Arabic or Farsi, I will be happy
> if you'll help checking it.
> 
> System Req:
[...]
>  - LyX, updated GIT version with the patch rtl2.diff from
> http://www.lyx.org/trac/ticket/8251

Since the patch has meanwhile been applied, you do not need the mentioned 
patch. Just pull the most recent master.

Jürgen


Re: Arabic\Farsi and XeTeX, testing a patch

2012-07-23 Thread Guenter Milde
On 2012-07-23, Jürgen Spitzmüller wrote:
> Guenter Milde wrote:
>> Please also check, if you prefer to input the braces in the way old LyX
>> documents do it, ")siht ekil(", or if you prefer to input the braces in
>> the "Unicode" way "(siht ekil)". The latter should come out right without
>> the patch but may no longer with it!

> This has not been changed (it would be a file format change).

If I understand right, 

  babel converts the input ")siht ekil(" to "(like this)" 
  
while

  xelatex+polyglossia converts "(siht ekil)" to "(like this)".
  
IMO, this is a polyglossia feature. It may be regarded as a regression, if
we "fix" it to behave like babel:

However, the applied patch seems to do exactly this. Whether it is a
"fix" or a "regression" depends on the use case.

 + documents written for babel also work with polyglossia,
 - text pasted from other applications now fails with both, babel and
   polyglossia.


Please correct me if I am wrong. 

Günter




Re: errors typesetting UserGuide.lyx

2012-07-23 Thread Richard Talley
Rather than further troubleshoot my issues with LyX on Snow Leopard, I
decided to wait until I could start fresh with Lion.

After some hardware repairs, I wiped the hard drive on my MacBook Pro and
installed Lion 10.7.4, MaxTeX-2012 (which I immediately updated with the
TeX Live Utility), LyX2.0.4+qt4, and Skim 1.3.21.

I ran LyX -> Reconfigure, and then set LyX and Skim to sync with each other.

Now I can successfully typeset LyX documentation without error.

I want to thank everybody on this mailing list who tried to help me
troubleshoot; sometimes an OS simply has too much cruft from being ridden
and put up wet too many times, and it's simpler just to start over.

-- Rich

On Tue, Feb 7, 2012 at 9:58 AM, Richard Heck  wrote:

>  On 02/07/2012 11:35 AM, Rich Talley wrote:
>
> Yes, I did reconfigure LyX.
>
>  I am going to create a small test document that only has a title and a
> couple of the problematic graphics files from the User's Manual, one eps
> and one pdf. Then I'll see what's in the LaTeX log when I try to typeset it
> & get back to the list.
>
>  You should also try typesetting it manually from the command line, in so
> far as that is possible.
>
> Richard
>
>
>  -- Rich
>
> On Tue, Feb 7, 2012 at 9:29 AM, Jens Nöckel  wrote:
>
>>
>> On Feb 7, 2012, at 6:12 AM, Richard Heck wrote:
>>
>> > On 02/07/2012 12:50 AM, Jens Nöckel wrote:
>> >>
>> >> I think this can only be solved if you save the user's guide to an
>> external file, bisect that new file until you localize the error to a
>> reasonably small portion of the file, and then inspect the LaTeX log.
>> >>
>> > Did the OP reconfigure LyX after getting convert working?
>> >
>>
>>  Good question. Rich -- that should definitely be the first thing to do!
>>
>> Jens
>>
>
>
>
>


Hanging indents in bibliography

2012-07-23 Thread Francis
Hello,

I am writing my PhD thesis in the book(memoir) class and need hanging indents in
the bibliography. I am typing the bibliography by hand in MHRA format. Does
someone know how I can change the paragraph settings to get hanging indents?

Many thanks, 

Sam