Unicode in ERT inserts

2014-02-14 Thread Joe Lovick
Hi,

   So i have run into the issue that it would be good to use a unicode 
character within an ERT, but this causes a failure, one can type the 
character just fine in lyx, but it isn't converted during compilation.

   a minimal example is here http://goo.gl/d1gL6D

   what method should i be using to get unicode symbols into the ERT? 

   I am using ERT becuase i need to use the Expex linguistics macros... it 
strikes me that maybe i should  create a module that would present the 
functionality of the ERT code to Lyx, would this solve the issue of entering 
unicode within these blocks?

   is their documentation on writing modules in lyx that i can use as a 
reference? i had a quick look but could find any.

 Cheers
Joe



Re: Unicode in ERT inserts

2014-02-14 Thread Ray Rashif
On 15 February 2014 01:33, Joe Lovick j...@anatexis.com wrote:

 Hi,

So i have run into the issue that it would be good to use a unicode
 character within an ERT, but this causes a failure, one can type the
 character just fine in lyx, but it isn't converted during compilation.

a minimal example is here http://goo.gl/d1gL6D

what method should i be using to get unicode symbols into the ERT?

I am using ERT becuase i need to use the Expex linguistics macros... it
 strikes me that maybe i should  create a module that would present the
 functionality of the ERT code to Lyx, would this solve the issue of entering
 unicode within these blocks?

is their documentation on writing modules in lyx that i can use as a
 reference? i had a quick look but could find any.

This is actually a LaTeX issue. I found myself in a similar situation
not too long ago, but I was using pandoc. As you can probably find out
for yourself, 'latex unicode' or 'pandoc unicode' (still some relevant
info there) will lead you to:

http://tex.stackexchange.com/questions/34604/entering-unicode-characters-in-latex
http://stackoverflow.com/questions/18178084/pandoc-and-foreign-characters

I could not find any alternative to using XeTeX (xelatex). For other
times, utf8x has served me well. I only always hope I never get into
any unicode trouble.


--
GPG/PGP ID: C0711BF1


Re: Unicode in ERT inserts

2014-02-14 Thread Maria Gouskova
On Fri, Feb 14, 2014 at 12:33 PM, Joe Lovick j...@anatexis.com wrote:
 Hi,

So i have run into the issue that it would be good to use a unicode
 character within an ERT, but this causes a failure, one can type the
 character just fine in lyx, but it isn't converted during compilation.

a minimal example is here http://goo.gl/d1gL6D

what method should i be using to get unicode symbols into the ERT?

I am using ERT becuase i need to use the Expex linguistics macros... it
 strikes me that maybe i should  create a module that would present the
 functionality of the ERT code to Lyx, would this solve the issue of entering
 unicode within these blocks?

is their documentation on writing modules in lyx that i can use as a
 reference? i had a quick look but could find any.

  Cheers
 Joe


I don't know what Expex is or what you are trying to do exactly, and
your example file didn't clarify it for me, because you can just use
the symbol ə outside ERT and typeset the result without problems. But
one way around the problem in LyX specifically is to enter your
unicode symbols in LyX proper, and then surround them on either side
by ERT. It would look like this, with the parts in parentheses being
in ERT and the parts outside parentheses being in straight LyX text--a
transcription of supper with a syllabic ɹ:

sʌp(\textsyllabic{)ɹ(})

Just declare \usepackage{tipa} in the preamble and everything should work.


Unicode in ERT inserts

2014-02-14 Thread Joe Lovick
Hi,

   So i have run into the issue that it would be good to use a unicode 
character within an ERT, but this causes a failure, one can type the 
character just fine in lyx, but it isn't converted during compilation.

   a minimal example is here http://goo.gl/d1gL6D

   what method should i be using to get unicode symbols into the ERT? 

   I am using ERT becuase i need to use the Expex linguistics macros... it 
strikes me that maybe i should  create a module that would present the 
functionality of the ERT code to Lyx, would this solve the issue of entering 
unicode within these blocks?

   is their documentation on writing modules in lyx that i can use as a 
reference? i had a quick look but could find any.

 Cheers
Joe



Re: Unicode in ERT inserts

2014-02-14 Thread Ray Rashif
On 15 February 2014 01:33, Joe Lovick j...@anatexis.com wrote:

 Hi,

So i have run into the issue that it would be good to use a unicode
 character within an ERT, but this causes a failure, one can type the
 character just fine in lyx, but it isn't converted during compilation.

a minimal example is here http://goo.gl/d1gL6D

what method should i be using to get unicode symbols into the ERT?

I am using ERT becuase i need to use the Expex linguistics macros... it
 strikes me that maybe i should  create a module that would present the
 functionality of the ERT code to Lyx, would this solve the issue of entering
 unicode within these blocks?

is their documentation on writing modules in lyx that i can use as a
 reference? i had a quick look but could find any.

This is actually a LaTeX issue. I found myself in a similar situation
not too long ago, but I was using pandoc. As you can probably find out
for yourself, 'latex unicode' or 'pandoc unicode' (still some relevant
info there) will lead you to:

