Re: Bug in 2.2.2 for Mac

2016-10-15 Thread Stephan Witt
Am 16.10.2016 um 03:13 schrieb mn :
> 
> On 16.10.16 00:43, Christopher Menzel wrote:
> On 15 Oct 2016, at 4:31 PM, Christopher Menzel
> >
> wrote:
>> 
>> Howdy LyX developers,
>> 
>> There appears to be a bug in 2.2.2 for Mac
>> (LyX-2.2.2+qt5-x86_64-cocoa). The triangles in the top-level
>> dropdown menus that lead to submenus all appear to be
>> missing. See attached screenshot.
>> Sorry, I should have been clearer about that. The submenus are
>> rendered inaccessible. Also, Open Recent is greyed out. But other
>> stuff, like my user defined key bindings still work.
>> 
>> -chris
>> 
> 
> I can confirm this bug for the 64-bit version on Mac OS X 10.10.5.
> All sub-menus are inaccessible there.
> The 32-bit version with Qt-4 seems unaffected though.
> 
> Mike

I’ll have a look. Something has to be done. This package is not usable.
Sorry, I didn’t notice it.

Stephan

Re: [ANNOUNCE] LyX 2.2.2 Released

2016-10-15 Thread Richard Heck
On 10/15/2016 08:36 PM, Uwe Stöhr wrote:
> Am 15.10.2016 um 18:11 schrieb Richard Heck:
>
>> Public release of LyX version 2.2.2
>
> Unfortunately lyx.org is currently down.
>
> LyX 2.2.2 can nevertheless be downloaded via our FTP server:
> http://ftp.lyx.org/pub/lyx/bin/2.2.2/

Please do not announce such things on this list. That binary is not signed.

And you should be signing yours.

Richard



Re: [patch] support for Piedmontese

2016-10-15 Thread Uwe Stöhr

Am 16.10.2016 um 02:32 schrieb Uwe Stöhr:


So it is time to support the language also in LyX. The attached patch
does this.


I now remembered that I already sent a patch earlier this year with 
support also for Macedonian, Bosnian and Romansh. It was not put in 
because it was too late for 2.2.0. Now for 2.3.0 it could go.


Attached is the complete patch.

regards Uwe
 development/FORMAT   |  7 +
 lib/languages| 51 ++
 lib/lyx2lyx/lyx_2_3.py   | 80 +++-
 src/tex2lyx/Preamble.cpp | 29 +-
 src/version.h|  4 +--
 5 files changed, 154 insertions(+), 17 deletions(-)

diff --git a/development/FORMAT b/development/FORMAT
index 902c145..58a58e1 100644
--- a/development/FORMAT
+++ b/development/FORMAT
@@ -11,6 +11,13 @@ adjustments are made to tex2lyx and bugs are fixed in 
lyx2lyx.
 
 ---
 
+2016-10-16 Uwe Stöhr 
+   * Format incremented to 513: support for Piedmontese etc.:
+ \lang bosnian
+ \lang macedonian
+ \lang piedmontese
+ \lang romansh
+
 2016-08-04 Jürgen Spitzmüller 
* Format incremented to 512
  Added inclusion of styles from [scr]article to the [scr]article-beamer
diff --git a/lib/languages b/lib/languages
index d56d030..22e016e 100644
--- a/lib/languages
+++ b/lib/languages
@@ -256,6 +256,15 @@ Language belarusian
AsBabelOptions   true
 End
 
+# not yet supported by polyglossia
+Language bosnian
+   GuiName  "Bosnian"
+   BabelNamebosnian
+   QuoteStyle   polish
+   Encoding iso8859-2
+   LangCode bs_BA
+End
+
 Language brazilian
GuiName  "Portuguese (Brazil)"
HasGuiSupporttrue
@@ -480,6 +489,18 @@ Language french
EndPostBabelPreamble
 End
 
+# A bug prevents curently the output. If this is fixed, this can be enabled.
+# Would be a fileformat change!
+#Language friulan
+#  GuiName  "Friulian"
+#  HasGuiSupporttrue
+#  BabelNamefriulan
+#  PolyglossiaName  friulan
+#  QuoteStyle   french
+#  Encoding iso8859-15
+#  LangCode fur_IT
+#End
+
 Language galician
GuiName  "Galician"
HasGuiSupporttrue
@@ -768,6 +789,16 @@ Language magyar
LangCode hu_HU
 End
 
+# not yet supported by polyglossia
+Language macedonian
+   GuiName  "Macedonian"
+   BabelNamemacedonian
+   QuoteStyle   german
+   Encoding cp1251
+   FontEncoding T2A
+   LangCode mk_MK
+End
+
 # not supported by babel
 Language marathi
GuiName  "Marathi"
@@ -837,6 +868,16 @@ End
 #  LangCode ru_petr1708
 # End
 
+Language piedmontese
+   GuiName  "Piedmontese"
+   HasGuiSupporttrue
+   BabelNamepiedmontese
+   PolyglossiaName  piedmontese
+   QuoteStyle   french
+   Encoding iso8859-15
+   LangCode pms_IT
+End
+
 Language polish
GuiName  "Polish"
HasGuiSupporttrue
@@ -868,6 +909,16 @@ Language romanian
LangCode ro_RO
 End
 
+Language romansh
+   GuiName  "Romansh"
+   HasGuiSupporttrue
+   BabelNameromansh
+   PolyglossiaName  romansh
+   QuoteStyle   german
+   Encoding iso8859-15
+   LangCode rm_CH
+End
+
 Language russian
GuiName  "Russian"
HasGuiSupporttrue
diff --git a/lib/lyx2lyx/lyx_2_3.py b/lib/lyx2lyx/lyx_2_3.py
index 001c1cb..59ca13a 100644
--- a/lib/lyx2lyx/lyx_2_3.py
+++ b/lib/lyx2lyx/lyx_2_3.py
@@ -261,6 +261,82 @@ def convert_beamer_article_styles(document):
 return
 
 
