• need .md reader that can print ONLY tha page being viewed

    From gene heskett@21:1/5 to All on Sun Oct 27 19:10:01 2024
    Seems to me we should not have to print a 90 page document to get the
    one page/paragraph of interest. What do folks use now?

    Cheers, Gene Heskett, CET.
    --
    "There are four boxes to be used in defense of liberty:
    soap, ballot, jury, and ammo. Please use in that order."
    -Ed Howdershelt (Author, 1940)
    If we desire respect for the law, we must first make the law respectable.
    - Louis D. Brandeis

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Wright@21:1/5 to gene heskett on Sun Oct 27 19:30:01 2024
    On Sun 27 Oct 2024 at 14:07:25 (-0400), gene heskett wrote:
    Seems to me we should not have to print a 90 page document to get the
    one page/paragraph of interest. What do folks use now?

    pdftk, now pdftk-java

    Cheers,
    David.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From tomas@tuxteam.de@21:1/5 to jeremy ardley on Sun Oct 27 20:10:01 2024
    On Mon, Oct 28, 2024 at 02:27:34AM +0800, jeremy ardley wrote:


    On 28/10/24 02:07, gene heskett wrote:
    Seems to me we should not have to print a 90 page document to get the
    one page/paragraph of interest. What do folks use now?

    Cheers, Gene Heskett, CET.


    Quite often in a web browser you can select the text and right click and print selection.

    If you are in a gui console you can select some text and copy and paste into a gui text editor and print that.

    If you are only in a console with no gui you will have problems

    Or you will have pdfseparate (1).

    It's not all barbarian country in the console :-)

    Cheers
    --
    t

    -----BEGIN PGP SIGNATURE-----

    iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCZx6O9AAKCRAFyCz1etHa RmR0AJ0TA2VocYkanyGPLkvbIyAW+KIuhQCdFPtwnyKaEIsi0dUgnWeV2ZdW20M=
    =/KGk
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Stefan Monnier@21:1/5 to All on Sun Oct 27 20:30:01 2024
    Seems to me we should not have to print a 90 page document to get the one page/paragraph of interest.

    I agree, but I wonder why you think it needs to be stated.
    What tool are you using and what part of it makes you think it really
    wants you to print all 90 pages of a document?

    FWIW, nowadays I basically never print to paper from anything else than
    my favorite PDF viewer (which does offer me to print any selected
    subset of the pages). For everything else, I "print to PDF" (and then
    use my PDF viewer to print to paper the parts I need, if that's
    what I want).


    Stefan

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Wright@21:1/5 to Stefan Monnier on Mon Oct 28 04:50:01 2024
    On Sun 27 Oct 2024 at 15:24:52 (-0400), Stefan Monnier wrote:
    Seems to me we should not have to print a 90 page document to get the one page/paragraph of interest.

    I agree, but I wonder why you think it needs to be stated.
    What tool are you using and what part of it makes you think it really
    wants you to print all 90 pages of a document?

    FWIW, nowadays I basically never print to paper from anything else than
    my favorite PDF viewer (which does offer me to print any selected
    subset of the pages). For everything else, I "print to PDF" (and then
    use my PDF viewer to print to paper the parts I need, if that's
    what I want).

    What I would miss if I had only that for PDFs:

    . a record of how I made the printout,

    . a carbon copy of the document to file (if I do print,
    it's generally to send it somewhere),

    . the ability to do this manually or with scripts,

    . handling encryption,

    . most importantly, the ability to assemble a document
    from multiple parts of various sources.

    Cheers,
    David.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andy Smith@21:1/5 to gene heskett on Mon Oct 28 05:20:01 2024
    Hi Gene,

    On Sun, Oct 27, 2024 at 02:07:25PM -0400, gene heskett wrote:
    Seems to me we should not have to print a 90 page document to get the one page/paragraph of interest. What do folks use now?

    What procedure / software do you use right now to solve this problem for
    really big plain text (.txt) files? Will that also work for such
    Markdown (.md) files?

    Thanks,
    Andy

    --
    https://bitfolk.com/ -- No-nonsense VPS hosting

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From gene heskett@21:1/5 to jeremy ardley on Mon Oct 28 08:10:02 2024
    On 10/27/24 14:28, jeremy ardley wrote:


    On 28/10/24 02:07, gene heskett wrote:
    Seems to me we should not have to print a 90 page document to get the
    one page/paragraph of interest. What do folks use now?

    Cheers, Gene Heskett, CET.


    Quite often in a web browser you can select the text and right click and print selection.

    If you are in a gui console you can select some text and copy and paste
    into a gui text editor and print that.

    If you are only in a console with no gui you will have problems

    .
    I've got a gui on both ends of the net but cups on armbian can't see the printers shared by debian/bookworm. So we fix that first. If we can...

    Cheers, Gene Heskett, CET.
    --
    "There are four boxes to be used in defense of liberty:
    soap, ballot, jury, and ammo. Please use in that order."
    -Ed Howdershelt (Author, 1940)
    If we desire respect for the law, we must first make the law respectable.
    - Louis D. Brandeis

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From gene heskett@21:1/5 to David Wright on Mon Oct 28 08:10:03 2024
    On 10/27/24 14:28, David Wright wrote:
    On Sun 27 Oct 2024 at 14:07:25 (-0400), gene heskett wrote:
    Seems to me we should not have to print a 90 page document to get the
    one page/paragraph of interest. What do folks use now?

    pdftk, now pdftk-java
    installed it, but the assumption that its a pdf is wrong, its an .md
    file. Does not appear to have page makers, but I can get line numbers
    from geany, but its an arm64 and cups can't print to my shared printers
    so that has to be fixed first. The rest can be had from the correct incantations of "tail fnnn file | head fnn >newfile.
    So first, how do I fix cups?

    Cheers,
    David.

    .

    Cheers, Gene Heskett, CET.
    --
    "There are four boxes to be used in defense of liberty:
    soap, ballot, jury, and ammo. Please use in that order."
    -Ed Howdershelt (Author, 1940)
    If we desire respect for the law, we must first make the law respectable.
    - Louis D. Brandeis

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Wright@21:1/5 to David Wright on Tue Oct 29 04:50:02 2024
    On Sun 27 Oct 2024 at 22:44:58 (-0500), David Wright wrote:
    On Sun 27 Oct 2024 at 15:24:52 (-0400), Stefan Monnier wrote:
    Seems to me we should not have to print a 90 page document to get the one page/paragraph of interest.

    I agree, but I wonder why you think it needs to be stated.
    What tool are you using and what part of it makes you think it really
    wants you to print all 90 pages of a document?

    FWIW, nowadays I basically never print to paper from anything else than
    my favorite PDF viewer (which does offer me to print any selected
    subset of the pages). For everything else, I "print to PDF" (and then
    use my PDF viewer to print to paper the parts I need, if that's
    what I want).

    What I would miss if I had only that for PDFs:

    . a record of how I made the printout,

    . a carbon copy of the document to file (if I do print,
    it's generally to send it somewhere),

    . the ability to do this manually or with scripts,

    . handling encryption,

    . most importantly, the ability to assemble a document
    from multiple parts of various sources.

    Thanks to Stefan for pointing out a lack of context
    in my post. It's meant to relate to my earlier post
    suggesting pdftk, and points out that selection of
    pages is the least that pdftk can do. The list above
    is just the functions I use regularly.

    So, for example, at tax time each year, I run a number of
    scripts that automatically collate the appropriate pages
    from the mountain of monthly/quarterly documents received
    or downloaded over the year.

    Of course, much of this thread is moot if Gene is concerned
    only with printing parts of a text file, rather than sections
    of the processed marked-up document.

    Cheers,
    David.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ryan Nowakowski@21:1/5 to gene heskett on Wed Nov 20 01:40:01 2024
    On Sun, Oct 27, 2024 at 02:07:25PM -0400, gene heskett wrote:
    Seems to me we should not have to print a 90 page document to get the one page/paragraph of interest. What do folks use now?

    Hey Gene, I'm assuming that your .md file is in markdown format. If so,
    you have a few choices. There's nothing about markdown that forces
    formatting by page. So for example, you could render markdown as HTML
    using pandoc, then use something like xmlstarlet to select just the
    parts of the HTML you want. Then, you can load that in your browser and
    print.

    If you really want to format markdown in pages, you can use pandoc to
    render markdown as PDF, then use a PDF reader to print the pages you want.

    Hope this helps,

    Ryan

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Roland Mueller@21:1/5 to All on Tue Nov 26 21:00:01 2024
    ke 20.11.2024 klo 3.12 Ryan Nowakowski (tubaman@fattuba.com) kirjoitti:

    On Sun, Oct 27, 2024 at 02:07:25PM -0400, gene heskett wrote:
    Seems to me we should not have to print a 90 page document to get the one page/paragraph of interest. What do folks use now?

    Hey Gene, I'm assuming that your .md file is in markdown format. If so,
    you have a few choices. There's nothing about markdown that forces formatting by page. So for example, you could render markdown as HTML
    using pandoc, then use something like xmlstarlet to select just the
    parts of the HTML you want. Then, you can load that in your browser and print.

    If you really want to format markdown in pages, you can use pandoc to
    render markdown as PDF, then use a PDF reader to print the pages you want.

    Hope this helps,

    Ryan


    okular can also display documents in markdown format and some other formats
    in addition to PDF.

    <div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">ke 20.11.2024 klo 3.12 Ryan Nowakowski (<a href="mailto:tubaman@fattuba.com">tubaman@fattuba.com</a>) kirjoitti:<br></div><blockquote class="gmail_
    quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sun, Oct 27, 2024 at 02:07:25PM -0400, gene heskett wrote:<br>
    &gt; Seems to me we should not have to print a 90 page document to get the one<br>
    &gt; page/paragraph of interest. What do folks use now?<br>

    Hey Gene, I&#39;m assuming that your .md file is in markdown format. If so,<br> you have a few choices.  There&#39;s nothing about markdown that forces<br> formatting by page.  So for example, you could render markdown as HTML<br> using pandoc, then use something like xmlstarlet to select just the<br>
    parts of the HTML you want.  Then, you can load that in your browser and<br> print.<br>

    If you really want to format markdown in pages, you can use pandoc to<br> render markdown as PDF, then use a PDF reader to print the pages you want.<br>

    Hope this helps,<br>

    Ryan<br>
    <br></blockquote><div><br></div><div>okular can also display documents in markdown format and some other formats in addition to PDF.</div><div> </div></div></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From gene heskett@21:1/5 to Roland Mueller on Tue Nov 26 21:20:01 2024
    On 11/26/24 14:52, Roland Mueller wrote:


    ke 20.11.2024 klo 3.12 Ryan Nowakowski (tubaman@fattuba.com <mailto:tubaman@fattuba.com>) kirjoitti:

    On Sun, Oct 27, 2024 at 02:07:25PM -0400, gene heskett wrote:
    > Seems to me we should not have to print a 90 page document to get
    the one
    > page/paragraph of interest. What do folks use now?

    Hey Gene, I'm assuming that your .md file is in markdown format. If so,
    you have a few choices.  There's nothing about markdown that forces
    formatting by page.  So for example, you could render markdown as HTML
    using pandoc, then use something like xmlstarlet to select just the
    parts of the HTML you want.  Then, you can load that in your browser and
    print.

    If you really want to format markdown in pages, you can use pandoc to
    render markdown as PDF, then use a PDF reader to print the pages you
    want.

    Hope this helps,

    Ryan

    Yes it will help, a lot. I had never heard of pandoc before. Thank you.

    okular can also display documents in markdown format and some other
    formats in addition to PDF.

    That I have, again useful info. Thank you.

    Cheers, Gene Heskett, CET.
    --
    "There are four boxes to be used in defense of liberty:
    soap, ballot, jury, and ammo. Please use in that order."
    -Ed Howdershelt (Author, 1940)
    If we desire respect for the law, we must first make the law respectable.
    - Louis D. Brandeis

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)