Re: Error in covington.sty? [was Re: Class scrartcl Error...]

2016-07-06 Thread Jürgen Spitzmüller
Am Dienstag, den 05.07.2016, 13:14 + schrieb JürgenSpitzmüller:
> FWIW I have a patch for covington.sty ready which fixes the issue
> properly, 
> and I have contacted the former maintainers of the package, proposing
> to take 
> over maintainership.

I have just submitted a new version of covington to CTAN which fixes
this and some other issues.

Jürgen


Re: Error in covington.sty? [was Re: Class scrartcl Error...]

2016-07-05 Thread Jürgen Spitzmüller
2016-07-05 15:14 GMT+02:00 JürgenSpitzmüller:

> Scott Kostyshak  lyx.org> writes:
> FWIW I have a patch for covington.sty ready which fixes the issue properly,
> and I have contacted the former maintainers of the package, proposing to
> take
> over maintainership.
>

Patch is attached, for the record.

Jürgen
--- /usr/local/texlive/2016/texmf-dist/tex/latex/covington/covington.sty
+++ /home/juergen/texmf/tex/latex/testen/covington.sty
@@ -13,9 +13,13 @@
 %%
 %% Robin Fairbairns: patched setting of \textfloatsep to use
 %% \setlength rather than \renewcommand; also converted to un*x line endings