+def revert_bosnian(document):
+"Set the document language to English but assure Bosnian output"
+
+if document.language == "bosnian":
+document.language = "english"
+i = find_token(document.header, "\\language bosnian", 0)
+if i != -1:
+   document.header[i] = "\\language english"
+j = find_token(document.header, "\\language_package default", 0)
+if j != -1:
+   document.header[j] = "\\language_package babel"
+k = find_token(document.header, "\\options", 0)
+if k != -1:
+   document.header[k] = document.header[k].replace("\\options", 
"\\options bosnian,")
+else:
+   l = find_token(document.header, "\\use_default_options", 0)
+   document.header.insert(l + 1, "\\options bosnian")
+
+
+def revert_macedonian(document):
+"Set the document language to English but assure Macedonian output"
+
+if document.language == "macedonian":
+document.language = "english"
+i = find_token(document.header, "\\language macedonian", 0)
+if i != -1:
+   document.header[i] = "\\language english"
+

Re: Bug in 2.2.2 for Mac

2016-10-15 Thread mn
On 16.10.16 00:43, Christopher Menzel wrote:
 On 15 Oct 2016, at 4:31 PM, Christopher Menzel
 >
 wrote:
>
> Howdy LyX developers,
>
> There appears to be a bug in 2.2.2 for Mac
> (LyX-2.2.2+qt5-x86_64-cocoa). The triangles in the top-level
> dropdown menus that lead to submenus all appear to be
> missing. See attached screenshot.
> Sorry, I should have been clearer about that. The submenus are
> rendered inaccessible. Also, Open Recent is greyed out. But other
> stuff, like my user defined key bindings still work.
> 
> -chris
> 

I can confirm this bug for the 64-bit version on Mac OS X 10.10.5.
All sub-menus are inaccessible there.
The 32-bit version with Qt-4 seems unaffected though.

Mike


Re: [patch] support for Piedmontese

2016-10-15 Thread Uwe Stöhr

Am 16.10.2016 um 03:00 schrieb Uwe Stöhr:


Attached is the complete patch.


Attached is a better patch inclusing support for Friulian.

regards Uwe
 development/FORMAT   |  7 
 lib/languages| 49 
 lib/lyx2lyx/lyx_2_3.py   | 99 +++-
 src/tex2lyx/Preamble.cpp | 35 -
 src/version.h|  4 +-
 5 files changed, 174 insertions(+), 20 deletions(-)

diff --git a/development/FORMAT b/development/FORMAT
index 902c145..58a58e1 100644
--- a/development/FORMAT
+++ b/development/FORMAT
@@ -11,6 +11,13 @@ adjustments are made to tex2lyx and bugs are fixed in 
lyx2lyx.
 
 ---
 
+2016-10-16 Uwe Stöhr 
+   * Format incremented to 513: support for Piedmontese etc.:
+ \lang bosnian
+ \lang macedonian
+ \lang piedmontese
+ \lang romansh
+
 2016-08-04 Jürgen Spitzmüller 
* Format incremented to 512
  Added inclusion of styles from [scr]article to the [scr]article-beamer
diff --git a/lib/languages b/lib/languages
index d56d030..08cf331 100644
--- a/lib/languages
+++ b/lib/languages
@@ -256,6 +256,15 @@ Language belarusian
AsBabelOptions   true
 End
 
+# not yet supported by polyglossia
+Language bosnian
+   GuiName  "Bosnian"
+   BabelNamebosnian
+   QuoteStyle   polish
+   Encoding iso8859-2
+   LangCode bs_BA
+End
+
 Language brazilian
GuiName  "Portuguese (Brazil)"
HasGuiSupporttrue
@@ -480,6 +489,16 @@ Language french
EndPostBabelPreamble
 End
 
+Language friulan
+   GuiName  "Friulian"
+   HasGuiSupporttrue
+   BabelNamefriulan
+   PolyglossiaName  friulan
+   QuoteStyle   french
+   Encoding iso8859-15
+   LangCode fur_IT
+End
+
 Language galician
GuiName  "Galician"
HasGuiSupporttrue
@@ -768,6 +787,16 @@ Language magyar
LangCode hu_HU
 End
 
+# not yet supported by polyglossia
+Language macedonian
+   GuiName  "Macedonian"
+   BabelNamemacedonian
+   QuoteStyle   german
+   Encoding cp1251
+   FontEncoding T2A
+   LangCode mk_MK
+End
+
 # not supported by babel
 Language marathi
GuiName  "Marathi"
@@ -837,6 +866,16 @@ End
 #  LangCode ru_petr1708
 # End
 
+Language piedmontese
+   GuiName  "Piedmontese"
+   HasGuiSupporttrue
+   BabelNamepiedmontese
+   PolyglossiaName  piedmontese
+   QuoteStyle   french
+   Encoding iso8859-15
+   LangCode pms_IT
+End
+
 Language polish
GuiName  "Polish"
HasGuiSupporttrue
@@ -868,6 +907,16 @@ Language romanian
LangCode ro_RO
 End
 
+Language romansh
+   GuiName  "Romansh"
+   HasGuiSupporttrue
+   BabelNameromansh
+   PolyglossiaName  romansh
+   QuoteStyle   german
+   Encoding iso8859-15
+   LangCode rm_CH
+End
+
 Language russian
GuiName  "Russian"
HasGuiSupporttrue
diff --git a/lib/lyx2lyx/lyx_2_3.py b/lib/lyx2lyx/lyx_2_3.py
index 001c1cb..93bf0f6 100644
--- a/lib/lyx2lyx/lyx_2_3.py
+++ b/lib/lyx2lyx/lyx_2_3.py
@@ -261,6 +261,101 @@ def convert_beamer_article_styles(document):
 return
 
 
+def revert_bosnian(document):
+"Set the document language to English but assure Bosnian output"
+
+if document.language == "bosnian":
+document.language = "english"
+i = find_token(document.header, "\\language bosnian", 0)
+if i != -1:
+   document.header[i] = "\\language english"
+j = find_token(document.header, "\\language_package default", 0)
+if j != -1:
+   document.header[j] = "\\language_package babel"
+k = find_token(document.header, "\\options", 0)
+if k != -1:
+   document.header[k] = document.header[k].replace("\\options", 
"\\options bosnian,")
+else:
+   l = find_token(document.header, "\\use_default_options", 0)
+   document.header.insert(l + 1, "\\options bosnian")
+
+
+def revert_friulan(document):
+"Set the document language to English but assure Friulan output"
+
+if document.language == "friulan":
+document.language = "english"
+i = find_token(document.header, "\\language friulan", 0)
+if i != -1:
+   document.header[i] = "\\language english"
+j = find_token(document.header, "\\language_package default", 0)
+if j != -1:
+   document.header[j] = "\\language_package babel"
+k = find_token(document.header, "\\options", 0)
+if k != -1:
+   document.header[k] = document.header[k].replace("\\options", 
"\\options friulan,")
+else:
+   l = 

