Log in

View Full Version : sTrimming extra spaces



Guest
02-21-2005, 07:57 PM
Is there a way to prevent the program from automatically trimming out extra spaces from with in song-titles and such? Sometimes I like to space out special characteristics from the song titles (i.e., "Got The Life (Live)" as oppose to "Got the Life (Live)"), but the program automatically cuts the three spaces down to one. I'd much rather have the spaces then having something like a dash inbetween. Does anyone know how to turn off this function?

Thanks

pheisholt
02-22-2005, 03:10 AM
This is most likely due to the fact that HTML by default does not preserve spacing.
To preserve spacing you would have to modify the theme (or template) you're using by wrapping the <pre>...</pre> tag around the track (and/or album) title.

Something like this:
<pre><!--[tracktitle/]--></pre>

I haven't tried this, but I think it should work.

zombie0
02-22-2005, 03:48 AM
Tried this. Doesn't seem to work, unless I'm doing something wrong. Thanks for the suggestion anyways.

pheisholt
02-22-2005, 07:03 PM
I just tried, and it worked fine. The <pre>-tag preserves spacing. I added extra spaces to album titles, artist names and track names, and they were all displayed in OCD with the extra spaces.

I used a copy of the Crisp-Play theme, but this can be done to any OCD theme.

zombie0
02-23-2005, 12:06 AM
Hey,

Can you give me better instructions on how to do this, because everytime I try it, it doesn't seem to work. I enter in the Disc properties the song name with <pre> before it and </pre> after it (something like this: <pre>Jimmy James (Original Version)</pre>) but when I hit set, it displays the name just as that, but without extra spaces!!! >:(

Thanks for the help, Bud!

pheisholt
02-23-2005, 03:46 AM
You have to edit the theme itself. In other words you must locate the Daxexit.exe utility which comes with OCD. Daxedit will allow you to edit the theme of your choice, for instance Crisp.dax.

In Daxedit you'll find that the theme is split into several tabs. You're primarily interested in the Start , Album and Track tabs. That's where you want to search for the album title, track title and artist name.

The track title tag looks like this:<!--[tracktitle/]-->.
You need to wrap the track title tag in a set of <pre></pre> tags, like this:
<pre><!--[tracktitle/]--></pre>.

If this makes no sense to you, send me your email address and I'll return some screen shots to help you along.

rcarljohnson
02-23-2005, 02:10 PM
Paul,
Would this modification allow boldface and italics in fields like the Note field?

What i'd like to do is insert <B>word to be bold-faced</B> in the Notes field or other to get the Bold, or Underlined, or Italicized effect.

Bob

zombie0
02-23-2005, 05:13 PM
Thanks Paul,

I tried this out and it seemed to work for the spaces, but it changed my font in the process. I don't know if there is a way to work around this, but I don't really like mucking around with that stuff anyways, cuz I really don't know what I'm doing. The spaces are no big deal anyways, but I appreciate your help.
Thanks a bunch.

pheisholt
02-23-2005, 07:02 PM
Hi rcarljohnson

If you mean including HTML tags inside the Notes field, I'm afraid it won't work.

However if you want the entire content of the Notes field to be, for instance underlined, I'm quite sure that wrapping the OCD Notes field tag (<!--[Comment]-->) in HTML underline tags (<u><!--[Comment]--></u>) would do the trick.

pheisholt
02-23-2005, 07:15 PM
Hi zombie0

You're right. The <pre> tag will turn everything into a monospaced font, like Courier New.

However, I assume that one can force the <pre> element to use a different font by adding a CSS style specifying the desired font, but I've never actually tried doing that.

Here's an example:

<style type="text/css">
<!--
pre {font-family:arial; font-size:8 pt; color: darkblue}
-->
</style>

rcarljohnson
02-23-2005, 11:44 PM
Thanks Paul. I was looking for a way to specifically Boldface or Underline selective words only. Guess I'll have to wait until Orange supports formatting within fields.

Appreciate the help!

Bob

theicedevil
03-07-2005, 05:45 AM
A simpler way to add spaces is to use this really cool keyboard shortcut.

Hold the "Alt" key and type 255 and then release the "Alt" key. It adds a bank font. It appears to be a space but it is read as an actual text font/character because it is. In HTML it looks like this, "&amp;nbsp;"