Am Sonntag, dem 27.02.2022 um 15:05 +0100 schrieb Jürgen Spitzmüller:
> The more serious issue is perhaps that the produced file seems to
> differ. But I am not sure how to read those tests.

These problems begin with

[fec498d6617d9] unicodesymbols: add several synonyms.

Attached is a diff from tex2lyx tests that shows the changes. These
seem to be (1.) additional space between characters and (2.) sometimes
inserted {} in ERT.

Thibaut, does this ring a bell?

Jürgen

diff --git a/src/tex2lyx/test/beamer.lyx.lyx b/src/tex2lyx/test/beamer.lyx.lyx
index 5b00841c5e..fed95a34f8 100644
--- a/src/tex2lyx/test/beamer.lyx.lyx
+++ b/src/tex2lyx/test/beamer.lyx.lyx
@@ -593,7 +593,7 @@ short
 status collapsed
 
 \begin_layout Plain Layout
-Insert →Short Title\SpecialChar breakableslash
+Insert → Short Title\SpecialChar breakableslash
 Date\SpecialChar breakableslash
 \SpecialChar ldots
 
@@ -725,7 +725,7 @@ AgainFrame
 status collapsed
 
 \begin_layout Plain Layout
-Insert →Overlay Specifications
+Insert → Overlay Specifications
 \end_layout
 
 \end_inset
@@ -815,7 +815,7 @@ Frame
 status collapsed
 
 \begin_layout Plain Layout
-Edit →Increase List Depth
+Edit → Increase List Depth
 \end_layout
 
 \end_inset
@@ -898,7 +898,7 @@ There is a simple and much more convenient way to start a new frame: Issue
 status collapsed
 
 \begin_layout Plain Layout
-Insert →Separated Frame Below
+Insert → Separated Frame Below
 \end_layout
 
 \end_inset
@@ -926,7 +926,7 @@ Alt+A Shift+Return
 status collapsed
 
 \begin_layout Plain Layout
-Insert →Separated Frame Above
+Insert → Separated Frame Above
 \end_layout
 
 \end_inset
@@ -1085,7 +1085,7 @@ Did you know that you can easily move and re-arrange whole frames via the outlin
 status collapsed
 
 \begin_layout Plain Layout
-View →Outline Pane
+View → Outline Pane
 \end_layout
 
 \end_inset
@@ -1362,7 +1362,7 @@ In LyX, these settings are generally accessible via
 status collapsed
 
 \begin_layout Plain Layout
-Insert →Overlay Specifications
+Insert → Overlay Specifications
 \end_layout
 
 \end_inset
@@ -1372,7 +1372,7 @@ Insert →Overlay Specifications
 status collapsed
 
 \begin_layout Plain Layout
-Insert →Action Specifications
+Insert → Action Specifications
 \end_layout
 
 \end_inset
@@ -1595,7 +1595,7 @@ Quote
 status collapsed
 
 \begin_layout Plain Layout
-Insert →Overlay Specifications
+Insert → Overlay Specifications
 \end_layout
 
 \end_inset
@@ -2280,7 +2280,7 @@ Via
 status collapsed
 
 \begin_layout Plain Layout
-Insert →Pause Number
+Insert → Pause Number
 \end_layout
 
 \end_inset
@@ -2540,7 +2540,7 @@ Beamer
 status collapsed
 
 \begin_layout Plain Layout
-Edit →Text Style
+Edit → Text Style
 \end_layout
 
 \end_inset
@@ -2804,7 +2804,7 @@ inline
 status collapsed
 
 \begin_layout Plain Layout
-Edit →Text Style
+Edit → Text Style
 \end_layout
 
 \end_inset
@@ -3246,7 +3246,7 @@ Use
 status collapsed
 
 \begin_layout Plain Layout
-Edit →Start New Environment
+Edit → Start New Environment
 \end_layout
 
 \end_inset
@@ -3323,7 +3323,7 @@ Via
 status collapsed
 
 \begin_layout Plain Layout
