Re: Restart layout update discussion; was: Re: [patch] final layout patches for branch

2013-01-21 Thread Georg Baum
Richard Heck wrote: > It's currently possible to edit such a file without data loss, if I'm > not mistaken. The unrecognized layouts are treated as "Standard", but > they retain their labels. It is even possible to insert new such layouts > (or insets) and save the file. So the "edit only" mode is

Re: Restart layout update discussion; was: Re: [patch] final layout patches for branch

2013-01-21 Thread Georg Baum
Uwe Stöhr wrote: > Am 15.01.2013 22:24, schrieb Georg Baum: > >> IMHO, IEEEtran.cls does not support Uwe's reasoning at all, but rather >> the oppsosite. And I'd really like to see _one_ example of an updated >> journal/conference .cls file that broke an offici

Re: Restart layout update discussion; was: Re: [patch] final layout patches for branch

2013-01-16 Thread Georg Baum
Jean-Marc Lasgouttes wrote: > Le 16/01/2013 08:53, Liviu Andronic a écrit : >> Consider that the updated layout (in 2.0.5) contains _new_ commands >> and that the user creates a document using those new commands that the >> 2.0.5 layout supports. What happens if a collaborator opens this >> docume

Re: Restart layout update discussion; was: Re: [patch] final layout patches for branch

2013-01-15 Thread Georg Baum
Guenter Milde wrote: > On 2013-01-14, Enrico Forestieri wrote: >> On Mon, Jan 14, 2013 at 02:33:36AM +0100, Uwe Stöhr wrote: > >>> But to come to an end, decide once again but please act then >>> consistently. I will have to update IEEEtran and I want to know from >>> you what I should do now. >

Re: [LyX 2.0.x] de.po: update

2013-01-15 Thread Georg Baum
Julien Rioux wrote: > On 12/01/2013 11:34 AM, Jürgen Spitzmüller wrote: >> Julien Rioux wrote: >>> The goal is to translate these strings (using mo database) to the >>> document language. >> >> Then Buffer::B_() is the correct approach. >> >> Jürgen >> > > Thank you, I'll try that. In case it is

Re: [LyX master] Fix compilation with autotools

2013-01-13 Thread Georg Baum
Juergen Spitzmueller wrote: > Fix compilation with autotools > > restriction.png does not exist. Thanks, I added the missing image now. Georg

[patch] Add missing math symbols to toolbar

2013-01-10 Thread Georg Baum
With the help of development/tools/generate_symbols_images.py I went systematically through all math symbols, corrected errors in lib/symbols and generated missing images for toolbar use. Now everything looks good, and I'd like to add the missing symbols to the toolbar. I would propose something

Re: Re: Re: Write/Read timestamps to change tracking

2013-01-09 Thread Georg Baum
Kornel Benko wrote: > gmtime() returns "struct tm *" ... > but yes, it is misleading too you are right of course, I read too quickly. >> Maybe >> use from_asctime_utc()? I also noticed that the documentation in >> lyxtime.h still describes the old behaviour. Please adjust it. > > Done Thanks!

Re: Re: Write/Read timestamps to change tracking

2013-01-08 Thread Georg Baum
Kornel Benko wrote: > Am Montag, 7. Januar 2013 um 12:03:15, schrieb Jean-Marc Lasgouttes > >> Le 07/01/2013 11:17, Kornel Benko a écrit : >> > The problem arises, if we export to latex. >> > >> > As it is now, the timestamps are written respecting the local timezone. >> > >> > Importing this bac

Re: testing in LyX development

2013-01-08 Thread Georg Baum
Scott Kostyshak wrote: > Dear Developers, > > I'm a newbie trying to figure out different aspects of a large > programming project. One thing that I'm curious about is why there are > so few tests for LyX. > > In particular, I'm interested in the following two questions: > > 1) Why don't you wr

Re: Re: Re: [LyX master] Merge branch 'master' of git.lyx.org:lyx

2013-01-07 Thread Georg Baum
Kornel Benko wrote: > Am Samstag, 5. Januar 2013 um 14:01:15, schrieb Scott Kostyshak > >> >> Good to hear. Now everyone has one less excuse for writing tests. >> Speaking of which, do you know why no one writes any tests? > > It's standard between developers I met in my life :( > > I for one

Re: [LyX master] Adapt format to lyx-files in tex2lyx-tests

2013-01-02 Thread Georg Baum
Kornel Benko wrote: > Am Dienstag, 1. Januar 2013 um 17:17:32, schrieb Vincent van Ravesteijn > >> > >> > Sure, and what do you propose instead? >> > >> >> You could use lyxtolyx to convert to latest format. Then export to tex, >> convert to LyX and compare with the lyxtolyx'ed original file. >

