Re: DocBook to ePub

2021-03-17 Thread Jean-Marc Lasgouttes
Le 17/03/2021 à 22:07, Pavel Sanda a écrit : JMarc, could you possibly help with those two switches? (Basically just on/off switch for installing files in b673ab0838073c.) I added these two switches now. This is the last touch I had in mind for epub export so I guess we can announce epub

Re: DocBook to ePub

2021-03-17 Thread Pavel Sanda
On Fri, Feb 12, 2021 at 11:52:49PM +0100, Pavel Sanda wrote: > On Mon, Feb 08, 2021 at 08:43:08AM +0100, Pavel Sanda wrote: > > On Sun, Feb 07, 2021 at 11:21:28PM +0100, Thibaut Cuvelier wrote: > > > > 2. There was mention of using system xslt and saxon, but I did not see > > > > any configure

Re: DocBook to ePub

2021-02-12 Thread Pavel Sanda
On Mon, Feb 08, 2021 at 08:43:08AM +0100, Pavel Sanda wrote: > On Sun, Feb 07, 2021 at 11:21:28PM +0100, Thibaut Cuvelier wrote: > > > 2. There was mention of using system xslt and saxon, but I did not see > > > any configure options. Am I correct? BTW: I use autotools. > > > > > > > I have added

Re: DocBook to ePub

2021-02-07 Thread Pavel Sanda
On Sun, Feb 07, 2021 at 11:21:28PM +0100, Thibaut Cuvelier wrote: > > 2. There was mention of using system xslt and saxon, but I did not see > > any configure options. Am I correct? BTW: I use autotools. > > > > I have added the possibility in the script to use non-built-in Saxon or > XSLT.

Re: DocBook to ePub

2021-02-07 Thread Cor Blom
Op 07-02-2021 om 23:21 schreef Thibaut Cuvelier: BibTeX doesn't play a role to generate ePub: to generate the relevant DocBook tags, I rely on LyX' understanding of the .bib file (which typically works very well); the DocBook to ePub conversion seems to support references too. For which

Re: DocBook to ePub

2021-02-07 Thread Thibaut Cuvelier
gt; > this problem? (If it occurs between DocBook and ePub, we can do a bug > > report.) > > It was intro manual and its table 1 one looked garbled in epubreader. > It might well be it's the epubreader fault... > I just tried the generated XHTML files: it's a table, but unstyled. It's

Re: DocBook to ePub

