looking for text editor to edit NFOs

Discuss, get help with, or post new graphics for TTDPatch and OpenTTD, using the NewGRF system, here. Graphics for plain TTD also acceptable here.

Moderator: Graphics Moderators

Post Reply
User avatar
George
Tycoon
Tycoon
Posts: 4364
Joined: 16 Apr 2003 16:09
Skype: george-vb
Location: Varna, Bulgaria
Contact:

looking for text editor to edit NFOs

Post by George »

I'm bored with my text editor and I'm looking for a new one.
The main features it has to have are:
  • It can replace multi line strings (remove or add line breaks / tabs with replace function)
    It allows copy-past vertical blocks
    It supports utf-8 and can open NFO file in utf-8 mode by default (without any mouse click)
    It can store last cursor position and open file on this position on next open
if you know any - let me know, please
Image Image Image Image
michael blunck
Tycoon
Tycoon
Posts: 5954
Joined: 27 Apr 2005 07:09
Contact:

Re: looking for text editor to edit NFOs

Post by michael blunck »

Some people over here (AndersI, myself, ...) are using PSPad.

Don´t know about UTF-8 capabilities, but it´s surely worth a try, especially because you may "bundle" files into "projects" and you may highlight text in different ways.

Beware! It´s much more than an editor, it´s an integrated development tool.
PSPad_demo.png
PSPad_demo.png (30.31 KiB) Viewed 3572 times
regards
Michael
Last edited by michael blunck on 21 Jun 2008 14:30, edited 1 time in total.
Image
fjb
Engineer
Engineer
Posts: 86
Joined: 08 Oct 2007 11:20

Re: looking for text editor to edit NFOs

Post by fjb »

Hi,

have a look at vim.
http://www.vim.org/
Regards
Frank
User avatar
George
Tycoon
Tycoon
Posts: 4364
Joined: 16 Apr 2003 16:09
Skype: george-vb
Location: Varna, Bulgaria
Contact:

Re: looking for text editor to edit NFOs

Post by George »

michael blunck wrote:Beware! It´s much more than an editor, it´s an integrated development tool.
Please help!
I used this plugin http://forum.pspad.com/read.php?2,34061 and I have a problem. When I make a search it replaces Þ with ? - what to do?
Image Image Image Image
User avatar
cmoiromain
Chief Executive
Chief Executive
Posts: 655
Joined: 15 Jan 2007 21:45
Location: FRANCE
Contact:

Re: looking for text editor to edit NFOs

Post by cmoiromain »

isn't that a font issue?
I am little, ugly, and nasty. How do you do?
User avatar
George
Tycoon
Tycoon
Posts: 4364
Joined: 16 Apr 2003 16:09
Skype: george-vb
Location: Varna, Bulgaria
Contact:

Re: looking for text editor to edit NFOs

Post by George »

cmoiromain wrote:isn't that a font issue?
IMHO no, because it is Ok before replace
Image Image Image Image
michael blunck
Tycoon
Tycoon
Posts: 5954
Joined: 27 Apr 2005 07:09
Contact:

Re: looking for text editor to edit NFOs

Post by michael blunck »

George wrote:Please help!
I used this plugin http://forum.pspad.com/read.php?2,34061 and I have a problem. When I make a search it replaces Þ with ? - what to do?
I´ve seen that you already registered there and asked for help. I doubt that anyone over here uses that particular plugin, so ...

regards
Michael
Image
User avatar
George
Tycoon
Tycoon
Posts: 4364
Joined: 16 Apr 2003 16:09
Skype: george-vb
Location: Varna, Bulgaria
Contact:

Re: looking for text editor to edit NFOs

Post by George »

michael blunck wrote:
George wrote:Please help!
I used this plugin http://forum.pspad.com/read.php?2,34061 and I have a problem. When I make a search it replaces Þ with ? - what to do?
I´ve seen that you already registered there and asked for help. I doubt that anyone over here uses that particular plugin, so ...
Do you use this plug-in? How do you replace multi line strings? what settings do you use to work with UTF-8?
Image Image Image Image
michael blunck
Tycoon
Tycoon
Posts: 5954
Joined: 27 Apr 2005 07:09
Contact:

Re: looking for text editor to edit NFOs

Post by michael blunck »

George wrote: you use this plug-in? How do you replace multi line strings? what settings do you use to work with UTF-8?
No. I don´t. ATM, I don´t.