Re: [LyX master] Fix the 'caption inset mess' (bug #4647)

2012-12-31 Thread Georg Baum
Juergen Spitzmueller wrote: > Fix the 'caption inset mess' (bug #4647) You are a hero! I am really happy that this is finally solved now (and I added the needed adjustments in tex2lyx). Georg

Re: lyx-cvs emails -- possible to indicate when containing more than one commit?

2012-12-30 Thread Georg Baum
Scott Kostyshak wrote: > On Sat, Dec 29, 2012 at 11:34 AM, Richard Heck wrote: >> On 12/29/2012 11:15 AM, Scott Kostyshak wrote: >>> >>> On Sat, Dec 29, 2012 at 10:48 AM, Richard Heck wrote: This can be done. It's a matter of updating the script that sends these emails. I'll try t

Re: [LyX master] Add script for automatic toolbar image creation.

2012-12-22 Thread Georg Baum
Kornel Benko wrote: > Do you plan to add the created images to git? Not all of them, but I prepared a submit for the stmary ones. > If I call the script, I get 757 .png files. But I have problems with the > data. > > 1.) in our lib/images/math are only 530 images. > 2.) If I compare the newly c

Re: tex2lyx tests: invalid lyx

2012-12-15 Thread Georg Baum
Kornel Benko wrote: > Am Samstag, 15. Dezember 2012 um 14:49:04, schrieb Georg Baum > >> Kornel Benko wrote: >> >> > Do we really need the '-roundtrip' parameter for tex2lyx? >> >> It is probably not really needed, but it is useful if you

Re: [DECISION] final layout patches for branch

2012-12-15 Thread Georg Baum
Uwe Stöhr wrote: > I was very upset because I currently invest a huge portion of my spare > time for LyX and I think that everybody should get the time to argue. I > currently cannot write posts every day. Moreover, before we change > something fundamental like our layout update policy, we should

Re: tex2lyx tests: invalid lyx

2012-12-15 Thread Georg Baum
Kornel Benko wrote: > We are not checking the .tex-file, but only the resulting .lyx file. > Am I missing something? No, this is correct. > Do we really need the '-roundtrip' parameter for tex2lyx? It is probably not really needed, but it is useful if you want to do some manual comparisons. Al

Re: tex2lyx tests: invalid lyx

2012-12-15 Thread Georg Baum
Kornel Benko wrote: > The provided tex-file > "test-insets.tex" > is not compilable with pdflatex. (Texlive 2012) Yes. Some time ago I started to make it compilable and added a bunch of packages, but ran out of time. Some other test files are not compilable either. This ism not nice, but since

Re: [Patch] tex2lyx: better defaults for preamble settings

2012-12-15 Thread Georg Baum
Jean-Marc Lasgouttes wrote: > Hi, > > Is there a reason why I should not commit this patch. Georg, Uwe, I > think the question is directed to you. > > JMarc The defaults in tex2lyx do not need to match the LyX defaults IMHO. They were designed so that the .tex->.lyx->.tex roundtrip generates a

Re: Export-to fails for xhtml

2012-12-12 Thread Georg Baum
Tommaso Cucinotta wrote: > As in the prior patch, an alternative to this problem at all is the one to > simply remove the "--fg" and "--bg" options to the command-line invoking > the external command. > > Someone who knows this part of the code should advise on the best > solution. I used to kno

Re: [DECISION] final layout patches for branch

2012-12-10 Thread Georg Baum
Uwe Stöhr wrote: > Is it a consensus if one developer is not fine with that? What about the > users? Have you ever thought about them and/or asked them? (Se my first > mail from today.) If you want to kick me out of the development please > tell me but this is not fair! Nobody wants that. I very

Re: [patch] final layout patches for branch

2012-12-07 Thread Georg Baum
Uwe Stöhr wrote: > Am 06.12.2012 21:21, schrieb Georg Baum: > >> Definitely. One big advantage of LyX is that you do not need to think if >> you switch between minor point releases. > > But who does this? > Have you have downgraded your LyX from e.g. 1.6.8 back to

Re: [patch] final layout patches for branch

2012-12-06 Thread Georg Baum
Uwe Stöhr wrote: > Am 05.12.2012 08:21, schrieb Jürgen Spitzmüller: > >> Do you introduce new layouts? This would be a file format change in >> the strict sense (since LyX 2.0.4 would not be able to handle these >> new layouts). Definitely. One big advantage of LyX is that you do not need to thi

Re: 'tex2lyx' vs 'lyx -E lyx'

2012-12-02 Thread Georg Baum
Kornel Benko wrote: > Saving any of the lyx-test-files with current lyx gives me a different > contents, although the format-line will stay the same. > > Besides the differences on empty lines and the creation line, shouldn’t it > be the same? Yes. Looks like a bug. Georg

Re: [LyX master] Support out of source tests in tex2lyx test runner