-Insert →Additional Theorem Text
+Insert → Additional Theorem Text
 \end_layout
 
 \end_inset
@@ -3792,7 +3792,27 @@ So what?
 \end_layout
 
 \begin_layout Frame
-This is actually pretty useful! You can set up a single document and produce both a presentation and – using the article mode – a handout. 
+This is actually pretty useful! You can set up a single document and produce both a presentation and –
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+{}
+\end_layout
+
+\end_inset
+
+ using the article mode –
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+{}
+\end_layout
+
+\end_inset
+
+ a handout. 
 \end_layout
 
 \begin_deeper
@@ -3896,7 +3916,7 @@ status collapsed
 
 \begin_layout Plain Layout
 \noindent
-Edit →Text Style →Only
+Edit → Text Style → Only
 \end_layout
 
 \end_inset
@@ -3916,7 +3936,7 @@ Or put all sorts of complex contents via
 status collapsed
 
 \begin_layout Plain Layout
-Insert →Custom Insets →ArticleMode
+Insert → Custom Insets → ArticleMode
 \end_layout
 
 \end_inset
@@ -3936,7 +3956,7 @@ Or put all sorts of complex contents via
 status collapsed
 
 \begin_layout Plain Layout
-Insert →Custom Insets →PresentationMode
+Insert → Custom Insets → PresentationMode
 \end_layout
 
 \end_inset