[patch] support for Piedmontese

2016-10-15 Thread Uwe Stöhr
Some time ago I could encourage the person offering support for 
Piedmontese via a separate LaTeX package to merge his package to a one 
of the new babel system. Now there is the babel-piedmontese package at 
CTAN and it is in TeXLive 2016.


So it is time to support the language also in LyX. The attached patch 
does this.


regards Uwe
 development/FORMAT   |  4 
 lib/languages| 10 ++
 lib/lyx2lyx/lyx_2_3.py   | 23 ++-
 src/tex2lyx/Preamble.cpp | 10 +-
 src/version.h|  4 ++--
 5 files changed, 43 insertions(+), 8 deletions(-)

diff --git a/development/FORMAT b/development/FORMAT
index 902c145..3c9d4d1 100644
--- a/development/FORMAT
+++ b/development/FORMAT
@@ -11,6 +11,10 @@ adjustments are made to tex2lyx and bugs are fixed in 
lyx2lyx.
 
 ---
 
+2016-10-16 Uwe Stöhr 
+   * Format incremented to 513: support for Piedmontese:
+ \lang piedmontese
+
 2016-08-04 Jürgen Spitzmüller 
* Format incremented to 512
  Added inclusion of styles from [scr]article to the [scr]article-beamer
diff --git a/lib/languages b/lib/languages
index d56d030..8f1f402 100644
--- a/lib/languages
+++ b/lib/languages
@@ -837,6 +837,16 @@ End
 #  LangCode ru_petr1708
 # End
 
+Language piedmontese
+   GuiName  "Piedmontese"
+   HasGuiSupporttrue
+   BabelNamepiedmontese
+   PolyglossiaName  piedmontese
+   QuoteStyle   french
+   Encoding iso8859-15
+   LangCode pms_IT
+End
+
 Language polish
GuiName  "Polish"
HasGuiSupporttrue
diff --git a/lib/lyx2lyx/lyx_2_3.py b/lib/lyx2lyx/lyx_2_3.py
index 001c1cb..0b4c293 100644
--- a/lib/lyx2lyx/lyx_2_3.py
+++ b/lib/lyx2lyx/lyx_2_3.py
@@ -261,6 +261,25 @@ def convert_beamer_article_styles(document):
 return
 
 
+def revert_piedmontese(document):
+"Set the document language to English but assure Piedmontese output"
+
+if document.language == "piedmontese":
+document.language = "english"
+i = find_token(document.header, "\\language piedmontese", 0)
+if i != -1:
+   document.header[i] = "\\language english"
+j = find_token(document.header, "\\language_package default", 0)
+if j != -1:
+   document.header[j] = "\\language_package babel"
+k = find_token(document.header, "\\options", 0)
+if k != -1:
+   document.header[k] = document.header[k].replace("\\options", 
"\\options piedmontese,")
+else:
+   l = find_token(document.header, "\\use_default_options", 0)
+   document.header.insert(l + 1, "\\options piedmontese")
+
+
 ##
 # Conversion hub
 #
