]> git.lyx.org Git - lyx.git/log
lyx.git
6 years agosplash.lyx and ru.po: updates from Yuriy
Uwe Stöhr [Mon, 19 Feb 2018 22:32:20 +0000 (23:32 +0100)]
splash.lyx and ru.po: updates from Yuriy

6 years agoel.po: translations from Odysseas
Uwe Stöhr [Mon, 19 Feb 2018 22:24:14 +0000 (23:24 +0100)]
el.po: translations from Odysseas

6 years agolayouttranslations and uk.po: corrections from Yuri
Uwe Stöhr [Mon, 19 Feb 2018 22:16:06 +0000 (23:16 +0100)]
layouttranslations and uk.po: corrections from Yuri

6 years agoImprove metrics of equations. More work remains to be done.
Jean-Marc Lasgouttes [Mon, 19 Feb 2018 17:24:29 +0000 (18:24 +0100)]
Improve metrics of equations. More work remains to be done.

Use proper value for above/below skip (12pt) instead of the hardcoded
12 pixels.

Add forgotten skip before display math preview.

Make "too small preview" size dpi-dependent.
Make gap in front of equation (what is it good for, BTW?) dpi-dependent.

6 years agoFix convert_separator routine with ancient LyX files.
Juergen Spitzmueller [Mon, 19 Feb 2018 17:03:52 +0000 (18:03 +0100)]
Fix convert_separator routine with ancient LyX files.

6 years agoescape label in included listings
Juergen Spitzmueller [Mon, 19 Feb 2018 16:15:31 +0000 (17:15 +0100)]
escape label in included listings

Also use docstring rather than string.

Fixes part of #10544

6 years agofr.po: sync with the 2.3.x branch
Uwe Stöhr [Sun, 18 Feb 2018 22:45:05 +0000 (23:45 +0100)]
fr.po: sync with the 2.3.x branch

After the release the po files will be out of sync but they should be in sync until the release to keep consistent translations.

6 years agoFrench UserGuide.lyx: fix a typo
Uwe Stöhr [Sun, 18 Feb 2018 22:42:03 +0000 (23:42 +0100)]
French UserGuide.lyx: fix a typo

6 years agoRevert "* ANNOUNCE - be explicit about slowness."
jpc [Sun, 18 Feb 2018 21:54:58 +0000 (22:54 +0100)]
Revert "* ANNOUNCE - be explicit about slowness."

This reverts commit 9bdfc3ff0d68fb44dcb024016ba4e0415e98e8a2.

6 years ago* ANNOUNCE - be explicit about slowness.
Pavel Sanda [Sun, 18 Feb 2018 09:24:19 +0000 (10:24 +0100)]
* ANNOUNCE - be explicit about slowness.

6 years ago Partial update of fr/UserGuide.lyx
jpc [Sun, 18 Feb 2018 21:43:24 +0000 (22:43 +0100)]
    Partial update of fr/UserGuide.lyx

6 years agoMakefile.am: forgot this in the previous commit
Uwe Stöhr [Sun, 18 Feb 2018 14:52:30 +0000 (15:52 +0100)]
Makefile.am: forgot this in the previous commit

6 years agoWin installer: convert all files to Unicode
Uwe Stöhr [Sun, 18 Feb 2018 14:45:08 +0000 (15:45 +0100)]
Win installer: convert all files to Unicode

- at the moment some files were in Unicode, some in CP1252 which can make unnecessary troubles
- remove an obsolete file
- update InstallerStructure.odg

6 years ago* README.localization
Pavel Sanda [Sun, 18 Feb 2018 11:29:39 +0000 (12:29 +0100)]
* README.localization

6 years agogrammar
Juergen Spitzmueller [Sun, 18 Feb 2018 08:19:03 +0000 (09:19 +0100)]
grammar

6 years agoAdd Nomenclature to localization_test.lyx
Scott Kostyshak [Sun, 18 Feb 2018 04:27:39 +0000 (23:27 -0500)]
Add Nomenclature to localization_test.lyx

6 years agoWin installer: MiKTeX has a new maintenance program
Uwe Stöhr [Sun, 18 Feb 2018 05:11:11 +0000 (06:11 +0100)]
Win installer: MiKTeX has a new maintenance program

