Dutch translation for LyX-2.4

2023-12-29 Thread kzstatis
I noticed that the messages file for LyX-2.4 is only partly translated into
Dutch. I am willing to give it a try. Some preliminary questions:

1.  Is someone else already working on it? I asked the last known
contributor, Niko Strijbol, and he has no plans to do so.
2.  When is the deadline for the po-files for 2.4?
3.  What is the file I should be working from? Is that the file nl.po
from
https://git.lyx.org/?p=lyx.git;a=tree;f=po;h=3e2f90544cba9ca008fd5815c07a48f
132f46ebc;hb=HEAD from 5 Nov 2023?

 

Best,

 

Kees

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


Error when exporting to LyX Archive (zip)

2023-12-06 Thread kzstatis
When exporting to  LyX Archive (zip) in LyX-2.4.0-beta5 on Windows-11, I get
the message "Cannot convert file"; see the attached screen print. It appears
that this is caused by the use of xrange in lyxpak.py; see the attached part
of the log file of LyX running as lyx -dbg all.  In LyX-2.3.7, exporting
works fine.

LyX-2.3 uses Python2, and LyX-2.4 uses Python3. In Python3, xrange has been
removed, and replaced by an extended version of range; see
https://docs.python.org/3/whatsnew/3.0.html#views-and-iterators-instead-of-l
ists

 

Kees

 

 

 



testxp.lyx
Description: application/lyx
BufferParams.cpp (Undo.cpp330): Checking whether document is in a system dir... 
( no
596): --- End of group 7 of buffer 014A8D7EEF00support\FileName.cpp 
(629): Checksumming "
F:/Users/Kees/Documenten/Papers/LyX/Test/Pak/testxp.lyx" 3132205323 lasted 2 ms.
BufferView.cpp (3555Converter.cpp (527): Converting from  lyx to lyxzip
):  *** START DRAWING ***Converter.cpp (681): Calling python -tt 
$$s/scripts/lyxpak.py 
"F:/Users/Kees/Documenten/Papers/LyX/Test/Pak/"/"testxp.lyx"

BufferView.cpp (3600): Strategy: FullScreenUpdate
support\Systemcall.cpp (TextMetrics.cpp265): Running: python -tt "C:/Program 
Files/LyX 2.4/Resources/scripts/lyxpak.py" 
"F:/Users/Kees/Documenten/Papers/LyX/Test/Pak/"/"testxp.lyx"
 (2120): main text redraw pit=0 row=0 full_repaint
BufferView.cpp (3624):   *** END DRAWING ***
BufferView.cpp (611):  Updating scrollbar: height: 1 curr par: 0 default height 
25
BufferView.cpp (627): storing height for pit 0 : 73
Traceback (most recent call last):
  File "C:\Program Files\LyX 2.4\Resources\scripts\lyxpak.py", line 393, in 

argv = [argv_unicode[i].encode('utf-8') for i in xrange(1, argc.value)]
 ^^
NameError: name 'xrange' is not defined. Did you mean: 'range'?
support\Systemcall.cpp (306): Systemcall: 'python -tt "C:/Program Files/LyX 
2.4/Resources/scripts/lyxpak.py" 
"F:/Users/Kees/Documenten/Papers/LyX/Test/Pak/"/"testxp.lyx"' finished with 
exit code 1
Error: Cannot convert file
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


RE: Time stamp is off

2023-06-18 Thread kzstatis
> -Oorspronkelijk bericht-
> Van: lyx-users  Namens R. H. van der Gaag
> Verzonden: zondag 18 juni 2023 15:10
...
> On 18 Jun 2023, at 15:01, Maria Gouskova  wrote:
> 
> > On Sun, Jun 18, 2023 at 7:22 AM R. H. van der Gaag
>  wrote:
> > Hi all,
> > I noticed the time stamp on tracked changes is two hours off. Solutions 
> > found
> online seem to fail. Is there a way to get correct time stamps?
> >
> > I cannot reproduce this here--my time stamps look correct. I am using LyX 
> > 2.3.6
> on Linux Mint 21, Cinnamon 5.4.12. (Btw, it helps when you include details of 
> your
> system and installation for questions like this).
> 
> Of course, sorry about that. This is on LyX 2.3.7, macOS 13.4, on an M1 iMac. 
> I am
> in the Amsterdam timezone, and time stamps like \lyxadded{RH}{Sun Jun 18
> 13:00:02 2023} are two hours behind. I worry about this a little bit: time
> discrepancies can cause nasty synchronisation issues sometimes. This has not
> happened so far, but since I am working on two machines, I have to be careful.

For me it also works correctly. I am in the same timezone (Amsterdam), and my 
LyX date format is %c
(Tools / Preferences / Output / General / Dateformat).
Insert / Date gives Sun Jun 18 20:24:41 2023

Kees


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


RE: Broken document

