INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Lyrics as HTML  (Read 1095 times)

c1c9k72

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 332
  • So many worlds, so much to do, so little done...
Lyrics as HTML
« on: March 02, 2004, 09:21:55 pm »

I've just found that you can use HTML coding within the LYRICS field of Media Center.  While I'm not exactly sure what I want to do with this new nugget of information, I'm curious if anyone has an idea how I could quickly and cleanly replace all of the line feeds (^p) in my library to the HTML equivalent (
)?

Thanks in advance.
Logged

jleerigby

  • Guest
Re:Lyrics as HTML
« Reply #1 on: March 03, 2004, 02:16:12 am »

Have you tried Library Tools> Find and Replace.

(Select a small number of files first in case is doesn't do what you expect.)
Logged

c1c9k72

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 332
  • So many worlds, so much to do, so little done...
Re:Lyrics as HTML
« Reply #2 on: March 03, 2004, 07:28:45 am »

Yes, I know about Find and Replace.  I guess my real question is how to I indicate to the program I want to find the line feeds.  It doesn't recognize ^p.
Logged

c1c9k72

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 332
  • So many worlds, so much to do, so little done...
Re:Lyrics as HTML
« Reply #3 on: March 07, 2004, 03:24:00 pm »

Since I figured it out myself, but others may be interested in the method, I figure I'll just reply to myself.  I don't believe there is a way to find line feeds within Media Center, so using an external Hex editor, I opened the mediafiles.jmd file and did a simple find-and-replace.

Replacing 0D 0A 0D 0A with 3C 62 72 3E generates a
 at the end of every lyric line.  It's not a perfect system, since it puts two or three
s together and that only seems to get a single line feed, but I'm still working on perfecting the system.
Logged

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20063
Re:Lyrics as HTML
« Reply #4 on: March 07, 2004, 05:14:08 pm »

Quote
I opened the mediafiles.jmd file and did a simple find-and-replace.

This may not be a wise thing to do since other fields in the database may use line feeds for reasons you or i do not understand and can then corrupt your database.

Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio, Music
https://MyAAGrapevines.com
https://centercitybbs.com
Fayetteville, NC, USA

c1c9k72

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 332
  • So many worlds, so much to do, so little done...
Re:Lyrics as HTML
« Reply #5 on: March 07, 2004, 09:19:46 pm »

I thought of that too, made a backup and did some preliminary testing on the file.  There doesn't seem to be any other situation in that file where that particular arrangement of characters are used.

Now, that is with the caveat that in my file those characters don't show up.  I would guess though that they do appear in other long character strings where line feeds are found.  If someone has liner notes or other large wordy things, it'll probably affect them too.
Logged
Pages: [1]   Go Up