- therefore the command line parameters changed
- all babel packages must be required
- use another default mirror that is hopefully not down 2hours every day

6 years agoport recent Basque translation updates
Uwe Stöhr [Sun, 18 Feb 2018 01:24:22 +0000 (02:24 +0100)]
port recent Basque translation updates

6 years ago Untranslated menu name in fr/EmbeddedObjects.lyx
jpc [Sat, 17 Feb 2018 17:42:05 +0000 (18:42 +0100)]
  Untranslated menu name in fr/EmbeddedObjects.lyx

6 years ago A couple of forgotten items in fr/Additional.lyx
jpc [Sat, 17 Feb 2018 17:30:52 +0000 (18:30 +0100)]
  A couple of forgotten items in fr/Additional.lyx

6 years ago Remove spurious occurrence of AGU and EGS chapters in fr/Additional.lyx
jpc [Sat, 17 Feb 2018 16:54:24 +0000 (17:54 +0100)]
     Remove spurious occurrence of AGU and EGS chapters in fr/Additional.lyx

6 years agoAnother go at fixing string metrics
Jean-Marc Lasgouttes [Sat, 17 Feb 2018 15:55:22 +0000 (16:55 +0100)]
Another go at fixing string metrics

This time, it is the problems with \int in esint and cmex that we are
trying to work around. This code is becoming too complicated to my
taste.

6 years agoSkip insets when checking for uncodable chars to paste.
Juergen Spitzmueller [Sat, 17 Feb 2018 11:27:26 +0000 (12:27 +0100)]
Skip insets when checking for uncodable chars to paste.

Fixes paste of quote insets to ERT/chunk.

6 years agoAdapt to new ChkTeX return values.
Juergen Spitzmueller [Sat, 17 Feb 2018 10:25:28 +0000 (11:25 +0100)]
Adapt to new ChkTeX return values.

As of v. 1.7.7, chktex has four exit values. Only consider the program
failed with EXIT_FAILURE (1). This is backwards compatible to chktex
up to v. 1.7.5 and later patched versions included in TeXLive, where
there was the distinction EXIT_FAILURE (program failed) and EXIT_SUCCESS
(program successfully run, with or without something to report).

Note that ChkTeX v. 1.7.5 and 1.7.6 vanilla (as included in MikTeX) also
returned EXITE_FAILURE if ChkTeX found something to report.

We do not, and never did, support this case.

Fixes: #9989 (after ChkTeX 1.7.7. is released).
6 years agoWin installer: fix installation of Arabic dictionaries.nsh
Uwe Stöhr [Sat, 17 Feb 2018 05:05:13 +0000 (06:05 +0100)]
Win installer: fix installation of Arabic dictionaries.nsh