2023-03-15 Thread kzstatis
> -Oorspronkelijk bericht-
> Van: lyx-users  Namens Daniel
> Verzonden: woensdag 15 maart 2023 09:57
> Aan: lyx-users@lists.lyx.org
> Onderwerp: Broken document
> 
> Hi!
> 
> I somehow managed to break one of my documents and cannot see where
> the problem is. I have attached a minimal example that I produced after a
> longer error hunt (because LyX did not give me helpful error feedback on
> this).
> 
> Does someone have an idea how the error occurred or how I might be able
> to fix it?
> 
> The LaTeX error message does not tell me much and LyX did not even point
> me to the position in the document where the error occurred.
> 
> --- LaTeX Error ---
> 
>  lsttxt= \RSlsttxt}
> 
> I've run across a `}' that doesn't seem to match anything.
> For example, `\def\a#1{...}' and `\a}' would produce this error. If you simply
> proceed now, the `\par' that I've just inserted will cause me to report a
> runaway argument that might be the root of the problem. But if your `}' was
> spurious, just type `2' and it will go away.
> 
> --- End ---
> 
> Best,
> Daniel

The LyX-file compiles fine for me on Windows-11 with LyX 2.3.7 and MikTeX.


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


RE: Can you reproduce this bug?

2022-12-06 Thread kzstatis



> -Oorspronkelijk bericht-
> Van: lyx-users  Namens Scott Kostyshak
> Verzonden: zondag 4 december 2022 21:39
> Aan: LyX Users 
> Onderwerp: Can you reproduce this bug?
> 
> Dear all,
> 
> Can you reproduce this bug on your system?
> 
>   https://www.lyx.org/trac/ticket/12435
> 
> It's helpful to know the type of systems on which it can be reproduced.
> Specifically, it will be helpful to figure out whether the bug only
surfaces on
> certain operating systems, and only with certain configurations.
> 
> Here is the recipe to reproduce the bug:
> 
>   1. Maximize (non-fullscreen) the window
>   2. Enter Full screen mode
>   3. Exit Full screen.
> 
> After step 3, does the LyX window return to the state after step (1)?
> i.e., is the window maximized?
> 
> If you try to reproduce it, please state:
> 
> 1. Can you reproduce the bug?
> 2. Your operating system and version number (version number is
>especially helpful for macOS users).
> 3. Copy/paste the info from Help > About. 

1. No. The screen returns to a maximized view.
2. Windows 11 Pro 22H2, build: 22621.900
3.  LyX versie 2.3.6.1
(dinsdag 29 december 2020)
Bibliotheek-map: C:\Program Files\LyX 2.3\Resources\
Gebruikersmap: ~\AppData\Roaming\LyX2.3\
Qt-versie (run-time): 5.15.2
Qt-versie (compile-time): 5.15.2

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


RE: Where is the right place for Biblatex redefinitions?

2022-09-28 Thread kzstatis
>I need to apply some renewcommands to the standard ext-biblatex-verbose-trad3 
>style
>
>% specific settings:
>\DeclareFieldFormat{biblabeldate}{#1}
>\DeclareDelimFormat[bib]{nameyeardelim}{\addperiod\space}
>\DeclareFieldFormat{issuedate}{#1}
>\renewcommand*{\volnumdatedelim}{\addcomma\space}
>\renewcommand{\newunitpunct}{\addcomma\space}
>\renewcommand*{\locpubdelim}{\addcoma\space}
>
>If I put them in the preamble, they seem to be taken into account in the pdf, 
>but they cause a lot of error warnings (sequences of "undefined" >and "already 
>defined") and I would like to avoid that, since my document is very long and I 
>might miss other error warnings. 
>My question is: Is there a better way of inserting these lines? Before the 
>bibliography in TeX code? Or where?

When you make a pdf, LyX first exports the lyx file to latex. It places the 
\usepackage for biblatex after the document specific preamble. So when pdflatex 
sees your preamble settings, it does not know yet biblatex and its commands, 
such as biblabeldate.

This may be solved by enclosing your specific settings in \AtEndPreamble{…}, 
for which you need the package etoolbox:

\usepackage{etoolbox}
\AtEndPreamble{%
\DeclareFieldFormat{biblabeldate}{#1}
\DeclareDelimFormat[bib]{nameyeardelim}{\addperiod\space}
\DeclareFieldFormat{issuedate}{#1}
\renewcommand*{\volnumdatedelim}{\addcomma\space}
\renewcommand{\newunitpunct}{\addcomma\space}
\renewcommand*{\locpubdelim}{\addcoma\space}
}

This ensures that your specific settings are read at the very end of the 
preamble, when biblatex has already been read.

Kees


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


RE: An equivalent to microsot word "Show/Hide"

2022-07-07 Thread kzstatis
>Van: lyx-users  Namens tush via lyx-users
>…
>MS Word has a useful tool called "Show/Hide". According to the documentation 
>(link at the bottom),
>"The Show/Hide ¶ button turns hidden characters like spaces, paragraph 
>markers, or tab marks on and off."
>I am looking for a similar tool or feature in LyX. Can any one point it out 
>for me? I couldn't find it.

I think LyX only has a toggle for end of paragraph markers: Tools / Preferences 
/ Look & Feel / Display / Mark end of paragraphs

Best,

Kees


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