@@ -4085,7 +4105,7 @@ Then add the presentation to this document as a child (via
 status collapsed
 
 \begin_layout Plain Layout
-Insert →File →Child Document\SpecialChar ldots
+Insert → File → Child Document\SpecialChar ldots
 
 \end_layout
 
@@ -4161,7 +4181,7 @@ Berkeley
 status collapsed
 
 \begin_layout Plain Layout
-Document →Settings →LaTeX
+Document → Settings → LaTeX
 \begin_inset space ~
 
 \end_inset
diff --git a/src/tex2lyx/test/box-color-size-space-align.lyx.lyx b/src/tex2lyx/test/box-color-size-space-align.lyx.lyx
index 28ea2b539c..b88c57c199 100644
--- a/src/tex2lyx/test/box-color-size-space-align.lyx.lyx
+++ b/src/tex2lyx/test/box-color-size-space-align.lyx.lyx
@@ -2925,6 +2925,16 @@ status collapsed
 \end_inset
 
 : ®↨◻◼◙
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+{}
+\end_layout
+
+\end_inset
+
+
 \end_layout
 
 \begin_layout Standard
@@ -2989,19 +2999,19 @@ from tfrupee ₹
 \begin_layout Standard
 
 \size normal
-from marvosym and wasysym: ☑☚
+from marvosym and wasysym: ☑ ☚
 \end_layout
 
 \begin_layout Standard
 
 \size normal
-from bbding and pifont: ☆❾
+from bbding and pifont: ☆ ❾
 \end_layout
 
 \begin_layout Standard
 
 \size normal
-from tipa and tipx: ȶȸ
+from tipa and tipx: ȶ ȸ
 \end_layout
 
 \end_body
diff --git a/src/tex2lyx/test/test-insets-basic.lyx.lyx b/src/tex2lyx/test/test-insets-basic.lyx.lyx
index 89978a989e..ece6cf2e98 100644
--- a/src/tex2lyx/test/test-insets-basic.lyx.lyx
+++ b/src/tex2lyx/test/test-insets-basic.lyx.lyx
@@ -22,6 +22,7 @@
 \usepackage{array}
 \usepackage{multirow}
 \usepackage{hhline}
+\usepackage{textcomp}
 
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
@@ -4645,7 +4646,17 @@ status collapsed
 
 \end_inset
 
-Detector thickness in µm 
+Detector thickness in µ
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+{}
+\end_layout
+
+\end_inset
+
+m 
 \end_layout
 
 \end_inset
@@ -4683,7 +4694,17 @@ Detector thickness in µm
 \begin_inset Text
 
 \begin_layout Standard
-Edge angle in ° 
+Edge angle in °
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+{}
+\end_layout
+
+\end_inset
+
+ 
 \end_layout
 
 \end_inset
@@ -4721,7 +4742,17 @@ Edge angle in °
 \begin_inset Text
 
 \begin_layout Standard
-Spatial resolution in µm 
+Spatial resolution in µ
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+{}
+\end_layout
+
+\end_inset
+
+m 
 \end_layout
 
 \end_inset
@@ -4871,7 +4902,17 @@ LSF-spatial resolution
 \begin_inset Text
 
 \begin_layout Standard
-in µm 
+in µ
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+{}
+\end_layout
+
+\end_inset
+
+m 
 \end_layout
 
 \end_inset
@@ -5984,7 +6025,7 @@ h
 
 \end_inset
 
- e̹ e̜ e̟ e̠ (don't mix up with e̱) ë e̽ e̩ e̩ e̯ e˞e
+ e̹ e̜ e̟ e̠ (don't mix up with e̱) ë e̽ e̩ e̩ e̯ e˞ e
 \begin_inset script superscript
 
 \begin_layout Plain Layout
@@ -6038,7 +6079,17 @@ l
 
 \end_inset
 
- e˺ e̋
+ e˺
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+{}
+\end_layout
+
+\end_inset
+
+ e̋
 \end_layout
 
 \begin_layout Standard
@@ -6079,7 +6130,7 @@ status collapsed
 
 \end_inset
 
-dcɟkɡq
+dcɟ kɡ q
 \begin_inset ERT
 status collapsed
 
@@ -6112,7 +6163,7 @@ status collapsed
 
 \end_inset
 
-nɲN
+nɲ N
 \begin_inset ERT
 status collapsed
 
@@ -6202,7 +6253,17 @@ status collapsed
 
 \end_inset
 
-zçJxGXKħQhHɬ
+zçJxGXKħ QhHɬ
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+{}
+\end_layout
+
+\end_inset
+
+
 \end_layout
 
 \end_inset
@@ -6211,7 +6272,7 @@ zçJxGXKħQhHɬ
 \begin_inset IPA
 
 \begin_layout Standard
-ɮVɹ
+ɮ Vɹ
 \begin_inset ERT
 status collapsed
 
@@ -6223,7 +6284,7 @@ status collapsed
 
 \end_inset
 
-Rhɰl
+Rhɰ l
 \begin_inset ERT
 status collapsed
 
@@ -6260,7 +6321,7 @@ L
 \begin_inset IPA
 
 \begin_layout Standard
-ʘ|!ǂ||ɓɗʄɠʛe'
+ʘ|!ǂ ||ɓɗʄɠʛe'
 \end_layout
 
 \end_inset
@@ -6273,11 +6334,11 @@ L
 \begin_inset IPA
 
 \begin_layout Standard
-iy1ʉW
+iy1ʉ W
 \color red
 uIY
 \color inherit
-Ueø987o@Eœ3ɞ2Oæ5aɶA6
+Ueø987o@Eœ3ɞ 2Oæ5aɶ A6
 \end_layout
 
 \end_inset
@@ -6302,7 +6363,7 @@ status collapsed
 
 \end_inset
 
-HʢʡCʑɺɧ
+Hʢʡ Cʑɺɧ 
 \begin_inset IPADeco toptiebar
 status open
 
@@ -6335,7 +6396,7 @@ tz
 \begin_inset IPA
 
 \begin_layout Standard
-:;eˈˌ|‖.
+:;eˈˌ |‖.
 \begin_inset IPADeco bottomtiebar
 status open
 
@@ -6358,12 +6419,22 @@ status open
 \begin_inset IPA
 
 \begin_layout Standard
-˥˦˧˨˩ꜜꜛ\IPAChar \tone{15}
+˥˦˧˨˩ꜜꜛ \IPAChar \tone{15}
 \IPAChar \tone{51}
 \IPAChar \tone{45}
 \IPAChar \tone{12}
 \IPAChar \tone{454}
-↗↘
+↗ ↘
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+{}
+\end_layout
+
+\end_inset
+
+
 \end_layout
 
 \end_inset
@@ -6613,7 +6684,17 @@ Test for whitespace handling of commands: The following lines should result in i
 \end_layout
 
 \begin_layout Standard
-builtin ^ unicodesymbols ȷ user 
+builtin ^ unicodesymbols ȷ
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+{}
+\end_layout
+
+\end_inset
+
+ user 
 \begin_inset ERT
 status collapsed
 
@@ -6639,7 +6720,17 @@ status collapsed
 \end_layout
 
 \begin_layout Standard
-builtin ^ unicodesymbols ȷ user 
+builtin ^ unicodesymbols ȷ 
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+{}
+\end_layout
+
+\end_inset
+
+ user 
 \begin_inset ERT
 status collapsed
 
@@ -6665,7 +6756,31 @@ status collapsed
 \end_layout
 
 \begin_layout Standard
-builtin ^ unicodesymbols ȷ user 
+builtin ^ unicodesymbols ȷ 
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+% and a second one
+\end_layout
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+{}
+\end_layout
+
+\end_inset
+
+ user 
 \begin_inset ERT
 status collapsed
 
diff --git a/src/tex2lyx/test/test-insets.lyx.lyx b/src/tex2lyx/test/test-insets.lyx.lyx
index 3388b7604c..6e0267b7d0 100644
--- a/src/tex2lyx/test/test-insets.lyx.lyx
+++ b/src/tex2lyx/test/test-insets.lyx.lyx
@@ -4705,7 +4705,17 @@ status collapsed
 
 \end_inset
 
-Detector thickness in µm 
+Detector thickness in µ
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+{}
+\end_layout
+
+\end_inset
+
+m 
 \end_layout
 
 \end_inset
@@ -4743,7 +4753,17 @@ Detector thickness in µm
 \begin_inset Text
 
 \begin_layout Standard
-Edge angle in ° 
+Edge angle in °
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+{}
+\end_layout
+
+\end_inset
+
+ 
 \end_layout
 
 \end_inset
@@ -4781,7 +4801,17 @@ Edge angle in °
 \begin_inset Text
 
 \begin_layout Standard
-Spatial resolution in µm 
+Spatial resolution in µ
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+{}
+\end_layout
+
+\end_inset
+
+m 
 \end_layout
 
 \end_inset
@@ -4931,7 +4961,17 @@ LSF-spatial resolution
 \begin_inset Text
 
 \begin_layout Standard
-in µm 
+in µ
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+{}
+\end_layout
+
+\end_inset
+
+m 
 \end_layout
 
 \end_inset
@@ -6430,7 +6470,7 @@ h
 
 \end_inset
 
- e̹ e̜ e̟ e̠ (don't mix up with e̱) ë e̽ e̩ e̩ e̯ e˞e
+ e̹ e̜ e̟ e̠ (don't mix up with e̱) ë e̽ e̩ e̩ e̯ e˞ e
 \begin_inset script superscript
 
 \begin_layout Plain Layout
@@ -6484,7 +6524,17 @@ l
 
 \end_inset
 
- e˺ e̋
+ e˺
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+{}
+\end_layout
+
+\end_inset
+
+ e̋
 \end_layout
 
 \begin_layout Standard
@@ -6525,7 +6575,7 @@ status collapsed
 
 \end_inset
 
-dcɟkɡq
+dcɟ kɡ q
 \begin_inset ERT
 status collapsed
 
@@ -6558,7 +6608,7 @@ status collapsed
 
 \end_inset
 
-nɲN
+nɲ N
 \begin_inset ERT
 status collapsed
 
@@ -6648,7 +6698,17 @@ status collapsed
 
 \end_inset
 
-zçJxGXKħQhHɬ
+zçJxGXKħ QhHɬ
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+{}
+\end_layout
+
+\end_inset
+
+
 \end_layout
 
 \end_inset
@@ -6657,7 +6717,7 @@ zçJxGXKħQhHɬ
 \begin_inset IPA
 
 \begin_layout Standard
-ɮVɹ
+ɮ Vɹ
 \begin_inset ERT
 status collapsed
 
@@ -6669,7 +6729,7 @@ status collapsed
 
 \end_inset
 
-Rhɰl
+Rhɰ l
 \begin_inset ERT
 status collapsed
 
@@ -6706,7 +6766,7 @@ L
 \begin_inset IPA
 
 \begin_layout Standard
-ʘ|!ǂ||ɓɗʄɠʛe'
+ʘ|!ǂ ||ɓɗʄɠʛe'
 \end_layout
 
 \end_inset
@@ -6719,11 +6779,11 @@ L
 \begin_inset IPA
 
 \begin_layout Standard
-iy1ʉW
+iy1ʉ W
 \color red
 uIY
 \color inherit
-Ueø987o@Eœ3ɞ2Oæ5aɶA6
+Ueø987o@Eœ3ɞ 2Oæ5aɶ A6
 \end_layout
 
 \end_inset
@@ -6748,7 +6808,7 @@ status collapsed
 
 \end_inset
 
-HʢʡCʑɺɧ
+Hʢʡ Cʑɺɧ 
 \begin_inset IPADeco toptiebar
 status open
 
@@ -6781,7 +6841,7 @@ tz
 \begin_inset IPA
 
 \begin_layout Standard
-:;eˈˌ|‖.
+:;eˈˌ |‖.
 \begin_inset IPADeco bottomtiebar
 status open
 
@@ -6804,12 +6864,22 @@ status open
 \begin_inset IPA
 
 \begin_layout Standard
-˥˦˧˨˩ꜜꜛ\IPAChar \tone{15}
+˥˦˧˨˩ꜜꜛ \IPAChar \tone{15}
 \IPAChar \tone{51}
 \IPAChar \tone{45}
 \IPAChar \tone{12}
 \IPAChar \tone{454}
-↗↘
+↗ ↘
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+{}
+\end_layout
+
+\end_inset
+
+
 \end_layout
 
 \end_inset
@@ -7111,7 +7181,17 @@ Test for whitespace handling of commands: The following lines should result in i
 \end_layout
 
 \begin_layout Standard
-builtin ^ unicodesymbols ȷ user 
+builtin ^ unicodesymbols ȷ
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+{}
+\end_layout
+
+\end_inset
+
+ user 
 \begin_inset ERT
 status collapsed
 
@@ -7137,7 +7217,17 @@ status collapsed
 \end_layout
 
 \begin_layout Standard
-builtin ^ unicodesymbols ȷ user 
+builtin ^ unicodesymbols ȷ 
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+{}
+\end_layout
+
+\end_inset
+
+ user 
 \begin_inset ERT
 status collapsed
 
@@ -7163,7 +7253,31 @@ status collapsed
 \end_layout
 
 \begin_layout Standard
-builtin ^ unicodesymbols ȷ user 
+builtin ^ unicodesymbols ȷ 
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+% and a second one
+\end_layout
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+{}
+\end_layout
+
+\end_inset
+
+ user 
 \begin_inset ERT
 status collapsed
 
diff --git a/src/tex2lyx/test/test.lyx.lyx b/src/tex2lyx/test/test.lyx.lyx
index b62ff5c705..ff476e7a2e 100644
--- a/src/tex2lyx/test/test.lyx.lyx
+++ b/src/tex2lyx/test/test.lyx.lyx
@@ -508,11 +508,21 @@ foo
 \end_layout
 
 \begin_layout Standard
-Let's try a few unicode characters: the (R) symbol ®(and the same one with braces ® and a space after) or maybe an accented a á or this one á or this î.
+Let's try a few unicode characters: the (R) symbol ® (and the same one with braces ®
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+{}
+\end_layout
+
+\end_inset
+
+ and a space after) or maybe an accented a á or this one á or this î.
 \end_layout
 
 \begin_layout Standard
-Watch out: ®should be glued to its successor here.
+Watch out: ® should be glued to its successor here.
 \end_layout
 
 \begin_layout Standard

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

-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to