@@ -270,10 +289,12 @@ convert = [
[509, [convert_microtype]],
[510, [convert_dateinset]],
[511, [convert_ibranches]],
-   [512, [convert_beamer_article_styles]]
+   [512, [convert_beamer_article_styles]],
+   [513, []]
   ]
 
 revert =  [
+   [512, [revert_piedmontese]],
[511, [revert_beamer_article_styles]],
[510, [revert_ibranches]],
[509, []],
diff --git a/src/tex2lyx/Preamble.cpp b/src/tex2lyx/Preamble.cpp
index a52927f..b0f84bc 100644
--- a/src/tex2lyx/Preamble.cpp
+++ b/src/tex2lyx/Preamble.cpp
@@ -60,8 +60,8 @@ const char * const known_languages[] = {"acadian", 
"afrikaans", "albanian",
 "interlingua", "irish", "italian", "japanese", "kazakh", "kurmanji", "latin",
 "latvian", "lithuanian", "lowersorbian", "lsorbian", "magyar", "malay", 
"meyalu",
 "mongolian", "naustrian", "newzealand", "ngerman", "ngermanb", "norsk", 
"nswissgerman",
-"nynorsk", "polutonikogreek", "polish", "portuges", "portuguese", "romanian", 
"russian",
-"russianb", "samin", "scottish", "serbian", "serbian-latin", "slovak",
+"nynorsk", "piedmontese", "polutonikogreek", "polish", "portuges", 
"portuguese",
+"romanian", "russian", "russianb", "samin", "scottish", "serbian", 
"serbian-latin", "slovak",
 "slovene", "spanish", "swedish", "swissgerman", "thai", "turkish", "turkmen",
 "ukraineb", "ukrainian", "uppersorbian", "UKenglish", "USenglish", "usorbian",
 "vietnam", "welsh",
@@ -81,8 +81,8 @@ const char * const known_coded_languages[] = {"french", 
"afrikaans", "albanian",
 "interlingua", "irish", "italian", "japanese", "kazakh", "kurmanji", "latin",
 "latvian", "lithuanian", "lowersorbian", "lowersorbian", "magyar", "bahasam", 
"bahasam",
 "mongolian", "naustrian", "newzealand", "ngerman", "ngerman", "norsk", 
"german-ch",
-"nynorsk", "polutonikogreek", "polish", "portuguese", "portuguese", 
"romanian", "russian",
-"russian", "samin", "scottish", "serbian", "serbian-latin", "slovak",
+"nynorsk", "piedmontese", "polutonikogreek", "polish", "portuguese", 
"portuguese",
+"romanian", "russian", "russian", "samin", "scottish", "serbian", 
"serbian-latin", "slovak",
 "slovene", "spanish", "swedish", 

Re: lyx.org is down again

2016-10-15 Thread Uwe Stöhr

Am 15.10.2016 um 16:27 schrieb Uwe Stöhr:

Am 15.10.2016 um 15:41 schrieb Jean-Marc Lasgouttes:


I restarted it, but I am not sure how long it will stand.


It is again down and we just released a new version.

regards Uwe


Re: [ANNOUNCE] LyX 2.2.2 Released

2016-10-15 Thread Uwe Stöhr

Am 15.10.2016 um 18:11 schrieb Richard Heck:


Public release of LyX version 2.2.2


Unfortunately lyx.org is currently down.

LyX 2.2.2 can nevertheless be downloaded via our FTP server:
http://ftp.lyx.org/pub/lyx/bin/2.2.2/

regards Uwe


Re: LyX docs: cleaning up math options

2016-10-15 Thread Scott Kostyshak
On Sat, Oct 15, 2016 at 10:55:49PM +0200, jeanpierre.chret...@free.fr wrote:

> I can take this in charge if it not too urgent, because
>  - my linux box where I will perform tests is currently without internet 
> connexion (this should be solved by a couple of days hopefully);
>  - I had some problems with my cmake build, some tests failed with userdir 
> specified, this is solved, but I must perform some more checks.
> 
> When I'm ready, I will post how I plan to perform the changes.

Sounds good! Thanks for taking care of it.

Scott


signature.asc
Description: PGP signature


Re: Bug in 2.2.2 for Mac

2016-10-15 Thread Christopher Menzel
Sorry, I should have been clearer about that. The submenus are rendered 
inaccessible. Also, Open Recent is greyed out. But other stuff, like my user 
defined key bindings still work.

-chris

> On Oct 15, 2016, at 6:19 PM, Richard Heck  wrote:
> 
> On 10/15/2016 04:38 PM, Christopher Menzel wrote:
> 
>> 
>>> On 15 Oct 2016, at 4:31 PM, Christopher Menzel  
>>> wrote:
>>> 
>>> Howdy LyX developers,
>>> 
>>> There appears to be a bug in 2.2.2 for Mac (LyX-2.2.2+qt5-x86_64-cocoa). 
>>> The triangles in the top-level dropdown menus that lead to submenus all 
>>> appear to be missing. See attached screenshot.
> 
> Are the menus themselves accessible? Or does the lack of triangles cause them 
> to be inaccessible?
> 
> Richard
> 


Re: Bug in 2.2.2 for Mac

2016-10-15 Thread Richard Heck
On 10/15/2016 04:38 PM, Christopher Menzel wrote:

>
> On 15 Oct 2016, at 4:31 PM, Christopher Menzel  > wrote:
>>
>> Howdy LyX developers,
>>
>> There appears to be a bug in 2.2.2 for Mac
>> (LyX-2.2.2+qt5-x86_64-cocoa). The triangles in the top-level dropdown
>> menus that lead to submenus all appear to be missing. See attached
>> screenshot.

Are the menus themselves accessible? Or does the lack of triangles cause
them to be inaccessible?

Richard



Re: LyX docs: cleaning up math options

2016-10-15 Thread jeanpierre . chretien

> 
> Sounds good. Jean-Pierre, since you first proposed this would you
> like
> to make the changes or do you prefer for me to? I don't have a
> preference, but whichever of us does it just needs to make sure that
> no
> tests go from passing to failing after the change.
> 
> Scott
> 

I can take this in charge if it not too urgent, because
 - my linux box where I will perform tests is currently without internet 
connexion (this should be solved by a couple of days hopefully);
 - I had some problems with my cmake build, some tests failed with userdir 
specified, this is solved, but I must perform some more checks.

When I'm ready, I will post how I plan to perform the changes.

-- 
Jean-Pierre


Re: Bug in 2.2.2 for Mac

2016-10-15 Thread Christopher Menzel
Oops, very sorry about that enormous screen shot! I don't know what I was 
thinking. Here's a vastly smaller jpeg of the dropdown menu.

-chris

> On 15 Oct 2016, at 4:31 PM, Christopher Menzel  wrote:
> 
> Howdy LyX developers,
> 
> There appears to be a bug in 2.2.2 for Mac (LyX-2.2.2+qt5-x86_64-cocoa). The 
> triangles in the top-level dropdown menus that lead to submenus all appear to 
> be missing. See attached screenshot.
> 
> Thanks!
> 
> -chris
> 
> 



Re: [ANNOUNCE] LyX 2.2.2 Released

2016-10-15 Thread Richard Heck
On 10/15/2016 02:41 PM, Christopher Menzel wrote:
>> Public release of LyX version 2.2.2
>> ===
>> We are proud to announce the release of LyX 2.2.2. This is the
>> secondmaintenance release in the 2.2.x series
>
> I've said it before but it bears regular repeating: thanks (again)
> Richard and the whole LyX development team for this wonderful,
> incredibly useful piece of software. It is an absolute joy to use, and
> a marvel of collaborative, open source software design and engineering.

You're welcome. And thanks for the thanks.

Richard



make distclean failed in master

2016-10-15 Thread Richard Heck
I had to delete these lines:

include support/tests/$(DEPDIR)/check_ExternalTransforms-dummy_functions.Po
include support/tests/$(DEPDIR)/check_Length-dummy_functions.Po
include support/tests/$(DEPDIR)/check_ListingsCaption-dummy_functions.Po
include support/tests/$(DEPDIR)/check_layout-dummy_functions.Po

from src/Makefile to get it to work. Not sure where they come from.

Richard




2.2.x is open...

2016-10-15 Thread Richard Heck
As said.



Re: Master is slow

2016-10-15 Thread Guillaume Munch

Le 15/10/2016 à 11:39, racoon a écrit :

Typing within the master's work area is slow on my computer (while it is
fine in 2.2.2 and 2.1.5).


What is the qt version?





Re: [ANNOUNCE] LyX 2.2.2 Released

2016-10-15 Thread Christopher Menzel
> Public release of LyX version 2.2.2
> ===
> We are proud to announce the release of LyX 2.2.2. This is the 
> secondmaintenance release in the 2.2.x series

I've said it before but it bears regular repeating: thanks (again) Richard and 
the whole LyX development team for this wonderful, incredibly useful piece of 
software. It is an absolute joy to use, and a marvel of collaborative, open 
source software design and engineering.

-chris

--
Christopher Menzel
Professor of Philosophy
Texas A University




Re: Master is slow

2016-10-15 Thread Jean-Marc Lasgouttes

Le 15/10/2016 à 19:53, racoon a écrit :

Yes, I think so.


This adds some run time checks in windows that can make things slower.

Another thing to check: did you compile against Qt5 or Qt4?

From the top of my head, I cannot think of big changes in master that 
could slow things down.


JMarc



On 15.10.2016 18:39, Jean-Marc Lasgouttes wrote:

Dis you compilé in debug mode ?


Sorry, again my android french keyboard going wild.

JMarc


Re: [patch] Fix removal of trailing space when deleting selection from the beginning of a paragraph

2016-10-15 Thread racoon

On 15.10.2016 17:19, Jürgen Spitzmüller wrote:

Am Samstag, den 15.10.2016, 17:14 +0200 schrieb racoon:

Thanks a lot. That is quite helpful I think. Actually, looking at
the
code again it is really this part that might lead to trouble.

0a6ff99f2 src/CutAndPaste.cpp (Richard Heck   2014-03-29
18:52:36 -0400  892)   &&
text->paragraphs()[begpit].stripLeadingSpaces(bp.track_changes))

So the relevant commit is aaf4cf6f9. How do I go about to see
whether
this references some ticket?


E.g. via trac:
http://www.lyx.org/trac/changeset/aaf4cf6f9/lyxgit

It refers to #3225.


Thanks! I actually wrote the wrong changeset. My posts take ages to 
arrive at the list for some reason. So I can just replace the changeset 
in the link. I have contacted Richard in the mean while since I falsely 
thought he actually added the code. Much easier to see what's happening 
on trac than in the bash. At least for me. Anyway he seems to be looking 
into it.


Daniel



Re: #9568: Multicolumn, fixed width, and decimal-separator-alignment does not compile

2016-10-15 Thread Sven Schreiber

Am 15.10.2016 um 18:29 schrieb LyX Ticket Tracker:


 * milestone:  2.2.2 => 2.2.3



Comment:
 LyX 2.2.2 is released. Please check whether this bug should remain
 targeted to 2.2.3. If not, please retarget.


Dear developers,
two comments:
First, I just checked with the new 2.2.2 (thanks for that!) and my 
original example file still doesn't compile. So you guys are tolerating 
a situation where normal usage of Lyx without any hacks can produce 
"rubbish". This should be fixed ASAP, IMHO (hey, never used two acronyms 
in a row!), whatever the solution is.


Secondly, what do you think about my previous comment in the tracker 
that the left/right/center alignment choice and the decimal separator 
alignment choice are independent, so that every combination should be 
possible?
Is this doable in Latex (presumably with a package)? Or is it simply too 
difficult to implement in Lyx?


thanks,
sven


Re: Master is slow

2016-10-15 Thread racoon

Yes, I think so.

Daniel

On 15.10.2016 18:39, Jean-Marc Lasgouttes wrote:

Dis you compilé in debug mode ?

JMarc

Le 15 octobre 2016 11:39:55 GMT+02:00, racoon  a écrit :

Typing within the master's work area is slow on my computer (while it is
fine in 2.2.2 and 2.1.5). Maybe this just has to do with some debugging
running in the background or so?