- correct name of Arabic spell checker (fixes bug #11036)
- add Arabic thesaurus
- update sourceforge's mirror list
- update some dictionaries

6 years agoANNOUNCE: copy from current 2.3.x branch
Scott Kostyshak [Thu, 15 Feb 2018 19:55:08 +0000 (14:55 -0500)]
ANNOUNCE: copy from current 2.3.x branch

This ANNOUNCE is the ANNOUNCE of 2.3.0rc2 plus one significant
change (37b5aa1e on 2.3.x branch) of giving a URL to the list of
mirrors.

6 years agoDisable unsupported ref types in mathed.
Juergen Spitzmueller [Wed, 14 Feb 2018 16:18:24 +0000 (17:18 +0100)]
Disable unsupported ref types in mathed.

Also repair prettyref in InsetMathRef.

Part of #9798

6 years agoUserGuide.lyx: document the removal of the pixmap cache for all languages
Uwe Stöhr [Wed, 14 Feb 2018 13:51:22 +0000 (14:51 +0100)]
UserGuide.lyx: document the removal of the pixmap cache for all languages

6 years agoUpdated Basque localization by Iñaki Larrañaga Murgoitio
Juergen Spitzmueller [Tue, 13 Feb 2018 17:35:36 +0000 (18:35 +0100)]
Updated Basque localization by Iñaki Larrañaga Murgoitio

6 years agoAlso fix chapter layout in tufte-book.
Richard Heck [Mon, 12 Feb 2018 21:29:54 +0000 (16:29 -0500)]
Also fix chapter layout in tufte-book.

6 years agoFix crash when citeengine is unknown.
Richard Heck [Mon, 12 Feb 2018 21:26:27 +0000 (16:26 -0500)]
Fix crash when citeengine is unknown.

6 years ago* lib/layouttranslations, sync with 2.3
Pavel Sanda [Mon, 12 Feb 2018 20:40:06 +0000 (21:40 +0100)]
* lib/layouttranslations, sync with 2.3

6 years agoFixing painting regression - chapter top spacing.
Pavel Sanda [Mon, 12 Feb 2018 20:14:56 +0000 (21:14 +0100)]
Fixing painting regression - chapter top spacing.

https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg203685.html

6 years agoru.po: some corrections by Yuriy
Uwe Stöhr [Mon, 12 Feb 2018 18:05:07 +0000 (19:05 +0100)]
ru.po: some corrections by Yuriy

6 years agoCustomization.lyx: distribute all tracked changes
Uwe Stöhr [Mon, 12 Feb 2018 17:53:12 +0000 (18:53 +0100)]
Customization.lyx: distribute all tracked changes

6 years agoUpdated Basque localization by Iñaki Larrañaga Murgoitio
Juergen Spitzmueller [Mon, 12 Feb 2018 16:33:01 +0000 (17:33 +0100)]
Updated Basque localization by Iñaki Larrañaga Murgoitio

6 years agoThere is actually a home for obsolete templates in Makefile
Jean-Marc Lasgouttes [Mon, 12 Feb 2018 16:19:10 +0000 (17:19 +0100)]
There is actually a home for obsolete templates in Makefile

Fixup to 24fd7d2b.

6 years agoUse parMetrics to access the par_metrics_ map
Jean-Marc Lasgouttes [Mon, 12 Feb 2018 16:11:09 +0000 (17:11 +0100)]
Use parMetrics to access the par_metrics_ map

In cursorY, it is dangerous to access par_petrics_[0], since one does
not know whether metrics have been computed for this paragraph (which
may be off-screen).

It is safer to use parMetrics(0), that will compute the paragraph
metrics as needed.

Fixes bug #8120.

6 years agoRemove template AGUTeX.lyx from Makefile
Jean-Marc Lasgouttes [Mon, 12 Feb 2018 16:06:19 +0000 (17:06 +0100)]
Remove template AGUTeX.lyx from Makefile

6 years agoImplement buffer-anonymize more efficiently
Jean-Marc Lasgouttes [Wed, 7 Feb 2018 14:35:46 +0000 (15:35 +0100)]
Implement buffer-anonymize more efficiently

The work is done now in Paragraph::anonymize().

Move the handling of the lfun to Buffer class.

6 years ago Remove sections 6.7 and 6.4 from Additional manual (obsolete classes egs and...
jpc [Mon, 12 Feb 2018 10:30:18 +0000 (11:30 +0100)]
   Remove sections 6.7 and 6.4 from Additional manual (obsolete classes egs and aguplus)
       Edit LaTeXConfig.lyx accordingly
       Move teaplates/AGUTeX.lyx to teaplates/obsolete

6 years agobiblatex-natbib.citeengine: Remove erroneous blank
Juergen Spitzmueller [Sun, 11 Feb 2018 15:43:14 +0000 (16:43 +0100)]
biblatex-natbib.citeengine: Remove erroneous blank

6 years agoDisable BUFFER_EXPORT and BUFFER_EXPORT_AS while buffer is processed
Juergen Spitzmueller [Sun, 11 Feb 2018 08:50:38 +0000 (09:50 +0100)]
Disable BUFFER_EXPORT and BUFFER_EXPORT_AS while buffer is processed

I am rather irritated we didn't do this already, since synchronous runs
with BUFFER_VIEW or BUFFER_UPDATE leads to all sorts of problems,
including crashes.

Fixes the crash in #8338 (but not the bug itself).

6 years agoru.po: is now 100% translated
Uwe Stöhr [Sat, 10 Feb 2018 18:34:42 +0000 (19:34 +0100)]
ru.po: is now 100% translated

big respect to Yuriy!

6 years agoamend 71fea633266
Juergen Spitzmueller [Sat, 10 Feb 2018 18:02:35 +0000 (19:02 +0100)]
amend 71fea633266

6 years agoDisable CheckTeX while buffer is processed
Juergen Spitzmueller [Sat, 10 Feb 2018 17:18:43 +0000 (18:18 +0100)]
Disable CheckTeX while buffer is processed

Since CheckTeX itself processes the tex file, a synchronous run with
a TeX process can lead to all sorts of conflicts, including crashes.

Fixes: #7434.
6 years agoFix race condition in processFuncRequestQueue
Juergen Spitzmueller [Sat, 10 Feb 2018 14:35:12 +0000 (15:35 +0100)]
Fix race condition in processFuncRequestQueue

The issue here was that the element was only removed from the queue
after the func request was processed, but within that process, other
function could access the queue, so the queue could even be empty
when this function finally wanted to remove the item.

Fixes: #10406.
6 years agoCmake build: Allow cross-compiling with mingw again
Kornel Benko [Sat, 10 Feb 2018 10:21:08 +0000 (11:21 +0100)]
Cmake build: Allow cross-compiling with mingw again

1.) The check for "QT_USES_X11" expects the created application
  to run, but the '.exe' file does not run on linux.
2.) Don't use megered build anymore, it is not faster
  on multi-processor machines anyway

