Hi Textmate group!
I don't have too much insight in how Textmate's plug-ins nor bundles work… but after I fiddled around with some of the preferences and files, I soon came to a conclusion that It's hard to change the font- preference depending on what file-type it is.
I would like to use a custom font JUST when viewing a .nfo file.
Some background info about .nfo files can be found here: http://www.ubuntuforums.org/showthread.php?t=83499
The .nfo file contains "ascii-art", which originates from the demo- scene a la 1980's… and is now used in a lot of filereleases on internet.
Keep up the magnificant work ! /Johan
On 7 Oct 2006, at 17:30, Johan Klintberg wrote:
Hi Textmate group!
I don't have too much insight in how Textmate's plug-ins nor bundles work… but after I fiddled around with some of the preferences and files, I soon came to a conclusion that It's hard to change the font-preference depending on what file-type it is.
I would like to use a custom font JUST when viewing a .nfo file.
Some background info about .nfo files can be found here: http://www.ubuntuforums.org/showthread.php?t=83499
The .nfo file contains "ascii-art", which originates from the demo- scene a la 1980's… and is now used in a lot of filereleases on internet.
Keep up the magnificant work ! /Johan
Well, my understanding was that ASCII art works with any monospace font... Or are you talking about ANSI art, which is a wholly different beast (and which the screenshot in the first post of the thread you link to is)?
-- Max
On 10/7/06, Max Noel maxfnoel@gmail.com wrote:
Well, my understanding was that ASCII art works with any monospace font... Or are you talking about ANSI art, which is a wholly different beast (and which the screenshot in the first post of the thread you link to is)?
He's talking about ASCII art (the pictures there are all monochrome, except somone has set a background/forgeground color in one of them). I guess the issue is that most ascii art makes use of those black characters in codepage 437 (DOS ASCII) [1] and has to have a special font to display it correctly. It looks like he needs a bundle to be associated with a specific font / theme setting. I guess it might be handy for people doing APL programming or something too. If they still exist.
-Pawel
[1] http://www.borgendale.com/codepage/cp437.gif - see B0 throughDF
I don't have too much insight in how Textmate's plug-ins nor bundles work… but after I fiddled around with some of the preferences and files, I soon came to a conclusion that It's hard to change the font-preference depending on what file-type it is.
I would like to use a custom font JUST when viewing a .nfo file.
Setting a custom theme, font, etc for a specific language isn't possible. Don't remember font actually being requested before, theme- per-language is a very common (known) request though.
Ok, thanks! Thats about what I want to hear :)
This is a feature maybe 1‰ of the Textmate users would use, so never mind.
Have a smashing onward weekend! /Johan
On 7 okt 2006, at 23.16, Michael Sheets wrote:
I don't have too much insight in how Textmate's plug-ins nor bundles work… but after I fiddled around with some of the preferences and files, I soon came to a conclusion that It's hard to change the font-preference depending on what file-type it is.
I would like to use a custom font JUST when viewing a .nfo file.
Setting a custom theme, font, etc for a specific language isn't possible. Don't remember font actually being requested before, theme-per-language is a very common (known) request though. ______________________________________________________________________ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Johan Klintberg wrote:
Hi Textmate group!
I don't have too much insight in how Textmate's plug-ins nor bundles work… but after I fiddled around with some of the preferences and files, I soon came to a conclusion that It's hard to change the font- preference depending on what file-type it is.
I would like to use a custom font JUST when viewing a .nfo file.
I bet you could make a command which would change these code points into the relevant unicode code points, so that your artwork would show up correctly. The nice thing about unicode is it can handle all of these glyphs. I bet you could even use some existing command line tool like iconv to do it.
-Jacob
Jacob Rus wrote:
I bet you could make a command which would change these code points into the relevant unicode code points, so that your artwork would show up correctly. The nice thing about unicode is it can handle all of these glyphs. I bet you could even use some existing command line tool like iconv to do it.
Then as your font you can use DejaVu Sans Mono, which has all of these unicode glyphs included (I just checked).
-Jacob
Yes, many fonts have the glyphs included in "Box drawing" and "Block elements" (Unicode 9472-9727), but the .nfo file expects those glyphs to reside inside "Latin-1 Supplement" (Unicode 0080 to 00FF) and if they don't, they don't show up.
The font "Lucida Console P" can correctly render the special characters needed in Latin-1 Supplement. You can download the font at http://home.online.no/~aageli/luconP.ttf
This is the way a correctly .nfo file should end up looking like: http://img492.imageshack.us/my.php?image=ssnfoview7bn.png
I don't know if this is a success, but I'll copy-paste some nfo content as it looks with Monaco font. Might work, might not.
ßÛÛ²°°°²²° ÜÞÛ²²²²²²Û ßÛÛ²°°²ÛÛ ß° °²Û ßÛ²°° °²ÛÛ ° ²ÛÛ ÛÛ²°²ÛÝ ÞÛÛ²°°°° ÛÛ ÛÛ²°°°°²ß ÞÛ²°°°²ÛÛÛ °°ß ÞÛ²° °²ÛÛ ° ²ÛÛÜ ÛÛ²°°²ÛÛ ÛÛ²°° ° ÛÛ²Û ÛÛ²°° ° ÛÛ²° °²²ÛÛ ÜÛÛ²° °°²ÛÝ ° ²ÛÛÛÛ²°°²ÛÛÝ ÞÛÛ° Û²²ÛÛ Û²° ÛÛ²° °²²ÛÜ ÜÜÛ²²° °²ÛÛ ÛÜ° ²ÛÛ²° °²ÛÛ
Off-course, I could continue to use "Lucida Console P" for all Textmate purposes, but thats not optimal.
/ Johan
On 8 okt 2006, at 07.16, Jacob Rus wrote:
Jacob Rus wrote:
I bet you could make a command which would change these code points into the relevant unicode code points, so that your artwork would show up correctly. The nice thing about unicode is it can handle all of these glyphs. I bet you could even use some existing command line tool like iconv to do it.
Then as your font you can use DejaVu Sans Mono, which has all of these unicode glyphs included (I just checked).
-Jacob
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
---------------------------------------------------------------------- Johan Klintberg Kopparmöllegatan 14 254 36 Helsingborg
Phone: +46 (0)42 - 210 214 Cell: +46 (0)709 - 37 89 89
Check out http://ansilove.sourceforge.net/
I used that to make an ANSi art bundle. It's not much of anything, just colors the ansi codes and lets you replace the escape character with /e and back again. And it lets you preview the file with ansilove which converts it into a png and shows it in the output window.
Just replace the path to ansilove with your own. Enjoy.
 thomas Aylott — subtleGradient — CrazyEgg
