Re: math parser warning "unusual contents found" in examples/xyfigure.lyx

2013-09-06 Par sujet Scott Kostyshak
2013/9/6 Jean-Pierre Chrétien :
> Le 05/09/2013 20:16, Scott Kostyshak a écrit :
>>
>> 2013/9/5 Jean-Marc Lasgouttes :
>
>
>>> Peut être avec "patch -p1"?
>>
>>
>> En effet (ce n'est pas un problème mais l'un des autres archives ne
>> reussira pas parce que le patch est pour 2.1git). Ci-joint je vous
>> envoie le fichier.
>
>
> Apparemment ceci est le fichier non patché, aucune différence avec le
> fichier de la branche.
>
> Néanmoins je suis arrivé à patcher, mais il me reste un seul avertissement :
>
>  unusual contents found: [formula equation [grid [row [cell [xymatrix [grid
> [row [cell [symbol circ][macro ar][char @ mathalpha][char < mathalpha][char
> 1 mathalpha][char e mathalpha][char x mathalpha][char > mathalpha][char [
> mathalpha][char r mathalpha][char ] mathalpha]][cell [symbol circ][macro
> ar][char @ mathalpha][char < mathalpha][char 1 mathalpha][char e
> mathalpha][char x mathalpha][char > mathalpha][char [ mathalpha][char l
> mathalpha][char ] mathalpha] [char   mathalpha]
>
> Je ne trouve pas de mise entre $ manquante, par contre en comparant avec la
> version originale anglophone de xymatrix, je vois que plusieurs formules
> hors ligne dans la version francophone sont en ligne dans la version
> anglophone.
> mais ceci n'explique rien, l'avertissement ne peut pas se produire avec une
> formule hors ligne je pense.

Je vois la même chose. Je vais commiter le patch et ensuite commencer
un nouveau mail sur lyx-devel.

Merci pour les commentaires,

Scott


Re: math parser warning "unusual contents found" in examples/xyfigure.lyx

2013-09-06 Par sujet Jean-Pierre Chrétien

Le 05/09/2013 20:16, Scott Kostyshak a écrit :

2013/9/5 Jean-Marc Lasgouttes :



Peut être avec "patch -p1"?


En effet (ce n'est pas un problème mais l'un des autres archives ne
reussira pas parce que le patch est pour 2.1git). Ci-joint je vous
envoie le fichier.


Apparemment ceci est le fichier non patché, aucune différence avec le fichier de 
la branche.


Néanmoins je suis arrivé à patcher, mais il me reste un seul avertissement :

 unusual contents found: [formula equation [grid [row [cell [xymatrix [grid 
[row [cell [symbol circ][macro ar][char @ mathalpha][char < mathalpha][char 1 
mathalpha][char e mathalpha][char x mathalpha][char > mathalpha][char [ 
mathalpha][char r mathalpha][char ] mathalpha]][cell [symbol circ][macro 
ar][char @ mathalpha][char < mathalpha][char 1 mathalpha][char e mathalpha][char 
x mathalpha][char > mathalpha][char [ mathalpha][char l mathalpha][char ] 
mathalpha] [char   mathalpha]


Je ne trouve pas de mise entre $ manquante, par contre en comparant avec la 
version originale anglophone de xymatrix, je vois que plusieurs formules hors 
ligne dans la version francophone sont en ligne dans la version anglophone.
mais ceci n'explique rien, l'avertissement ne peut pas se produire avec une 
formule hors ligne je pense.


--
Jean-Pierre





Re: math parser warning "unusual contents found" in examples/xyfigure.lyx

2013-09-05 Par sujet Jean-Marc Lasgouttes

05/09/2013 16:21, Jean-Pierre Chrétien:

Comment puis-je patcher le git diff dans mon arborescence de compilation
de lyx-2.0.x ?

#patch -p0 <0001-xyfigure-xypic-fix-LyX-math-parser-warnings.patch.txt


Peut être avec "patch -p1"?

JMarc



Re: math parser warning "unusual contents found" in examples/xyfigure.lyx

2013-09-05 Par sujet Jean-Pierre Chrétien

Le 04/09/2013 23:46, Scott Kostyshak a écrit :

On Wed, Sep 4, 2013 at 3:53 PM, Pavel Sanda  wrote:

Scott Kostyshak wrote:

Attached is a patch that deals with the warnings thanks to your suggestions.


Changes in xyfigure.lyx not only fix warnings but also correct typeset
so this should go in 2.1. Didn't checked xypic.lyx changes, you might want
to ping fr&ja doc maintainers but generally looks fine.


Veuillez trouver ci-joint un patch que corrige quelques avertissement
signalés par LyX pour trois fichiers. Un d'entre eux est
examples/fr/xypic.lyx alors je voulais voir ici si quelqu'un en a une
opinion.


Effectivement, j'avais remarqué ces avertissements dans la fenêtre de lancement 
de LyX (ils étaient déjà là quand j'ai traduit le manuel il me semble), mais 
comme ça n'affectait apparemment pas la compilation pdf du manuel, je n'avais 
pas réagi.


Par contre je n'ai pas d'avertissements dans LyX lorsque j'active l'aperçu sur 
le vif.


Comment puis-je patcher le git diff dans mon arborescence de compilation de 
lyx-2.0.x ?


#patch -p0 <0001-xyfigure-xypic-fix-LyX-math-parser-warnings.patch.txt

n'est pas compris, les fichiers à patcher ne sont pas trouvés.
Suffit-il de modifier le fichier pour qu'il apparaisse comme le résultat d'un 
diff -u habituel ?


--
Jean-Pierre




Re: math parser warning "unusual contents found" in examples/xyfigure.lyx

2013-09-04 Par sujet Scott Kostyshak
On Wed, Sep 4, 2013 at 3:53 PM, Pavel Sanda  wrote:
> Scott Kostyshak wrote:
>> Attached is a patch that deals with the warnings thanks to your suggestions.
>
> Changes in xyfigure.lyx not only fix warnings but also correct typeset
> so this should go in 2.1. Didn't checked xypic.lyx changes, you might want
> to ping fr&ja doc maintainers but generally looks fine.

Veuillez trouver ci-joint un patch que corrige quelques avertissement
signalés par LyX pour trois fichiers. Un d'entre eux est
examples/fr/xypic.lyx alors je voulais voir ici si quelqu'un en a une
opinion.

Cordialement,

Scott
From ac67a9acca8c26510de82726d5d5a9038b9bf433 Mon Sep 17 00:00:00 2001
From: Scott Kostyshak 
Date: Fri, 23 Aug 2013 18:18:57 -0400
Subject: [PATCH] xyfigure, xypic: fix LyX math parser warnings

This fixes several long "unusual contents found" warnings that
were being written from LyX's math parser.

Thank you to Enrico for the fix. See here for his explanation:

http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg180763.html

There are still two such warnings that might indeed be serious,
one each in fr/xypic.lyx and ja/xypic.lyx. I get an assertion
from cursor movement in those insets with instant preview enabled
(on both current trunk and branch).
---
 lib/examples/fr/xypic.lyx | 68 +-
 lib/examples/ja/xypic.lyx | 76 +++
 lib/examples/xyfigure.lyx |  6 ++--
 3 files changed, 75 insertions(+), 75 deletions(-)

diff --git a/lib/examples/fr/xypic.lyx b/lib/examples/fr/xypic.lyx
index 2d549d1..3608eb9 100644
--- a/lib/examples/fr/xypic.lyx
+++ b/lib/examples/fr/xypic.lyx
@@ -1275,8 +1275,8 @@ Code source LyX
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula \xymatrix{\ \ar[r]  &  \ }
-
+\begin_inset Formula $\xymatrix{\ \ar[r]  &  \ }
+$
 \end_inset
 
 
@@ -1303,8 +1303,8 @@ ar
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula \xymatrix{\ \ar@{-->}[r]  &  \ }
-
+\begin_inset Formula $\xymatrix{\ \ar@{-->}[r]  &  \ }
+$
 \end_inset
 
 
@@ -1331,8 +1331,8 @@ ar@{-->}
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula \xymatrix{\ \ar@{..>}[r]  &  \ }
-
+\begin_inset Formula $\xymatrix{\ \ar@{..>}[r]  &  \ }
+$
 \end_inset
 
 
@@ -1359,8 +1359,8 @@ ar@{..>}
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula \xymatrix{\ \ar@{~>}[r]  &  \ }
-
+\begin_inset Formula $\xymatrix{\ \ar@{~>}[r]  &  \ }
+$
 \end_inset
 
 
@@ -1387,8 +1387,8 @@ ar@{~>}
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula \xymatrix{\ \ar@{->>}[r]  &  \ }
-
+\begin_inset Formula $\xymatrix{\ \ar@{->>}[r]  &  \ }
+$
 \end_inset
 
 
@@ -1415,8 +1415,8 @@ ar@{->>}
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula \xymatrix{\ \ar@{-->>}[r]  &  \ }
-
+\begin_inset Formula $\xymatrix{\ \ar@{-->>}[r]  &  \ }
+$
 \end_inset
 
 
@@ -1443,8 +1443,8 @@ ar@{-->>}
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula \xymatrix{\ \ar@{>->>}[r]  &  \ }
-
+\begin_inset Formula $\xymatrix{\ \ar@{>->>}[r]  &  \ }
+$
 \end_inset
 
 
@@ -1471,8 +1471,8 @@ ar@{>->>}
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula \xymatrix{\ \ar@{_{(}->}[r]  &  \ }
-
+\begin_inset Formula $\xymatrix{\ \ar@{_{(}->}[r]  &  \ }
+$
 \end_inset
 
 
@@ -1499,8 +1499,8 @@ ar@{_(->}
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula \xymatrix{\ \ar@{^{(}->}[r]  &  \ }
-
+\begin_inset Formula $\xymatrix{\ \ar@{^{(}->}[r]  &  \ }
+$
 \end_inset
 
 
@@ -1527,8 +1527,8 @@ ar@{^(->}
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula \xymatrix{\ \ar@{|-|}[r]  &  \ }
-
+\begin_inset Formula $\xymatrix{\ \ar@{|-|}[r]  &  \ }
+$
 \end_inset
 
 
@@ -1621,8 +1621,8 @@ Source code for LyX
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula \xymatrix{\ \ar@2[r]  &  \ }
-
+\begin_inset Formula $\xymatrix{\ \ar@2[r]  &  \ }
+$
 \end_inset
 
 
@@ -1649,8 +1649,8 @@ ar@2
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula \xymatrix{\ \ar@3[r]  &  \ }
-
+\begin_inset Formula $\xymatrix{\ \ar@3[r]  &  \ }
+$
 \end_inset
 
 
@@ -1677,8 +1677,8 @@ ar@3
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula \xymatrix{\ \ar@_{->}[r]  &  \ }
-
+\begin_inset Formula $\xymatrix{\ \ar@_{->}[r]  &  \ }
+$
 \end_inset
 
 
@@ -1705,8 +1705,8 @@ ar@_{->}
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula \xymatrix{\ \ar@^{->}[r]  &  \ }
-
+\begin_inset Formula $\xymatrix{\ \ar@^{->}[r]  &  \ }
+$
 \end_inset
 
 
@@ -1733,8 +1733,8 @@ ar@^{->}
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula \xymatrix{\ \ar@^{>>->>}[r]  &  \ }
-
+\begin_inset Formula $\xymatrix{\ \ar@^{>>->>}[r]  &  \ }
+$
 \end_inset
 
 
@@ -1761,8 +1761,8 @@ ar@^{>>->>}
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Formula \xymatrix{\ \ar@{^{<}-_{>}}[r]  &  \ }
-
+\beg