Daniel



Re: Master is slow

2016-10-15 Thread Jean-Marc Lasgouttes
Dis you compilé in debug mode ?

JMarc

Le 15 octobre 2016 11:39:55 GMT+02:00, racoon  a écrit :
>Typing within the master's work area is slow on my computer (while it
>is 
>fine in 2.2.2 and 2.1.5). Maybe this just has to do with some debugging
>
>running in the background or so?
>
>Daniel


[ANNOUNCE] LyX 2.2.2 Released

2016-10-15 Thread Richard Heck
Public release of LyX version 2.2.2
===

We are proud to announce the release of LyX 2.2.2. This is the second
maintenance release in the 2.2.x series.

You can download LyX 2.2.2 from http://www.lyx.org/Download/.

LyX is a document processor that encourages an approach to writing based
on the structure of your documents and not simply their appearance. It is
released under a Free and Open Source Software license.

LyX 2.2.2 is the result of on-going efforts to make our stable version more
reliable and more stable. We have fixed a number of bugs and made a number
of improvements. Most of these are relatively minor, but we nonetheless
encourage all users of 2.2.1 to upgrade to this version.

Perhaps the most important bug we fixed affected use of covington.sty with
2.2.1. This will only have affected users of the Linguistics module.

One new feature is the use of the "scaling" option when exporting images
for XHTML. This does not work the same way as with LaTeX export. What it
does is add something like "width: 50%" to the style attribute. This will
ordinarily be interpreted by the browser as a percentage relative to the
current element.

If you think you have found a bug in LyX 2.2.2, please open a bug report at
http://www.lyx.org/trac/wiki/BugTrackerHome. If you're not sure whether it
really is a bug, you can e-mail the LyX developers' mailing list (lyx-devel
 lists.lyx.org) and ask.

If you have trouble using LyX or have a question, consult the
documentation that comes with LyX and the LyX wiki, which lives at
http://wiki.lyx.org/. If you can't find the answer there, e-mail the LyX
users' list (lyx-users  lists.lyx.org).

We hope you enjoy using LyX 2.2.2.

The LyX team.
http://www.lyx.org


What's new
==

** Updates:
***

* DOCUMENT INPUT/OUTPUT

- .xlsx is now a suggested extension in the spreadsheet external template.

- Improve systemlyxdir handling.


* USER INTERFACE

- When changing zoom level, show current value in status bar (bug
  10212).

- Names containing @ are now recognised by the syntax highlighter in the
  preamble.

- Replace Insert>Caption submenu by a normal entry when there is only one
  caption type.


* DOCUMENTATION AND LOCALIZATION

- Updated Brazilian, French, German, Italian and Slovak user interface
localization.

- Updated French Customizaion, Math, Tutorial and UserGuide manuals.

- Update beamer manual with regard to the new Separator usage.


* BUILD/INSTALLATION

- If available, use qtchooser to select correct Qt tools when configuring.



