Jump to content

Template talk:Morse

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Kpfiwa (talk | contribs) at 19:38, 1 September 2021 (→‎My idea). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Disaster for text browsers

This template is a disaster for text browsers.


A {{morse|dot|dash}}                  ▄▄▄▄▄▄▄▄
B {{morse|dash|dot|dot|dot}}          ▄▄▄▄▄▄▄▄▄▄▄▄
C {{morse|dash|dot|dash|dot}}         ▄▄▄▄▄▄▄▄▄▄▄▄▄▄

Perhaps work on something with more web accessibility.

In fact, Morse code works on even the lowest end devices. So Template:Morse shouldn't require only the highest end web browsers to render correctly. Jidanni (talk) 11:01, 21 November 2020 (UTC)[reply]

I downloaded Browsh to try this, but the Windows version doesn't work. I mean, it doesn't work at all. The next few on the list look unsuitable for Windows, or at least a nightmare to install. I'm guessing that the problem is that text browsers ignore CSS text styling, but without a working platform to test it on, there's not a lot I can do. Someone at WP:VPT might be able to help, or at least point to somewhere that can. I don't think you can describe CSS support as the domain of the "highest end web browsers". That's pretty much universal nowadays. SpinningSpark 17:12, 30 August 2021 (UTC)[reply]

My idea

@User:Kurzon, User:Spinningspark: Please have a look to my Morse idea. Maybe it's good for you too? --Klaus-Peter 11:43, 30 August 2021 (UTC)--[[reply]

That's a great template and it will probably get a lot of use if you make it available on en:wiki too. However, it can't totally replace this template. For a start, it's used to write in American Morse code which has different timings and codings to the International code. It can usefully generate any arbitrary sequence of dots and dashes whether or not an official symbol. All codes in all languages. All of that is not possible starting from text to translate. SpinningSpark 17:18, 30 August 2021 (UTC)[reply]
No problem at all! You will find a lot of comments in the Vorlage:Morse. Iss easy to implement with a translator for your Template:Morse. Actuel I don't have the time.
Regarding the American timing, you will find the definition of the character lengths and the pauses starting at line 35 in Modul:Vorlage/Morse:
    ["p"] = "▄ ", -- short/dit  + pause
    ["l"] = "▄▄▄ ", -- long/dah = 3 dit + pause
    ["t"] = "  ", -- between 2 letters
    ["s"] = "    " --  between 2 words.
   ["p"] = "▄ ",
   ["l"] = "▄▄▄ ",
   ["t"] = "  ",
   ["s"] = "    "
Don't forget to copy de:Modul:Vorlage/Morseletters too.
It's very easy to adjust. Maybe s is a little bit tricky, but 7 spaces are good too
Good luck and best wishes Klaus-Peter 11:40, 1 September 2021 (UTC)
I just see in American Morse code that there are more differences. I'll try to write a Version with an additional parameter for you. The problem ist, that 'en'-Britisch are still different, partially like European Klaus-Peter 12:23, 1 September 2021 (UTC)[reply]
Now I have an additional option ″US″, if true you'll get the Railroaad version. Have a look to my Morse page. Do you will replace Template:Morse or install a 2nd version? Klaus-Peter 19:38, 1 September 2021 (UTC)[reply]