Index talk:Wired Love (Thayer 1880).djvu

From Wikisource
Jump to navigation Jump to search

Morse Code Formatting[edit]

So this book occasionally has blocks of text in American Morse Code. The way that Wikipedia displays morse characters is through their {{morse}} template, which does a strange thing with blocks in black and transparent colors. We could certainly port over this template, as it has many nice features, for example, the ability to distinguish between the characters unique to American Morse (the long intra-character space, the long dashes for "L" and "0", etc.).

I have transcribed on Page 5 one potential way of rendering text that I think most closely matches the original and displays it in a readable way. The method, basically is:

  1. hyphen (-) for the short mark or dot
  2. em dash (—) for the longer mark or dash
  3. space for the intra-character gap (standard gap between the dots and dashes in a character)
  4. {{gap|1em}} for the short gap (between letters)
  5. {{gap|3em}} for the medium gap (between words)
  6. {{gap|6em}} for the long gap (between sentences)
  7. {{gap|.5em}} for the long intra-character gap (longer internal gap used in C, O, R, Y, Z and &)
  8. {{bar|2}} for the "long dash" (the letter L)
  9. {{bar|2.5}} for the even longer dash (the numeral 0)

Additionally, I there used <!--comments--> at the end of each word to indicate what I had determined the word to be, and put the entire block of text in the {{tooltip}} template indicating that the block was in American Morse and what the entire block was decoded to be. This is not accessible to screen readers, etc., though it provides a relatively faithful rendering to the orthography of the printed text. Nor is it easily copied and pasted. I'm open to better methods than this, but for now, this is the established style. - Mathmitch7 (talk) 20:51, 26 January 2019 (UTC)[reply]

I suppose it may be easier to simply take each block of morse text as an image, and put the decoding in the alt-text? That certainly might be easier for everybody (but also isn't copy-past-able). Mathmitch7 (talk) 21:12, 26 January 2019 (UTC)[reply]
I have put a discussion up on Wikisource:Scriptorium#Rendering Morse codes for further discussion. Mathmitch7 (talk) 20:12, 3 June 2019 (UTC)[reply]