On Oct 8, 2006, at 8:27 AM, Johan Klintberg wrote:
Yes, many fonts have the glyphs included in "Box drawing" and "Block elements" (Unicode 9472-9727), but the .nfo file expects those glyphs to reside inside "Latin-1 Supplement" (Unicode 0080 to 00FF) and if they don't, they don't show up.
The font "Lucida Console P" can correctly render the special characters needed in Latin-1 Supplement. You can download the font at http://home.online.no/~aageli/luconP.ttf
This is the way a correctly .nfo file should end up looking like: http://img492.imageshack.us/my.php?image=ssnfoview7bn.png
I don't know if this is a success, but I'll copy-paste some nfo content as it looks with Monaco font. Might work, might not.
ßÛÛ²°°°²²° ÜÞÛ²²²²²²Û ßÛÛ²°°
²ÛÛ ß° °²Û ßÛ²°° °²ÛÛ °²ÛÛ ÛÛ²° ²ÛÝ ÞÛÛ²°°°° ÛÛ ÛÛ²°°°°²ß ÞÛ²°°° ²ÛÛÛ °°ß ÞÛ²° °²ÛÛ °²ÛÛÜ ÛÛ²°°²ÛÛ ÛÛ²°° ° ÛÛ²Û ÛÛ²°° ° ÛÛ²° ° ²²ÛÛ ÜÛÛ²° °°²ÛÝ °²ÛÛÛÛ²°°²ÛÛÝ ÞÛÛ° Û²²ÛÛ Û²° ÛÛ²° ° ²²ÛÜ ÜÜÛ²²° °²ÛÛ ÛÜ°²ÛÛ²° °²ÛÛ
Off-course, I could continue to use "Lucida Console P" for all Textmate purposes, but thats not optimal.
/ Johan
On 8 okt 2006, at 07.16, Jacob Rus wrote:
Jacob Rus wrote:
I bet you could make a command which would change these code points into the relevant unicode code points, so that your artwork would show up correctly. The nice thing about unicode is it can handle all of these glyphs. I bet you could even use some existing command line tool like iconv to do it.
Then as your font you can use DejaVu Sans Mono, which has all of these unicode glyphs included (I just checked).
-Jacob
_ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Johan Klintberg Kopparmöllegatan 14 254 36 Helsingborg
Phone: +46 (0)42 - 210 214 Cell: +46 (0)709 - 37 89 89
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Not bad, not bad! Thanks. :)
/Johan
On 9 okt 2006, at 16.04, thomas Aylott wrote:
Check out http://ansilove.sourceforge.net/
I used that to make an ANSi art bundle. It's not much of anything, just colors the ansi codes and lets you replace the escape character with /e and back again. And it lets you preview the file with ansilove which converts it into a png and shows it in the output window.
Just replace the path to ansilove with your own. Enjoy.
<ANSi Artscene.zip>
thomas Aylott — subtleGradient — CrazyEgg
On Oct 8, 2006, at 8:27 AM, Johan Klintberg wrote:
Yes, many fonts have the glyphs included in "Box drawing" and "Block elements" (Unicode 9472-9727), but the .nfo file expects those glyphs to reside inside "Latin-1 Supplement" (Unicode 0080 to 00FF) and if they don't, they don't show up.
The font "Lucida Console P" can correctly render the special characters needed in Latin-1 Supplement. You can download the font at http://home.online.no/~aageli/luconP.ttf
This is the way a correctly .nfo file should end up looking like: http://img492.imageshack.us/my.php?image=ssnfoview7bn.png
I don't know if this is a success, but I'll copy-paste some nfo content as it looks with Monaco font. Might work, might not.
ßÛÛ²°°°²²° ÜÞÛ²²²²²²Û ßÛÛ²°°²ÛÛ ß° °²Û ßÛ²°° °²ÛÛ °
²ÛÛ ÛÛ²°²ÛÝ ÞÛÛ²°°°° ÛÛ ÛÛ²°°°°²ß ÞÛ²°°°²ÛÛÛ °°ß ÞÛ²° °²ÛÛ ° ²ÛÛÜ ÛÛ²°°²ÛÛ ÛÛ²°° ° ÛÛ²Û ÛÛ²°° ° ÛÛ²° °²²ÛÛ ÜÛÛ²° °°²ÛÝ ° ²ÛÛÛÛ²°°²ÛÛÝ ÞÛÛ° Û²²ÛÛ Û²° ÛÛ²° °²²ÛÜ ÜÜÛ²²° °²ÛÛ ÛÜ° ²ÛÛ²° °²ÛÛ
Off-course, I could continue to use "Lucida Console P" for all Textmate purposes, but thats not optimal.
/ Johan
On 8 okt 2006, at 07.16, Jacob Rus wrote:
Jacob Rus wrote:
I bet you could make a command which would change these code points into the relevant unicode code points, so that your artwork would show up correctly. The nice thing about unicode is it can handle all of these glyphs. I bet you could even use some existing command line tool like iconv to do it.
Then as your font you can use DejaVu Sans Mono, which has all of these unicode glyphs included (I just checked).
-Jacob
__ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Johan Klintberg Kopparmöllegatan 14 254 36 Helsingborg
Phone: +46 (0)42 - 210 214 Cell: +46 (0)709 - 37 89 89
_ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
---------------------------------------------------------------------- Johan Klintberg Kopparmöllegatan 14 254 36 Helsingborg
Phone: +46 (0)42 - 210 214 Cell: +46 (0)709 - 37 89 89