2012-12-02 Thread Georg Baum
Kornel Benko wrote: > I am not sure, I understand. This patch effectively converts > 1.) provided lyx-files (test references) to new file format, this should > not be controversial 2.) generated lyx-files (with tex2lyx). This should > not be needed > > so only the second point is unclear. 1.) Ad

Re: Re: Re: [LyX master] Support out of source tests in tex2lyx test runner

2012-11-29 Thread Georg Baum
Kornel Benko wrote: > Hi Georg, > how about automatic conversion of of lyx files before checking for > difference? > > Something like the attached works for me. And does not depend on format of > provided lyx-files. This makes the tests less effective. If somebody updates the file format, he sh

Re: Why do CVS::file_ and SVN file_ exist?

2012-11-13 Thread Georg Baum
Pavel Sanda wrote: > Georg Baum wrote: >> What do you prefer? > > No hard opinion, but if you are going to ditch it please make sure > that owner_ object is living all the time and does not get invalid for > a critical moment when reloading buffer or so (this kind of robustn

Why do CVS::file_ and SVN file_ exist?

2012-11-07 Thread Georg Baum
I am currently cleaning up a patch that implements LFUN_VC_RENAME and LFUN_VC_COPY for submission. I implemented it originally for my wife in 1.6, and do not want to port it on each upgrade;-) During the cleanup I stumbled over the file_ member of the CVS and SVN classes. RCS does not have it, a

Re: support for xdg-open (Linux) and open (Mac)

2012-11-05 Thread Georg Baum
Jean-Marc Lasgouttes wrote: > You have seen in the 2008 discussion what the problems were at the time. > It might be worth revisiting this problem now and see whether > run-mailcap or xdg-open could be used these days. IMHO it is clear that xdg-open should be used in the long run, but not as lon

Re: Compilers used for compiling LyX?

2012-10-29 Thread Georg Baum
Lars Gullik Bjønnes wrote: > Jean-Marc Lasgouttes writes: > > | I meant gcc 4.4. Qt is 4.6 of course. > > When does support of 10.04 stop? > > IMHO, when a distro goes into not-supported-mode we should not have to > care about it anymore. Of course the LTS distros pose a problem in that > resp

Re: [LyX master] Add support for the URW Classico (Optima) LaTeX font

2012-10-24 Thread Georg Baum
Jürgen Spitzmüller wrote: > This fails for me with > > /usr/bin/python "./test/runtests.py" ./tex2lyx ../../../lib/scripts > "./test" Traceback (most recent call last): > File "./test/runtests.py", line 84, in > main(sys.argv) > File "./test/runtests.py", line 32, in main > from lyxp

Re: [LyX master] Add support for the URW Classico (Optima) LaTeX font

2012-10-23 Thread Georg Baum
Juergen Spitzmueller wrote: > The branch, master, has been updated. > > - Log - > > commit db1c1389e3caff69477a597d2e499a8115058150 > Author: Juergen Spitzmueller > Date: Sun Oct 21 18:55:24 2012 +0200 > > Add support for th

Re: [LyX master] Acknowledge additional \lang command

2012-10-06 Thread Georg Baum
Kornel Benko wrote: > Still problems on tex2lyx. I noticed that as well. It works now with the latest version. Georg

Re: Re: Tests in src/support/tests

2012-10-06 Thread Georg Baum
Kornel Benko wrote: > Am Freitag, 5. Oktober 2012 um 17:57:10, schrieb Jean-Marc Lasgouttes > >> Le 05/10/2012 17:50, Kornel Benko a écrit : >> > No, cosmetics reasons only. Nothing should mess source tree if one >> > wants to build outside the source. This way there may be any number of >> > bui

Re: Re: [LyX master] Support out of source tests in tex2lyx test runner

2012-10-03 Thread Georg Baum
Kornel Benko wrote: > I get following diffs e.g. for file XeTeX-polyglossia.lyx > ... > --- /usr/src/lyx/lyx-git/src/tex2lyx/test/XeTeX-polyglossia.lyx.lyx > Mon Jul 30 09:33:17 2012 > +++ /usr/BUILD/BuildLyxGit/src/tex2lyx/test/XeTeX-polyglossia.lyx > Wed Oct 3 15:54:00 2012 @@ -1,5 +1

Re: Re: [LyX master] Support out of source tests in tex2lyx test runner

2012-10-03 Thread Georg Baum
Kornel Benko wrote: > Cmake build already copied the needed files. So now its is done twice. > I will try to correct it. Oh, I did not know. I implemented the copyfiles option in tex2lyx because it is also useful outside a testing context, and you do not need to tell the build system a list of

Re: [LyX master] Support out of source tests in tex2lyx test runner

2012-10-03 Thread Georg Baum
It took far too long, but finally it is possible to run the tex2lyx tests without overwriting any files. autotools "make check" still overwrites the files (this is still a useful thing to have if you want to update the references), but I will add another target for that and change "make check"

