EvilLyrics forum
June 19, 2013, 11:11:58 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: 1
  Print  
Author Topic: Saving lyrics to HTML file  (Read 3025 times)
plusnone
Newbie
*

Karma: 0
Posts: 5


« on: November 18, 2004, 10:55:56 AM »

Hi-

I just oý¢ º¬qœA¡Saving lyrics to HTML fileplusnonereed.shea@verizon.net 68.6.103.184ùe some help:

I want to have an embedded webpage on my desktop (easy enough to do with Active Desktop) which shows the lyrics for the currently playing song.  Using v0.1.7, I can get the lyrics to save to the nowplaying.htm file, and show that on the desktop.  Unfortunately, the page on the desktop doesn't refresh automatically.

You say here  that with more recent builds it's possible to save the lyrics into an HTML file without deleting the entire contents. What I wish to do is make an HTML file that includes a metatag telling it to refresh ever 5 or 10 seconds, so that the lyrics will be automatically updated on the desktop.  With the lyrics updated like this, I should also be able to choose how they're displayed, i.e., font, colors, etc... (correct?).

From what I can tell, this seems possible, but on the page linked above, I can't understand what to do.  Please explain what tags to place in the webpage, and how.  

Also, when I had build 135 create HTML files with the lyrics, they were absent formatting.  With v0.1.7, the title was bold, and the different stanzas were seperated.  The newer versions only display a block of text.  I'd appreciat a fix in future versions.


Thanks for your help, and for a great software program.

-plusnone[/list]
Logged
EvilLyrics forum
« on: November 18, 2004, 10:55:56 AM »

 Logged
Marek
Administrator
Hero Member
*****

Karma: 8
Posts: 795


« Reply #1 on: November 18, 2004, 11:15:53 AM »

hi ... i just fixed the faq you mentioned (tags for inserting lyrics were missing from it) .. just try to read it again, maybe it will make it clearer ...

you can put lyrics and title in different spans with different text formatting so you can apply bold colors or whatever you want to
Logged

EvilLyrics Developer
plusnone
Newbie
*

Karma: 0
Posts: 5


« Reply #2 on: November 18, 2004, 11:46:04 AM »

Hi Marek,

Taý¤ ºl}œA¡Saving lyrics to HTML fileplusnonereed.shea@verizon.net 68.6.103.184;I gather from the FAQ (quoted below) that I insert tags into the .html file; EL will see them, and insert the lyrics.  Is that correct?  If so, what are the tags (what is the code) that I need to insert?

I apologize if I'm missing something really simple, or if what I'm saying is way off of what I'm supposed to do.

Quote
If you only want to insert lyrics into existing file without removing it's original content, select the file you want and insert a tag where you want to have lyrics and a tag where you want to have artist's name and song title (as they appear in EL search bar, usually in the form "Artist - Song"). Every time new lyrics are displayed in EvilLyrics (or with manual posting every time you hit Post button) tag is replaced by "lyrics of the song played". Same applies to SONGTITLE. You can use any tag in your file, or both of them.


Thanks for your help,
-plusnone
Logged
Marek
Administrator
Hero Member
*****

Karma: 8
Posts: 795


« Reply #3 on: November 18, 2004, 11:58:32 AM »

sorry again .. it's some bug in our faq system ... try to open faq page again ... and then choose "view source" of the page .. and you'll see actual tags (they use "<" and ">") so browser assumes they are html tags and doesn't dispaly them ... i'll try to fix it ... until then try this temporary solution
Logged

EvilLyrics Developer
Marek
Administrator
Hero Member
*****

Karma: 8
Posts: 795


« Reply #4 on: November 18, 2004, 12:10:00 PM »

faq article should be fixed now
Logged

EvilLyrics Developer
plusnone
Newbie
*

Karma: 0
Posts: 5


« Reply #5 on: November 18, 2004, 12:37:06 PM »

Alright, its working!  Thanks!  

One more thing:  as I mentioned before, the lyrics aren't formatted in any way.  I don't really have any HTML skills; canyou tell me if there's a way to put a <br> in front of each line?  The source shows that each line of the lyrics is on its own line, but that doesn't translate once on a web page.

Thanks
-plusnone
Logged
Marek
Administrator
Hero Member
*****

Karma: 8
Posts: 795


« Reply #6 on: November 18, 2004, 12:40:17 PM »

try putting tags like

<PRE style="font-family:tahoma">
and
</PRE>

around the lyrics


and if you manage to create some working template, you can post it here so also other people can use it ...
Logged

EvilLyrics Developer
plusnone
Newbie
*

Karma: 0
Posts: 5


« Reply #7 on: November 19, 2004, 12:14:22 AM »

Well, I managed to change the style of the text with the <pre> tags, but the problem of the lyrics not being on separate lines remains.  From what I can tell, v.0.1.7 outputs the lyrics to an HTML file, including <br> tags in front of each line.  Build 135, however, seems to ouput them on separate lines of HTML code, but without <br> tags.  Is this something that can be change from the user end, or, if not, could you fix this in the next update?

Thanks,
-plusnone
Logged
Marek
Administrator
Hero Member
*****

Karma: 8
Posts: 795


« Reply #8 on: November 19, 2004, 09:43:05 AM »

<PRE> is supposed to display preformatted text, so even if you don't have <br>'s, normal line breaks are considered and dispayed in your browser. I just checked ... for example such template works for me as supposed

<html>
<body>
<SONGTITLE>
<br>
<pre style="font-family:tahoma">
<LYRICS>
</pre>
</body>
</html>
Logged

EvilLyrics Developer
plusnone
Newbie
*

Karma: 0
Posts: 5


« Reply #9 on: November 26, 2004, 05:32:01 AM »

Marek-

The oýÁ ºÁ±¦A¡Saving lyrics to HTML fileplusnonereed.shea@verizon.net 68.6.103.184ï what I had before, but it works now.  

If anyone wants it, here's the code I use:

<html>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<META HTTP-EQUIV="REFRESH" CONTENT="30">
<body>
<pre style="font-family:tahoma">
<SONGTITLE><SONGTITLE END>
<br>
<LYRICS>
<LYRICS END>
</pre>
</body>
</html>

To use it, just paste it into notepad, then save the file somewhere as .htm (or .html).  Then on the Advanced tab of EL, set it to save the lyrics to that html file.  (if you understandw

I now have ActiveDesktop display the webpage on my desktop, refreshing every 30 seconds.  To change the refresh time, change the "30" in this: <META HTTP-EQUIV="REFRESH" CONTENT="30"> to however many seconds you want.  I found that each refresh causes an annoying flicker on my desktop, but I can handle it every 30 seconds.

-plusnone
Logged
EvilLyrics forum
   

 Logged
Pages: 1
  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines EvilLyrics