2021-02-07 Thread Thibaut Cuvelier
ing fine. > > I have two questions: > > 1. Bib(la)text references are ignored. Is that not possible, or for > later, or does it need a configuration? > BibTeX doesn't play a role to generate ePub: to generate the relevant DocBook tags, I rely on LyX' understanding of the .bib file (whi

Re: DocBook to ePub

2021-02-07 Thread Pavel Sanda
On Sun, Feb 07, 2021 at 08:14:29PM +0100, Thibaut Cuvelier wrote: > Tables should be supported (unless they contain many strange features). > Maybe the ePub viewer doesn't support the full norm? Which documents have > this problem? (If it occurs between DocBook and ePub, we can do a bug

Re: DocBook to ePub

2021-02-07 Thread Thibaut Cuvelier
On Sun, 7 Feb 2021 at 12:47, Stephan Witt wrote: > Am 07.02.2021 um 06:36 schrieb Thibaut Cuvelier : > > > > On Sat, 6 Feb 2021 at 15:10, Pavel Sanda wrote: > > On Sat, Feb 06, 2021 at 02:49:04PM +0100, Pavel Sanda wrote: > > > Command to execute: > > > "java" -jar >

Re: DocBook to ePub

2021-02-07 Thread Thibaut Cuvelier
oesn't support the full norm? Which documents have this problem? (If it occurs between DocBook and ePub, we can do a bug report.) -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel

Re: DocBook to ePub

2021-02-07 Thread Stephan Witt
Am 30.01.2021 um 04:56 schrieb Thibaut Cuvelier : > > On Sat, 30 Jan 2021 at 01:30, Stephan Witt wrote: > Am 29.01.2021 um 18:38 schrieb Thibaut Cuvelier : > > > > Dear list, > > > > As promised, I started working on ePub output, building upon the new > > DocBook output. > > > > Here is a

Re: DocBook to ePub

2021-02-07 Thread Cor Blom
Op 07-02-2021 om 14:35 schreef Pavel Sanda: On Sun, Feb 07, 2021 at 02:09:03PM +0100, Cor Blom wrote: 2. There was mention of using system xslt and saxon, but I did not see any configure options. Am I correct? BTW: I use autotools. Not provided yet. What package versions of saxon and docbook

Re: DocBook to ePub

2021-02-07 Thread Pavel Sanda
On Sun, Feb 07, 2021 at 02:09:03PM +0100, Cor Blom wrote: > 2. There was mention of using system xslt and saxon, but I did not see any > configure options. Am I correct? BTW: I use autotools. Not provided yet. What package versions of saxon and docbook xslt stylesheets are now in suse

Re: DocBook to ePub

2021-02-07 Thread Cor Blom
Op 29-01-2021 om 18:38 schreef Thibaut Cuvelier: As promised, I started working on ePub output, building upon the new DocBook output. I have build the latest git master on openSUSE and epub export is working fine. I have two questions: 1. Bib(la)text references are ignored. Is that not

Re: DocBook to ePub

2021-02-07 Thread Stephan Witt
Am 07.02.2021 um 06:36 schrieb Thibaut Cuvelier : > > On Sat, 6 Feb 2021 at 15:10, Pavel Sanda wrote: > On Sat, Feb 06, 2021 at 02:49:04PM +0100, Pavel Sanda wrote: > > Command to execute: > > "java" -jar "/home/lyx/lyx/devel/lib/scripts/../scripts/saxon6.5.5.jar" > > Intro.xml

Re: DocBook to ePub

2021-02-07 Thread Kornel Benko
Am Sun, 7 Feb 2021 11:45:33 +0100 schrieb Kornel Benko : > Am Sun, 7 Feb 2021 11:28:04 +0100 > schrieb Kornel Benko : > > > Am Sun, 7 Feb 2021 10:16:41 +0100 > > schrieb Pavel Sanda : > > > > > On Sun, Feb 07, 2021 at 06:36:17AM +0100, Thibaut Cuvelier wrote: > > > > I've just pushed

Re: DocBook to ePub

2021-02-07 Thread Kornel Benko
Am Sun, 7 Feb 2021 11:28:04 +0100 schrieb Kornel Benko : > Am Sun, 7 Feb 2021 10:16:41 +0100 > schrieb Pavel Sanda : > > > On Sun, Feb 07, 2021 at 06:36:17AM +0100, Thibaut Cuvelier wrote: > > > I've just pushed patches for these problems. Quotes are required in some > > > edge cases on

Re: DocBook to ePub

2021-02-07 Thread Kornel Benko
Am Sun, 7 Feb 2021 10:16:41 +0100 schrieb Pavel Sanda : > On Sun, Feb 07, 2021 at 06:36:17AM +0100, Thibaut Cuvelier wrote: > > I've just pushed patches for these problems. Quotes are required in some > > edge cases on Windows, so I added a switch based on the OS (a cleaner > > solution would be

Re: DocBook to ePub

2021-02-07 Thread Pavel Sanda
On Sun, Feb 07, 2021 at 06:36:17AM +0100, Thibaut Cuvelier wrote: > I've just pushed patches for these problems. Quotes are required in some > edge cases on Windows, so I added a switch based on the OS (a cleaner > solution would be to use the subprocess module, but its current API was > added in

Re: DocBook to ePub

2021-02-06 Thread Thibaut Cuvelier
On Sat, 6 Feb 2021 at 15:10, Pavel Sanda wrote: > On Sat, Feb 06, 2021 at 02:49:04PM +0100, Pavel Sanda wrote: > > Command to execute: > > "java" -jar "/home/lyx/lyx/devel/lib/scripts/../scripts/saxon6.5.5.jar" > Intro.xml /home/lyx/lyx/devel/lib/scripts/../docbook/epub3/chunk.xsl >

Re: DocBook to ePub

2021-02-06 Thread Thibaut Cuvelier
On Fri, 5 Feb 2021 at 17:57, Kornel Benko wrote: > Am Thu, 4 Feb 2021 23:21:30 +0100 > schrieb Thibaut Cuvelier : > > ... > > > > If you want to try it outside LyX, first export the document as DocBook 5 > > (say, doc.xml); if Java is available in the PATH, run (with either > Python 2 > > or 3,

Re: DocBook to ePub

2021-02-06 Thread Stephan Witt
Am 06.02.2021 um 15:10 schrieb Pavel Sanda : > > On Sat, Feb 06, 2021 at 02:49:04PM +0100, Pavel Sanda wrote: >> Command to execute: >> "java" -jar "/home/lyx/lyx/devel/lib/scripts/../scripts/saxon6.5.5.jar" >> Intro.xml /home/lyx/lyx/devel/lib/scripts/../docbook/epub3/chunk.xsl >>

Re: DocBook to ePub

2021-02-06 Thread Pavel Sanda
On Sat, Feb 06, 2021 at 02:49:04PM +0100, Pavel Sanda wrote: > Command to execute: > "java" -jar "/home/lyx/lyx/devel/lib/scripts/../scripts/saxon6.5.5.jar" > Intro.xml /home/lyx/lyx/devel/lib/scripts/../docbook/epub3/chunk.xsl > base.dir=/tmp/tmpnc1DfX > docbook2epub fails > sh: 1: java -jar

Re: DocBook to ePub

2021-02-06 Thread Pavel Sanda
On Fri, Feb 05, 2021 at 04:16:11PM +0100, Thibaut Cuvelier wrote: > I've just pushed the relevant commits. I tried tu run epub export on intro manual, but so far unsuccesfully: 1. docbook2epub.py is rnu with 4 parameters here (e.g.: python script_name java Intro.xml Intro.epub) Fixed by

Re: DocBook to ePub

2021-02-06 Thread Pavel Sanda
On Fri, Feb 05, 2021 at 04:16:11PM +0100, Thibaut Cuvelier wrote: > > Could you add section about necessary components for epub export into > > lib/RELEASE-NOTES? > > > > Done in a new commit. Is this good enough? Looks good. Pavel -- lyx-devel mailing list lyx-devel@lists.lyx.org

Re: DocBook to ePub

2021-02-05 Thread Kornel Benko
Am Thu, 4 Feb 2021 23:21:30 +0100 schrieb Thibaut Cuvelier : ... > > If you want to try it outside LyX, first export the document as DocBook 5 > (say, doc.xml); if Java is available in the PATH, run (with either Python 2 > or 3, although it's only really tested with 3.8): > > python

Re: DocBook to ePub

2021-02-05 Thread Thibaut Cuvelier
On Fri, 5 Feb 2021 at 12:00, Pavel Sanda wrote: > On Fri, Feb 05, 2021 at 12:14:45AM +0100, Thibaut Cuvelier wrote: > > > Java dependency is sad news. Is there some bug within xsltproc which we > > > can bump or ask devs to fix it so we don't need to stick with saxon in > > > long term? I looked

Re: DocBook to ePub

2021-02-05 Thread Pavel Sanda
On Fri, Feb 05, 2021 at 12:14:45AM +0100, Thibaut Cuvelier wrote: > > Java dependency is sad news. Is there some bug within xsltproc which we > > can bump or ask devs to fix it so we don't need to stick with saxon in > > long term? I looked at https://gitlab.gnome.org/GNOME/libxslt/ > > and the

Re: DocBook to ePub

2021-02-04 Thread Thibaut Cuvelier
On Sun, 31 Jan 2021 at 10:24, Stephan Witt wrote: > Am 30.01.2021 um 04:56 schrieb Thibaut Cuvelier : > > > > On Sat, 30 Jan 2021 at 01:30, Stephan Witt wrote: > > Am 29.01.2021 um 18:38 schrieb Thibaut Cuvelier : > > > > > > Dear list, > > > > > > As promised, I started working on ePub output,

Re: DocBook to ePub

2021-01-31 Thread Stephan Witt
Am 30.01.2021 um 04:56 schrieb Thibaut Cuvelier : > > On Sat, 30 Jan 2021 at 01:30, Stephan Witt wrote: > Am 29.01.2021 um 18:38 schrieb Thibaut Cuvelier : > > > > Dear list, > > > > As promised, I started working on ePub output, building upon the new > > DocBook output. > > > > Here is a

Re: DocBook to ePub

2021-01-30 Thread Pavel Sanda
On Fri, Jan 29, 2021 at 06:38:30PM +0100, Thibaut Cuvelier wrote: > As promised, I started working on ePub output, building upon the new > DocBook output. Generally looks fine, thanks for the effort! > Here is a script that performs the complete process of taking a DocBook > file and generating

Re: DocBook to ePub

2021-01-29 Thread Thibaut Cuvelier
On Sat, 30 Jan 2021 at 01:30, Stephan Witt wrote: > Am 29.01.2021 um 18:38 schrieb Thibaut Cuvelier : > > > > Dear list, > > > > As promised, I started working on ePub output, building upon the new > DocBook output. > > > > Here is a script that performs the complete process of taking a DocBook

Re: DocBook to ePub

2021-01-29 Thread Stephan Witt
Am 29.01.2021 um 18:38 schrieb Thibaut Cuvelier : > > Dear list, > > As promised, I started working on ePub output, building upon the new DocBook > output. > > Here is a script that performs the complete process of taking a DocBook file > and generating the ePub. It has several