View Single Post
Old 08-21-2015, 08:07 AM   #28
waschtl
Junior Member
waschtl began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jul 2015
Device: Kindle Paperwhite
Quote:
Originally Posted by Tex2002ans View Post
<pre></pre>:
This means that the text appears in a fixed-width font, and all of the odd spacing they placed in the code stays exactly the same.
...
Seems like someone on Stack Exchange asked this same exact question as your initial post
...
Are you just trying to create this MOBI copy for yourself? Or are you planning on distributing this anywhere?
I fear that this sort of book may just be one of those subsets that are not well-suited for EPUB/MOBI, and would be better suited as PDF/physical books. Although maybe I am wrong. Maybe there are some fantastic music EPUBs out there.
I will look into that, seems to be the same as monospaced font, right? Should be working, the following posts seem to be more promising, though

Quote:
Originally Posted by Turtle91 View Post
Wider letter spacing can be accomplished with "letter-spacing: 2px" in your css.
I'm pretty sure wider letters would need a different font.
You can even add extra spacing between words with "word-spacing:5px"
That's cool, thanks!

Quote:
Originally Posted by cybmole View Post
I am impressed- hope the OP is still paying attention
I am ;D Both payig attention and being impressed

Quote:
Originally Posted by Turtle91 View Post
Here's my idea:

- Use <sup> and <sub> tags to define a vertical-align above or below
- insert chord (<sup>) at the appropriate location (I randomly inserted to show variation)
- insert chorus (<sub>) at the appropriate location (also randomly inserted)
- I used a <span>&nbsp;</span> set to the appropriate width for an exact spacer (you may wish to add 'style="width: xx" ' in the span tag for individual spacing - or remove the span for no spacing at all)
That looks very promising! What's the benefit of the <ruby>Text<rt>chord</rt></ruby> syntax over <sup> / <sub> syntax?

My sources are scanned pages of a songbook, ocr'ed astonishingly good with tesseract-ocr. It doesn't preserve the alignment, though, as it interprets every line on it's own. Just for me, because I want a digital copy to not have to carry the originals around, plus lighting and searching a song becomes so much easier...

What this means:
-I have to rework every song, regardless if I put it in Word or Sigil or if I generate pdf or epub/mobi.
-Reflowable would be nice, but all Songs will be formatted to fit in one page in a readable font size, as it's done in the source.

Thanks a lot already, this has been very enlightening. Looking forward for the next answers
waschtl is offline   Reply With Quote