Re: [LyX master] Add very simple tex2lyx regression test suite.

2012-08-05 Thread Georg Baum
Kornel Benko wrote: > Georg, do you still plan to make it work outside of source directory? Yes. However, I was on vacation, and now my schedule is quite crowded, so it will still take some time. Georg

Re: [LyX 2.0.x] polyglossia tex2lyx support also for branch

2012-07-10 Thread Georg Baum
Guenter Milde wrote: > If I understand right, (american) English is the default language for > LaTeX, but not for CJK-LaTeX. I believe it is the same (american english) when using CJK.sty (or what did you mean by CJK-LaTeX?). Dou you have a documentation pointer? > Besides this, there are other

Re: [LyX 2.0.x] polyglossia tex2lyx support also for branch

2012-07-10 Thread Georg Baum
Uwe Stöhr wrote: > Am 08.07.2012 22:18, schrieb Georg Baum: > >> Please forget about LyX for a moment. As far as LaTeX is concerned, >> english is the only language that explicitly appears in a LaTeX command >> (or rather the preamble in this case) in this document. All o

Re: Re: [LyX master] Add very simple tex2lyx regression test suite.

2012-07-10 Thread Georg Baum
Kornel Benko wrote: > OK, OK, but I am so unhappy about overwriting, that I hesitate to commit. > This would be the first target in cmake overwriting source. I really had > hard time to make po-translations not overwriting anything, and now this > ... I do not really understand your general conce

Re: [LyX 2.0.x] polyglossia tex2lyx support also for branch

2012-07-08 Thread Georg Baum
Uwe Stöhr wrote: > Am 08.07.2012 21:11, schrieb Georg Baum: > >> but CJK.lyx cannot be exported. > > I can export it without problems to pdflatex. Does not work either. It fails to encode 0x6587 in both cases. >> I also don't understand >> the note in CJK.ly

Re: [LyX master] Add very simple tex2lyx regression test suite.

2012-07-08 Thread Georg Baum
Kornel Benko wrote: > This test overwrites data in lyx source dir. > Really wanted? Yes (at least for the moment, to get the whole thing started). The advantage is that git tells you if you have changes (be it regressions or wanted changes caused by fixed bugs or file format updates). The disad

Re: [LyX 2.0.x] polyglossia tex2lyx support also for branch

2012-07-08 Thread Georg Baum
Uwe Stöhr wrote: > Am 03.07.2012 20:22, schrieb Georg Baum: > >>> I tested my commits as best as I could do. I also committed testfiles >>> and updated existing ones. >> >> The new files cannot be exported by LyX again, so they do not show that >> m

Re: [LyX 2.0.x] polyglossia tex2lyx support also for branch

2012-07-03 Thread Georg Baum
Uwe Stöhr wrote: > I missed that. But I already sent you a private mail. Maybe this was also > lost. I only got the one you sent to the list as well. If you sent another one please resend it. >> but I really >> dislike the latest tex2lyx developments: A special quick-fix gets >> committed, ofte

Re: [LyX 2.0.x] polyglossia tex2lyx support also for branch

2012-07-03 Thread Georg Baum
Jürgen Spitzmüller wrote: > Well, Georg, on the other hand, please realize that Uwe is currently > the only person actively working on tex2lyx, and he really tries hard > to get things on par. Not everyone has the same coding skills (I > certainly count myself to the lower rank of the scale), and

Re: [LyX 2.0.x] polyglossia tex2lyx support also for branch

2012-07-01 Thread Georg Baum
Uwe Stöhr wrote: > Am 30.06.2012 15:29, schrieb Jürgen Spitzmüller: > >> BTW I still don't get why you have all these lists about polyglossia >> languages when we have all the information accessible in languages. This was needed as long as tex2lyx could produce a different file format than the

Re: [LyX master] Merge branch 'master' of git.lyx.org:lyx

2012-06-25 Thread Georg Baum
Uwe Stöhr wrote: > Am 23.06.2012 04:49, schrieb Pavel Sanda: > >> What about using structure where these two list are joined via coupled >> entries? > > This is less easy to implement. We could skip the cases where language and > coded language is the same, but I don't know if this is worth it.

Re: [LyX master] Fix bug #8153: Update to lib/unicodesymbols

2012-05-14 Thread Georg Baum
Guenter Milde wrote: > On 2012-05-13, Georg Baum wrote: >> Vincent van Ravesteijn wrote: > >>> -0x00b5 "\\textmu" "textcomp" "force" "\\mu" "" # µ MICRO SIGN >>> +0x00b5 "\\textmu" "textcomp" &quo

Re: [patch] Load footmisc.sty instead of using copied code from obsolete stblftnt.sty