http://tex.stackexchange.com/questions/34604/entering-unicode-characters-in-latex
http://stackoverflow.com/questions/18178084/pandoc-and-foreign-characters

I could not find any alternative to using XeTeX (xelatex). For other
times, utf8x has served me well. I only always hope I never get into
any unicode trouble.


--
GPG/PGP ID: C0711BF1


Re: Unicode in ERT inserts

2014-02-14 Thread Maria Gouskova
On Fri, Feb 14, 2014 at 12:33 PM, Joe Lovick j...@anatexis.com wrote:
 Hi,

So i have run into the issue that it would be good to use a unicode
 character within an ERT, but this causes a failure, one can type the
 character just fine in lyx, but it isn't converted during compilation.

a minimal example is here http://goo.gl/d1gL6D

what method should i be using to get unicode symbols into the ERT?

I am using ERT becuase i need to use the Expex linguistics macros... it
 strikes me that maybe i should  create a module that would present the
 functionality of the ERT code to Lyx, would this solve the issue of entering
 unicode within these blocks?

is their documentation on writing modules in lyx that i can use as a
 reference? i had a quick look but could find any.

  Cheers
 Joe


I don't know what Expex is or what you are trying to do exactly, and
your example file didn't clarify it for me, because you can just use
the symbol ə outside ERT and typeset the result without problems. But
one way around the problem in LyX specifically is to enter your
unicode symbols in LyX proper, and then surround them on either side
by ERT. It would look like this, with the parts in parentheses being
in ERT and the parts outside parentheses being in straight LyX text--a
transcription of supper with a syllabic ɹ:

sʌp(\textsyllabic{)ɹ(})

Just declare \usepackage{tipa} in the preamble and everything should work.


Unicode in ERT inserts

2014-02-14 Thread Joe Lovick
Hi,

   So i have run into the issue that it would be good to use a unicode 
character within an ERT, but this causes a failure, one can type the 
character just fine in lyx, but it isn't converted during compilation.

   a minimal example is here http://goo.gl/d1gL6D

   what method should i be using to get unicode symbols into the ERT? 

   I am using ERT becuase i need to use the Expex linguistics macros... it 
strikes me that maybe i should  create a module that would present the 
functionality of the ERT code to Lyx, would this solve the issue of entering 
unicode within these blocks?

   is their documentation on writing modules in lyx that i can use as a 
reference? i had a quick look but could find any.

 Cheers
Joe



Re: Unicode in ERT inserts

2014-02-14 Thread Ray Rashif
On 15 February 2014 01:33, Joe Lovick  wrote:
>
> Hi,
>
>So i have run into the issue that it would be good to use a unicode
> character within an ERT, but this causes a failure, one can type the
> character just fine in lyx, but it isn't converted during compilation.
>
>a minimal example is here http://goo.gl/d1gL6D
>
>what method should i be using to get unicode symbols into the ERT?
>
>I am using ERT becuase i need to use the Expex linguistics macros... it
> strikes me that maybe i should  create a module that would present the
> functionality of the ERT code to Lyx, would this solve the issue of entering
> unicode within these blocks?
>
>is their documentation on writing modules in lyx that i can use as a
> reference? i had a quick look but could find any.

This is actually a LaTeX issue. I found myself in a similar situation
not too long ago, but I was using pandoc. As you can probably find out
for yourself, 'latex unicode' or 'pandoc unicode' (still some relevant
info there) will lead you to:

http://tex.stackexchange.com/questions/34604/entering-unicode-characters-in-latex
http://stackoverflow.com/questions/18178084/pandoc-and-foreign-characters

I could not find any alternative to using XeTeX (xelatex). For other
times, utf8x has served me well. I only always hope I never get into
any unicode trouble.


--
GPG/PGP ID: C0711BF1


Re: Unicode in ERT inserts

2014-02-14 Thread Maria Gouskova
On Fri, Feb 14, 2014 at 12:33 PM, Joe Lovick  wrote:
> Hi,
>
>So i have run into the issue that it would be good to use a unicode
> character within an ERT, but this causes a failure, one can type the
> character just fine in lyx, but it isn't converted during compilation.
>
>a minimal example is here http://goo.gl/d1gL6D
>
>what method should i be using to get unicode symbols into the ERT?
>
>I am using ERT becuase i need to use the Expex linguistics macros... it
> strikes me that maybe i should  create a module that would present the
> functionality of the ERT code to Lyx, would this solve the issue of entering
> unicode within these blocks?
>
>is their documentation on writing modules in lyx that i can use as a
> reference? i had a quick look but could find any.
>
>  Cheers
> Joe
>

I don't know what Expex is or what you are trying to do exactly, and
your example file didn't clarify it for me, because you can just use
the symbol ə outside ERT and typeset the result without problems. But
one way around the problem in LyX specifically is to enter your
unicode symbols in LyX proper, and then surround them on either side
by ERT. It would look like this, with the parts in parentheses being
in ERT and the parts outside parentheses being in straight LyX text--a
transcription of "supper" with a syllabic ɹ:

sʌp(\textsyllabic{)ɹ(})

Just declare \usepackage{tipa} in the preamble and everything should work.