** Bug fixes:
*

* DOCUMENT INPUT/OUTPUT

- We no longer attempt to convert images for which we cannot find an
  input format.

- Fixed fen2ascii script.

- Fixed preview of external material with plaintext and DocBook.

- Fixed substitution for $$Contents in external templates.

- Fixed usage of new module "Title and Preamble Hacks" (bug 10320).

- Fix error with older versions of the covington package in the
  Linguistics module (bug 10340).

- Fix LaTeX error with recent LuaTeX versions when using landscape.

- Fix data loss with [ in first cell of aligned environment (bug 10361).


* LYX2LYX

- Fix hang with some IEEEtran documents (bug 10307).

- Fix export of compressed files to previous versions that were not
  recognised on windows (bug 10273).


* USER INTERFACE

- Avoid crashing in release mode if we stumble across an unrealized font.

- Correctly return exit code from spawned processes on Windows (bug 10327).

- Fix display of citations with two authors.

- Fix display of multi-author citations when the GUI language is not
English.

- Fix bug where change tracking marks are lost under math insets (bug
  10265).

- Fix display glitch when switching to Description layout with an inset
  at the beginning of the paragraph (bug 10163)

- Fix display of label font for argument insets.

- Keep leading whitespace when converting local layout.

- Correct default font of beamer article layouts (bug 9977).

- Remove extra whitespace around Preview and IPA insets (bug 10304).

- Let M-x give focus to minibuffer when it is already open.

- When doing a selection with Shift-click, make sure that the selection
anchor
  is correct.

- Avoid to overwrite end-of-proof character with text on screen (bug
  10344).

- Use proper dialog titles in InsetParams-derived dialogs (bug 10329).

- Fix "scroll here" feature of scrollbar (bug 10311).

- Fix the minimum size of the citation dialog on first time (bug 10019).

- When Enter does nothing (empty paragraph), do not record undo (bug 10089).

- Remove duplicate context menu item for Argument insets (bug 10368).

- Fix display of vertical lines inside math matrices (bug 10363).


* LYXHTML

- Enable export of external material (bug 8693).

- Fix problem with output of branches (bug 8022).

- Fix output of table borders (bug 10154).

- Fix display of several math symbols (bug 8844).

- Use scaling factor for export of images (bug 8742).

- 

Re: Candidates for stable

2016-10-15 Thread Richard Heck
On 10/15/2016 05:11 AM, Jürgen Spitzmüller wrote:
> Richard,
>
> these are the accumulated fixes I did in master that are candidates for
> stable when the door towards 2.2.3 is open:
>
> * Citation dialog redesign:
> http://www.lyx.org/trac/changeset/824e24ca/lyxgit
> http://www.lyx.org/trac/changeset/5225418d/lyxgit
> http://www.lyx.org/trac/changeset/0c1a023c/lyxgit
>
> * Keep citation style settings both within and between sessions
> (#10256): 
> http://www.lyx.org/trac/changeset/3294b16b/lyxgit
>
> * Refs dialog redesign:
> http://www.lyx.org/trac/changeset/774becf6/lyxgit
> http://www.lyx.org/trac/changeset/47ea77a8/lyxgit
>
> * Fix label display in linguistic examples: 
> http://www.lyx.org/trac/changeset/91f5d909/lyxgit
>
> * Improve bibliography info display:
> http://www.lyx.org/trac/changeset/ba171930/lyxgit
> http://www.lyx.org/trac/changeset/2c4673af/lyxgit
> http://www.lyx.org/trac/changeset/1c725c91/lyxgit
> http://www.lyx.org/trac/changeset/67da1431/lyxgit
> http://www.lyx.org/trac/changeset/b941d939/lyxgit
> http://www.lyx.org/trac/changeset/2267f4ae/lyxgit
> http://www.lyx.org/trac/changeset/85f1259b/lyxgit
> http://www.lyx.org/trac/changeset/b8486ba6/lyxgit
>
> * Move/fix wrap check for simple search/replace to lyxfind (#10378):
> http://www.lyx.org/trac/changeset/c0a425a3/lyxgit
>
> Do you want me to post individual patches for each of the proposed fix?

I'll look at these shortly. But no, you don't need to post patches.

Richard



Re: Master is slow

2016-10-15 Thread racoon

On 15.10.2016 16:18, Scott Kostyshak wrote:

On Sat, Oct 15, 2016 at 11:39:55AM +0200, racoon wrote:

Typing within the master's work area is slow on my computer (while it is
fine in 2.2.2 and 2.1.5). Maybe this just has to do with some debugging
running in the background or so?


I haven't noticed this. Do you by chance have the code preview pane
open in master?


Valid comment especially given that I complained once about slowness and 
actually had it open. But (unfortunately?) not this time.


Daniel



Re: [patch] Fix removal of trailing space when deleting selection from the beginning of a paragraph

2016-10-15 Thread Jürgen Spitzmüller
Am Samstag, den 15.10.2016, 17:14 +0200 schrieb racoon:
> Thanks a lot. That is quite helpful I think. Actually, looking at
> the 
> code again it is really this part that might lead to trouble.
> 
> 0a6ff99f2 src/CutAndPaste.cpp (Richard Heck   2014-03-29 
> 18:52:36 -0400  892)   && 
> text->paragraphs()[begpit].stripLeadingSpaces(bp.track_changes))
> 
> So the relevant commit is aaf4cf6f9. How do I go about to see
> whether 
> this references some ticket?

E.g. via trac:
http://www.lyx.org/trac/changeset/aaf4cf6f9/lyxgit

It refers to #3225.

Jürgen

> 
> Daniel
> 
> 

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


Re: [patch] Fix removal of trailing space when deleting selection from the beginning of a paragraph

2016-10-15 Thread racoon



On 15.10.2016 17:14, racoon wrote:

On 15.10.2016 16:17, Scott Kostyshak wrote:

On Sat, Oct 15, 2016 at 08:41:24AM +0200, racoon wrote:

For some reason I can't reach the lyx.org is it down?

Anyway, I'll just re-post my patch here since it might have gone
unnoticed.
I know that the cure I suggest isn't perfect, but as far as I can see it
works. The problem seems quite bad so it seems much better having
this patch
rather than leaving it as it is.

The discussion was here:
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg197035.html


Are you familiar with "git blame" ? Using git blame, you can see the
commit of each line of code in a file. For example, since you're not
sure why that code is there, before you remove it you should look at why
it was introduced.

git blame src/CutAndPaste.cpp

shows that one relevant commit is aaf4cf6f9. It references:
http://www.lyx.org/trac/ticket/3225

Perhaps that provides some useful information (I don't know though).


Thanks a lot. That is quite helpful I think. Actually, looking at the
code again it is really this part that might lead to trouble.

0a6ff99f2 src/CutAndPaste.cpp (Richard Heck   2014-03-29
18:52:36 -0400  892)   &&
text->paragraphs()[begpit].stripLeadingSpaces(bp.track_changes))

So the relevant commit is aaf4cf6f9. How do I go about to see whether
this references some ticket?


Bugger. 0a6ff99f2 is relevant I wanted to write.

Daniel


Re: [patch] Fix removal of trailing space when deleting selection from the beginning of a paragraph

2016-10-15 Thread racoon

On 15.10.2016 16:17, Scott Kostyshak wrote:

On Sat, Oct 15, 2016 at 08:41:24AM +0200, racoon wrote:

For some reason I can't reach the lyx.org is it down?

Anyway, I'll just re-post my patch here since it might have gone unnoticed.
I know that the cure I suggest isn't perfect, but as far as I can see it
works. The problem seems quite bad so it seems much better having this patch
rather than leaving it as it is.

The discussion was here:
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg197035.html


Are you familiar with "git blame" ? Using git blame, you can see the
commit of each line of code in a file. For example, since you're not
sure why that code is there, before you remove it you should look at why
it was introduced.

git blame src/CutAndPaste.cpp

shows that one relevant commit is aaf4cf6f9. It references:
http://www.lyx.org/trac/ticket/3225

Perhaps that provides some useful information (I don't know though).


Thanks a lot. That is quite helpful I think. Actually, looking at the 
code again it is really this part that might lead to trouble.


0a6ff99f2 src/CutAndPaste.cpp (Richard Heck   2014-03-29 
18:52:36 -0400  892)   && 
text->paragraphs()[begpit].stripLeadingSpaces(bp.track_changes))


So the relevant commit is aaf4cf6f9. How do I go about to see whether 
this references some ticket?


Daniel



Re: modules multiple columns not support arabic

2016-10-15 Thread Uwe Stöhr

Am 14.10.2016 um 03:17 schrieb Uwe Stöhr:


you found 3 bugs in LyX:
I will report these bugs tomorrow and see if I can fix them.


Here they are:
http://www.lyx.org/trac/ticket/10434
http://www.lyx.org/trac/ticket/10435
http://www.lyx.org/trac/ticket/10436

I don't know how to fix them because these are special issues with RTL 
languages like Arabic.


regards Uwe


Re: lyx.org is down again

2016-10-15 Thread Uwe Stöhr

Am 15.10.2016 um 15:41 schrieb Jean-Marc Lasgouttes:


I restarted it, but I am not sure how long it will stand.


thanks

regards Uwe


Re: Master is slow

2016-10-15 Thread Scott Kostyshak
On Sat, Oct 15, 2016 at 11:39:55AM +0200, racoon wrote:
> Typing within the master's work area is slow on my computer (while it is
> fine in 2.2.2 and 2.1.5). Maybe this just has to do with some debugging
> running in the background or so?