2012-05-14 Thread Georg Baum
Jean-Marc Lasgouttes wrote: > I did it like that at the time because I feared clashes with other uses > of the package footmisc. With your current code, for example, it is not > possible to load footmisc with another set of options. I suspect this is > going to break a few documents. I see. > I

[patch] Load footmisc.sty instead of using copied code from obsolete stblftnt.sty

2012-05-13 Thread Georg Baum
While investigating bug 8116 I saw that LyX ships a code fragment of stblfnt.sty instead of loading the successor package footmisc.sty (with the 'stable' option, see http://comments.gmane.org/gmane.comp.tex.ctan.announce/4290). Why is that the case? If nobody objects I will submit the attached

Re: [LyX master] Fix bug #8116.

2012-05-13 Thread Georg Baum
Georg Baum wrote: > commit 3ded1c8506bbadceea4b5da5bd553a788a1dce93 > Author: Georg Baum > Date: Sun May 13 18:41:51 2012 +0200 > > Fix bug #8116. > > The string we parse as name may contain backslashes if \csname ... > \endcsname is used. Therefore we

Re: [LyX master] Fix bug #8153: Update to lib/unicodesymbols

2012-05-13 Thread Georg Baum
Vincent van Ravesteijn wrote: > @@ -63,7 +63,7 @@ > 0x00b2 "\\texttwosuperior""textcomp" "force" "{{}^2}" "" # ² > SUPERSCRIPT TWO > 0x00b3 "\\textthreesuperior" "textcomp" "force" "{{}^3}" "" # ³ > SUPERSCRIPT THREE > 0x00b4 "\\textasciiacute" "textcomp" "" # ACUTE ACCEN

Re: [RFC] add sub/superscripts to text style dialog

2012-05-06 Thread Georg Baum
Uwe Stöhr wrote: > Am 26.04.2012 21:18, schrieb Georg Baum: > >>> Because the script has to be changed in most cases too. For example in >>> my report I have to switch for subscripts also to sansserif for >>> readability reasons. >> >> This works

Re: [RFC] add sub/superscripts to text style dialog

2012-04-26 Thread Georg Baum
Uwe Stöhr wrote: > Am 23.04.2012 02:10, schrieb Richard Heck: > >> Why is it easier to do this than to highlight the text and hit >> "Insert>Formatting>Subscript", which is my case is just Alt-I, O, B? > > Because the script has to be changed in most cases too. For example in my > report I have

Re: layouttranslations: correct a German and English translation

2012-04-26 Thread Georg Baum
Uwe Stöhr wrote: > Am 24.04.2012 21:13, schrieb Georg Baum: > > "Listings" implies a thing similar to "Figures". But in this case it is > not about several listings but about a list of all listings in the > document. I mean we already use "List of figure

Re: layouttranslations: correct a German and English translation

2012-04-24 Thread Georg Baum
Pavel Sanda wrote: > Jürgen Spitzmüller wrote: >> Am Montag 23 April 2012, 01:34:27 schrieb uwestoehr: >> > - "Listings[[List of Listings]]" "Listings" >> > + "Listings[[List of Listings]]" "Liste der Listings" >> >> If you insist on translating the "list" part (I prefer the former >>

Re: [patch] native support for list of listings

2012-04-24 Thread Georg Baum
Pavel Sanda wrote: > BTW Georg, is make ../lib/layoutranslation supposed to update List of > Listings translation? It seems not to work here. Yes. But it does not play well wil updates of lib/layoutranslations via git. I.e. if you change a translation, and then pull in a change of lib/layoutran

Re: [RFC] add sub/superscripts to text style dialog

2012-04-24 Thread Georg Baum
Richard Heck wrote: > On 04/22/2012 07:23 PM, Uwe Stöhr wrote: >> The last days I had to write a report containing subscripts in almost >> every paragraph and got annoyed that one cannot set some text as a >> sub- or superscript via the text style dialog. I therefore propose to >> enhance the text

Re: [lyx/refs/heads/master] Correct description of layout translation.

2012-04-19 Thread Georg Baum
Pavel Sanda wrote: > I just spent some time to resolve conflicts with this part of > Customization.lyx. Sorry for that. > Given that we use LyX 2.0.x with stable file format to > edit the file it would be interesting where these few guys are coming > from. Was it introduced at a2e8cb758b7026 by

Re: Re: [lyx/refs/heads/master] Native support for \lstlistoflistings

2012-04-19 Thread Georg Baum
Kornel Benko wrote: > This was the first thing I did. But nothing changed. > Now, after compile of lyx again, it's working. I thought, we use the > layouttranslations directly, without need to recompile. Yes, it is used directly. Maybe an outdated installed version was picked up? Georg

Re: [lyx/refs/heads/master] Let lyx2lyx create a proper TOC inset

2012-04-18 Thread Georg Baum
rgheck wrote: > So far as I can see, this only changed > lib/examples/localization_test.lyx. Was that intended? Yes. Open the file in LyX, and you will see the listings TOC inset. Georg

Re: [lyx/refs/heads/master] Native support for \lstlistoflistings

2012-04-18 Thread Georg Baum
Kornel Benko wrote: > It is nice working, but does not translate "Listings" (value of > lstlistlistingname). This is because lib/layouttranslations does not yet contain the newly translated names. If you update this file with your latest translations of sk.po (IIRC cmake supports that already),

Re: [lyx/refs/heads/master] Native support for \lstlistoflistings

2012-04-18 Thread Georg Baum
Richard Heck wrote: > Perhaps, but I'm not sure I fully understand what your patch was > supposed to do. So here's a patch of mine that changes the layout names. > Can you tell me if it works right? If you change InsetInclude::layoutName() as well it works fine. The patch itself did only support

Re: [lyx/refs/heads/master] Native support for \lstlistoflistings

2012-04-17 Thread Georg Baum
Richard Heck wrote: > I didn't notice it before (probably since we don't get diffs), but it > might be worth having the layout name here be "Include:Listings" for > consistency with other insets. Ultimately, we might also want to have > "Include:Input", etc. Is this just a convention, or is this

Re: [lyx/refs/heads/master] Fix undo of entering \hline

2012-04-17 Thread Georg Baum
Jean-Marc Lasgouttes wrote: > OK, a new version (first the reversion, and then the actual patch). I do > not see why we could not always use recordUndoInset, except that it may > use more memory. Excellent, this works fine! Thank you very much for the help. Georg

Re: [lyx/refs/heads/master] Fix undo of entering \hline

2012-04-16 Thread Georg Baum
Jean-Marc Lasgouttes wrote: > Here is what I would do after reverting 1fa39e1f953434. Does that seem > to work for you? THe idea is to only record undo (inset) once before the > insertion of the unknown inset. It works, but not for pasting. I understand the idea, however the problem is that you

Re: [lyx/refs/heads/master] Fix undo of entering \hline

2012-04-12 Thread Georg Baum
Jean-Marc Lasgouttes wrote: > What was the recipe that lead to a problem? revert 1fa39e1f953434, create an equation array and enter \hline in any cell with the keyboard. This will produce a horizontal line, but undo does not work afterwards. If you only revert the undo group part of 1fa39e1f953

Re: [patch] native support for list of listings

2012-04-12 Thread Georg Baum
Pavel Sanda wrote: > Georg Baum wrote: >> \addto\captions$$lang{\renewcommand{\lstlistlistingname} {_(Listings[[List >> of Listings]])}} > > Why don't we use directly "List of Listings"? All other linstings have > this form. Pavel The reason is given in

[patch] native support for list of listings

2012-04-10 Thread Georg Baum
When working on the listings translation I noticed that \lstlistoflistings is not supported by LyX, although almost everything is already there. The attached patch implements this. Is it OK to go in (+ file format change of course)? Georgdiff --git a/lib/layouts/stdinsets.inc b/lib/layouts/std

Re: [lyx/refs/heads/master] Fix undo of entering \hline

2012-04-10 Thread Georg Baum
Jean-Marc Lasgouttes wrote: > Two things that bother me: > > 1/ all dispatch actions initiated in the main should be wrapped into an > undogroup. Therefore I am not sure why extra work is necessary. I don't know either, but it does not work without. > 2/ It looks like you open groups in one fun

Re: [lyx/refs/heads/master] Fix bug #6936.

2012-03-25 Thread Georg Baum
Enrico Forestieri wrote: > Georg, the entered \hline cannot be undone. You are right. It can be undone if I insert a cur.recordUndoInset(); call in InsetMathGrid::interpretString(), but then I have two steps in the undo stack, the first one doing nothing. The first step is created in InsetMath

Re: [lyx/refs/heads/master] Extend the notermination flag to math as well.

2012-03-25 Thread Georg Baum
b...@lyx.org wrote: > Author: Georg Baum > Date: Sun, 25 Mar 2012 15:36:00 +0200 > New Commit: 1a6c599917355743a868c20a0b62b5f4c47c8294 > URL: > http://git.lyx.org/?p=lyx.git;a=commit;h=1a6c599917355743a868c20a0b62b5f4c47c8294 > > Log: > Extend the notermination flag to

Re: conversion of suit characters from utf to math seems broken between 2.0.2 and 2.0.3

2012-03-25 Thread Georg Baum
Guenter Milde wrote: > On 2012-03-20, Georg Baum wrote: > >> I do not believe a per-document solution is good. Why should a particular >> conversion only be valid for one document? > > Just like other settings, the available Unicode replacements can depend > on docume

Re: conversion of suit characters from utf to math seems broken between 2.0.2 and 2.0.3

2012-03-20 Thread Georg Baum
Vincent van Ravesteijn wrote: > I don't know what is supposed to happen to these characters. Basically nothing (see below). >> Like the other ca. 1000 out of 2751 Unicode math-related symbols without >> (traditional) LaTeX support, they cannot be auto-converted to a LaTeX >> command by LyX.

Current git workflow

2012-03-20 Thread Georg Baum
I have to admit that I am confused. There have been lots of discussions and proposals, but to me it is neither clear whether a long term workflow has been agreed on, nor how the current workflow is supposed to look like. For example, what am I supposed to do if I want to fix the latest file form

Re: r40785 - in lyx-devel/trunk/src: . tex2lyx

2012-03-13 Thread Georg Baum
Uwe Stöhr wrote: > Am 10.03.2012 13:53, schrieb Georg Baum: > >> Yes. Unfortunately this is not done, since special properties of >> characters like % are already handled in the tokenize phase. For example, >> >> \begin{verbatim} >> x >> %\end{verba

Re: [patch] fix #8066 for branch - tex2lyx support for listings

2012-03-13 Thread Georg Baum
Uwe Stöhr wrote: > Am 10.03.2012 13:54, schrieb Georg Baum: > >> I would not put it in branch right now (see my other mail for details). I >> would rather like to see a better aproach (reading with changed catcodes >> or character by character) mature a bit in trunk

Re: citation bug?

2012-03-13 Thread Georg Baum
Julien Rioux wrote: > Down the road, it would be nice to detect the citation engine by using > whatever trick is used right now to detect that a specific \usepackage > line should add a specific module, instead of hardcoding a list of > modules. I don't know enough about this to do it just yet, bu

Re: Re: r40902 - lyx-devel/trunk/lib

2012-03-13 Thread Georg Baum
Kornel Benko wrote: > My mistake (bad question). I wanted to know why 755 is needed for the .py > files, since we are calling them explicitly with python. Nonetheless I > changed it for cmake too. If somebody wants to call them in his own script. I also believe that some linux distros have polic

Re: r40891 - in lyx-devel/trunk/src: . insets

2012-03-13 Thread Georg Baum
Jürgen Spitzmüller wrote: > Georg Baum wrote: >> > Or better we add another flag "notermination" for commands that do not >> > need to be terminated. >> >> Sounds good. Another benefit: It would also allow to keep the logic in >> tex2lyx and lyx

Re: citation bug?

2012-03-13 Thread Georg Baum
Julien Rioux wrote: > On 10/03/2012 8:20 AM, Georg Baum wrote: >> The roundtrip output of one of the tex2lyx tests has changed recently: >> >> tex2lyx -roundtrip src/tex2lyx/test/test-insets.tex >> >> will produce src/tex2lyx/test/test-insets.lyx.lyx and >>

Re: Git workflow #2

2012-03-13 Thread Georg Baum
Pavel Sanda wrote: > From what I see there are roughly 3 kinds of things committed into trunk > as far as time and testing is concerned > > 1. Short-time one shots, e.g. fixing small glitches, doc changes, > translations. >Sometimes can take few minutes to produce and once committed there is

Re: r40891 - in lyx-devel/trunk/src: . insets

2012-03-10 Thread Georg Baum
Jürgen Spitzmüller wrote: > Or better we add another flag "notermination" for commands that do not > need to be terminated. Sounds good. Another benefit: It would also allow to keep the logic in tex2lyx and lyx automatically synchronized. >> I am also unsure if this change neds adaptions in tex

citation bug?

2012-03-10 Thread Georg Baum
The roundtrip output of one of the tex2lyx tests has changed recently: tex2lyx -roundtrip src/tex2lyx/test/test-insets.tex will produce src/tex2lyx/test/test-insets.lyx.lyx and src/tex2lyx/test/test- insets.lyx.tex. If you compare these files with the ones created about 3 weeks ago, you'll get i

Re: r40785 - in lyx-devel/trunk/src: . tex2lyx

2012-03-10 Thread Georg Baum
Uwe Stöhr wrote: > While doing this I stumbled of a tex2lyx bug with listings: > http://www.lyx.org/trac/ticket/8065 > > The solution would be the same as I now did for verbatim. > What do you think? I agree (once the verbatim support is improved). > I also found out that listings are currently

Re: [patch] fix #8066 for branch - tex2lyx support for listings

2012-03-10 Thread Georg Baum
Richard Heck wrote: > On 03/05/2012 05:26 PM, Uwe Stöhr wrote: >> Richard, can the attached patch go to branch? >> > Can someone else comment on this? I don't know tex2lyx at all. I would not put it in branch right now (see my other mail for details). I would rather like to see a better aproach

Re: r40785 - in lyx-devel/trunk/src: . tex2lyx

2012-03-10 Thread Georg Baum
Uwe Stöhr wrote: > Am 04.03.2012 22:47, schrieb Jean-Marc Lasgouttes: > >> The point that Georg wanted to make is that we know what the correct >> solution is: reset all catcodes in the parser when we are in verbatim, or >> just read character by character until we find \end{verbatim}. > > I'm n

Re: r40902 - lyx-devel/trunk/lib

2012-03-10 Thread Georg Baum
Kornel Benko wrote: >> --- lyx-devel/trunk/lib/Makefile.am Sat Mar 10 11:46:14 2012 (r40901) >> +++ lyx-devel/trunk/lib/Makefile.am Sat Mar 10 12:03:44 2012 (r40902) >> @@ -1665,6 +1665,6 @@ >> >> install-data-hook: >> $(CHMOD) 755 $(DESTDIR)$(pkgdatadir)/configure.py >> -

Re: r40891 - in lyx-devel/trunk/src: . insets

2012-03-10 Thread Georg Baum
sp...@lyx.org wrote: > Modified: lyx-devel/trunk/src/Paragraph.cpp > == > --- lyx-devel/trunk/src/Paragraph.cpp Thu Mar 8 20:14:48 2012 (r40890) > +++ lyx-devel/trunk/src/Paragraph.cpp Fri Mar 9 10:05:13 2012

Re: r40785 - in lyx-devel/trunk/src: . tex2lyx

2012-03-01 Thread Georg Baum
Uwe Stöhr wrote: > Am 28.02.2012 22:11, schrieb Georg Baum: > >> Your test code in test-structure.tex fails already. LyX complains like >> this: >> >> Paragraph ended in line 1032 >> Missing \end_layout. > > Strange that I don't get this. All my

Re: Server back up again

2012-03-01 Thread Georg Baum
Lars Gullik Bjønnes wrote: > The switch went almost without problems and everything should now be > up again. And the new server feels much quicker. Thanks! Georg

Re: Re: Re: Re: Trunk: creating new documents broken

2012-02-28 Thread Georg Baum
Kornel Benko wrote: > This cured it for me. > (The new magic code is enclosed in "if (filename.exists()) " Thanks. I have to admit that I did not test with new documents (they tend to have not so many graphics insets), but with existing ones. Georg

Re: [patch] a new module for fancyvrb to fix infinite loop bug #7648

2012-02-28 Thread Georg Baum
Uwe Stöhr wrote: > Am 21.02.2012 22:16, schrieb Georg Baum: > >>> With the module I could add >>> tex2lyx support for fancyvrb and thus fix the bug but I'm not sure if >>> this way is the best. Comments are welcome. >> >> Please fix the stan

Re: r40785 - in lyx-devel/trunk/src: . tex2lyx

2012-02-28 Thread Georg Baum
Uwe Stöhr wrote: > Am 21.02.2012 22:09, schrieb Georg Baum: > >> this is far more complicated than what you implemented. Believe me, if it >> was that easy I would have added verbatim support a long time ago. > > I think we could not support verbatim before as we had no

Re: r40789 - in lyx-devel/trunk: . lib lib/doc lib/scripts src src/frontends/qt4 src/frontends/qt4/ui src/graphics src/support

2012-02-24 Thread Georg Baum
Kornel Benko wrote: > Am Dienstag, 21. Februar 2012 um 21:29:45, schrieb b...@lyx.org >> Author: baum >> Date: Tue Feb 21 21:29:44 2012 >> New Revision: 40789 >> URL: http://www.lyx.org/trac/changeset/40789 >> >> Log: >> Use libmagic for file format detection if available. >> > > Adapted to cma

Re: [patch] a new module for fancyvrb to fix infinite loop bug #7648

2012-02-21 Thread Georg Baum
Uwe Stöhr wrote: > The attached module is written to support the Verbatim environment of the > LaTeX-package fancyvrb. I wrote it to be able to fix > www.lyx.org/trac/ticket/7648 > that sends LyX into an infinite loop since tex2lyx cannot handle files > using fancyvrb. tex2lyx can of course not su

Re: r40785 - in lyx-devel/trunk/src: . tex2lyx

2012-02-21 Thread Georg Baum
uwesto...@lyx.org wrote: > Author: uwestoehr > Date: Tue Feb 21 00:38:13 2012 > New Revision: 40785 > URL: http://www.lyx.org/trac/changeset/40785 > > Log: > support for verbatim: step 2: tex2lyx support Uwe, this is far more complicated than what you implemented. Believe me, if it was that ea

Re: [patch] use libmagic for file format detection

2012-02-21 Thread Georg Baum
Jean-Marc Lasgouttes wrote: > Le 20/02/2012 17:47, Richard Heck a écrit : >> In that case, it's obviously an improvement over what we have. >> >> There must be some kind of mime-detection software on Windows, right? I don't know of any. > Or maybe some QMime? It looks like it will appear in qt5,

<    9   10   11   12   13   14   15   16   17   18   >