regards
Michael
Image
User avatar
onodera
Traffic Manager
Traffic Manager
Posts: 170
Joined: 30 Jan 2005 23:00
Location: Moscow, Russia
Contact:

Re: looking for text editor to edit NFOs

Post by onodera »

Try UltraEdit. It doesn't remember the cursor position, but I *think* its bookmarks are persistent.
It's a nodding donkey in my avatar, not me! I'm an oil rig.
User avatar
prissi
Chief Executive
Chief Executive
Posts: 648
Joined: 15 Nov 2004 19:46
Location: Berlin, Germany
Contact:

Re: looking for text editor to edit NFOs

Post by prissi »

I use Utraedit, since I also often need multiline replaces and UTF8. At least in version 8.20 it remembered the cursor position too of the last opened files. However, I am not sure how bloated current version have gotten.
I like to look at great maps and see how things flow. A little like a finished model railway, but it is evolving and actually never finished. http://www.simutrans.com
Devastator
Engineer
Engineer
Posts: 1
Joined: 20 Nov 2005 10:55
Location: Lithuania

Re: looking for text editor to edit NFOs

Post by Devastator »

or you can try Notepad++
Its open source editor, same as ultraedit or pspad
User avatar
CMircea
Chairman
Chairman
Posts: 887
Joined: 29 Dec 2006 14:05

Re: looking for text editor to edit NFOs

Post by CMircea »

Devastator wrote:or you can try Notepad++
Its open source editor, same as ultraedit or pspad
Except that I can't get multi-line replaces in it.
User avatar
George
Tycoon
Tycoon
Posts: 4364
Joined: 16 Apr 2003 16:09
Skype: george-vb
Location: Varna, Bulgaria
Contact:

Re: looking for text editor to edit NFOs

Post by George »

Madassasin wrote:
Devastator wrote:or you can try Notepad++
Its open source editor, same as ultraedit or pspad
Except that I can't get multi-line replaces in it.
I could do it, but it was hard in use, so I rejected it.
Image Image Image Image
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: looking for text editor to edit NFOs

Post by DaleStan »

The biggest issue, as I see it (stop me if I'm way off here) is the not-entirely-obvious mix of Latin-TTD and UTF-8 with TTD private characters.

Therefore, the most necessary feature in an NFO editor is the ability to handle this weird encoding properly. Better would be one that can save strings that fit into Latin-TTD as Latin-TTD, instead of a simplistic always-UTF-8 scheme.

A custom-built editor could do this, but it seems rather like at least re-inventing the wheel, if not reinventing the square wheel. There are editors that provide massive scripting power, and I would say that one or more of them, fit with the appropriate script(s)[0] would be the best solution. I suspect that (X)Emacs would provide the scripting power necessary to make that happen, but I don't know enough about it to be sure.

[0] I'd say that it's only necessary to parse actions 4, 8, B, F, and 13 for string conversion.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
User avatar
George
Tycoon
Tycoon
Posts: 4364
Joined: 16 Apr 2003 16:09
Skype: george-vb
Location: Varna, Bulgaria
Contact:

Re: looking for text editor to edit NFOs

Post by George »

DaleStan wrote:The biggest issue, as I see it (stop me if I'm way off here) is the not-entirely-obvious mix of Latin-TTD and UTF-8 with TTD private characters.
Therefore, the most necessary feature in an NFO editor is the ability to handle this weird encoding properly. Better would be one that can save strings that fit into Latin-TTD as Latin-TTD, instead of a simplistic always-UTF-8 scheme.
A custom-built editor could do this, but it seems rather like at least re-inventing the wheel, if not reinventing the square wheel. There are editors that provide massive scripting power, and I would say that one or more of them, fit with the appropriate script(s)[0] would be the best solution. I suspect that (X)Emacs would provide the scripting power necessary to make that happen, but I don't know enough about it to be sure.
[0] I'd say that it's only necessary to parse actions 4, 8, B, F, and 13 for string conversion.
It would be really useful if someone would provide a customisation for some editor to edit NFOs
I'd with pleasure use it if the editor would support (a must list):
- multi-line simple/regexp find and replace
- vertical blocks select/copy/cut/paste with keyboard
- remembering the last edited position on next open
Image Image Image Image
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: No registered users and 9 guests