I haven't noticed this. Do you by chance have the code preview pane
open in master?

Scott


signature.asc
Description: PGP signature


Re: [patch] Fix removal of trailing space when deleting selection from the beginning of a paragraph

2016-10-15 Thread Scott Kostyshak
On Sat, Oct 15, 2016 at 08:41:24AM +0200, racoon wrote:
> For some reason I can't reach the lyx.org is it down?
> 
> Anyway, I'll just re-post my patch here since it might have gone unnoticed.
> I know that the cure I suggest isn't perfect, but as far as I can see it
> works. The problem seems quite bad so it seems much better having this patch
> rather than leaving it as it is.
> 
> The discussion was here:
> http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg197035.html

Are you familiar with "git blame" ? Using git blame, you can see the
commit of each line of code in a file. For example, since you're not
sure why that code is there, before you remove it you should look at why
it was introduced.

git blame src/CutAndPaste.cpp

shows that one relevant commit is aaf4cf6f9. It references:
http://www.lyx.org/trac/ticket/3225

Perhaps that provides some useful information (I don't know though).

Scott


signature.asc
Description: PGP signature


Re: lyx.org is down again

2016-10-15 Thread Jean-Marc Lasgouttes


I restarted it, but I am not sure how long it will stand.

JMarc


lyx.org is down again

2016-10-15 Thread Uwe Stöhr
 

Re: [LyX/2.2.x] Fix monolithic build.

2016-10-15 Thread Kornel Benko
Am Freitag, 14. Oktober 2016 um 21:06:26, schrieb Richard Heck 
> On 10/14/2016 12:48 PM, Scott Kostyshak wrote:
> > On Mon, Oct 10, 2016 at 04:24:45PM +0200, Richard Heck wrote:
> >> commit 3fe8c04274b0cbc16577965207b4d98aec58d0cd
> >> Author: Richard Heck 
> >> Date:   Mon Oct 10 10:24:08 2016 -0400
> >>
> >> Fix monolithic build.
> > Is this needed for master also?
> 
> Probably, but I didn't check.

Works here without the patch.
cmake + linux + gcc4.8

> rh

Kornel

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


Master is slow

2016-10-15 Thread racoon
Typing within the master's work area is slow on my computer (while it is 
fine in 2.2.2 and 2.1.5). Maybe this just has to do with some debugging 
running in the background or so?


Daniel



Re: LyX docs: cleaning up math options

2016-10-15 Thread Scott Kostyshak
On Fri, Oct 14, 2016 at 11:03:28PM +0200, Uwe Stöhr wrote:
> Am 14.10.2016 um 17:36 schrieb Guenter Milde:
> 
> > For the documentation people, the difference is:...
> 
> Hi Scott and Günter,
> 
> convinced, so fine with me to change everything to automatic. Please commit
> directly if the tests were passed to branch (when it is open again) and
> master (please keep there the fileformat).
> 
> Please also take care of the non-English files.

