The content appears to be translated correctly, however white space is somewhat truncated. Is there a way of preserving the white space. I am converting a song sheet which is in a 2 line format: chords on one line, words on the next then repeat. The space between the chords is not being preserved.



asked 05 Apr '12, 04:17

peetj's gravatar image


edited 05 Apr '12, 12:53

Nikolay_Kh's gravatar image

Nikolay_Kh ♦♦

Hey Pete, please provide a sample image so we could get a better understanding of your task. Thanks!

(05 Apr '12, 09:34) Nikolay_Kh ♦♦

And please describe your use case. Which output format do you use? text, docx, pdf, xml? What do you do with the results after that?

The obvious answer is to use xml and check line coordinates but it may not fit well into your workflow.

(05 Apr '12, 11:57) Vasily Panferov ♦♦

I would if I could upload it - I'm being told my karma < 60 or something whatever that means.

The use case is simple. Upload a pdf chord sheet and send back text. An example would be:

Notice that on the chord lines that there is whitespace between the chords:

       A                             Dsus4         D/A    A

Give me one more chance, and you'll be satisfied

I need this whitespace preserved otherwise I will need to find another solution




answered 05 Apr '12, 13:29

peetj's gravatar image


You can upload image as soon as you verify your email (you can send verification letter from your profile page).

Currently, our plaintext export wipes out multiple spaces. I've added a feature request for disabling that option.

Meanwhile, depending on your task, you can use two approaches:

  1. Add the option exportFormat=rtf to processImage call, rich text format would preserve the spacing of original image.

  2. Alternatively, use exportFormat=xml, the resulting file would contain coordinates of every characters, so you're able to reconstruct document layout the way you want.

(05 Apr '12, 13:55) Nikolay_Kh ♦♦

Thanks for your reply. I tried the rtf method. That worked quite well although it put several chord lines at the end of a word line instead of on their own line. I also tried xml. This seems like overkill as it positions each letter. It would be better if it positioned each word. I think that this service is only worth paying for if you are giving me 99% of what I need. I'm happy for a 1% error to occur. Cheers


(05 Apr '12, 18:16) peetj

Thanks for your feedback, Pete! I'll add word coordinates for the feature request list and let you know when it's available. Meanwhile, why don't you try using docx or pdfSearchable export formats? They may offer even more accurate positioning of text.

(06 Apr '12, 14:33) Nikolay_Kh ♦♦

Thanks for your reply. I need the export format to be in text as we convert to ChordPro - a text format for storing songs. I could cope with html like the hOCR format as I could easily transform that. But as I said before the chords need to be positioned exactly right which comes down to whitespace



(07 Apr '12, 12:36) peetj
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 05 Apr '12, 04:17

Seen: 6,204 times

Last updated: 07 Apr '12, 12:36

© 2016 ABBYY. All rights Reserved. | Privacy Policy | Legal