+%%
+%% Juergen Spitzmueller: patch to use NFSS font commands instead of deprecated
+%% LaTeX 2.09 commands if NFSS is available
 
 \typeout{* covington.sty : Covington's linguistic macros, 2001 March 27 *}
 %% patched 2014-05-16 (r...@cl.cam.ac.uk)
+%% patched 2016-07-05 (juer...@spitzmueller.org)
 
 %%%
 %%% Preferences about how text is laid out
@@ -222,9 +226,18 @@
 \glossglue = 5pt plus 2pt minus 1pt % allow stretch/shrink between words
 \newif\ifnotdone
 
-\let\eachwordone=\it
-\let\eachwordtwo=\rm
-\let\eachwordthree=\rm
+% Add semantic markup (with latex 2.09 backwards support)
+\@ifundefined{selectfont}{%
+  \def\cov@emphasized{\it}%
+  \def\cov@normalfont{\rm}%
+}{%
+  \def\cov@emphasized{\normalfont\itshape}%
+  \def\cov@normalfont{\normalfont\rmfamily}%
+}
+
+\let\eachwordone=\cov@emphasized
+\let\eachwordtwo=\cov@normalfont
+\let\eachwordthree=\cov@normalfont
 
 \def\lastword#1#2#3% #1 = \each, #2 = line box, #3 = word box
{\setbox#2=\vbox{\unvbox#2%
@@ -311,7 +324,7 @@
 
 % \psr To print S -> NP VP, use: \psr{S}{NP~VP}
 
-\newcommand{\psr}[2]{\mbox{\it #1 $\rightarrow$ #2}}
+\newcommand{\psr}[2]{\mbox{\cov@emphasized #1 $\rightarrow$ #2}}
 
 
 %%%
@@ -331,7 +344,7 @@
 {
 \mbox{\small 
   $
-  \it 
+  \cov@emphasized 
   \left[
   \!\!
   \begin{array}{l}
@@ -346,14 +359,14 @@
 \newcommand{\lfs}[2]
{
  \mbox{$
-   \it
+   \cov@emphasized
\!\!
\begin{array}[t]{c}
#1
\\
\mbox{\small%
  $
- \it
+ \cov@emphasized
  \left[
  \!\!
  \begin{array}{l}
@@ -411,7 +424,7 @@
 \newcommand{\drs}[2]
 {
 {
-\it
+\cov@emphasized
 \begin{tabular}{|l|}
 \hline
 ~ \vspace{-2ex} \\
@@ -430,7 +443,7 @@
 
 \newcommand{\sdrs}[3]
 {\begin{tabular}{l}
-\mbox{\it #1} \\
+\mbox{\cov@emphasized #1} \\
 ~ \\
 \drs{#2}{#3}
 \end{tabular}}
@@ -496,7 +509,7 @@
 % defined.  Permits using uga.sty with covingtn.sty.
 
 \newcommand{\sentence}[1]
- {\begin{flushleft}{\it #1}\end{flushleft}}
+ {\begin{flushleft}{\cov@emphasized #1}\end{flushleft}}
 
 \newcommand{\either}[2]
 {



Re: Error in covington.sty? [was Re: Class scrartcl Error...]

2016-07-05 Thread JürgenSpitzmüller
Scott Kostyshak  lyx.org> writes:
> Great, thanks for helping out with this. I think that many users will
> run into this issue so hopefully they can fix it.

FWIW I have a patch for covington.sty ready which fixes the issue properly, 
and I have contacted the former maintainers of the package, proposing to take 
over maintainership.

Jürgen
 
> Scott
> 




Re: Error in covington.sty? [was Re: Class scrartcl Error...]

2016-07-01 Thread Scott Kostyshak
On Fri, Jul 01, 2016 at 08:12:17AM +0200, Michael Berger wrote:
> 
> 
> On 07/01/2016 02:03 AM, Scott Kostyshak wrote:
> > On Thu, Jun 30, 2016 at 09:40:45AM -0400, Richard Heck wrote:
> > > On 06/30/2016 04:14 AM, Michael Berger wrote:
> > > > Should I go on with that workaround (because this one too is an already
> > > > deprecated class option) or is there anything else to be done?
> > > It'd be worth reporting the error. It looks from here:
> > > https://www.ctan.org/tex-archive/macros/latex/contrib/covington?lang=en
> > > as if the original author isn't "active" any longer. The latest patch was
> > > from Robin Fairbairns. You could try emailing him. Another option would be
> > > to post a message at the comp.text.tex news group. I've found people 
> > > really
> > > helpful.
> > +1, and please keep us updated on the situation.
> > 
> > Scott
> Hi Scott, sure I will. Just now I subscribed to the "tex.live" mailing list.
> Michael

Great, thanks for helping out with this. I think that many users will
run into this issue so hopefully they can fix it.

Scott


signature.asc
Description: PGP signature


Re: Error in covington.sty? [was Re: Class scrartcl Error...]

2016-07-01 Thread Michael Berger



On 07/01/2016 02:03 AM, Scott Kostyshak wrote:

On Thu, Jun 30, 2016 at 09:40:45AM -0400, Richard Heck wrote:

On 06/30/2016 04:14 AM, Michael Berger wrote:

Should I go on with that workaround (because this one too is an already
deprecated class option) or is there anything else to be done?

It'd be worth reporting the error. It looks from here:
https://www.ctan.org/tex-archive/macros/latex/contrib/covington?lang=en
as if the original author isn't "active" any longer. The latest patch was
from Robin Fairbairns. You could try emailing him. Another option would be
to post a message at the comp.text.tex news group. I've found people really
helpful.

+1, and please keep us updated on the situation.

Scott

Hi Scott, sure I will. Just now I subscribed to the "tex.live" mailing list.
Michael


Re: Error in covington.sty? [was Re: Class scrartcl Error...]

2016-06-30 Thread Scott Kostyshak
On Thu, Jun 30, 2016 at 09:40:45AM -0400, Richard Heck wrote:
> On 06/30/2016 04:14 AM, Michael Berger wrote:

> > Should I go on with that workaround (because this one too is an already
> > deprecated class option) or is there anything else to be done?
> 
> It'd be worth reporting the error. It looks from here:
> https://www.ctan.org/tex-archive/macros/latex/contrib/covington?lang=en
> as if the original author isn't "active" any longer. The latest patch was
> from Robin Fairbairns. You could try emailing him. Another option would be
> to post a message at the comp.text.tex news group. I've found people really
> helpful.

+1, and please keep us updated on the situation.

Scott


signature.asc
Description: PGP signature


Re: Error in covington.sty? [was Re: Class scrartcl Error...]

2016-06-30 Thread Richard Heck

On 06/30/2016 04:14 AM, Michael Berger wrote:



On 06/30/2016 09:36 AM, Scott Kostyshak wrote:

On Thu, Jun 30, 2016 at 09:20:27AM +0200, Michael Berger wrote:


Hi Scott, Richard, thanks,
of course, I did read the complete error message several times - and 
got

even more confused.

OK. A good strategy is to read the error message and then at the very
first part you get confused (this could be the first word in some
cases), ask a specific question so that people can try to give you a
specific answer. Otherwise it is easy to get overwhelmed.

Can you please try the following:
in LyX in the example document you sent which gives an error, can you
go to Document > Settings and click on the text box in "Class Options"
next to "Custom". Then put in "enabledeprecatedfontcommands". Click
"OK", and try to compile. Does it work for you?

Scott

Scott,
I did as you said: Bingo!

Should I go on with that workaround (because this one too is an 
already deprecated class option) or is there anything else to be done?


It'd be worth reporting the error. It looks from here:
https://www.ctan.org/tex-archive/macros/latex/contrib/covington?lang=en
as if the original author isn't "active" any longer. The latest patch 
was from Robin Fairbairns. You could try emailing him. Another option 
would be to post a message at the comp.text.tex news group. I've found 
people really helpful.


Richard



Re: Error in covington.sty? [was Re: Class scrartcl Error...]

2016-06-30 Thread Michael Berger



On 06/30/2016 10:14 AM, Michael Berger wrote:



On 06/30/2016 09:36 AM, Scott Kostyshak wrote:

On Thu, Jun 30, 2016 at 09:20:27AM +0200, Michael Berger wrote:


Hi Scott, Richard, thanks,
of course, I did read the complete error message several times - and 
got

even more confused.

OK. A good strategy is to read the error message and then at the very
first part you get confused (this could be the first word in some
cases), ask a specific question so that people can try to give you a
specific answer. Otherwise it is easy to get overwhelmed.

Can you please try the following:
in LyX in the example document you sent which gives an error, can you
go to Document > Settings and click on the text box in "Class Options"
next to "Custom". Then put in "enabledeprecatedfontcommands". Click
"OK", and try to compile. Does it work for you?

Scott

Scott,
I did as you said: Bingo!

Should I go on with that workaround (because this one too is an 
already deprecated class option) or is there anything else to be done?


Thanks for saving my day!
Cheers!



Scott, it now works for all the other documents as well.
However, this is not what one should use in the long run because 
'enabledeprecatedfontcommands' itself is already deprecated and should 
not be used.

This is made clear by the many warnings in the log file.

Cheers,
Michael



Re: Error in covington.sty? [was Re: Class scrartcl Error...]

2016-06-30 Thread Michael Berger



On 06/30/2016 09:36 AM, Scott Kostyshak wrote:

On Thu, Jun 30, 2016 at 09:20:27AM +0200, Michael Berger wrote:


Hi Scott, Richard, thanks,
of course, I did read the complete error message several times - and got
even more confused.

OK. A good strategy is to read the error message and then at the very
first part you get confused (this could be the first word in some
cases), ask a specific question so that people can try to give you a
specific answer. Otherwise it is easy to get overwhelmed.

Can you please try the following:
in LyX in the example document you sent which gives an error, can you
go to Document > Settings and click on the text box in "Class Options"
next to "Custom". Then put in "enabledeprecatedfontcommands". Click
"OK", and try to compile. Does it work for you?

Scott

Scott,
I did as you said: Bingo!

Should I go on with that workaround (because this one too is an already 
deprecated class option) or is there anything else to be done?


Thanks for saving my day!
Cheers!



Re: Error in covington.sty? [was Re: Class scrartcl Error...]

2016-06-30 Thread Scott Kostyshak
On Thu, Jun 30, 2016 at 09:20:27AM +0200, Michael Berger wrote:

> Hi Scott, Richard, thanks,
> of course, I did read the complete error message several times - and got
> even more confused.

OK. A good strategy is to read the error message and then at the very
first part you get confused (this could be the first word in some
cases), ask a specific question so that people can try to give you a
specific answer. Otherwise it is easy to get overwhelmed.

Can you please try the following:
in LyX in the example document you sent which gives an error, can you
go to Document > Settings and click on the text box in "Class Options"
next to "Custom". Then put in "enabledeprecatedfontcommands". Click
"OK", and try to compile. Does it work for you?

Scott


signature.asc
Description: PGP signature


Re: Error in covington.sty? [was Re: Class scrartcl Error...]

2016-06-30 Thread Michael Berger



On 06/30/2016 12:59 AM, Richard Heck wrote:

On 06/29/2016 06:14 PM, Scott Kostyshak wrote:

On Wed, Jun 29, 2016 at 02:23:43PM +0200, Michael Berger wrote:

Dear Lyx users,

texlive2016, GUI (manually installed as user)
Ly- some documents with glosses work in LyX as should while some 
generate that

error.

Comparing and changing the settings of working and not working 
documents

made no difference.

Thinking the reason was because they were produced with my older 
versions I

started a new document in LyX 2.2 and started writing glosses.
To my surprise I got the same error. See attached mini file.

The comment in the log file that comes along with the error doesn't 
tell me

anything.
Could somebody please explain / help to resolve this problem?

Thanks,
Michael



Hi Michael,

Thanks for sending a minimal example!

This is a case (I admit they are rare) where the error is extremely
informative. Did you read it? Is there any part of it that is confusing?

Here is the error when you compile your .lyx file. I post it here
so that if you have a question you can reference the exact part
that you have a question about:

 You should note that since 1994 LaTeX2e provides a new font
 selection scheme called NFSS2 with several new, combinable font...
When you contact the author of the LaTeX package that is at fault,
can you please link to that bug report or keep this thread updated
confirming that you sent the maintainer a bug report (and also
subsequently when they reply?).


So presumably this is some sort of error in the covington package, 
which seems to be the one we are loading.


Perhaps Jurgen knows something

Richard

Hi Scott, Richard, thanks,
of course, I did read the complete error message several times - and got 
even more confused.
As a layman I basically understand that one should not use outdated 
packages.


Help me, please, what else if not TL2016? It appears to me that what 
happened here is just the opposite: everything worked with TL2013 and 
now does NOT with TL2016?!


Furthermore: ALL my documents in question are basically identical and 
ALL have in common to using the module 'linguistic' which requires 
'covington.sty'. And the glosses in each are exactly the same by each 
single letter!
This being the case I tried different settings in the documents with 
that error - nothing changed.


So, I feel Richard may be dam...ed close to presume some sort of error 
in/with the covington package.

Please recall what I said:
- all documents *without* glosses work in LyX 2.2 and all export to PDF 
without problems
- some documents with glosses work in LyX as should while some generate 
that error.


Was Jürgen, as the one who added so many nice features to glosses and 
certainly  must have tried using them, not facing "my" error?
Actually it is Jürgen's features that are so very interesting for 
linguistic papers that encouraged me to go for the latest packages.
I very much hope that Jürgen who already helped me so many times will be 
able to help in this case too.


Scott, if it comes to contact the authors of the LaTeX package you must 
put me on the right track as I wouldn't know how to proceed with that.


Cheers!
Michael