Re: Bad link for downloads; Apple Silicon

2021-02-23 Thread Stephan Witt
Am 18.02.2021 um 06:56 schrieb list_em...@icloud.com:
> 
> On the LyX download page, I believe the link for macOS Legacy 2.3.6.2 points 
> to the wrong place. The link is
> 
> https://ftp.lip6.fr/pub/lyx/bin/2.3.6/LyX-2.3.6.2+qt5-12-x86_64-cocoa.dmg
> 
> and I think it should be
> 
> https://ftp.lip6.fr/pub/lyx/bin/2.3.6/LyX-2.3.6.2+qt5-legacy-x86_64-cocoa.dmg.
> 
> BTW, what is “legacy?” I gather it is made using an older version of the 
> macOS frameworks. If so, THANK YOU for doing this. My Mac refuses to break 
> and I refuse to buy a new until it does (or Apple Silicon comes in my size) 
> and Apple doesn’t support a newer OS so I’m stuck at macOS 10.11.6.
> 
> Since we’re on the subject, what is the future of LyX on Apple Silicon? 
> Rosetta 2? Native? Qt issues?

There is work in progress to make LyX on Apple Silicon available as native 
application. ATM it should work with Rosetta 2.

Stephan
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: LyX 2.4.0 Alpha 3

2021-02-23 Thread Liviu Andronic
On 2/19/21, Richard Kimberly Heck  wrote:
> A third alpha of LyX 2.4.0 has now been released. It can be found here:
>
> http://ftp.lyx.org/ftp/pub/lyx/devel/lyx-2.4/
>

Ubuntu packages are available on the testing PPA:
https://launchpad.net/~lyx-devel/+archive/ubuntu/daily


Liviu


> As usual with alpha software, this is released for testing purposes
> only. Although many of us have been using it regularly, and it seems to
> be fairly stable, nasty surprises are always a possibility.
>
> One of those, which more or less prevented Alpha 2 from working on
> Windows, should now have been fixed.
>
> If you run into any problems, please report them either on the lyx-devel
> mailing list or on our bug tracker:
>
> https://www.lyx.org/trac/wiki/BugTrackerHome
>
> Riki
>
>
> --
> lyx-users mailing list
> lyx-us...@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
>
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: configure.py assumes "python" command exists

2021-02-23 Thread José Abílio Matos
On Monday, February 15, 2021 3:25:45 PM WET Scott Kostyshak wrote:
> +1
> 
> Thanks for taking a look, José.
> 
> Scott

OK. I have lots of issues on hand but at least this is funny. :-)

One option would be to use some kind of string formatting. Actually since 
curly braces are usually not used in OS we could use the string format syntax 
(that is also used in C++20 format). One example would be:

\converter pdf4   pdf8  "{python} $$s/scripts/convert_pdf.py $$i $$o ebook"...

The lyx could convert internally {python} to the python path. Since lyx 
already has this information, or else it would not call configure.py

If you do not like this option one in the same line as the other 
interpolations that we apply is to use $${python}.

The other option is to replace this in configure.py like in the following 
patch that I have not yet tested.

What do you think?
-- 
José Abíliodiff --git a/lib/configure.py b/lib/configure.py
index 43073e901d..4e08ef6776 100644
--- a/lib/configure.py
+++ b/lib/configure.py
@@ -29,7 +29,10 @@ formatter = logging.Formatter('%(message)s') # only print out the message itself
 console.setFormatter(formatter)
 logger = logging.getLogger('LyX')
 logger.addHandler(console)
-
+interpreter = sys.executable
+if interpreter == '':
+interpreter = "python"
+
 def quoteIfSpace(name):
 " utility function: quote name if it contains spaces "
 if ' ' in name:
@@ -52,7 +55,7 @@ def addToRC(lines):
 add newline at the end of lines.
 '''
 if lines.strip():
-writeToFile(outfile, lines + '\n', append = True)
+writeToFile(outfile, lines.format(python=interpreter) + '\n', append = True)
 logger.debug('Add to RC:\n' + lines + '\n\n')
 
 
@@ -653,7 +656,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 +946,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 +967,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,24 +977,24 @@ 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 

Re: Use dashes (vertically centered) for Beamer's pause LabelString?

2021-02-23 Thread Jürgen Spitzmüller
Am Dienstag, dem 23.02.2021 um 09:50 -0500 schrieb Scott Kostyshak:
> Yes, I think it looked good, but it gives me errors when I do a fresh
> compile:

You can use hyphens in the layout file and translate it to dashes in
en.po

Jürgen



signature.asc
Description: This is a digitally signed message part
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Use dashes (vertically centered) for Beamer's pause LabelString?

2021-02-23 Thread Scott Kostyshak
On Tue, Feb 23, 2021 at 09:36:06AM +0100, Jürgen Spitzmüller wrote:
> Am Montag, dem 22.02.2021 um 23:26 -0500 schrieb Scott Kostyshak:
> > I think I would most prefer something like an em-dash but I
> > don't think we use unicode in the LabelString.
> 
> Did you try?

Yes, I think it looked good, but it gives me errors when I do a fresh compile:

From autotools:
cat qt_l10n.pot layouts_l10n.pot languages_l10n.pot latexfonts_l10n.pot 
encodings_l10n.pot ui_l10n.pot external_l10n.pot formats_l10n.pot 
examples_templates_l10n.pot tabletemplates_l10n.pot | msguniq -o lyx.po
msguniq: input file '-' doesn't contain a header entry with a charset 
specification

From CMake:
/usr/bin/msguniq: input file 
'/home/scott/lyxbuilds/master/CMakeBuild/po/lyx.cat.pot' doesn't contain a 
header entry with a charset specification
po/CMakeFiles/translations.dir/build.make:1372: recipe for target 
'po/lyx.fmt.pot' failed

Scott


signature.asc
Description: PGP signature
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Use dashes (vertically centered) for Beamer's pause LabelString?

2021-02-23 Thread Jürgen Spitzmüller
Am Montag, dem 22.02.2021 um 23:26 -0500 schrieb Scott Kostyshak:
> I think I would most prefer something like an em-dash but I
> don't think we use unicode in the LabelString.

Did you try?

Jürgen



signature.asc
Description: This is a digitally signed message part
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel