• Sprite files

    From Chris Newman@21:1/5 to All on Sat Feb 22 12:45:50 2025
    Hi,

    Anyone know a foolproof method for changing sprite files to 2 colours and square pixcels so Sleuth won't complain?

    I've run it through DPlingScan but Sleuth 2 complains as above and Sleuth
    3 gives type=2 fatal internal error.

    --
    Chris

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Steve Fryatt@21:1/5 to Chris Newman on Sat Feb 22 14:06:25 2025
    On 22 Feb, Chris Newman wrote in message
    <5bf32b2585newslists@npost.uk>:

    Anyone know a foolproof method for changing sprite files to 2 colours and square pixcels so Sleuth won't complain?

    ChangeFSI? The current version in RISC OS 5 appears to do this easily.

    --
    Steve Fryatt - Leeds, England

    http://www.stevefryatt.org.uk/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Chris Newman@21:1/5 to Steve Fryatt on Sun Feb 23 10:55:12 2025
    In article <mpro.ss38ij00gcjvo0mg5.news@stevefryatt.org.uk>,
    Steve Fryatt <news@stevefryatt.org.uk> wrote:
    On 22 Feb, Chris Newman wrote in message
    <5bf32b2585newslists@npost.uk>:

    Anyone know a foolproof method for changing sprite files to 2 colours and square pixcels so Sleuth won't complain?

    ChangeFSI? The current version in RISC OS 5 appears to do this easily.

    I found I have 1.69 (17-Dec-22) in resources.
    I set the sprite output to monochrome 25 coors and that opened in
    Sleuth 3 but when I tried to OCR it gave a fatal error warning.
    Setting to 16 colours opened in Sleuth but as a big black square - no
    text. I'll keep working on it.

    --
    Chris

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Chris Hughes@21:1/5 to Chris Newman on Sun Feb 23 11:31:17 2025
    In message <5bf3a4da5fnewslists@npost.uk>
    Chris Newman <newslists@npost.uk> wrote:

    In article <mpro.ss38ij00gcjvo0mg5.news@stevefryatt.org.uk>,
    Steve Fryatt <news@stevefryatt.org.uk> wrote:
    On 22 Feb, Chris Newman wrote in message
    <5bf32b2585newslists@npost.uk>:

    Anyone know a foolproof method for changing sprite files to 2 colours and >>> square pixcels so Sleuth won't complain?

    ChangeFSI? The current version in RISC OS 5 appears to do this easily.

    I found I have 1.69 (17-Dec-22) in resources.

    For reference current version 1.70 (10 Jul 23)

    I got it via Packman.

    I set the sprite output to monochrome 25 coors and that opened in
    Sleuth 3 but when I tried to OCR it gave a fatal error warning.
    Setting to 16 colours opened in Sleuth but as a big black square - no
    text. I'll keep working on it.

    I am assuming you are running Aemulor to get Sleuth 3 working as it is 26
    bit only application.

    --
    Chris Hughes

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Chris Newman@21:1/5 to news13@noonehere.co.uk on Sun Feb 23 12:01:07 2025
    In article <2a28a8f35b.chris@mytardis>, Chris Hughes
    <news13@noonehere.co.uk> wrote:
    In message <5bf3a4da5fnewslists@npost.uk> Chris Newman
    <newslists@npost.uk> wrote:

    In article <mpro.ss38ij00gcjvo0mg5.news@stevefryatt.org.uk>, Steve
    Fryatt <news@stevefryatt.org.uk> wrote:
    On 22 Feb, Chris Newman wrote in message
    <5bf32b2585newslists@npost.uk>:

    Anyone know a foolproof method for changing sprite files to 2
    colours and square pixcels so Sleuth won't complain?

    ChangeFSI? The current version in RISC OS 5 appears to do this
    easily.

    I found I have 1.69 (17-Dec-22) in resources.

    For reference current version 1.70 (10 Jul 23)

    I got it via Packman.

    I set the sprite output to monochrome 25 coors and that opened in
    Sleuth 3 but when I tried to OCR it gave a fatal error warning.
    Setting to 16 colours opened in Sleuth but as a big black square - no
    text. I'll keep working on it.

    I am assuming you are running Aemulor to get Sleuth 3 working as it is
    26 bit only application.

    I'd forgotten that as it opens happily without Aemulor. I'll try again
    with it later. Dashing out to gig now.

    --
    Chris

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dave@21:1/5 to Chris Newman on Sun Feb 23 11:54:43 2025
    In article <5bf3a4da5fnewslists@npost.uk>,
    Chris Newman <newslists@npost.uk> wrote:
    In article <mpro.ss38ij00gcjvo0mg5.news@stevefryatt.org.uk>,
    Steve Fryatt <news@stevefryatt.org.uk> wrote:
    On 22 Feb, Chris Newman wrote in message
    <5bf32b2585newslists@npost.uk>:

    Anyone know a foolproof method for changing sprite files to 2
    colours and square pixcels so Sleuth won't complain?

    ChangeFSI? The current version in RISC OS 5 appears to do this easily.

    I found I have 1.69 (17-Dec-22) in resources.
    I set the sprite output to monochrome 25 coors and that opened in
    Sleuth 3 but when I tried to OCR it gave a fatal error warning.
    Setting to 16 colours opened in Sleuth but as a big black square - no
    text. I'll keep working on it.

    Interesting reading, this thread has brought forth old night/daymares.

    Back in the days... Before I moved my graphics stuff over to the Win PC
    side, we had the need for OCRing, and we tried for years to get Sleuth to convert documents, trying all sorts of scanned documents and settings etc,
    and it occasionally worked, but very unreliable and exceedingly picky.
    Yes we were well aware of the image constraints...

    In the end, I gave up and moved WinPC side, where I can now scan and OCR documents of all sorts without hardly any problems.

    So just out of interest I ran Sleuth to see if it was as bad as I
    remembered, and it absolutely was, invariable throwing up an error message "Failed to find any readable text".

    After trying that WC contents again...

    While I would wish you well with your task... On a hiding to nothing comes
    to mind... :-(

    Dave

    --

    Dave Triffid

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John@21:1/5 to dave@triffid.co.uk on Sun Feb 23 14:37:29 2025
    In article <5bf3aa4d8bdave@triffid.co.uk>, Dave
    <dave@triffid.co.uk> wrote:

    In the end, I gave up and moved WinPC side, where I can
    now scan and OCR documents of all sorts without hardly
    any problems.

    Hear, hear, Dave.

    I used ABBYY FineReader for OCRing Doctor Wimp's Surgery.
    The only problems it gave me were related to things like
    !Run coming out as ! Run and one or two other items
    relating to RISC OS naming conventions.

    That was all sorted out under RISC OS rather than trying to
    teach FineReader. It would have been even easier if I'd
    been aware of StrongED's ability to do Search and Replace
    on multiple files all at the same time.

    John

    --
    John
    newsmcc@blueyonder.co.uk
    j dot mccartney atte blueyonder dot co dot uk

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Chris Newman@21:1/5 to newslists@npost.uk on Sun Feb 23 23:34:37 2025
    In article <5bf3aae355newslists@npost.uk>, Chris Newman
    <newslists@npost.uk> wrote:
    In article <2a28a8f35b.chris@mytardis>, Chris Hughes
    <news13@noonehere.co.uk> wrote:
    In message <5bf3a4da5fnewslists@npost.uk> Chris Newman
    <newslists@npost.uk> wrote:

    In article <mpro.ss38ij00gcjvo0mg5.news@stevefryatt.org.uk>, Steve
    Fryatt <news@stevefryatt.org.uk> wrote:
    On 22 Feb, Chris Newman wrote in message
    <5bf32b2585newslists@npost.uk>:

    Anyone know a foolproof method for changing sprite files to 2
    colours and square pixcels so Sleuth won't complain?

    <Snip>

    I am assuming you are running Aemulor to get Sleuth 3 working as it
    is 26 bit only application.

    I'd forgotten that as it opens happily without Aemulor. I'll try again
    with it later. Dashing out to gig now.

    tried with Aemulor. No improvement yet. I'll try more 'sperimentin' when
    time permits.
    Sleuth has worked for me in the past so perhaps the image I'm working on
    is suspect.
    I captured part of a PDF page using !Snapper.

    --
    Chris

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dave@21:1/5 to John on Mon Feb 24 08:30:03 2025
    In article <5bf3b9342anewsmcc@blueyonder.co.uk>,
    John <newsmcc@blueyonder.co.uk> wrote:
    In article <5bf3aa4d8bdave@triffid.co.uk>, Dave
    <dave@triffid.co.uk> wrote:

    In the end, I gave up and moved WinPC side, where I can
    now scan and OCR documents of all sorts without hardly
    any problems.

    Hear, hear, Dave.

    I used ABBYY FineReader for OCRing Doctor Wimp's Surgery.
    The only problems it gave me were related to things like
    !Run coming out as ! Run and one or two other items
    relating to RISC OS naming conventions.

    That was all sorted out under RISC OS rather than trying to
    teach FineReader. It would have been even easier if I'd
    been aware of StrongED's ability to do Search and Replace
    on multiple files all at the same time.

    John

    Indeed John,
    Back in in the days when I was running my business I did try with Sleuth
    3... Goodness me, did we (Fay and I) try hard, but as I've previously noted
    it was so problematic and unreliable, just not usable in a business
    situation.

    I don't want to cause thread drift, so I'll take my question prompted by
    your last paragraph to the StrongED's mailing list.

    Regards
    Dave

    --

    Dave Triffid

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jean-Michel@21:1/5 to Chris Newman on Mon Feb 24 10:42:16 2025
    In message <5bf3a4da5fnewslists@npost.uk>
    Chris Newman <newslists@npost.uk> wrote:

    In article <mpro.ss38ij00gcjvo0mg5.news@stevefryatt.org.uk>,
    Steve Fryatt <news@stevefryatt.org.uk> wrote:
    On 22 Feb, Chris Newman wrote in message
    <5bf32b2585newslists@npost.uk>:

    Anyone know a foolproof method for changing sprite files to 2 colours and >>> square pixcels so Sleuth won't complain?

    ChangeFSI? The current version in RISC OS 5 appears to do this easily.

    I found I have 1.69 (17-Dec-22) in resources.
    I set the sprite output to monochrome 25 coors and that opened in
    Sleuth 3 but when I tried to OCR it gave a fatal error warning.
    Setting to 16 colours opened in Sleuth but as a big black square - no
    text. I'll keep working on it.

    What are the sources of documents: PDF? Jpeg?

    I do from PDF files from OMR Optical Muisc Reconition; SharpEye).
    It is necessary to have sprites in 2 or 4 bit mode (as !Sleuth).

    From PDF files I use gview with the right settings:
    monochrome, scale 300%
    I get very good results.

    For JPEG files I use DPINGSCAN (nice): monochrome color, SCALE 300% and to improve contrast, menu-> Histogram is doing a very good job.

    For the scan made on another bone, use the text/ocr mode well and a
    resolution of at least 300pt per inch

    With a smartphone , photograph in black and white mode ....

    Just advice ...


    --
    Jean-Michel

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dave@21:1/5 to Dave on Wed Feb 26 11:50:33 2025
    In article <5bf41b6693dave@triffid.co.uk>,
    Dave <dave@triffid.co.uk> wrote:
    [Snip a lot]

    Indeed John, Back in in the days when I was running my business I did
    try with Sleuth 3... Goodness me, did we (Fay and I) try hard, but as
    I've previously noted it was so problematic and unreliable, just not
    usable in a business situation.

    So... Even in my dotage, When I'm in a goodish mood, no grumps in sight, I
    like to have a fiddle with apps, just to see what's what. ;-)

    Thought I'd have fiddle with Sleuth3 just to see how much of a masochist
    I'd have to be to get a usable OCR out of it.

    I have an Epson scanner attached to my home LAN that outputs excellent
    images, unfortunately UniServer/Uniscan has never been able to do anything through it, just interminable clicking.
    I just rechecked... Click, click... :-(

    I have a small clean recent document printed on a HP Laserjet (Win side)
    to use in the scanner.

    In the Epson Scan app while scanning, I used a tiny bit of 'Contrast'
    increase to crisp up the images.

    Scan in 8bit Grayscale at 100, 150, 200, 300, 400 dpi.

    Take the images (Not Jpegs as I want to keep the images clean) to the RISC
    OS side. (BMP or PNG)

    Use DPlingScan to reduce to 4bpp then Save as a Spritefile.

    100, 150, 200dpi completely useless.

    300dpi OCR'd very well with just a few things out of place.

    400dpi OCR'd completely okay.

    There yuh! go.

    Dave

    --

    Dave Triffid

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Chris Newman@21:1/5 to All on Wed Feb 26 16:42:02 2025
    In article <5bf5356db2dave@triffid.co.uk>, Dave <dave@triffid.co.uk>
    wrote:
    In article <5bf41b6693dave@triffid.co.uk>, Dave <dave@triffid.co.uk>
    wrote: [Snip a lot]

    Indeed John, Back in in the days when I was running my business I did
    try with Sleuth 3... Goodness me, did we (Fay and I) try hard, but as
    I've previously noted it was so problematic and unreliable, just not
    usable in a business situation.

    <snip>

    Scan in 8bit Grayscale at 100, 150, 200, 300, 400 dpi.

    Take the images (Not Jpegs as I want to keep the images clean) to the
    RISC OS side. (BMP or PNG)

    Use DPlingScan to reduce to 4bpp then Save as a Spritefile.

    100, 150, 200dpi completely useless.

    300dpi OCR'd very well with just a few things out of place.

    400dpi OCR'd completely okay.

    I usually get good results doing things that way (More or less).

    I was trying to do something slightly different.
    I have a file which consists of many, many PDF pages.
    They contain the words to approx 2075 jazz tunes.
    I wanted one so I used !Snapper to tack a screen shot.
    I also tried outputting a whole page fro !PDF then cropping what I didn't
    need. Also tried the same from MuView.
    'Twould seem Sleuth doesn't want to lay with sprites taken like this.
    It seems

    --
    Chris

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Harriet Bazley@21:1/5 to Chris Newman on Wed Feb 26 17:45:40 2025
    On 26 Feb 2025 as I do recall,
    Chris Newman wrote:

    [snip]


    I have a file which consists of many, many PDF pages.
    They contain the words to approx 2075 jazz tunes.
    I wanted one so I used !Snapper to tack a screen shot.
    I also tried outputting a whole page fro !PDF then cropping what I didn't need. Also tried the same from MuView.
    'Twould seem Sleuth doesn't want to lay with sprites taken like this.
    It seems


    OCR won't work with sprites at screen resolution (which is only about 90x90dpi).

    --
    Harriet Bazley == Loyaulte me lie ==

    A chicken is an egg's way of producing more eggs.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Harriet Bazley@21:1/5 to Harriet Bazley on Wed Feb 26 17:54:20 2025
    On 26 Feb 2025 as I do recall,
    Harriet Bazley wrote:

    On 26 Feb 2025 as I do recall,
    Chris Newman wrote:

    [snip]


    I have a file which consists of many, many PDF pages.
    They contain the words to approx 2075 jazz tunes.
    I wanted one so I used !Snapper to tack a screen shot.
    I also tried outputting a whole page fro !PDF then cropping what I didn't need. Also tried the same from MuView.
    'Twould seem Sleuth doesn't want to lay with sprites taken like this.
    It seems


    OCR won't work with sprites at screen resolution (which is only about 90x90dpi).

    However, depending on how the PDF file was created, i.e. (whether it
    holds the actual text or whether it is just somebody's wrapper for a
    collection of fuzzy JPEGS) it might be possible to get the page output
    at a much higher resolution - you can fake this in !PDF by zooming the
    view to, say, 400% and then using the Save as Sprite option. It still
    won't be in monochrome, so you will have to tick the monochrome 2-colour
    option in ChangeFSI and resave as a Mode 25 sprite.

    Sleuth may then be able to read it.

    --
    Harriet Bazley == Loyaulte me lie ==

    Be tolerant of mistakes. There are very few errors that are so important
    that they cannot be ignored if you try hard enough.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jean-Michel@21:1/5 to Harriet Bazley on Wed Feb 26 21:10:58 2025
    In message <bcbb56f55b.harriet@bazleyfamily.co.uk>
    Harriet Bazley <harriet@bazleyfamily.co.uk> wrote:

    On 26 Feb 2025 as I do recall,
    Harriet Bazley wrote:

    On 26 Feb 2025 as I do recall,
    Chris Newman wrote:

    [snip]


    I have a file which consists of many, many PDF pages.
    They contain the words to approx 2075 jazz tunes.
    I wanted one so I used !Snapper to tack a screen shot.
    I also tried outputting a whole page fro !PDF then cropping what I didn't >>> need. Also tried the same from MuView.
    'Twould seem Sleuth doesn't want to lay with sprites taken like this.
    It seems


    OCR won't work with sprites at screen resolution (which is only about
    90x90dpi).

    However, depending on how the PDF file was created, i.e. (whether it
    holds the actual text or whether it is just somebody's wrapper for a collection of fuzzy JPEGS) it might be possible to get the page output
    at a much higher resolution - you can fake this in !PDF by zooming the
    view to, say, 400% and then using the Save as Sprite option. It still
    won't be in monochrome, so you will have to tick the monochrome 2-colour option in ChangeFSI and resave as a Mode 25 sprite.

    Sleuth may then be able to read it.

    Have you tried to open the PDF file with !Gview? with the choice menu we
    can produce a sprite file (2_colour monochrome) Mode 18 and can choose a
    300% scale for example. (It works very well with Sharpeye)

    "SharpEye is an extremely accurate Optical Music Recognition (OMR) package
    by the author of Sleuth OCR. SharpEye ...."

    Certainly similarities between these two software.



    --
    Jean-Michel

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Harriet Bazley@21:1/5 to Jean-Michel on Wed Feb 26 22:04:51 2025
    On 26 Feb 2025 as I do recall,
    Jean-Michel wrote:

    [snip]


    Have you tried to open the PDF file with !Gview? with the choice menu we
    can produce a sprite file (2_colour monochrome) Mode 18 and can choose a
    300% scale for example. (It works very well with Sharpeye)


    I tried saving a 2 colour monochrome file at 300% scale from GView, but
    it crashed Paint when I double-clicked on it, and gave an Xsprbadbpp
    error when I dragged it into SharpEye. :-(

    (ChangeFSI can display it, and reports it as "RISC OS sprite, 744 by
    1052 pixels, 32 bits per pixel" - DPlngScan reports it as 'Type 6.
    Palette entries 0")


    --
    Harriet Bazley == Loyaulte me lie ==

    Those of you who think you know everything are annoying those of us who do.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kevin Wells@21:1/5 to Chris Newman on Wed Feb 26 21:03:31 2025
    In message <5bf5501d72newslists@npost.uk>
    Chris Newman <newslists@npost.uk> wrote:

    In article <5bf5356db2dave@triffid.co.uk>, Dave <dave@triffid.co.uk>
    wrote:
    In article <5bf41b6693dave@triffid.co.uk>, Dave <dave@triffid.co.uk>
    wrote: [Snip a lot]

    Indeed John, Back in in the days when I was running my business I did
    try with Sleuth 3... Goodness me, did we (Fay and I) try hard, but as
    I've previously noted it was so problematic and unreliable, just not
    usable in a business situation.

    <snip>

    Scan in 8bit Grayscale at 100, 150, 200, 300, 400 dpi.

    Take the images (Not Jpegs as I want to keep the images clean) to the
    RISC OS side. (BMP or PNG)

    Use DPlingScan to reduce to 4bpp then Save as a Spritefile.

    100, 150, 200dpi completely useless.

    300dpi OCR'd very well with just a few things out of place.

    400dpi OCR'd completely okay.

    I usually get good results doing things that way (More or less).

    I was trying to do something slightly different.
    I have a file which consists of many, many PDF pages.
    They contain the words to approx 2075 jazz tunes.
    I wanted one so I used !Snapper to tack a screen shot.
    I also tried outputting a whole page fro !PDF then cropping what I didn't >need. Also tried the same from MuView.
    'Twould seem Sleuth doesn't want to lay with sprites taken like this.
    It seems


    If you want text from a PDF file their is PDFutils from:

    <https://www.riscos.info/packages/DocumentDetails.html#PDFUtilsarm>

    You can use my front end to it KPDFutil

    <http://kevsoft.co.uk/#KPDFutil>


    --
    Kev Wells
    http://kevsoft.co.uk/ https://ko-fi.com/kevsoft
    carpe cervisium
    The older I get the faster I used to be.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jean-Michel@21:1/5 to Harriet Bazley on Thu Feb 27 10:07:57 2025
    In message <7dab6df55b.harriet@bazleyfamily.co.uk>
    Harriet Bazley <harriet@bazleyfamily.co.uk> wrote:

    On 26 Feb 2025 as I do recall,
    Jean-Michel wrote:

    [snip]


    Have you tried to open the PDF file with !Gview? with the choice menu we
    can produce a sprite file (2_colour monochrome) Mode 18 and can choose a
    300% scale for example. (It works very well with Sharpeye)
    The above information is that of! Paint after saving the sprite.

    I tried saving a 2 colour monochrome file at 300% scale from GView, but
    it crashed Paint when I double-clicked on it, and gave an Xsprbadbpp
    error when I dragged it into SharpEye. :-(
    This is the message that appears when the file is in 32 -bit color mode, Sharpeye does not want it, but manages very well with an 8 -bit file.

    Strange, I use it very often!
    The version of Gview that I use is that of Martin Wuerthner's site. (21
    Jun 06) and Ghostscript v8.54
    I hope you will have the good results!

    (ChangeFSI can display it, and reports it as "RISC OS sprite, 744 by
    1052 pixels, 32 bits per pixel" - DPlngScan reports it as 'Type 6.
    Palette entries 0")
    Ok,



    --
    Jean-Michel

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Chris Newman@21:1/5 to harriet@bazleyfamily.co.uk on Thu Feb 27 22:17:37 2025
    In article <bcbb56f55b.harriet@bazleyfamily.co.uk>, Harriet Bazley <harriet@bazleyfamily.co.uk> wrote:
    On 26 Feb 2025 as I do recall, Harriet Bazley wrote:

    On 26 Feb 2025 as I do recall, Chris Newman wrote:

    [snip]


    I have a file which consists of many, many PDF pages. They contain
    the words to approx 2075 jazz tunes. I wanted one so I used
    !Snapper to tack a screen shot. I also tried outputting a whole
    page fro !PDF then cropping what I didn't need. Also tried the same
    from MuView. 'Twould seem Sleuth doesn't want to lay with sprites
    taken like this. It seems


    OCR won't work with sprites at screen resolution (which is only about 90x90dpi).

    However, depending on how the PDF file was created, i.e. (whether it
    holds the actual text or whether it is just somebody's wrapper for a collection of fuzzy JPEGS) it might be possible to get the page output
    at a much higher resolution - you can fake this in !PDF by zooming the
    view to, say, 400% and then using the Save as Sprite option. It still
    won't be in monochrome, so you will have to tick the monochrome
    2-colour option in ChangeFSI and resave as a Mode 25 sprite.

    The original book was printed from a home computer. That has then been
    taken apart re runthrough an automatic feed sacanner to produce a file of
    397 PDF pages (171Mb). Each page has several songs distributed over two columns.

    By uing !PDF and zooming the view up mightinly I was able to take a
    screen shot of just he song I wanted.

    Running that through ChngeFSI at monochrome resulted in a block of black instead of text unless I set the output to 256 colours. Then Sleuth3
    worked.

    The output wasn't brilliant due to the imitations of te original.

    I couldn't find a way of sending a single page to CView and running the
    whole thing caused GView to stop with a window of multiple error messages.

    --
    Chris

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Harriet Bazley@21:1/5 to Chris Newman on Thu Feb 27 23:32:30 2025
    On 27 Feb 2025 as I do recall,
    Chris Newman wrote:

    [snip]


    The original book was printed from a home computer. That has then been
    taken apart re runthrough an automatic feed sacanner to produce a file of
    397 PDF pages (171Mb). Each page has several songs distributed over two columns.

    By uing !PDF and zooming the view up mightinly I was able to take a
    screen shot of just he song I wanted.

    Running that through ChngeFSI at monochrome resulted in a block of black instead of text unless I set the output to 256 colours. Then Sleuth3
    worked.

    The output wasn't brilliant due to the imitations of te original.

    Yes, scanned text is unlikely to work well (especially as those scanned
    PDF compilations tend to contain images in the form of compressed lossy
    JPEGS -- fine for the human eye but not too good for magnification to
    the sort of resolution required for OCR).

    Transcribing a single song manually off the screen might have been
    quicker!

    --
    Harriet Bazley == Loyaulte me lie ==

    Those who can't write, write manuals.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Chris Newman@21:1/5 to Harriet Bazley on Fri Feb 28 00:24:02 2025
    In article <7f87f9f55b.harriet@bazleyfamily.co.uk>,
    Harriet Bazley <harriet@bazleyfamily.co.uk> wrote:
    On 27 Feb 2025 as I do recall,
    Chris Newman wrote:

    [snip]


    The original book was printed from a home computer. That has then been taken apart re runthrough an automatic feed sacanner to produce a file of 397 PDF pages (171Mb). Each page has several songs distributed over two columns.

    By uing !PDF and zooming the view up mightinly I was able to take a
    screen shot of just he song I wanted.

    Running that through ChngeFSI at monochrome resulted in a block of black instead of text unless I set the output to 256 colours. Then Sleuth3 worked.

    The output wasn't brilliant due to the imitations of te original.

    Yes, scanned text is unlikely to work well (especially as those scanned
    PDF compilations tend to contain images in the form of compressed lossy
    JPEGS -- fine for the human eye but not too good for magnification to
    the sort of resolution required for OCR).

    Transcribing a single song manually off the screen might have been
    quicker!

    I've got a paper copy of the book somewhere. As necessary, I'll scan
    pages to get an appropriate sprite file of the bit I want.

    I just thought getting them out of the PDF vesion might be simpler. Silly
    me!

    --
    Chris

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kevin Wells@21:1/5 to Chris Newman on Thu Feb 27 23:27:21 2025
    In message <5bf5f2ac6enewslists@npost.uk>
    Chris Newman <newslists@npost.uk> wrote:

    In article <bcbb56f55b.harriet@bazleyfamily.co.uk>, Harriet Bazley ><harriet@bazleyfamily.co.uk> wrote:
    On 26 Feb 2025 as I do recall, Harriet Bazley wrote:

    On 26 Feb 2025 as I do recall, Chris Newman wrote:

    [snip]


    I have a file which consists of many, many PDF pages. They contain
    the words to approx 2075 jazz tunes. I wanted one so I used
    !Snapper to tack a screen shot. I also tried outputting a whole
    page fro !PDF then cropping what I didn't need. Also tried the same
    from MuView. 'Twould seem Sleuth doesn't want to lay with sprites
    taken like this. It seems


    OCR won't work with sprites at screen resolution (which is only about
    90x90dpi).

    However, depending on how the PDF file was created, i.e. (whether it
    holds the actual text or whether it is just somebody's wrapper for a
    collection of fuzzy JPEGS) it might be possible to get the page output
    at a much higher resolution - you can fake this in !PDF by zooming the
    view to, say, 400% and then using the Save as Sprite option. It still
    won't be in monochrome, so you will have to tick the monochrome
    2-colour option in ChangeFSI and resave as a Mode 25 sprite.

    The original book was printed from a home computer. That has then been
    taken apart re runthrough an automatic feed sacanner to produce a file of
    397 PDF pages (171Mb). Each page has several songs distributed over two >columns.

    By uing !PDF and zooming the view up mightinly I was able to take a
    screen shot of just he song I wanted.

    Running that through ChngeFSI at monochrome resulted in a block of black >instead of text unless I set the output to 256 colours. Then Sleuth3
    worked.

    The output wasn't brilliant due to the imitations of te original.

    I couldn't find a way of sending a single page to CView and running the
    whole thing caused GView to stop with a window of multiple error messages.


    With PDFutils you can split the pdf up into single pages, export the pdf
    to jpegs, pngs, tiffs plus other graphic formats.

    <https://www.riscos.info/packages/DocumentDetails.html#PDFUtils>

    Plus my KPDFutil provides a front end so their is no need to enter the commands:

    <http://kevsoft.co.uk/#KPDFutil>


    --
    Kev Wells
    http://kevsoft.co.uk/ https://ko-fi.com/kevsoft
    carpe cervisium
    British by birth English by grace of God.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From druck@21:1/5 to Harriet Bazley on Fri Feb 28 09:51:22 2025
    On 26/02/2025 22:04, Harriet Bazley wrote:
    On 26 Feb 2025 as I do recall,
    Jean-Michel wrote:
    I tried saving a 2 colour monochrome file at 300% scale from GView, but
    it crashed Paint when I double-clicked on it, and gave an Xsprbadbpp
    error when I dragged it into SharpEye. :-(

    (ChangeFSI can display it, and reports it as "RISC OS sprite, 744 by
    1052 pixels, 32 bits per pixel" - DPlngScan reports it as 'Type 6.
    Palette entries 0")

    That isn't a monochrome sprite, they are 1 bit per pixel.

    ---druck

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Stuart@21:1/5 to Chris Newman on Fri Feb 28 10:45:02 2025
    In article <5bf5fe3e31newslists@npost.uk>,
    Chris Newman <newslists@npost.uk> wrote:

    I've got a paper copy of the book somewhere. As necessary, I'll scan
    pages to get an appropriate sprite file of the bit I want.

    I just thought getting them out of the PDF vesion might be simpler. Silly
    me!

    Unless you have something like Acrobat, the best way is to print the page
    you want, then rescan to B&W JPEG, 600dpi and use that as your source for
    OCR. When using !Sharpeye I set !Changefsi to Monochrome, 2 colours Mode25

    --
    Stuart Winsor

    Tools With A Mission
    sending tools across the world
    http://www.twam.co.uk/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Harriet Bazley@21:1/5 to druck on Fri Feb 28 10:45:00 2025
    On 28 Feb 2025 as I do recall,
    druck wrote:

    On 26/02/2025 22:04, Harriet Bazley wrote:
    On 26 Feb 2025 as I do recall,
    Jean-Michel wrote:
    I tried saving a 2 colour monochrome file at 300% scale from GView, but
    it crashed Paint when I double-clicked on it, and gave an Xsprbadbpp
    error when I dragged it into SharpEye. :-(

    (ChangeFSI can display it, and reports it as "RISC OS sprite, 744 by
    1052 pixels, 32 bits per pixel" - DPlngScan reports it as 'Type 6.
    Palette entries 0")

    That isn't a monochrome sprite, they are 1 bit per pixel.

    That's what my copy of GView (v1.52) apparently generates when 'Colour
    depth' is set to 'monochrome'.... :-(

    And the visual output in the window certainly appears black and white
    with no greyscale, so I don't know what's going on. Switching the radio
    icon to '16 colours' instead of 'monochrome' saves a sprite that still
    crashes !Paint 2.55, but which ChangeFSI reports as being 4 bits per
    pixel - since when has Paint been unable to display a 16-colour sprite?

    In fact on experiment *all* sprites saved out from GView's 'Save' option currently appear to be crashing Paint, whatever colour depth or scaling
    factor is set - and is apparently being obeyed in the visual display -
    and whether or not the 'Use GhostScript sprite device' option at the
    bottom of the choices is ticked. So I really don't know what is going
    on!

    The filesize of the generated spritefile varies plausibly according
    to the colour depth requested, and they all load correctly if dragged
    into ChangeFSI but give an "Internal error: abort on data transfer"
    error if I double-click on them. Maybe I need to reboot....

    --
    Harriet Bazley == Loyaulte me lie ==

    Those who can't write, write manuals.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jean-Michel@21:1/5 to Harriet Bazley on Fri Feb 28 12:38:20 2025
    In message <711937f65b.harriet@bazleyfamily.co.uk>
    Harriet Bazley <harriet@bazleyfamily.co.uk> wrote:

    On 28 Feb 2025 as I do recall,
    druck wrote:

    On 26/02/2025 22:04, Harriet Bazley wrote:
    On 26 Feb 2025 as I do recall,
    Jean-Michel wrote:
    I tried saving a 2 colour monochrome file at 300% scale from GView, but
    it crashed Paint when I double-clicked on it, and gave an Xsprbadbpp
    error when I dragged it into SharpEye. :-(

    (ChangeFSI can display it, and reports it as "RISC OS sprite, 744 by
    1052 pixels, 32 bits per pixel" - DPlngScan reports it as 'Type 6.
    Palette entries 0")

    That isn't a monochrome sprite, they are 1 bit per pixel.

    That's what my copy of GView (v1.52) apparently generates when 'Colour
    depth' is set to 'monochrome'.... :-(

    And the visual output in the window certainly appears black and white
    with no greyscale, so I don't know what's going on. Switching the radio
    icon to '16 colours' instead of 'monochrome' saves a sprite that still crashes !Paint 2.55, but which ChangeFSI reports as being 4 bits per
    pixel - since when has Paint been unable to display a 16-colour sprite?

    In fact on experiment *all* sprites saved out from GView's 'Save' option currently appear to be crashing Paint, whatever colour depth or scaling factor is set - and is apparently being obeyed in the visual display -
    and whether or not the 'Use GhostScript sprite device' option at the
    bottom of the choices is ticked. So I really don't know what is going
    on!

    Can you specify the version of the Ghostscript you use. I have no problem
    with version 8.54.
    I had installed the more recent version but I think it generated the
    problem of monochrome sprite. Too bad because it's a VFP version!

    The filesize of the generated spritefile varies plausibly according
    to the colour depth requested, and they all load correctly if dragged
    into ChangeFSI but give an "Internal error: abort on data transfer"
    error if I double-click on them. Maybe I need to reboot....





    --
    Jean-Michel

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jean-Michel@21:1/5 to Stuart on Fri Feb 28 12:50:19 2025
    In message <5bf635f458Spambin@argonet.co.uk>
    Stuart <Spambin@argonet.co.uk> wrote:

    In article <5bf5fe3e31newslists@npost.uk>,
    Chris Newman <newslists@npost.uk> wrote:

    I've got a paper copy of the book somewhere. As necessary, I'll scan
    pages to get an appropriate sprite file of the bit I want.

    I just thought getting them out of the PDF vesion might be simpler. Silly
    me!

    Unless you have something like Acrobat, the best way is to print the page
    you want, then rescan to B&W JPEG, 600dpi and use that as your source for OCR. When using !Sharpeye I set !Changefsi to Monochrome, 2 colours Mode25

    You can do it directly with !Gview + !Ghostscript monochrome + 300% (or
    more)
    just try!
    It works very well with Sharpeye .... not many errors and Rhapsody likes
    :-)

    When PDF files contain images, the result is not good.
    !DPLngScan has a function that helps a lot: histogram,
    To test,
    Important: change to monochrom and the size of the document before (300%)

    --
    Jean-Michel

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Harriet Bazley@21:1/5 to Harriet Bazley on Fri Feb 28 11:07:10 2025
    On 28 Feb 2025 as I do recall,
    Harriet Bazley wrote:

    [snip]


    In fact on experiment *all* sprites saved out from GView's 'Save' option currently appear to be crashing Paint, whatever colour depth or scaling factor is set - and is apparently being obeyed in the visual display -
    and whether or not the 'Use GhostScript sprite device' option at the
    bottom of the choices is ticked. So I really don't know what is going
    on!

    The filesize of the generated spritefile varies plausibly according
    to the colour depth requested, and they all load correctly if dragged
    into ChangeFSI but give an "Internal error: abort on data transfer"
    error if I double-click on them. Maybe I need to reboot....

    No, it's still not working even after rebooting the computer and
    generating a PDF file from RISC OS, then dragging it to GView with 'Use current' colour depth and 100% scaling set. For some reason the sprite
    export on my copy of GView appears to generate files that disagree
    horribly with !Paint. :-(

    Even though they display without problems if dragged into !Draw, or even
    into !Netsurf (which being a RISC OS app apparently has the ability to
    handle sprite data!) Neither double-clicking nor dragging them directly
    to Paint's iconbar icon is working for me.



    Edit: although weirdly, dragging such a sprite - even one saved using
    the 'monochrome' option - into *Draw* and then using 'Save->Sprites'
    from the Draw window saves out a spritefile containing a sprite labelled 'gssprite', this presumably being the name read out of the original
    file. But the two resulting files differ in length by a number of
    bytes, with visual inspection showing that the 'bad' file has extra
    non-zero data immediately following the byte on which the 'good' file
    ends!

    00000002 00000074 00000000 00000000 00000000 00000000
    FFFFFFFF 00000000 00000000 00000000 00000002 00000000
    00000000 00000008 00000000 00000000 00000008 00000000
    00000000 00000008 00000000 00000000 00000008 00000000
    00000000 00000008 00000000 00000000 00000000

    --
    Harriet Bazley == Loyaulte me lie ==

    Egotist: A person of low taste, more interested in himself than me.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Harriet Bazley@21:1/5 to Jean-Michel on Fri Feb 28 14:02:16 2025
    On 28 Feb 2025 as I do recall,
    Jean-Michel wrote:

    In message <711937f65b.harriet@bazleyfamily.co.uk>
    Harriet Bazley <harriet@bazleyfamily.co.uk> wrote:

    [snip]


    In fact on experiment *all* sprites saved out from GView's 'Save' option currently appear to be crashing Paint, whatever colour depth or scaling factor is set - and is apparently being obeyed in the visual display -
    and whether or not the 'Use GhostScript sprite device' option at the
    bottom of the choices is ticked. So I really don't know what is going
    on!

    Can you specify the version of the Ghostscript you use. I have no problem with version 8.54.
    I had installed the more recent version but I think it generated the
    problem of monochrome sprite. Too bad because it's a VFP version!


    That would explain it - I upgraded my copy of Ghostscript to 9.26....

    (But surely if GhostScript's sprite output is bugged then someone would
    have noticed by now?)


    --
    Harriet Bazley == Loyaulte me lie ==

    The only rose without thorns is friendship.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From druck@21:1/5 to Harriet Bazley on Fri Feb 28 14:17:19 2025
    On 28/02/2025 10:45, Harriet Bazley wrote:
    On 28 Feb 2025 as I do recall,
    druck wrote:

    On 26/02/2025 22:04, Harriet Bazley wrote:
    On 26 Feb 2025 as I do recall,
    Jean-Michel wrote:
    I tried saving a 2 colour monochrome file at 300% scale from GView, but
    it crashed Paint when I double-clicked on it, and gave an Xsprbadbpp
    error when I dragged it into SharpEye. :-(

    (ChangeFSI can display it, and reports it as "RISC OS sprite, 744 by
    1052 pixels, 32 bits per pixel" - DPlngScan reports it as 'Type 6.
    Palette entries 0")

    That isn't a monochrome sprite, they are 1 bit per pixel.

    That's what my copy of GView (v1.52) apparently generates when 'Colour
    depth' is set to 'monochrome'.... :-(

    Run it through ChangeFSI set to output a monochrome 2 colour sprite.

    I always think of monochrome as being 1 bpp black and white, but it
    seems even ChangeFSI considers monochrome as meaning greyscale, and can generate 1/2/4/8 bpp images.

    ---druck

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Chris Newman@21:1/5 to All on Fri Feb 28 15:53:18 2025
    In article <1e0ff9f55b.Kevin@Kevsoft>, Kevin Wells <kev@kevsoft.co.uk>
    wrote:
    In message <5bf5f2ac6enewslists@npost.uk> Chris Newman
    <newslists@npost.uk> wrote:

    In article <bcbb56f55b.harriet@bazleyfamily.co.uk>, Harriet Bazley ><harriet@bazleyfamily.co.uk> wrote:
    On 26 Feb 2025 as I do recall, Harriet Bazley wrote:

    On 26 Feb 2025 as I do recall, Chris Newman wrote:

    [snip]


    I have a file which consists of many, many PDF pages. They
    contain the words to approx 2075 jazz tunes. I wanted one so I
    used !Snapper to tack a screen shot. I also tried outputting a
    whole page fro !PDF then cropping what I didn't need. Also tried
    the same from MuView. 'Twould seem Sleuth doesn't want to lay
    with sprites taken like this. It seems

    <big snip>


    With PDFutils you can split the pdf up into single pages, export the
    pdf to jpegs, pngs, tiffs plus other graphic formats.

    <https://www.riscos.info/packages/DocumentDetails.html#PDFUtils>

    Plus my KPDFutil provides a front end so their is no need to enter the commands:

    <http://kevsoft.co.uk/#KPDFutil>

    I didn't think it would cope with 405 ages but by jingo it has. Lovely
    bit of kit. well done!

    --
    Chris

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Chris Newman@21:1/5 to jmc.bruck@orange.fr on Fri Feb 28 15:57:16 2025
    In article <23143df65b.jmb@jmc.bruck.orange.fr>, Jean-Michel <jmc.bruck@orange.fr> wrote:
    In message <5bf635f458Spambin@argonet.co.uk> Stuart
    <Spambin@argonet.co.uk> wrote:

    In article <5bf5fe3e31newslists@npost.uk>, Chris Newman
    <newslists@npost.uk> wrote:

    I've got a paper copy of the book somewhere. As necessary, I'll scan
    pages to get an appropriate sprite file of the bit I want.

    I just thought getting them out of the PDF vesion might be simpler.
    Silly me!

    Unless you have something like Acrobat, the best way is to print the
    page you want, then rescan to B&W JPEG, 600dpi and use that as your
    source for OCR. When using !Sharpeye I set !Changefsi to Monochrome,
    2 colours Mode25

    You can do it directly with !Gview + !Ghostscript monochrome + 300% (or
    more) just try! It works very well with Sharpeye .... not many errors
    and Rhapsody likes
    :-)

    When PDF files contain images, the result is not good. !DPLngScan has a function that helps a lot: histogram, To test, Important: change to
    monochrom and the size of the document before (300%)

    never used histogram.I must explore that.

    --
    Chris

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Chris Newman@21:1/5 to harriet@bazleyfamily.co.uk on Fri Feb 28 15:58:21 2025
    In article <bd2849f65b.harriet@bazleyfamily.co.uk>, Harriet Bazley <harriet@bazleyfamily.co.uk> wrote:
    On 28 Feb 2025 as I do recall, Jean-Michel wrote:

    In message <711937f65b.harriet@bazleyfamily.co.uk> Harriet Bazley
    <harriet@bazleyfamily.co.uk> wrote:

    [snip]


    In fact on experiment *all* sprites saved out from GView's 'Save'
    option currently appear to be crashing Paint, whatever colour depth
    or scaling factor is set - and is apparently being obeyed in the
    visual display - and whether or not the 'Use GhostScript sprite
    device' option at the bottom of the choices is ticked. So I really
    don't know what is going on!

    Can you specify the version of the Ghostscript you use. I have no
    problem with version 8.54. I had installed the more recent version
    but I think it generated the problem of monochrome sprite. Too bad
    because it's a VFP version!


    That would explain it - I upgraded my copy of Ghostscript to 9.26....

    (But surely if GhostScript's sprite output is bugged then someone would
    have noticed by now?)

    Oh dear! Have I opened a can of worms?

    --
    Chris

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Harriet Bazley@21:1/5 to Chris Newman on Fri Feb 28 17:24:01 2025
    On 28 Feb 2025 as I do recall,
    Chris Newman wrote:

    In article <23143df65b.jmb@jmc.bruck.orange.fr>, Jean-Michel <jmc.bruck@orange.fr> wrote:

    [snip]

    !DPLngScan has a function that helps a lot: histogram, To test,
    Important: change to monochrom and the size of the document before
    (300%)

    never used histogram.I must explore that.

    How do you use a histogram? (I always thought it was just a form of
    graph displaying the maximum number of pixels in each colour or
    something - it never seemed like very useful information....)

    --
    Harriet Bazley == Loyaulte me lie ==

    Strategic withdrawal - running away with dignity!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jean-Michel@21:1/5 to Harriet Bazley on Fri Feb 28 20:37:28 2025
    In message <6fa15bf65b.harriet@bazleyfamily.co.uk>
    Harriet Bazley <harriet@bazleyfamily.co.uk> wrote:

    On 28 Feb 2025 as I do recall,
    Chris Newman wrote:

    In article <23143df65b.jmb@jmc.bruck.orange.fr>, Jean-Michel
    <jmc.bruck@orange.fr> wrote:

    [snip]

    !DPLngScan has a function that helps a lot: histogram, To test,
    Important: change to monochrom and the size of the document before
    (300%)

    never used histogram.I must explore that.

    How do you use a histogram? (I always thought it was just a form of
    graph displaying the maximum number of pixels in each colour or
    something - it never seemed like very useful information....)

    I will try to explain, (a video would be better ...) taking the example of SharpEye.
    First, I Convert the Drawing to greyscale (256 levels), and increase size
    by 300%.
    Then, I open with menu the Histogram window. ( R=G=B)
    You can see the density of the values (between 0 and 255), well otfen they
    are almost all very close which will prevent the OCR from working.
    To have a good result it is necessary that this density is better
    distributed between 0 and 256, which is 2 arrows of the histogram tool
    makes it possible to make
    UNDO allows you to test until you get a well contrasting image for the
    elements to be analyzed.
    For example for Sharpeye the lines are essential ...

    So you have to test, but you can use this process with photographs (jpeg, greyscale if possible)
    This requires a little training, but worth it!

    I hope my explanation is clear enough.
    I think it's useful because according to this discussion, SharpEye is
    underused and it must be the same for !Sleuth.


    --
    Jean-Michel

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jean-Michel@21:1/5 to Chris Newman on Fri Feb 28 20:02:07 2025
    In message <5bf653c881newslists@npost.uk>
    Chris Newman <newslists@npost.uk> wrote:

    In article <bd2849f65b.harriet@bazleyfamily.co.uk>, Harriet Bazley <harriet@bazleyfamily.co.uk> wrote:
    On 28 Feb 2025 as I do recall, Jean-Michel wrote:

    In message <711937f65b.harriet@bazleyfamily.co.uk> Harriet Bazley
    <harriet@bazleyfamily.co.uk> wrote:

    [snip]


    In fact on experiment *all* sprites saved out from GView's 'Save'
    option currently appear to be crashing Paint, whatever colour depth
    or scaling factor is set - and is apparently being obeyed in the
    visual display - and whether or not the 'Use GhostScript sprite
    device' option at the bottom of the choices is ticked. So I really
    don't know what is going on!

    Can you specify the version of the Ghostscript you use. I have no
    problem with version 8.54. I had installed the more recent version
    but I think it generated the problem of monochrome sprite. Too bad
    because it's a VFP version!


    That would explain it - I upgraded my copy of Ghostscript to 9.26....

    (But surely if GhostScript's sprite output is bugged then someone would
    have noticed by now?)

    Oh dear! Have I opened a can of worms?
    The problem is not new, I quickly returned to Martin's version.
    I should have made a bug report ...

    --
    Jean-Michel

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Harriet Bazley@21:1/5 to Jean-Michel on Fri Feb 28 21:26:51 2025
    On 28 Feb 2025 as I do recall,
    Jean-Michel wrote:


    First, I Convert the Drawing to greyscale (256 levels), and increase size
    by 300%.
    Then, I open with menu the Histogram window. ( R=G=B)
    You can see the density of the values (between 0 and 255), well otfen they are almost all very close which will prevent the OCR from working.

    Hmm - if the image is monochrome or greyscale then I would assume that
    the R G and B values are expected to be all more or less identical?

    I have here an example of a sprite file which I managed to save out from
    a public-domain string quartet score (downloaded from the IMSLP) which I
    was attempting at one point to transfer into Rhapsody before I gave up.
    Mainly because it contains sixteen pages, each one of which
    needed to be transferred separately and required corrections - I got
    bored :-(

    The histogram for this black and white image has a single vertical line
    on the far right-hand side which is in exactly the same position for
    Red, Green and Blue.


    To have a good result it is necessary that this density is better
    distributed between 0 and 256, which is 2 arrows of the histogram tool
    makes it possible to make

    There are two arrows underneath the histogram, one about a quarter of
    the way across and another about three-quarters of the way across.


    UNDO allows you to test until you get a well contrasting image for the elements to be analyzed.
    For example for Sharpeye the lines are essential ...

    So you have to test, but you can use this process with photographs (jpeg, greyscale if possible)
    This requires a little training, but worth it!



    --
    Harriet Bazley == Loyaulte me lie ==

    The purpose of rules is to make you think before you break them.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jean-Michel@21:1/5 to Harriet Bazley on Sat Mar 1 11:31:05 2025
    In message <dedc71f65b.harriet@bazleyfamily.co.uk>
    Harriet Bazley <harriet@bazleyfamily.co.uk> wrote:

    On 28 Feb 2025 as I do recall,
    Jean-Michel wrote:


    First, I Convert the Drawing to greyscale (256 levels), and increase size
    by 300%.
    Then, I open with menu the Histogram window. ( R=G=B)
    You can see the density of the values (between 0 and 255), well otfen they >> are almost all very close which will prevent the OCR from working.

    Hmm - if the image is monochrome or greyscale then I would assume that
    the R G and B values are expected to be all more or less identical?

    I have here an example of a sprite file which I managed to save out from
    a public-domain string quartet score (downloaded from the IMSLP) which I
    was attempting at one point to transfer into Rhapsody before I gave up. Mainly because it contains sixteen pages, each one of which
    needed to be transferred separately and required corrections - I got
    bored :-(
    I understand...
    The problem with ISMLP is that very often, the files are scanned, we get sprites included in the Draw export
    They do not all have the same resolution ( only 90 dpi :-() and the people
    who scanned did not activate the OCR option during the scan ...

    The histogram for this black and white image has a single vertical line
    on the far right-hand side which is in exactly the same position for
    Red, Green and Blue.
    Yes,
    Move the arrows so as to frame (encadrer) the vertical line, the density spectrum does not move, on the other hand the left arrow will correspond
    to black and that of the right to the white, the contrast is much more important.
    You have to test, hoping that the whole document has undergone the same processing ...



    To have a good result it is necessary that this density is better
    distributed between 0 and 256, which is 2 arrows of the histogram tool
    makes it possible to make

    There are two arrows underneath the histogram, one about a quarter of
    the way across and another about three-quarters of the way across.
    You can get closer to the vertical line, there is no information in the
    white parts of the histogram.

    UNDO allows you to test until you get a well contrasting image for the
    elements to be analyzed.
    For example for Sharpeye the lines are essential ...
    Note the best result is when the sprite is about 2500x3300.

    Harriet , can you send me your IMSLP file, to test.
    This morning I downloaded a file from this site to do tests and it cannot
    be opened by Gview ....

    --
    Jean-Michel

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Harriet Bazley@21:1/5 to Jean-Michel on Sun Mar 23 19:14:36 2025
    On 1 Mar 2025 as I do recall,
    Jean-Michel wrote:

    In message <dedc71f65b.harriet@bazleyfamily.co.uk>
    Harriet Bazley <harriet@bazleyfamily.co.uk> wrote:

    [snip]

    The histogram for this black and white image has a single vertical line
    on the far right-hand side which is in exactly the same position for
    Red, Green and Blue.
    Yes,
    Move the arrows so as to frame (encadrer) the vertical line, the density spectrum does not move, on the other hand the left arrow will correspond
    to black and that of the right to the white, the contrast is much more important.

    [snip]

    To have a good result it is necessary that this density is better
    distributed between 0 and 256, which is 2 arrows of the histogram tool
    makes it possible to make

    There are two arrows underneath the histogram, one about a quarter of
    the way across and another about three-quarters of the way across.
    You can get closer to the vertical line, there is no information in the
    white parts of the histogram.

    Oh, I see (I think) - the idea is to discard the 'white' areas in order
    to focus more closely on the existing range of variation within the
    small 'black' area. Like cropping a digital image to give the effect of zooming in on the detail in part of the picture.

    (I don't get any visible result by clicking 'Expand' on my images,
    though, probably because they were already exported from PDF in a
    2-colour sprite mode; the histogram remains as a single thin vertical
    line, but with two arrows now located close on either side of it....)

    --
    Harriet Bazley == Loyaulte me lie ==

    Questions are a burden to others, but answers are a prison for oneself.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jean-Michel@21:1/5 to Harriet Bazley on Mon Mar 24 11:38:44 2025
    In message <35fb3d025c.harriet@bazleyfamily.co.uk>
    Harriet Bazley <harriet@bazleyfamily.co.uk> wrote:


    To have a good result it is necessary that this density is better
    distributed between 0 and 256, which is 2 arrows of the histogram tool >>>> makes it possible to make

    There are two arrows underneath the histogram, one about a quarter of
    the way across and another about three-quarters of the way across.
    You can get closer to the vertical line, there is no information in the
    white parts of the histogram.

    Oh, I see (I think) - the idea is to discard the 'white' areas in order
    to focus more closely on the existing range of variation within the
    small 'black' area. Like cropping a digital image to give the effect of zooming in on the detail in part of the picture.
    Yes, but the details in this case are the gray levels, for the image you
    have to reduce the pixels added by antiialiasing. The use of the histogram
    will reduce the range of these gray levels without reducing the contours
    of the objects.
    Another example, if your image contains gray areas generated by shadows
    during shooting or scan. You will be able to delete them


    Fom David Pilling manual:
    "Under the histogram, are two arrows which can be dragged from side to
    side. When Expand is clicked on, the range of intensities between the
    arrows will be expanded to fill the full range."
    "Expand and Equalise are crude tools. They may be of use with images
    where all the pixel intensities have been squashed into a narrow band. "

    (I don't get any visible result by clicking 'Expand' on my images,
    though, probably because they were already exported from PDF in a
    2-colour sprite mode; the histogram remains as a single thin vertical
    line, but with two arrows now located close on either side of it....)
    Indeed if the Sprite contains only pixels "0" and "1", the histogram will
    not be useful.

    I guess you export from a file created by Gview?
    The histogram does not change, but the image yes, the UNDO button allows
    you to make tests and refine the adjustments of the cursors.
    The most important parameter for Sharpeye and OCR in general, is the size
    of the objects to recognize.
    With gview I use monochome and 300% and with DPlng I start with Edit/Scale
    300%

    I would like to make a little note for the document processing in "OCRed"
    ... with Risc OS.

    Freescore scores, often are only scan, not very good.

    --
    Jean-Michel

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Harriet Bazley@21:1/5 to Jean-Michel on Mon Mar 24 15:20:30 2025
    On 24 Mar 2025 as I do recall,
    Jean-Michel wrote:

    In message <35fb3d025c.harriet@bazleyfamily.co.uk>
    Harriet Bazley <harriet@bazleyfamily.co.uk> wrote:


    To have a good result it is necessary that this density is better
    distributed between 0 and 256, which is 2 arrows of the histogram tool >>>> makes it possible to make

    There are two arrows underneath the histogram, one about a quarter of
    the way across and another about three-quarters of the way across.
    You can get closer to the vertical line, there is no information in the
    white parts of the histogram.

    Oh, I see (I think) - the idea is to discard the 'white' areas in order
    to focus more closely on the existing range of variation within the
    small 'black' area.
    [snip]

    (I don't get any visible result by clicking 'Expand' on my images,
    though, probably because they were already exported from PDF in a
    2-colour sprite mode; the histogram remains as a single thin vertical line, but with two arrows now located close on either side of it....)
    Indeed if the Sprite contains only pixels "0" and "1", the histogram will
    not be useful.

    I guess you export from a file created by Gview?

    I think it was from Gview, but it might have been from !PDF or !PDFTest;


    The histogram does not change, but the image yes, the UNDO button allows
    you to make tests and refine the adjustments of the cursors.

    I tried again by exporting a page from the same PDF file (the Pleyel
    quartet I sent to you), which is definitely not in monochrome since it
    contains red bar numbers.

    But I still don't see any change to the image, even to the red sections.

    However, if I go to the *first* page of the score, which contains a
    scanned image rather than the notes drawn in an embedded music font,
    then moving the arrows on the histogram and clicking on 'Expand' does
    affect the portion of the page with the image on it.


    Freescore scores, often are only scan, not very good.


    Clearly this particular score is too high-quality a PDF file (probably computer-typeset rather than scanned in) to be affected by histogram manipulation. :-)


    --
    Harriet Bazley == Loyaulte me lie ==

    Those who can't write, write manuals.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jean-Michel@21:1/5 to Harriet Bazley on Mon Mar 24 18:50:15 2025
    In message <8062ac025c.harriet@bazleyfamily.co.uk>
    Harriet Bazley <harriet@bazleyfamily.co.uk> wrote:

    On 24 Mar 2025 as I do recall,
    Jean-Michel wrote:

    In message <35fb3d025c.harriet@bazleyfamily.co.uk>
    Harriet Bazley <harriet@bazleyfamily.co.uk> wrote:


    To have a good result it is necessary that this density is better
    distributed between 0 and 256, which is 2 arrows of the histogram tool >>>>>> makes it possible to make

    There are two arrows underneath the histogram, one about a quarter of >>>>> the way across and another about three-quarters of the way across.
    You can get closer to the vertical line, there is no information in the >>>> white parts of the histogram.

    Oh, I see (I think) - the idea is to discard the 'white' areas in order
    to focus more closely on the existing range of variation within the
    small 'black' area.
    [snip]

    (I don't get any visible result by clicking 'Expand' on my images,
    though, probably because they were already exported from PDF in a
    2-colour sprite mode; the histogram remains as a single thin vertical
    line, but with two arrows now located close on either side of it....)
    Indeed if the Sprite contains only pixels "0" and "1", the histogram will
    not be useful.

    I guess you export from a file created by Gview?

    I think it was from Gview, but it might have been from !PDF or !PDFTest;
    Ok
    Note: With Muview we can get good sprites and export them after zooming
    in.

    The histogram does not change, but the image yes, the UNDO button allows
    you to make tests and refine the adjustments of the cursors.

    I tried again by exporting a page from the same PDF file (the Pleyel
    quartet I sent to you), which is definitely not in monochrome since it contains red bar numbers.

    But I still don't see any change to the image, even to the red sections.
    Sorry but I can't find the file, if you can send it back to me.

    However, if I go to the *first* page of the score, which contains a
    scanned image rather than the notes drawn in an embedded music font,
    then moving the arrows on the histogram and clicking on 'Expand' does
    affect the portion of the page with the image on it.


    Freescore scores, often are only scan, not very good.


    Clearly this particular score is too high-quality a PDF file (probably computer-typeset rather than scanned in) to be affected by histogram manipulation. :-)

    too high-quality a PDF file !!!! and in 2 colors mode?
    It should be perfect for OCR!
    I am interested ...

    I found a file at ISMLP (Pleyel Quartet) ...
    and also at MuseScore String Quartet B303.


    --
    Jean-Michel

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Harriet Bazley@21:1/5 to Jean-Michel on Mon Mar 24 18:46:43 2025
    On 24 Mar 2025 as I do recall,
    Jean-Michel wrote:

    In message <8062ac025c.harriet@bazleyfamily.co.uk>
    Harriet Bazley <harriet@bazleyfamily.co.uk> wrote:


    [snip]


    I tried again by exporting a page from the same PDF file (the Pleyel quartet I sent to you), which is definitely not in monochrome since it contains red bar numbers.

    But I still don't see any change to the image, even to the red sections.

    Sorry but I can't find the file, if you can send it back to me.

    Well, as I said in my e-mail, I did download it quite a long time ago
    now, so it may not be very representative of what is currently on offer
    from the ISMLP :-(


    [snip]



    I found a file at ISMLP (Pleyel Quartet) ...

    and also at MuseScore String Quartet B303.


    IMSLP757242-PMLP53080-partitur/pdf - Opus 74, the string quartet in A
    major.

    I thought we had parts for a selection of Pleyel quartets - also Ignaz
    Lachner - but they seem to have gone missing somewhere, so I had
    ambitions to get at least one example into Rhapsody so that it was
    possible to print out the separate parts from the score.


    --
    Harriet Bazley == Loyaulte me lie ==

    He who falls in love with himself will have no rivals.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jean-Michel@21:1/5 to Harriet Bazley on Tue Mar 25 10:33:23 2025
    In message <9043bf025c.harriet@bazleyfamily.co.uk>
    Harriet Bazley <harriet@bazleyfamily.co.uk> wrote:

    On 24 Mar 2025 as I do recall,
    Jean-Michel wrote:

    In message <8062ac025c.harriet@bazleyfamily.co.uk>
    Harriet Bazley <harriet@bazleyfamily.co.uk> wrote:


    [snip]


    I tried again by exporting a page from the same PDF file (the Pleyel
    quartet I sent to you), which is definitely not in monochrome since it
    contains red bar numbers.

    But I still don't see any change to the image, even to the red sections.

    Sorry but I can't find the file, if you can send it back to me.

    Well, as I said in my e-mail, I did download it quite a long time ago
    now, so it may not be very representative of what is currently on offer
    from the ISMLP :-(
    Still not found ...

    [snip]


    I found a file at ISMLP (Pleyel Quartet) ...

    and also at MuseScore String Quartet B303.


    IMSLP757242-PMLP53080-partitur/pdf - Opus 74, the string quartet in A
    major.
    There are several string quartets in A major, and I can't try these
    numbers :-(

    https://imslp.org/wiki/Category:Pleyel,_Ignaz

    I thought we had parts for a selection of Pleyel quartets - also Ignaz Lachner - but they seem to have gone missing somewhere, so I had
    ambitions to get at least one example into Rhapsody so that it was
    possible to print out the separate parts from the score.

    If this can be useful to you, I have results with the String Quartet B303 (MuseScore), I send you page number 1 (sprite (to test with SharpEye) and Rhapsody version.



    --
    Jean-Michel

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Harriet Bazley@21:1/5 to Jean-Michel on Tue Mar 25 10:40:03 2025
    On 25 Mar 2025 as I do recall,
    Jean-Michel wrote:

    In message <9043bf025c.harriet@bazleyfamily.co.uk>
    Harriet Bazley <harriet@bazleyfamily.co.uk> wrote:

    On 24 Mar 2025 as I do recall,
    Jean-Michel wrote:

    In message <8062ac025c.harriet@bazleyfamily.co.uk>
    Harriet Bazley <harriet@bazleyfamily.co.uk> wrote:


    [snip]


    I tried again by exporting a page from the same PDF file (the Pleyel
    quartet I sent to you), which is definitely not in monochrome since it >>> contains red bar numbers.

    But I still don't see any change to the image, even to the red sections.

    Sorry but I can't find the file, if you can send it back to me.

    Well, as I said in my e-mail, I did download it quite a long time ago
    now, so it may not be very representative of what is currently on offer from the ISMLP :-(
    Still not found ...

    I have now e-mailed it to you twice, so I think something must be
    blocking the file :-(


    --
    Harriet Bazley == Loyaulte me lie ==

    The best way to keep your friends is not to give them away.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jean-Michel@21:1/5 to Harriet Bazley on Tue Mar 25 19:52:13 2025
    In message <448b16035c.harriet@bazleyfamily.co.uk>
    Harriet Bazley <harriet@bazleyfamily.co.uk> wrote:

    On 25 Mar 2025 as I do recall,
    Jean-Michel wrote:

    In message <9043bf025c.harriet@bazleyfamily.co.uk>
    Harriet Bazley <harriet@bazleyfamily.co.uk> wrote:

    On 24 Mar 2025 as I do recall,
    Jean-Michel wrote:

    In message <8062ac025c.harriet@bazleyfamily.co.uk>
    Harriet Bazley <harriet@bazleyfamily.co.uk> wrote:


    [snip]


    I tried again by exporting a page from the same PDF file (the Pleyel >>>>> quartet I sent to you), which is definitely not in monochrome since it >>>>> contains red bar numbers.

    But I still don't see any change to the image, even to the red sections. >>
    Sorry but I can't find the file, if you can send it back to me.

    Well, as I said in my e-mail, I did download it quite a long time ago
    now, so it may not be very representative of what is currently on offer
    from the ISMLP :-(
    Still not found ...

    I have now e-mailed it to you twice, so I think something must be
    blocking the file :-(

    You did well to warn me, your mail was considered spam by my ISP and
    therefore blocked. I just recovered it.

    In the file, the composer is Ignaz Lachner, not Ignaz Pleyel?

    I did a test with Sharpeye, the PDF file is almost perfect and therefore
    the result too. With this file no need to use! DPlngScan.
    Il y a quand mme quelques erreurs < 1%

    Note for Rhapsody4, do not forget to recreate the ties, they are not
    properly built in Sharpeye.

    Reminder to clarify on the use of !Gview
    !PDF does not use this program, so it must be running on the iconbar.
    Adjust the choices of !Gview:
    monochrome
    scale 300%
    use Ghostscript Sprite Device: checked
    Greyscale: not checked

    then drag the PDF file on the icon !Gview and you get the PDF file in the requested format (Monochrome, 300%)
    Save all the pages and you get a sprite for each page ready to be imported
    into Sharpeye.

    Important I use !GView with ghostscript 8.54 !

    I hope you can extract the parts as you wish,
    I'm waiting for you, don't hesitate if you have any problems.

    I'll go listen to the PDF file :-)
    (first page)
    --
    Jean-Michel

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Harriet Bazley@21:1/5 to Jean-Michel on Tue Mar 25 21:58:29 2025
    On 25 Mar 2025 as I do recall,
    Jean-Michel wrote:

    In message <448b16035c.harriet@bazleyfamily.co.uk>
    Harriet Bazley <harriet@bazleyfamily.co.uk> wrote:


    [snip]


    I have now e-mailed it to you twice, so I think something must be
    blocking the file :-(

    You did well to warn me, your mail was considered spam by my ISP and therefore blocked. I just recovered it.

    In the file, the composer is Ignaz Lachner, not Ignaz Pleyel?

    Ah, that would account for it. :-D
    (I mentioned, I think, that I had been looking for the Lachner chamber
    music as well... I must have got confused, as I have all the relevant
    files saved in a directory called 'Pleyel' for some reason!)


    I did a test with Sharpeye, the PDF file is almost perfect and therefore
    the result too. With this file no need to use! DPlngScan.

    Yes, that was the impression I was getting from my experiments!

    Il y a quand même quelques erreurs < 1%

    Note for Rhapsody4, do not forget to recreate the ties, they are not
    properly built in Sharpeye.

    I did manage to put the first 16 pages through Sharpeye when I first
    downloaded the score, and I even have them exported and re-assembled
    into a Rhapsody 4 file. I just lost the motivation to go through
    checking sixteen pages of four-part semiquaver harmony back against the original scans in order to detect those errors that did escape. :-(

    (Especially as the second violinist in our quartet has been ill and we
    haven't got round to arranging to play for nearly a year now....)

    --
    Harriet Bazley == Loyaulte me lie ==

    Nothing is foolproof - to a sufficiently talented fool

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Alan Griffin@21:1/5 to Jean-Michel on Tue Mar 25 21:45:02 2025
    In article <989a43035c.jmb@jmc.bruck.orange.fr>,
    Jean-Michel <jmc.bruck@orange.fr> wrote:
    Important I use !GView with ghostscript 8.54 !

    Where do you get it from?
    Alan

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jean-Michel@21:1/5 to Alan Griffin on Tue Mar 25 23:16:18 2025
    In message <5c03509b17ajg@argonet.co.uk>
    Alan Griffin <ajg@argonet.co.uk> wrote:

    In article <989a43035c.jmb@jmc.bruck.orange.fr>,
    Jean-Michel <jmc.bruck@orange.fr> wrote:
    Important I use !GView with ghostscript 8.54 !

    Where do you get it from?
    Alan

    From Martin Wrhtner site:
    http://www.mw-software.com/software/freeware.html



    --
    Jean-Michel

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Harriet Bazley@21:1/5 to Jean-Michel on Tue Mar 25 23:52:26 2025
    On 25 Mar 2025 as I do recall,
    Jean-Michel wrote:

    In message <5c03509b17ajg@argonet.co.uk>
    Alan Griffin <ajg@argonet.co.uk> wrote:

    In article <989a43035c.jmb@jmc.bruck.orange.fr>,
    Jean-Michel <jmc.bruck@orange.fr> wrote:
    Important I use !GView with ghostscript 8.54 !

    Where do you get it from?
    Alan

    From Martin Würhtner site:
    http://www.mw-software.com/software/freeware.html

    Apparently the later GhostScript 9.26 (which is the version I have)
    doesn't work so well.... :-(

    --
    Harriet Bazley == Loyaulte me lie ==

    Justice: A decision in your favour.

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