6 years agoFix Windows compiler warning about double declaration of "it"
Juergen Spitzmueller [Sat, 10 Feb 2018 07:21:48 +0000 (08:21 +0100)]
Fix Windows compiler warning about double declaration of "it"

See #10912

6 years agoCosmetics per JMarc's suggestions.
Pavel Sanda [Fri, 9 Feb 2018 22:46:14 +0000 (23:46 +0100)]
Cosmetics per JMarc's suggestions.

6 years agoAvoid an infinite loop
Enrico Forestieri [Fri, 9 Feb 2018 22:35:33 +0000 (23:35 +0100)]
Avoid an infinite loop

When pasting "\big" without any following delimiter, avoid
processing the same token again and again. For unknown reasons,
the delim docstring turns out to always be not empty: even when
it simply contains a '0' (no delimiter follows), its length is 1.

Fixes bug #11027.

6 years agolyx2lyx fixes and cleanup.
Günter Milde [Fri, 9 Feb 2018 15:49:23 +0000 (16:49 +0100)]
lyx2lyx fixes and cleanup.

Don't insert empty line when translating QuoteInsets to literal
quotes.

Fix regexp pattern in re/convert_dashligatures.

Adjust logic in re/convert_dash(ligatur)es.

6 years agotex2lyx: normalize bib and bst paths
Juergen Spitzmueller [Fri, 9 Feb 2018 12:23:50 +0000 (13:23 +0100)]
tex2lyx: normalize bib and bst paths

Fixes: #7637
6 years agoFix child document regex in scanLogFile
Juergen Spitzmueller [Fri, 9 Feb 2018 10:42:18 +0000 (11:42 +0100)]
Fix child document regex in scanLogFile

