Re: r33302 - lyx-devel/trunk/src
Jean-Marc Lasgouttes wrote: Would the attached patch make sense to both of you? I had worked to a smaller patch concerning only regexp, in which I had introduced a REGEXP_CODE, and was using such code in insetAllowed(), and I could see regexp insets inside ERTs and URLs. Probably I can rebase that on your patch, which seems to address also the other LFUN handling issues pointed out by vfr. T.
Edit buffer in external editor
On 2010-02-04, Pavel Sanda wrote: Thanks a lot Pavel, vc-command DR $$p my-editor $$i (with - instead of _ in the command name) works like a charm. This solves a long-standing issue for me. Binding this with the ToolsSettingsKeybindings dialogue failed, however: after saving, the command is truncated to vc-command DR $$p Looking in the generated user.bind file, I found that the whole command is put into quotes. Trying again with escaped quotes: vc-command DR $$p \my-editor $$i\ solved this issue. (Should the keydindings dialogue insert the quotes automatically?) I bound the function to F4. Is there a preferred/usual keybinding for external edit in CUA-aware applications? Günter
Re: r33318 - lyx-devel/trunk/src
Jean-Marc Lasgouttes wrote: Tommaso Cucinotta tommaso.cucino...@sssup.it writes: However, I have to go through all the code, especially with ignore-format off, because I noticed some misbehaviour (probably some white-spaces more/less in the textual exports of insets -- w.r.t. a few months ago). You mean that your code is sensitive to every change we make to latex export? Yikes! Basically, in the current implementation I saved adding a method (and code) to each and every inset, for implementing the search, but all I rely upon is the text-only and latex exports, which were already present in LyX. Also, regular expressions search is implemented recurring to widely available libraries which operate on strings. My plan would be to see a first release with the functionality out, that would provide good feedback on interface, missing features, etc... Then, rework the implementation. T.
Re: [patch] bug 6503: Including self as child document crashes branch
Vincent van Ravesteijn v.f.vanraveste...@tudelft.nl writes: The smart is to check for this before starting a master-child relation. Or to admit that we cannot guard against such relations and make the inset a dummy inset in this case. Unfortunately, the number of explicit uses of INCLUDE_CODE in the code make such encapsulation more difficult. JMarc
Re: How I can add a new button to the tool bar?
Edwin Leuven edwin.leu...@ensae.fr writes: ps. and what would be a better occasion to change the icons than a 2.0 release?! You stole my words ! Stop that. JMarc
Wishlist items - document templates
File-New from Template currently shows only templates in /usr/share/lyx/templates. The dialog ought to have a couple of shortcut buttons: system templates and private templates that goes directly to these two directories. The reason is to have easy access to both the templates that comes with lyx, as well as self-made templates. Navigating the filesystem from one place to another is too cumbersome. I guess some users don't even know about the private template directory. :-/ Putting all templates in a single directory is not a solution either: * /usr/share/lyx/templates is normally not writeable for users, and it should not be either. But this makes it hard to add templates there. Especially for someone who isn't also a sysadmin. * Copying the system templates is not a good solution either. Several users doing that wastes space, and you never know when some system upgrade adds/changes the official templates. There is already a button that goes to the distributed templates, having one that goes to the private templates would be very helpful. Also, having a save as template menu would be nice. It would bring up the save as dialog, showing the user template directory by default. Saving as a template should automatically remove stuff not wanted in a template, i.e. the \fontscheme and \papersize mentioned in section 5.4 in the customization manual. (Those who want a template with a particular papersize can of course save a ordinary document instead.) Helge Hafting
\middle
Dear developers, First of all, thank you for a wonderful piece of software! I have been using LyX for almost two years now, while studying math physics at the university, and I don't know what I would have done without it. I have a request which I think would benefit many people. When writing certain mathematical expressions, such as definitions of sets: \left\{ \frac{x}{y}\middle|x\in A,y\in B\right\} or inner products in physics: \left\langle \varphi\middle|\frac{1}{2}\psi\right\rangle it is necessary to use \middle so that the middle vertical bar will be of appropriate size (the same as the brackets). Even though the code is supported by all LaTeX implementations, and is displayed correctly upon compiling, LyX does not know how to render it. Would it be possible to make LyX understand the \middle code and display the vertical bar correctly? Thank you, Barak
po-files: Geman (old spelling)
Hi, this string is (in branch and trunk) used ( in Preferences-Language Settings-Language-User interface language: ), but is not part of po-files, thus will not be translated in the GUI. Kornel signature.asc Description: This is a digitally signed message part.
\\middle
it is necessary to use \middle so that the middle vertical bar will be of appropriate size Would it be possible to make LyX understand the \middle code and display the vertical bar correctly? This can be implemented, see http://www.lyx.org/trac/ticket/1632 eTeX is now actually part of every LaTeX distribution, so we can indeed start implement \middle. regards Uwe
Re: po-files: Geman (old spelling)
Kornel Benko schreef: Hi, this string is (in branch and trunk) used ( in Preferences-Language Settings-Language-User interface language: ), but is not part of po-files, thus will not be translated in the GUI. Kornel Then you have to do a remerge. Vincent
Re: How I can add a new button to the tool bar?
Uwe Stöhr wrote: durocortorum73-gm...@yahoo.fr schrieb: [...] As I said, at present, my main issue for distribution is the mixing of several licenses. I do not know under which license the whole may be distributed. I have done a significant work (in terms of hours) to shrink 22 and 24 pixels icons to fit in 20, while preserving the aspect, and sometimes I did some pixel work (pdf, ps, dvi words, outline icons, footnote margin note icons). I have no issue in putting my contribution under any license that would be compatible with the original ones. LyX in general only accepts the GPL version 2 or later (and Creative commons (needs to be discussed first on the lyx-devel list)). A little text file explains the history of most icons. I tried to use Tango icons mainly, they are public domain. The part I took from gimp can be easily redone (and will be for consistency I think). I also provide some xcf files for icons that have common parts. Your work is impressive but perhaps too much. The current LyX icons are known by the users and thus shouldn't be changed if possible. I see the problem you mentioned that icons with 24x24 pixels look blurred and I think we should only fix these icons and make them 20x20 icons. Your icons are nevertheless very nice and we should have a discussion about them. I therefore propose to upload them to our Wiki: http://wiki.lyx.org/LyX/Icons I'd prefer not to have this distributed officially as long as I do not understand the potential issues with licenses incompatibilities. For example, I still haven't been able to identify the license of openoffice Tango icons. They may be CC attribution share-alike. Also, can icons based on public domain work (Tango) be licensed under GPL ? I guess so. I'm forwarding this to the lyx-devel list. regards Uwe Best regards, Olivier
Re: po-files: Geman (old spelling)
Am Donnerstag 04 Februar 2010 schrieb Vincent van Ravesteijn: Kornel Benko schreef: Hi, this string is (in branch and trunk) used ( in Preferences-Language Settings-Language-User interface language: ), but is not part of po-files, thus will not be translated in the GUI. Kornel Then you have to do a remerge. I fear, this is only half of the work. Jürgen is often remerging, but this string is still lost. It is found in lib/languages. And the python script for extracting is po/Rules-lyx, but it looks like it were not corectly extracting. Error: Unable to handle line: german german German (old spelling) false iso8859-15 de-alt Changing de-alt into de_alt makes it work though. Vincent Kornel signature.asc Description: This is a digitally signed message part.
Re: about the libintl version in the LyX windows installer
On 2/3/2010 7:34 PM, Uwe Stöhr wrote: I also found other Windows sources of gettext 0.17 for Windows and could compile the intl.dll from the sources. The problem is that my compiled intl.dll won't link with your LyX Windows package and all my attempts to change the source code to make it link failed. Can you therefore please have a look if you are able to use gettext 0.17 for you LyX Windows bundle? Are you sure you actually have gettext code that is compatible with MSVC? I remember gettext 0.15 still included MSVC support code (it was somewhat broken, but I was able to fix it). AFAIK after gettext 0.15 MSVC support was removed so that's why we're still using gettext 0.15. Later versions won't export any functions in the MSVC DLL and therefore won't link. It should definitely be possible to use the gettext 0.15 MSVC support code and update that to 0.17. However, I'm afraid I won't have time for this. If you want to give it a try, a diff between the official gettext 0.15 and my modified gettext 0.15 on the LyX FTP should show what I fixed in 0.15. And you can diff 0.15 and 0.16 to see what MSVC support code was removed. Best regards, Joost
Re: How I can add a new button to the tool bar?
Jean-Marc Lasgouttes wrote: ps. and what would be a better occasion to change the icons than a 2.0 release?! You stole my words ! Stop that. and change menu structure of course :) pavel
Re: Edit buffer in external editor
Guenter Milde wrote: Looking in the generated user.bind file, I found that the whole command is put into quotes. Trying again with escaped quotes: vc-command DR $$p \my-editor $$i\ solved this issue. (Should the keydindings dialogue insert the quotes automatically?) dunno, please put this into bugzilla. pavel
Re: #6498: Regex looks like math.
Tommaso Cucinotta wrote: Is it ok to add a ColorCode for a regexp frame like this ? looks fine (what are all these strings ?) // ColorCode, gui, latex, x11, lyx Index: src/Color.cpp === --- src/Color.cpp(revisione 33318) +++ src/Color.cpp(copia locale) @@ -241,6 +241,7 @@ { Color_buttonhoverbg, N_(button background under focus), buttonhoverbg, #C7C7CA, buttonhoverbg }, { Color_paragraphmarker, N_(paragraph marker), paragraphmarker, grey80, paragraphmarker}, { Color_inherit, N_(inherit), inherit, black, inherit }, +{ Color_regexpframe, N_(regexp frame), regexpframe, Green, regexpframe }, green ? pavel
offtopic blog
Abdel, you're gonna be famous :) http://www.linuxtoday.com/infrastructure/2010020500435OSSW
Re: r33302 - lyx-devel/trunk/src
Jean-Marc Lasgouttes wrote: Would the attached patch make sense to both of you? I had worked to a smaller patch concerning only regexp, in which I had introduced a REGEXP_CODE, and was using such code in insetAllowed(), and I could see regexp insets inside ERTs and URLs. Probably I can rebase that on your patch, which seems to address also the other LFUN handling issues pointed out by vfr. T.
Edit buffer in external editor
On 2010-02-04, Pavel Sanda wrote: Thanks a lot Pavel, vc-command DR $$p "my-editor $$i" (with - instead of _ in the command name) works like a charm. This solves a long-standing issue for me. Binding this with the Tools>Settings>Keybindings dialogue failed, however: after saving, the command is truncated to vc-command DR $$p Looking in the generated user.bind file, I found that the whole command is put into quotes. Trying again with escaped quotes: vc-command DR $$p \"my-editor $$i\" solved this issue. (Should the keydindings dialogue insert the quotes automatically?) I bound the function to F4. Is there a preferred/usual keybinding for "external edit" in CUA-aware applications? Günter
Re: r33318 - lyx-devel/trunk/src
Jean-Marc Lasgouttes wrote: Tommaso Cucinottawrites: However, I have to go through all the code, especially with ignore-format off, because I noticed some misbehaviour (probably some white-spaces more/less in the textual exports of insets -- w.r.t. a few months ago). You mean that your code is sensitive to every change we make to latex export? Yikes! Basically, in the current implementation I saved adding a method (and code) to each and every inset, for implementing the search, but all I rely upon is the text-only and latex exports, which were already present in LyX. Also, regular expressions search is implemented recurring to widely available libraries which operate on strings. My plan would be to see a first release with the functionality out, that would provide good feedback on interface, missing features, etc... Then, rework the implementation. T.
Re: [patch] bug 6503: Including self as child document crashes branch
Vincent van Ravesteijnwrites: > The "smart" is to check for this before starting a master-child relation. Or to admit that we cannot guard against such relations and make the inset a dummy inset in this case. Unfortunately, the number of explicit uses of INCLUDE_CODE in the code make such encapsulation more difficult. JMarc
Re: How I can add a new button to the tool bar?
Edwin Leuvenwrites: > ps. and what would be a better occasion to change the icons than a 2.0 > release?! You stole my words ! Stop that. JMarc
Wishlist items - document templates
"File->New from Template" currently shows only templates in /usr/share/lyx/templates. The dialog ought to have a couple of shortcut buttons: "system templates" and "private templates" that goes directly to these two directories. The reason is to have easy access to both the templates that comes with lyx, as well as self-made templates. Navigating the filesystem from one place to another is too cumbersome. I guess some users don't even know about the private template directory. :-/ Putting all templates in a single directory is not a solution either: * /usr/share/lyx/templates is normally not writeable for users, and it should not be either. But this makes it hard to add templates there. Especially for someone who isn't also a sysadmin. * Copying the system templates is not a good solution either. Several users doing that wastes space, and you never know when some system upgrade adds/changes the official templates. There is already a button that goes to the distributed templates, having one that goes to the private templates would be very helpful. Also, having a "save as template" menu would be nice. It would bring up the "save as" dialog, showing the user template directory by default. Saving as a template should automatically remove stuff not wanted in a template, i.e. the \fontscheme and \papersize mentioned in section 5.4 in the customization manual. (Those who want a template with a particular papersize can of course save a ordinary document instead.) Helge Hafting
\middle
Dear developers, First of all, thank you for a wonderful piece of software! I have been using LyX for almost two years now, while studying math & physics at the university, and I don't know what I would have done without it. I have a request which I think would benefit many people. When writing certain mathematical expressions, such as definitions of sets: \left\{ \frac{x}{y}\middle|x\in A,y\in B\right\} or inner products in physics: \left\langle \varphi\middle|\frac{1}{2}\psi\right\rangle it is necessary to use \middle so that the middle vertical bar will be of appropriate size (the same as the brackets). Even though the code is supported by all LaTeX implementations, and is displayed correctly upon compiling, LyX does not know how to render it. Would it be possible to make LyX understand the \middle code and display the vertical bar correctly? Thank you, Barak
po-files: "Geman (old spelling)"
Hi, this string is (in branch and trunk) used ( in Preferences->Language Settings->Language->User interface language: ), but is not part of po-files, thus will not be translated in the GUI. Kornel signature.asc Description: This is a digitally signed message part.
\\middle
> it is necessary to use \middle so that the middle vertical bar will be > of appropriate size > Would it be possible to make LyX understand the \middle code and > display the vertical bar correctly? This can be implemented, see http://www.lyx.org/trac/ticket/1632 eTeX is now actually part of every LaTeX distribution, so we can indeed start implement \middle. regards Uwe
Re: po-files: "Geman (old spelling)"
Kornel Benko schreef: Hi, this string is (in branch and trunk) used ( in Preferences->Language Settings->Language->User interface language: ), but is not part of po-files, thus will not be translated in the GUI. Kornel Then you have to do a remerge. Vincent
Re: How I can add a new button to the tool bar?
Uwe Stöhr wrote: durocortorum73-gm...@yahoo.fr schrieb: [...] As I said, at present, my main issue for distribution is the mixing of several licenses. I do not know under which license the whole may be distributed. I have done a significant work (in terms of hours) to shrink 22 and 24 pixels icons to fit in 20, while preserving the aspect, and sometimes I did some pixel work ("pdf", "ps", "dvi" words, outline icons, footnote & margin note icons). I have no issue in putting my contribution under any license that would be compatible with the original ones. LyX in general only accepts the GPL version 2 or later (and Creative commons (needs to be discussed first on the lyx-devel list)). A little text file explains the history of most icons. I tried to use Tango icons mainly, they are public domain. The part I took from gimp can be easily redone (and will be for consistency I think). I also provide some xcf files for icons that have common parts. Your work is impressive but perhaps too much. The current LyX icons are known by the users and thus shouldn't be changed if possible. I see the problem you mentioned that icons with 24x24 pixels look blurred and I think we should only fix these icons and make them 20x20 icons. Your icons are nevertheless very nice and we should have a discussion about them. I therefore propose to upload them to our Wiki: http://wiki.lyx.org/LyX/Icons I'd prefer not to have this distributed officially as long as I do not understand the potential issues with licenses incompatibilities. For example, I still haven't been able to identify the license of openoffice Tango icons. They may be CC attribution share-alike. Also, can icons based on public domain work (Tango) be licensed under GPL ? I guess so. I'm forwarding this to the lyx-devel list. regards Uwe Best regards, Olivier
Re: po-files: "Geman (old spelling)"
Am Donnerstag 04 Februar 2010 schrieb Vincent van Ravesteijn: > Kornel Benko schreef: > > Hi, > > this string is (in branch and trunk) used ( in Preferences->Language > > Settings->Language->User interface language: ), but is not part of > > po-files, thus will not be translated in the GUI. > > > > Kornel > > Then you have to do a remerge. I fear, this is only half of the work. Jürgen is often remerging, but this string is still lost. It is found in lib/languages. And the python script for extracting is po/Rules-lyx, but it looks like it were not corectly extracting. Error: Unable to handle line: german german "German (old spelling)" false iso8859-15 de-alt "" Changing de-alt into de_alt makes it work though. > Vincent > Kornel signature.asc Description: This is a digitally signed message part.
Re: about the libintl version in the LyX windows installer
On 2/3/2010 7:34 PM, Uwe Stöhr wrote: I also found other Windows sources of gettext 0.17 for Windows and could compile the intl.dll from the sources. The problem is that my compiled intl.dll won't link with your LyX Windows package and all my attempts to change the source code to make it link failed. Can you therefore please have a look if you are able to use gettext 0.17 for you LyX Windows bundle? Are you sure you actually have gettext code that is compatible with MSVC? I remember gettext 0.15 still included MSVC support code (it was somewhat broken, but I was able to fix it). AFAIK after gettext 0.15 MSVC support was removed so that's why we're still using gettext 0.15. Later versions won't export any functions in the MSVC DLL and therefore won't link. It should definitely be possible to use the gettext 0.15 MSVC support code and update that to 0.17. However, I'm afraid I won't have time for this. If you want to give it a try, a diff between the official gettext 0.15 and my modified gettext 0.15 on the LyX FTP should show what I fixed in 0.15. And you can diff 0.15 and 0.16 to see what MSVC support code was removed. Best regards, Joost
Re: How I can add a new button to the tool bar?
Jean-Marc Lasgouttes wrote: > > ps. and what would be a better occasion to change the icons than a 2.0 > > release?! > > You stole my words ! Stop that. and change menu structure of course :) pavel
Re: Edit buffer in external editor
Guenter Milde wrote: > Looking in the generated user.bind file, I found that the whole command > is put into quotes. Trying again with escaped quotes: > > vc-command DR $$p \"my-editor $$i\" > > solved this issue. (Should the keydindings dialogue insert the quotes > automatically?) dunno, please put this into bugzilla. pavel
Re: #6498: Regex looks like math.
Tommaso Cucinotta wrote: > Is it ok to add a ColorCode for a regexp frame like this ? looks fine > (what are all these strings ?) // ColorCode, gui, latex, x11, lyx > Index: src/Color.cpp > === > --- src/Color.cpp(revisione 33318) > +++ src/Color.cpp(copia locale) > @@ -241,6 +241,7 @@ > { Color_buttonhoverbg, N_("button background under focus"), > "buttonhoverbg", "#C7C7CA", "buttonhoverbg" }, > { Color_paragraphmarker, N_("paragraph marker"), "paragraphmarker", > grey80, "paragraphmarker"}, > { Color_inherit, N_("inherit"), "inherit", "black", "inherit" }, > +{ Color_regexpframe, N_("regexp frame"), "regexpframe", "Green", > "regexpframe" }, "green" ? pavel
offtopic blog
Abdel, you're gonna be famous :) http://www.linuxtoday.com/infrastructure/2010020500435OSSW