Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #270467 > unrolled thread
| Started by | Curt <curty@free.fr> |
|---|---|
| First post | 2024-06-25 15:30 +0200 |
| Last post | 2024-06-27 17:00 +0200 |
| Articles | 11 — 5 participants |
Back to article view | Back to linux.debian.user
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: ePub or mobi from LaTeX or PDF? (was PDF editors) Curt <curty@free.fr> - 2024-06-25 15:30 +0200
Re: ePub or mobi from LaTeX or PDF? (was PDF editors) Van Snyder <van.snyder@sbcglobal.net> - 2024-06-27 01:50 +0200
Re: ePub or mobi from LaTeX or PDF? (was PDF editors) Richard <rrosner5@gmail.com> - 2024-06-27 10:10 +0200
Re: ePub or mobi from LaTeX or PDF? (was PDF editors) eben@gmx.us - 2024-06-27 14:50 +0200
Re: ePub or mobi from LaTeX or PDF? (was PDF editors) Richard <rrosner5@gmail.com> - 2024-06-27 22:30 +0200
Re: ePub or mobi from LaTeX or PDF? (was PDF editors) Richard <rrosner5@gmail.com> - 2024-06-28 11:50 +0200
Re: ePub or mobi from LaTeX or PDF? (was PDF editors) Max Nikulin <manikulin@gmail.com> - 2024-06-28 04:50 +0200
Re: ePub or mobi from LaTeX or PDF? (was PDF editors) Richard <rrosner5@gmail.com> - 2024-06-28 11:50 +0200
Re: ePub or mobi from LaTeX or PDF? (was PDF editors) Curt <curty@free.fr> - 2024-06-27 16:00 +0200
Re: ePub or mobi from LaTeX or PDF? (was PDF editors) Richard <rrosner5@gmail.com> - 2024-06-27 16:20 +0200
Re: ePub or mobi from LaTeX or PDF? (was PDF editors) Curt <curty@free.fr> - 2024-06-27 17:00 +0200
| From | Curt <curty@free.fr> |
|---|---|
| Date | 2024-06-25 15:30 +0200 |
| Subject | Re: ePub or mobi from LaTeX or PDF? (was PDF editors) |
| Message-ID | <ITepb-5uc4-3@gated-at.bofh.it> |
On 2024-06-24, Van Snyder <van.snyder@sbcglobal.net> wrote: > > I composed a book in LaTeX because I wanted the equations to be set > correctly -- and because I've been using LaTeX for decades and am most > comfortable using it. > All I know is if I send a pdf file to my Kindle with the word "convert" in the subject line (without the quotes), the file is converted to the Kindle format. I gleaned this *astuce* sometime, somewhere, that has since been forgotten. I haven't performed this maneuver in a fairly long while, though, so things may have changed. Sometimes you are required to run as fast as you as you can in order to remain in the same place.
[toc] | [next] | [standalone]
| From | Van Snyder <van.snyder@sbcglobal.net> |
|---|---|
| Date | 2024-06-27 01:50 +0200 |
| Message-ID | <ITKyJ-5QuZ-3@gated-at.bofh.it> |
| In reply to | #270467 |
[Multipart message — attachments visible in raw view] — view raw
On Tue, 2024-06-25 at 13:26 +0000, Curt wrote: > On 2024-06-24, Van Snyder <van.snyder@sbcglobal.net> wrote: > > > > I composed a book in LaTeX because I wanted the equations to be set > > correctly -- and because I've been using LaTeX for decades and am > > most > > comfortable using it. > > > > All I know is if I send a pdf file to my Kindle with the word > "convert" > in the subject line (without the quotes), the file is converted to > the > Kindle format. I gleaned this *astuce* sometime, somewhere, that has > since been forgotten. > > I haven't performed this maneuver in a fairly long while, though, so > things may have changed. Sometimes you are required to run as fast as > you > as you can in order to remain in the same place. The file was indeed sent to my Kindle, and it didn't land as a PDF. I can read it in the Kindle reader. The table of contents is a mess. Tables are a mess. I downloaded everything with the same base name as I sent -- a file and a directory. LibreOffice can't read any of it. Calibre can't read any of it, either in the download or in the mounted Kindle. "file" has no idea what any of the files are.
[toc] | [prev] | [next] | [standalone]
| From | Richard <rrosner5@gmail.com> |
|---|---|
| Date | 2024-06-27 10:10 +0200 |
| Message-ID | <ITSmB-5VGk-5@gated-at.bofh.it> |
| In reply to | #270504 |
[Multipart message — attachments visible in raw view] — view raw
You could try if Googles ML model "magika" can do a better job (available via pypi). Otherwise, what exactly does "file" or better "file -i" say? Worst case, you could open the files in a hex editor and google the first few bits. Chances are the format uses "magic bits", so the first few bits in hex are identical for all files of that format. Am Do., 27. Juni 2024 um 06:33 Uhr schrieb Van Snyder < van.snyder@sbcglobal.net>: > I downloaded everything with the same base name as I sent -- a file and a > directory. LibreOffice can't read any of it. Calibre can't read any of it, > either in the download or in the mounted Kindle. "file" has no idea what > any of the files are. > > >
[toc] | [prev] | [next] | [standalone]
| From | eben@gmx.us |
|---|---|
| Date | 2024-06-27 14:50 +0200 |
| Message-ID | <ITWJz-5YM4-5@gated-at.bofh.it> |
| In reply to | #270508 |
On 6/27/24 04:02, Richard wrote: > Am Do., 27. Juni 2024 um 06:33 Uhr schrieb Van Snyder < > van.snyder@sbcglobal.net>: > >> "file" has no idea what >> any of the files are. > Otherwise, what exactly does "file" or better "file -i" say? I think you missed that.
[toc] | [prev] | [next] | [standalone]
| From | Richard <rrosner5@gmail.com> |
|---|---|
| Date | 2024-06-27 22:30 +0200 |
| Message-ID | <IU3UJ-63vI-1@gated-at.bofh.it> |
| In reply to | #270510 |
[Multipart message — attachments visible in raw view] — view raw
I didn't miss that. "file" will always tell you something, I doubt there can be any situation where it will just give you an empty output. You because it can get specific, it will tell you if something is a text file or binary format it whatever. So what's the output? On Thu, Jun 27, 2024, 19:33 <eben@gmx.us> wrote: > On 6/27/24 04:02, Richard wrote: > > Am Do., 27. Juni 2024 um 06:33 Uhr schrieb Van Snyder < > > van.snyder@sbcglobal.net>: > > > >> "file" has no idea what > >> any of the files are. > > > Otherwise, what exactly does "file" or better "file -i" say? > > I think you missed that. > >
[toc] | [prev] | [next] | [standalone]
| From | Richard <rrosner5@gmail.com> |
|---|---|
| Date | 2024-06-28 11:50 +0200 |
| Message-ID | <IUgoV-6bkN-11@gated-at.bofh.it> |
| In reply to | #270523 |
[Multipart message — attachments visible in raw view] — view raw
If that isn't a start, I don't know what is. The JSON file can potentially give an idea about what the other files do. Am Fr., 28. Juni 2024 um 03:33 Uhr schrieb Van Snyder < van.snyder@sbcglobal.net>: > *.kfx, *.yjr and *.yjf are all "data". *.mf is "JSON". >
[toc] | [prev] | [next] | [standalone]
| From | Max Nikulin <manikulin@gmail.com> |
|---|---|
| Date | 2024-06-28 04:50 +0200 |
| Message-ID | <IU9Qt-67gS-9@gated-at.bofh.it> |
| In reply to | #270508 |
On 28/06/2024 01:38, Van Snyder wrote: > So, back to trying to find a competent PDF -to- ePub or PDF -to- mobi > converter (I haven't yet tried texmate to create a mobi or ePub from the > LaTeX). If you seek a solution that allows to get result in a single click then the following would not help. I would not spent time trying to find a PDF to ePub converter. Almost certainly PDF generated by LaTeX is not friendly to them (yet?), it is for printing. ePub is a bit special zip archive containing XHTML files that is why, I think, it is better to concentrate on LaTeX to HTML converters. Be ready to simplify macros used in your TeX files to make them compatible with a specific converter. I have never tried TeX4ht, but it may be a better option than rather old latex2html. Start from a simple document to identify what TeX macros causes issues with your book. Almost certainly some tuning is required: styles, math representation. I have no idea, what is better for ePub: SVG or raster images, MathML. There is a number of converters to MathML with their specific shortcomings. I expect that the following site actively uses TeX as original format: https://dlmf.nist.gov/ NIST Digital Library of Mathematical Functions If you do not use advanced LaTeX markup then it may be possible to convert it to Org mode https://orgmode.org/ with reasonable efforts. It may be converted to HTML using other tools. However some scripting (Emacs lisp or lua for pandoc) may be required to achieve decent quality of exported documents. There are should be some blog posts describing troubles and workarounds.
[toc] | [prev] | [next] | [standalone]
| From | Richard <rrosner5@gmail.com> |
|---|---|
| Date | 2024-06-28 11:50 +0200 |
| Message-ID | <IUgoV-6bkN-7@gated-at.bofh.it> |
| In reply to | #270508 |
[Multipart message — attachments visible in raw view] — view raw
Actually, magika does tell you quite well what you need to know. .yjf could
be something comparable to a JPEG, .kfx seems to be very similar to a BMP
image. .meta seems to be just a JSON text file. .mf could be too, but at
least it will be a text file. The rest is unknown binary data you'll
probably have no way of handling, they will be proprietary. But of course
you can still try the magic bit variant, maybe that can tell you if someone
was already able to write something to handle it.
Am Fr., 28. Juni 2024 um 01:18 Uhr schrieb Van Snyder <
van.snyder@sbcglobal.net>:
> Thanks to Richard for the suggestion to try magika:
>
> # find ./ -type f -exec ~/.local/bin/magika {} \;
> Whence-Energy-2_YI5JSRVWOVJ5MO6EWC57GJKTBZLXXI23.sdr/Whence-Energy-2_YI5JSRVWOVJ5MO6EWC57GJKTBZLXXI23bbd37f35b4b251f45c1bf42879a62d70.yjf:
> Unknown binary data (unknown) [Low-confidence model best-guess: JPEG image
> data (image), score=28]
> Whence-Energy-2_YI5JSRVWOVJ5MO6EWC57GJKTBZLXXI23.sdr/data/.pagination.cache/887fcb7c:
> Unknown binary data (unknown) [Low-confidence model best-guess: PE
> executable (executable), score=71]
> Whence-Energy-2_YI5JSRVWOVJ5MO6EWC57GJKTBZLXXI23.sdr/YI5JSRVWOVJ5MO6EWC57GJKTBZLXXI23.mf:
> Generic text document (text) [Low-confidence model best-guess: JSON
> document (code), score=59]
> Whence-Energy-2_YI5JSRVWOVJ5MO6EWC57GJKTBZLXXI23.sdr/Whence-Energy-2_YI5JSRVWOVJ5MO6EWC57GJKTBZLXXI23bbd37f35b4b251f45c1bf42879a62d70.yjr:
> Unknown binary data (unknown) [Low-confidence model best-guess: Intel 80386
> COFF (executable), score=76]
> Whence-Energy-2_YI5JSRVWOVJ5MO6EWC57GJKTBZLXXI23.sdr/AssetDownloadMetadata.meta:
> JSON document (code)
> Whence-Energy-2_YI5JSRVWOVJ5MO6EWC57GJKTBZLXXI23.kfx: Unknown binary data
> (unknown) [Low-confidence model best-guess: BMP image data (image),
> score=89]
>
> So except for one file, it's still a mystery what e-mailing a PDF to a
> Kindle reader with "convert" (without quotes) in the subject actually
> produces. The Kindle reader can read it, but so far nothing else I've tried
> can. In the end, I want to edit it and re-publish it on Amazon.
>
>
[toc] | [prev] | [next] | [standalone]
| From | Curt <curty@free.fr> |
|---|---|
| Date | 2024-06-27 16:00 +0200 |
| Message-ID | <ITXPj-5ZnT-1@gated-at.bofh.it> |
| In reply to | #270504 |
On 2024-06-26, Van Snyder <van.snyder@sbcglobal.net> wrote: > > I downloaded everything with the same base name as I sent -- a file and > a directory. LibreOffice can't read any of it. Calibre can't read any > of it, either in the download or in the mounted Kindle. "file" has no > idea what any of the files are. > This is indeed a regrettable outcome to a good-faith suggestion. One is led to wonder at times why you technical (the term used quite loosely in your case) people prove to be so often such intolerable asswipes, but I'm not losing much sleep over it, though the higher echelons of your generally uncultured ilk seem to be ruling what's left of the world. I'm sure, though, that the latter will continue on despite everything, while the former will lie sooner or later permanently horizontal.
[toc] | [prev] | [next] | [standalone]
| From | Richard <rrosner5@gmail.com> |
|---|---|
| Date | 2024-06-27 16:20 +0200 |
| Message-ID | <ITY8F-5ZJs-1@gated-at.bofh.it> |
| In reply to | #270512 |
[Multipart message — attachments visible in raw view] — view raw
Have you completely lost it? You should leave this and any other mailing lists before you are being sued and kicked out for what you write. And trust me, this message of yours is more than enough reason for that. Am Do., 27. Juni 2024 um 15:56 Uhr schrieb Curt <curty@free.fr>: > On 2024-06-26, Van Snyder <van.snyder@sbcglobal.net> wrote: > > > > I downloaded everything with the same base name as I sent -- a file and > > a directory. LibreOffice can't read any of it. Calibre can't read any > > of it, either in the download or in the mounted Kindle. "file" has no > > idea what any of the files are. > > > > This is indeed a regrettable outcome to a good-faith suggestion. > > One is led to wonder at times why you technical (the term used quite > loosely in your case) people prove to be so often such intolerable > asswipes, but I'm not losing much sleep over it, though the higher > echelons of your generally uncultured ilk seem to be ruling what's left > of the world. > > I'm sure, though, that the latter will continue on despite everything, > while the former will lie sooner or later permanently horizontal. > >
[toc] | [prev] | [next] | [standalone]
| From | Curt <curty@free.fr> |
|---|---|
| Date | 2024-06-27 17:00 +0200 |
| Message-ID | <ITYLo-5ZWp-3@gated-at.bofh.it> |
| In reply to | #270513 |
On 2024-06-27, Richard <rrosner5@gmail.com> wrote: > > Have you completely lost it? You should leave this and any other mailing > lists before you are being sued and kicked out for what you write. And > trust me, this message of yours is more than enough reason for that. > I'm confident I'll be sued for your rudeness and ineptitude, and pass the rest of my days in some prison devised in your tiny and ineffectual mind.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web