Several problems:
* The regex failed at names such as 1_text_2_text.tex
  (returned "2_text.tex)
* The regex failed at names such as 12_text.tex
  (returned "2_text.tex)
* Masters with digits in the name (2018_text.tex) were
  tracked as their own children

6 years agoUpdate sk.po
Kornel Benko [Thu, 8 Feb 2018 22:33:54 +0000 (23:33 +0100)]
Update sk.po

6 years agoProper naming of LFUN_SET_GRAPHICS_GROUP.
Pavel Sanda [Thu, 8 Feb 2018 20:59:41 +0000 (21:59 +0100)]
Proper naming of LFUN_SET_GRAPHICS_GROUP.

6 years agoGroup similar lfuns.
Pavel Sanda [Thu, 8 Feb 2018 20:53:08 +0000 (21:53 +0100)]
Group similar lfuns.

6 years agoUnify graphics-groups inside marked block functionality.
Pavel Sanda [Thu, 8 Feb 2018 20:33:37 +0000 (21:33 +0100)]
Unify graphics-groups inside marked block functionality.

Fixes #11026.

https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg203683.html

6 years agoReset cur.pit() when pasting into tables.
Juergen Spitzmueller [Thu, 8 Feb 2018 18:06:35 +0000 (19:06 +0100)]
Reset cur.pit() when pasting into tables.

The number of paragraphs can change here, so pit() can become invalid.

Fixes: #9983
6 years agoRevert "Mark follow-up paragraphs in a paragraph group as nested."
Juergen Spitzmueller [Thu, 8 Feb 2018 16:00:41 +0000 (17:00 +0100)]
Revert "Mark follow-up paragraphs in a paragraph group as nested."

This reverts commit 761a542551bc944c0efef0d123c2b71631d2652a.

6 years agoConsider class-provided citation engines
Juergen Spitzmueller [Thu, 8 Feb 2018 12:25:19 +0000 (13:25 +0100)]
Consider class-provided citation engines

Do not attempt to load, nor allow to set, a different engine in this
case.

Fixes: #11022
6 years agoRemove createTempFile method
Juergen Spitzmueller [Thu, 8 Feb 2018 11:16:30 +0000 (12:16 +0100)]
Remove createTempFile method

and use the new and safer tempFileName() method instead for the creation
of temporary directories

6 years agoRe-add method to get a temporary file name without persistent QTemporaryFile object
Juergen Spitzmueller [Thu, 8 Feb 2018 10:31:23 +0000 (11:31 +0100)]
Re-add method to get a temporary file name without persistent QTemporaryFile object

This is needed for cases where the temp file has to be manually removed
at some point (e.g., if temp files are used as conversion target, and
the initial file only serves as a placeholder), since QTemporaryFile
objects cannot be manually removed at least on Windows (they are always
kept open internally even after close()). See
​http://lists.qt-project.org/pipermail/interest/2013-August/008352.html

In order to avoid race conditions due to duplicate names (the issue why
the old method was removed), we record all used temp file names.

Fixes: #9139
6 years ago* comment
Pavel Sanda [Wed, 7 Feb 2018 22:24:05 +0000 (23:24 +0100)]
* comment

6 years ago* comment
Pavel Sanda [Wed, 7 Feb 2018 22:19:20 +0000 (23:19 +0100)]
* comment

6 years agolyx2lyx refactoring.
Günter Milde [Wed, 7 Feb 2018 17:46:24 +0000 (18:46 +0100)]
lyx2lyx refactoring.

Avoid duplicate code. Fix some corner-cases.

6 years agoctests: Update dedicated lyx2lyx tests.
Günter Milde [Tue, 6 Feb 2018 13:32:08 +0000 (14:32 +0100)]
ctests: Update dedicated lyx2lyx tests.

6 years agoNew lyx2lyx parser tools find_substring() and set_bool_value().
Günter Milde [Mon, 5 Feb 2018 22:19:43 +0000 (23:19 +0100)]
New lyx2lyx parser tools find_substring() and set_bool_value().

6 years agoAdd missing break and polish formatting.
Juergen Spitzmueller [Wed, 7 Feb 2018 09:16:05 +0000 (10:16 +0100)]
Add missing break and polish formatting.

6 years agoDo not show "Abstract" label in KOMA classes
Juergen Spitzmueller [Tue, 6 Feb 2018 17:39:00 +0000 (18:39 +0100)]
Do not show "Abstract" label in KOMA classes

This is not output by those classes (per default).

6 years agoDo not use English, but the context language, when pasting from math
Juergen Spitzmueller [Tue, 6 Feb 2018 13:10:12 +0000 (14:10 +0100)]
Do not use English, but the context language, when pasting from math

Fixes: #2596
6 years agoDo not use English, but the context language, when pasting from LaTeX
Juergen Spitzmueller [Tue, 6 Feb 2018 12:20:45 +0000 (13:20 +0100)]
Do not use English, but the context language, when pasting from LaTeX

Fixes: #9199
6 years agoAdd missing connection.
Juergen Spitzmueller [Tue, 6 Feb 2018 11:45:22 +0000 (12:45 +0100)]
Add missing connection.

This activates the OK/Apply when a biblatex style file is changed
manually

6 years agoru.po: translations from Yuriy
Uwe Stöhr [Sun, 4 Feb 2018 22:41:17 +0000 (23:41 +0100)]
ru.po: translations from Yuriy

6 years agoar.po: updates from Hatim
Uwe Stöhr [Sun, 4 Feb 2018 14:34:47 +0000 (15:34 +0100)]
ar.po: updates from Hatim

6 years agoAdd newlines around \backslash in put_cmd_in_ert.
Günter Milde [Sun, 4 Feb 2018 09:16:54 +0000 (10:16 +0100)]
Add newlines around \backslash in put_cmd_in_ert.

Fix for 2fce4d49ee.

6 years agoUse re.match to find regexp at begin of string/line.
Günter Milde [Sun, 4 Feb 2018 09:08:07 +0000 (10:08 +0100)]
Use re.match to find regexp at begin of string/line.

Consistently use the re.match() or the match() method of a
regexp object to find a match at the begin of a line.
This is faster than re.find('^...').

Cf. https://stackoverflow.com/questions/180986/what-is-the-difference-between-re-search-and-re-match
(The subtle difference for multi-line strings is irrelevant for
configure.py, as we match line-wise.)

6 years agoforgotten glitch
Pavel Sanda [Sat, 3 Feb 2018 21:43:00 +0000 (22:43 +0100)]
forgotten glitch

6 years agoLFUN_DOC_ANONYMIZE -> LFUN_BUFFER_ANONYMIZE per JMarc's suggestion.
Pavel Sanda [Sat, 3 Feb 2018 21:05:49 +0000 (22:05 +0100)]
LFUN_DOC_ANONYMIZE -> LFUN_BUFFER_ANONYMIZE per JMarc's suggestion.

6 years agoFix sideset hints, part of bug #11015.
Pavel Sanda [Sat, 3 Feb 2018 16:51:00 +0000 (17:51 +0100)]
Fix sideset hints, part of bug #11015.

6 years agoAdd LFUN_DOC_ANONYMIZE, quick fix for #7259.
Pavel Sanda [Fri, 2 Feb 2018 22:42:56 +0000 (23:42 +0100)]
Add LFUN_DOC_ANONYMIZE, quick fix for #7259.

6 years ago* doxy
Pavel Sanda [Fri, 2 Feb 2018 22:42:33 +0000 (23:42 +0100)]
* doxy

6 years agosv.po: updates from Jim
Uwe Stöhr [Fri, 2 Feb 2018 20:30:23 +0000 (21:30 +0100)]
sv.po: updates from Jim

6 years agoHarden a few of the other regexes, too.
Richard Heck [Fri, 2 Feb 2018 03:14:51 +0000 (22:14 -0500)]
Harden a few of the other regexes, too.

I've tested this and get no difference of output.

6 years agoMake module and citeengine regexes a little more discerning.
Richard Heck [Fri, 2 Feb 2018 03:10:54 +0000 (22:10 -0500)]
Make module and citeengine regexes a little more discerning.

6 years agoDouble escape binary regexes in module and citeengine searches.
Richard Heck [Fri, 2 Feb 2018 03:08:55 +0000 (22:08 -0500)]
Double escape binary regexes in module and citeengine searches.

See previous commit for explanation.

6 years agoDouble escape binary regex in lyx2lyx and fix line-ending problem.
Richard Heck [Fri, 2 Feb 2018 02:58:29 +0000 (21:58 -0500)]
Double escape binary regex in lyx2lyx and fix line-ending problem.

When we switched from r'...' to b'...', this required strings used
as input to re.compile to be double-escaped. It's not an issue with
"\s", because "\s" has no special meaning in a string.

Also, printing in binary mode did not output a line ending.

6 years agoEnable CompressorProxy for all Workareas (incl. EmbeddedWorkarea)
Juergen Spitzmueller [Thu, 1 Feb 2018 13:58:49 +0000 (14:58 +0100)]
Enable CompressorProxy for all Workareas (incl. EmbeddedWorkarea)

This fixes the Advanced F&R.

6 years agoFrench docs: remove a file that was accidentally committed
Uwe Stöhr [Thu, 1 Feb 2018 04:19:08 +0000 (05:19 +0100)]
French docs: remove a file that was accidentally committed

6 years agopt_BR.po: updates from Georger
Uwe Stöhr [Thu, 1 Feb 2018 04:11:17 +0000 (05:11 +0100)]
pt_BR.po: updates from Georger

- He also reviewed layouttranslations and says it is OK

6 years agoFix Cursor::sanitize
Jean-Marc Lasgouttes [Tue, 16 Jan 2018 15:00:07 +0000 (16:00 +0100)]
Fix Cursor::sanitize

This is a follow-up to 02028c0b12ba9.

Fix two bugs introduced when moving Cursor::sanitize() to CursorData:

* the setBuffer that is supposed to set buffer from bufferview became
  a no-op.

* new_word_ is now part of CursorData, but it is sanitized only in
  Cursor::sanitize().

Additionally, make all protected CursorData data members private to enforce
encapsulation.

6 years agolyx2lyx refactoring.
Günter Milde [Wed, 31 Jan 2018 14:09:32 +0000 (15:09 +0100)]
lyx2lyx refactoring.

* use unicode.transform() instead of loop over replacements
* telling variable names
* remove trailing whitespace
* documentation update
* don't set use_ligature_dashes if both dash types are found
* remove spurious warning, normalize indentation, and use
  Python idioms in revert_baselineskip()

6 years ago Remove unappropriate French style command from preamble
jpc [Wed, 31 Jan 2018 16:48:04 +0000 (17:48 +0100)]
      Remove unappropriate French style command from preamble

6 years agoMake CursorData::checkNewWordPosition() more robust
Jean-Marc Lasgouttes [Wed, 31 Jan 2018 15:26:45 +0000 (16:26 +0100)]
Make CursorData::checkNewWordPosition() more robust

Before accessing things like new_word_.lastpos(), it is better to make
sure that new_word_ points to something that exists. Therefore, the
call to fixIfBroken() is moved in first position.

Other changes: inTexted() is replaced by a more general test that
current inset has not changed; test idx() in addition to pit().

6 years agoRemove spurious no-break space.
Günter Milde [Wed, 31 Jan 2018 09:59:21 +0000 (10:59 +0100)]
Remove spurious no-break space.

6 years agoru.po: more translations from Yuriy
Uwe Stöhr [Wed, 31 Jan 2018 04:48:21 +0000 (05:48 +0100)]
ru.po: more translations from Yuriy

6 years agoFrench Additional.lyx: sync with branch
Uwe Stöhr [Wed, 31 Jan 2018 04:47:41 +0000 (05:47 +0100)]
French Additional.lyx: sync with branch

6 years agoUse LaTeX macros instead of Latin transcription for Greek characters.
Günter Milde [Tue, 30 Jan 2018 20:58:12 +0000 (21:58 +0100)]
Use LaTeX macros instead of Latin transcription for Greek characters.

Use the LaTeX internal character representation (LICR) macros
provided by lgrenc.def (since version 0.8 from 2013-05-13)
in lib/unicodesymbols. This fixes the PDF bookmarks (except for the
legacy input encoding iso-8859-7) and solves the problem of a missing
"v" character in Libertine LGR fonts (see lyx-users from 2018-01-29).

The ctest unicodesymbols/008-greek-and-coptic_iso8859-7_pdf2" now fails
(due to #9681). This is not a regression, as it is already
"unreliable" (wrong output, Latin character instead of Greek).

Drop compatibility definition of \~ as perispomeni accent
(that was required with lgrenc.def < 0.8).

6 years agoDo not use "ligature dashes" with French documents.
Günter Milde [Tue, 30 Jan 2018 20:43:38 +0000 (21:43 +0100)]
Do not use "ligature dashes" with French documents.

In Spanish and French, dashes around parenthetical statements
are treated similar to brackets: line breaks are not allowed
on the inner side. Use of "breakable" dashes risks accidential
line breaks after the "opening" dash.
(Ligature dashes allow line breaks even if a no-break space follows.)

6 years agoAdd support for enchant 2.x
Jean-Marc Lasgouttes [Wed, 24 Jan 2018 15:19:34 +0000 (16:19 +0100)]
Add support for enchant 2.x

As of enchant 2.x, it is required to create a Broker instance instead
of relying on a static one provided by the library.

Add autoconf and cmake (courtesy of Kornel) tests that check whether
one can indeed instantiate a Broker object, and act on the result in a
new broker() helper function.

Fixes bug #10986.