Re: user interface bug latin9 -> Unicode

2018-09-27 Thread Paul Johnson
I apologize. My LyX test machine where I found the problem has LyX 2.2.3.

We have built LyX 2.3.1 for RedHat and the problem is solved, the smiley
unicode character is replaced by \smiley{}, just as Jurgen said.

Also confirm that problem does not exist in LyX 2.3.0 in Ubuntu.


On Wed, Sep 26, 2018 at 3:47 AM Jürgen Spitzmüller  wrote:

> Am Dienstag, den 25.09.2018, 14:15 -0500 schrieb Paul Johnson:
> > This looks like a bug to me.
> >
> > Create a new empty article and use the Insert Symbol tool to put in
> > some miscellaneous smiley faces and what not. This is the source view
> > of the file, which does compile.:
> >
> > \documentclass[english]{article}
> > \usepackage[T1]{fontenc}
> > \usepackage[latin9]{inputenc}
> > \usepackage{wasysym}
> > \usepackage{babel}
> > \begin{document}
> > \frownie \smiley \blacksmiley \sun{}
> > \end{document}
> >
> > Then I went into Settings -> Language and changed input to utf-8.
> >
> > That had the effect of automatically replacing \frownie and \smiley
> > with unicode symbols in the LaTeX source, like so:
> >
> > \documentclass[english]{article}
> > \usepackage[T1]{fontenc}
> > \usepackage[utf8]{inputenc}
> > \usepackage{wasysym}
> > \usepackage{babel}
> > \begin{document}
> > ☹☺☻☼
> > \end{document}
> >
> > That does not compile, rather the error messages say:
> >
> > Package inputenc Error: Unicode char ☹ (U+2639)
> > Package inputenc Error: Unicode char ☺ (U+263A)
> > Package inputenc Error: Unicode char ☻ (U+263B)
> > Package inputenc Error: Unicode char ☼ (U+263C)
> >
> > My thought was that LyX should not replace \frownie with ☹ unless the
> > document would otherwise compile correctly.
>
> Which version of LyX is this? The macros are output here also with
> utf8, and this should be the case at least as of 2.3.0.
>
> Jürgen
>
>

-- 
Paul E. Johnson   http://pj.freefaculty.org
Director, Center for Research Methods and Data Analysis http://crmda.ku.edu

To write to me directly, please address me at pauljohn at ku.edu.


Re: user interface bug latin9 -> Unicode

2018-09-26 Thread Jürgen Spitzmüller
Am Dienstag, den 25.09.2018, 14:15 -0500 schrieb Paul Johnson:
> This looks like a bug to me.
> 
> Create a new empty article and use the Insert Symbol tool to put in
> some miscellaneous smiley faces and what not. This is the source view
> of the file, which does compile.:
> 
> \documentclass[english]{article}
> \usepackage[T1]{fontenc}
> \usepackage[latin9]{inputenc}
> \usepackage{wasysym}
> \usepackage{babel}
> \begin{document}
> \frownie \smiley \blacksmiley \sun{}
> \end{document}
> 
> Then I went into Settings -> Language and changed input to utf-8.
> 
> That had the effect of automatically replacing \frownie and \smiley
> with unicode symbols in the LaTeX source, like so:
> 
> \documentclass[english]{article}
> \usepackage[T1]{fontenc}
> \usepackage[utf8]{inputenc}
> \usepackage{wasysym}
> \usepackage{babel}
> \begin{document}
> ☹☺☻☼
> \end{document}
> 
> That does not compile, rather the error messages say:
> 
> Package inputenc Error: Unicode char ☹ (U+2639)
> Package inputenc Error: Unicode char ☺ (U+263A)
> Package inputenc Error: Unicode char ☻ (U+263B)
> Package inputenc Error: Unicode char ☼ (U+263C)
> 
> My thought was that LyX should not replace \frownie with ☹ unless the
> document would otherwise compile correctly.

Which version of LyX is this? The macros are output here also with
utf8, and this should be the case at least as of 2.3.0.

Jürgen



signature.asc
Description: This is a digitally signed message part


Re: user interface bug latin9 -> Unicode

2018-09-26 Thread Jean-Marc Lasgouttes

Le 25/09/2018 à 21:15, Paul Johnson a écrit :


Then I went into Settings -> Language and changed input to utf-8.

That had the effect of automatically replacing \frownie and \smiley
with unicode symbols in the LaTeX source, like so:

\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{wasysym}
\usepackage{babel}
\begin{document}
☹☺☻☼
\end{document}

That does not compile, rather the error messages say:


Hello Paul,

Did you try "Unicode (utf8x)" ? It is supposed to be better, but I do 
not know why the two exist.


JMarc


user interface bug latin9 -> Unicode

2018-09-25 Thread Paul Johnson
This looks like a bug to me.

Create a new empty article and use the Insert Symbol tool to put in
some miscellaneous smiley faces and what not. This is the source view
of the file, which does compile.:

\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{wasysym}
\usepackage{babel}
\begin{document}
\frownie \smiley \blacksmiley \sun{}
\end{document}

Then I went into Settings -> Language and changed input to utf-8.

That had the effect of automatically replacing \frownie and \smiley
with unicode symbols in the LaTeX source, like so:

\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{wasysym}
\usepackage{babel}
\begin{document}
☹☺☻☼
\end{document}

That does not compile, rather the error messages say:

Package inputenc Error: Unicode char ☹ (U+2639)
Package inputenc Error: Unicode char ☺ (U+263A)
Package inputenc Error: Unicode char ☻ (U+263B)
Package inputenc Error: Unicode char ☼ (U+263C)

My thought was that LyX should not replace \frownie with ☹ unless the
document would otherwise compile correctly.

I had not too much understanding of Unicode when I started to look
into this.  I found several ways to deal with this. The easiest is to
simply put "\frownie" and "\smiliey" back in the document. So far as I
can see, there's no real benefit to me that those things are entered
as ☹ symbol. I can understand, however, that when authors need to
enter letters with accents, then they have a more pressing need to
make this work.

I wrote out ways this can be corrected, with preamble adjustments
using either DeclareUnicodeCharacter or newunicodechar, on
Stackexchange 
(https://tex.stackexchange.com/questions/452494/lost-my-smilies-it-is-worth-the-effort-to-make-unicode-work),
we'll see what they say about it. I'm predicting the answer will be
"learn the ins and outs of xelatex".

But I do think it is a LyX bug that Unicode symbols are introduced but
can't be compiled.

I'm interested to hear your ideas.

pj

-- 
Paul E. Johnson   http://pj.freefaculty.org
Director, Center for Research Methods and Data Analysis http://crmda.ku.edu

To write to me directly, please address me at pauljohn at ku.edu.