Sounds good. Jean-Pierre, since you first proposed this would you like
to make the changes or do you prefer for me to? I don't have a
preference, but whichever of us does it just needs to make sure that no
tests go from passing to failing after the change.

Scott


signature.asc
Description: PGP signature


Re: LyX docs: cleaning up math options

2016-10-15 Thread Scott Kostyshak
On Fri, Oct 14, 2016 at 08:47:48PM +, Guenter Milde wrote:
> On 2016-10-14, Scott Kostyshak wrote:
> 
> > [-- Type: text/plain, Encoding: quoted-printable --]
> 
> > On Fri, Oct 14, 2016 at 03:36:11PM +, Guenter Milde wrote:
> 
> >> For the end-user the difference is:
> 
> >> * with "no", there is a safeguard against relying on additional packages
> >>   without real need -> less dependencies when compiling the docs.
> 
> > Wouldn't this be a LyX bug if we rely on an unneededed depencency? To be
> > clear, I believe Jean-Pierre and I were on the same page of porposing
> > that the options be changed to "Load automatically". We are not
> > proposing "Load always".
> 
> Not a LyX bug. With "safeguard", I only mean the feadback by the compilation
> error if the editor/maintainer uses a feature requiring an additional package.
> If we decide now to allow this, we should set the options to "auto".

Ah I understand what you mean now. I did not think about that. In some
sense it provides protection against our future selves.

> I agree that this is a (small) benefit for the documentation people with a
> negligible impact on the average user.
> I.e. I am in favour of setting the math-package settings to "auto".

OK.

Scott


signature.asc
Description: PGP signature


Re: [patch] Fix removal of trailing space when deleting selection from the beginning of a paragraph

2016-10-15 Thread Jürgen Spitzmüller
Am Samstag, den 15.10.2016, 08:41 +0200 schrieb racoon:
> For some reason I can't reach the lyx.org is it down?

Yes. As always when a new release is due ...

Jürgen

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


Re: [patch] Fix removal of trailing space when deleting selection from the beginning of a paragraph

2016-10-15 Thread racoon

On 15.10.2016 08:41, racoon wrote:

For some reason I can't reach the lyx.org is it down?

Anyway, I'll just re-post my patch here since it might have gone
unnoticed. I know that the cure I suggest isn't perfect, but as far as I
can see it works. The problem seems quite bad so it seems much better
having this patch rather than leaving it as it is.

The discussion was here:
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg197035.html


On a related note. I just saw that, in contrast to leading spaces, 
multiple spaces are not automatically changed into one space.


Steps to reproduce:
1. Create a freespacing inset, e.g. a Program Listing
2. Insert text with multiple spaces in between or at the end
3. Copy and paste from the inset into the main text
4. Leave the paragraph

Actual result:
- Multiple spaces are not changed into one space

Expected result:
- They are

Notes:
- Once having multiple spaces in the main text one can actually copy and 
paste them without them getting removed
- I am not sure whether the spaces should be removed straight away on 
pasting or only after leaving the paragraph


Candidates for stable

2016-10-15 Thread Jürgen Spitzmüller
Richard,

these are the accumulated fixes I did in master that are candidates for
stable when the door towards 2.2.3 is open:

* Citation dialog redesign:
http://www.lyx.org/trac/changeset/824e24ca/lyxgit
http://www.lyx.org/trac/changeset/5225418d/lyxgit
http://www.lyx.org/trac/changeset/0c1a023c/lyxgit

* Keep citation style settings both within and between sessions
(#10256): 
http://www.lyx.org/trac/changeset/3294b16b/lyxgit

* Refs dialog redesign:
http://www.lyx.org/trac/changeset/774becf6/lyxgit
http://www.lyx.org/trac/changeset/47ea77a8/lyxgit

* Fix label display in linguistic examples: 
http://www.lyx.org/trac/changeset/91f5d909/lyxgit

* Improve bibliography info display:
http://www.lyx.org/trac/changeset/ba171930/lyxgit
http://www.lyx.org/trac/changeset/2c4673af/lyxgit
http://www.lyx.org/trac/changeset/1c725c91/lyxgit
http://www.lyx.org/trac/changeset/67da1431/lyxgit
http://www.lyx.org/trac/changeset/b941d939/lyxgit
http://www.lyx.org/trac/changeset/2267f4ae/lyxgit
http://www.lyx.org/trac/changeset/85f1259b/lyxgit
http://www.lyx.org/trac/changeset/b8486ba6/lyxgit

* Move/fix wrap check for simple search/replace to lyxfind (#10378):
http://www.lyx.org/trac/changeset/c0a425a3/lyxgit

Do you want me to post individual patches for each of the proposed fix?

Jürgen

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


[patch] Fix removal of trailing space when deleting selection from the beginning of a paragraph

2016-10-15 Thread racoon

For some reason I can't reach the lyx.org is it down?

Anyway, I'll just re-post my patch here since it might have gone 
unnoticed. I know that the cure I suggest isn't perfect, but as far as I 
can see it works. The problem seems quite bad so it seems much better 
having this patch rather than leaving it as it is.


The discussion was here: 
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg197035.html


Daniel
From 967d723b5915e52dfbf5a230b8b9c440af1f01a2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20Ram=C3=B6ller?= 
Date: Sat, 15 Oct 2016 00:35:17 +0200
Subject: [PATCH] Fixes that cutting selection from beginning of paragrph
 removes space after selection.

---
 src/CutAndPaste.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/CutAndPaste.cpp b/src/CutAndPaste.cpp
index 4ec9811..888da0c 100644
--- a/src/CutAndPaste.cpp
+++ b/src/CutAndPaste.cpp
@@ -888,9 +888,9 @@ void cutSelection(Cursor & cur, bool doclear, bool realcut)
cur.pit() = endpit;
 
// sometimes necessary
-   if (doclear
+   /*if (doclear
&& 
text->paragraphs()[begpit].stripLeadingSpaces(bp.track_changes))
-   cur.fixIfBroken();
+   cur.fixIfBroken();*/
 
// need a valid cursor. (Lgb)
cur.clearSelection();
-- 
2.9.0.windows.1