Re: Status of Master?
On Sunday, 2 January 2022 21.36.22 WET Richard Kimberly Heck wrote: > On 1/2/22 16:15, Pavel Sanda wrote: > > On Mon, Dec 27, 2021 at 11:29:08AM -0500, Richard Kimberly Heck wrote: > >> Where do people think things are now? > > > > If Jose is close to finish ${python} patch it would be good to have it > > in the release. I believe this will trigger bunch of changes needed > > for various distro maintainers and we should get feedback rather soon. > > OK, let me cc José on that. > > Riki I have been thinking about this in the last week. One option would be the one that follows attached. This works but it is not nice in the sense that it works too soon. That means in particular that the $$ {python} is not exposed to the outside. Another option would be instead of doing this in LyXRC.cpp to do it in Converter.cpp and Mover.cpp where supposedly the commands are used. Then we could expose this to users. What am I missing? I wish a happy new year to all. :-) -- José Abíliodiff --git a/lib/configure.py b/lib/configure.py index 7d9b61c3b1..17ef38fc6d 100644 --- a/lib/configure.py +++ b/lib/configure.py @@ -653,7 +653,7 @@ def checkLatex(dtl_tools): if dtl_tools: # Windows only: DraftDVI addToRC(r'''\converter latex dvi2 "%s" "latex,hyperref-driver=dvips" -\converter dvi2 dvi"python -tt $$s/scripts/clean_dvi.py $$i $$o" ""''' % LATEX) +\converter dvi2 dvi"$${python} $$s/scripts/clean_dvi.py $$i $$o" ""''' % LATEX) else: addToRC(r'\converter latex dvi"%s" "latex,hyperref-driver=dvips"' % LATEX) # no latex @@ -943,7 +943,7 @@ def checkConverterEntries(): checkProg('an HTML -> LaTeX converter', ['html2latex $$i', 'gnuhtml2latex', 'htmltolatex -input $$i -output $$o', 'htmltolatex.jar -input $$i -output $$o'], rc_entry = [ r'\converter html latex "%%" ""', - r'\converter html latex "python -tt $$s/scripts/html2latexwrapper.py %% $$i $$o" ""', + r'\converter html latex "$${python} $$s/scripts/html2latexwrapper.py %% $$i $$o" ""', r'\converter html latex "%%" ""', r'\converter html latex "%%" ""', '' ]) # @@ -964,8 +964,8 @@ def checkConverterEntries(): ['elyxer.py --html --nofooter --unicode --directory $$r $$i $$o', 'elyxer --html --nofooter --unicode --directory $$r $$i $$o'], rc_entry = [ r'\converter lyx word "%%" ""' ]) if elyxer.find('elyxer') >= 0: - addToRC(r'''\copierhtml "python -tt $$s/scripts/ext_copy.py -e html,png,jpg,jpeg,css $$i $$o"''') - addToRC(r'''\copierwordhtml "python -tt $$s/scripts/ext_copy.py -e html,png,jpg,jpeg,css $$i $$o"''') + addToRC(r'''\copierhtml "$${python} $$s/scripts/ext_copy.py -e html,png,jpg,jpeg,css $$i $$o"''') + addToRC(r'''\copierwordhtml "$${python} $$s/scripts/ext_copy.py -e html,png,jpg,jpeg,css $$i $$o"''') else: # search for HTML converters other than eLyXer # On SuSE the scripts have a .sh suffix, and on debian they are in /usr/share/tex4ht/ @@ -974,17 +974,17 @@ def checkConverterEntries(): 'latex2html -no_subdir -split 0 -show_section_numbers $$i', 'hevea -s $$i'], rc_entry = [ r'\converter latex html "%%" "needaux"' ]) if htmlconv.find('htlatex') >= 0 or htmlconv == 'latex2html': -addToRC(r'''\copierhtml "python -tt $$s/scripts/ext_copy.py -e html,png,css $$i $$o"''') +addToRC(r'''\copierhtml "$${python} $$s/scripts/ext_copy.py -e html,png,css $$i $$o"''') else: -addToRC(r'''\copierhtml "python -tt $$s/scripts/ext_copy.py $$i $$o"''') +addToRC(r'''\copierhtml "$${python} $$s/scripts/ext_copy.py $$i $$o"''') path, htmlconv = checkProg('a LaTeX -> HTML (MS Word) converter', ["htlatex $$i 'html,word' 'symbol/!' '-cvalidate'", "htlatex.sh $$i 'html,word' 'symbol/!' '-cvalidate'", "/usr/share/tex4ht/htlatex $$i 'html,word' 'symbol/!' '-cvalidate'"], rc_entry = [ r'\converter latex wordhtml "%%" "needaux"' ]) if htmlconv.find('htlatex') >= 0: -addToRC(r'''\copierwordhtml "python -tt $$s/scripts/ext_copy.py -e html,png,css $$i $$o"''') +addToRC(r'''\copierwordhtml "$${python} $$s/scripts/ext_copy.py -e html,png,css $$i $$o"''') else: -addToRC(r'''\copierwordhtml "python -tt $$s/scripts/ext_copy.py $$i $$o"''') +addToRC(r'''\copierwordhtml "$${python} $$s/scripts/ext_copy.py $$i $$o"''') # Check if LyXBlogger is installed @@ -1015,9 +1015,9 @@ def checkConverterEntries(): xpath = 'none' global java if xsltproc != '': -addToRC(r'\converter docbook5 epub "python $$s/scripts/docbook2epub.py none none \"' + xsltproc +
Re: Clone issue
On Sat, Jan 01, 2022 at 07:11:38PM +0300, Baris Erkus wrote: > I am having difficulty to clone the repo with the following command: > > git clone git://git.lyx.org/lyx > > or > > git clone git://git.lyx.org/lyx.git Both should work (and do work here). > The error is > > fatal: repository 'https://git.lyx.org/lyx.git/' not found Something in your system transform git:// into https:// (which is not supposed to work). Maybe it's your .gitconfig or something similar? Anyway the unofficial git repo is the way out. Pavel -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Status of Master?
On 1/2/22 16:15, Pavel Sanda wrote: On Mon, Dec 27, 2021 at 11:29:08AM -0500, Richard Kimberly Heck wrote: Where do people think things are now? If Jose is close to finish ${python} patch it would be good to have it in the release. I believe this will trigger bunch of changes needed for various distro maintainers and we should get feedback rather soon. OK, let me cc José on that. Riki -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Why do we add converters in frontends GuiPrefs.cpp?
On Sat, Jan 01, 2022 at 02:05:03PM +0100, Jean-Marc Lasgouttes wrote: > >Does any one knows why we are injecting these calls manually there? > > These are forward search commands. These could probably be done in configure > script instead. Most likely my doing. These are just suggestions in drop-down menu you can use or edit in your settings. I do not see much merit in moving it to configure (they are not automagically used). Pavel -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Status of Master?
On Mon, Dec 27, 2021 at 11:29:08AM -0500, Richard Kimberly Heck wrote: > Where do people think things are now? If Jose is close to finish ${python} patch it would be good to have it in the release. I believe this will trigger bunch of changes needed for various distro maintainers and we should get feedback rather soon. But if that means waiting for next 4 weeks, I'd say lets move... Pavel -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Text entered at different place than cursor
Le 01/01/2022 à 17:29, Kornel Benko a écrit : Am Sat, 1 Jan 2022 17:13:04 +0100 schrieb Jean-Marc Lasgouttes : Le 01/01/2022 à 15:09, Kornel Benko a écrit : Open the example. Close comment. You see the space before the comment. Place cursor behind the space (but before the comment). Open comment => cursor is moved into comment. Forget it. Opening the comment via right-click works as expected. Indeed LyX 2.3 does the same. However I notice that LyX 2.3 does show the space before the opened note, whereas my recent changes hide the space as at a automatic line break. What is the preferred behavior? In fact, it would have been easier to get the 2.3 behavior, so if it is good, I might as well redo the patch. JMarc I'd prefer to see the space if possible. I played with 2.3 and the situation is very weird there: the space is here, but it is skipped with cursor-right. Let's continue the discussion at #12499. https://www.lyx.org/trac/ticket/12449 JMarc -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: [LyX/master] Fix font inside footnote inset
Le 02/01/2022 à 12:59, Jean-Marc Lasgouttes a écrit : Le 01/01/2022 à 19:20, Richard Kimberly Heck a écrit : Thanks! I've been annoyed by this bug for a long time. This is probably good enough for now, but as I wrote somewhere we still have things to figure out eventually, like the HTML situation. As far as the latex output goes, I actually do not understand why we have to care about the enclosing font. We should out put the font tags given in the inset text regardless of what the current tags are. This would make the output code much simpler. Of course, I do not dare to do it :) JMarc -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: [LyX/master] Fix font inside footnote inset
Le 01/01/2022 à 19:20, Richard Kimberly Heck a écrit : On 12/31/21 07:11, Jean-Marc Lasgouttes wrote: commit 0789f2f2ae43742da200a27f10403f4c6a68713d Author: Jean-Marc Lasgouttes Date: Fri Dec 3 12:16:40 2021 +0100 Fix font inside footnote inset An inset that resets its font (like Footnote) does not care at all about enclosing font. Therefore the real starting point is the class default font. This avoid cases where the footnote contents is forced to \normalsize. Thanks! I've been annoyed by this bug for a long time. This is probably good enough for now, but as I wrote somewhere we still have things to figure out eventually, like the HTML situation. JMarc -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel