LITTLEBLACKDOG.COM Forum Index LITTLEBLACKDOG.COM

 
LWD LWD   FAQ FAQ   Memberlist Memberlist   Usergroups Usergroups   Active Topics Active Topics   Register Register  
  Profile Profile   Log in to check your private messages Log in to check your private messages   Log in Log in  
  Who is Online Who is Online   Image Gallery Image Gallery   Chat Chat   Search Search  
  LWDGear       LBDGear  

View next topic
View previous topic
Post new topic     Reply to topic   LITTLEBLACKDOG.COM Forum Index » Code Warriors
Author Message
dstg_ll
-=* NSFW *=-
-=* NSFW *=-


Joined: 14 Jun 2002
Age: 32
Posts: 13956
Location: Black Pearl

Post Posted: Mon Oct 20, 2003 5:11 am   Post subject: Indentation Reply with quote Back to top  

I'm pretty sure there's a software that's doing this, but i'm still sleeping and i can't find it.

Is there a software somewhere that compare a source file, remember the indentation in it and then, you can apply it to a "target" file to reproduce the indentation of the source file...

The thing is that i'm working with XML files and the client want the exact same indention in his target file which is, a translated version of the source file. The problem is that those stupid translators fook up the indentation and we have to fix it manually and it's very time consuming.

Anyway, if someone have an idea or know a software that can do that, please share... Big Smile

_________________
http://www.flickr.com/photos/dstg

Guy #1: Then You Post Those Fatties!
Guy #2: No can do. The forum limits attachments to 1600 x 1600.
View user's profile Send private message Visit poster's website
csign
Moderator
Moderator


Joined: 26 May 2001
Posts: 8155
Location: Borneo

Post Posted: Mon Oct 20, 2003 6:32 am   Post subject: Reply with quote Back to top  

?ident?
View user's profile Send private message Send e-mail
dstg_ll
-=* NSFW *=-
-=* NSFW *=-


Joined: 14 Jun 2002
Age: 32
Posts: 13956
Location: Black Pearl

Post Posted: Mon Oct 20, 2003 6:33 am   Post subject: Reply with quote Back to top  

Say that again ? Wink Smile


Seriously, this is commandline or... ? Linux based ? I'm on Windoh at work.

_________________
http://www.flickr.com/photos/dstg

Guy #1: Then You Post Those Fatties!
Guy #2: No can do. The forum limits attachments to 1600 x 1600.
View user's profile Send private message Visit poster's website
csign
Moderator
Moderator


Joined: 26 May 2001
Posts: 8155
Location: Borneo

Post Posted: Mon Oct 20, 2003 12:46 pm   Post subject: Reply with quote Back to top  

linux based
View user's profile Send private message Send e-mail
Webster
Guide Dog
Guide Dog


Joined: 16 Feb 2002
Age: 28
Posts: 8701
Location: Vacationland

Post Posted: Mon Oct 20, 2003 5:06 pm   Post subject: Reply with quote Back to top  

Time to learn perl... Wink Wouldn't be too hard to write.

_________________
www .Run To Win.com
The Marathon Thread
I finally published my book: Comprehensive Guide to Marathon Preparation & Recovery
View user's profile Send private message Send e-mail Visit poster's website AIM Address
csign
Moderator
Moderator


Joined: 26 May 2001
Posts: 8155
Location: Borneo

Post Posted: Mon Oct 20, 2003 5:36 pm   Post subject: Reply with quote Back to top  

You must be joking. This is the type of problem for which 99% solution is trivial and a 99.9% solution is impossible to do before the heat death of the universe
View user's profile Send private message Send e-mail
dstg_ll
-=* NSFW *=-
-=* NSFW *=-


Joined: 14 Jun 2002
Age: 32
Posts: 13956
Location: Black Pearl

Post Posted: Tue Oct 21, 2003 3:43 am   Post subject: Reply with quote Back to top  

I know Perl, but not enough to do this. I should practice...

Anyway, i did a little Word macro. It searches for "*<", move back one space, copy, search "^p", move right one time, goto target document, do the same search, move back again, paste, then loop.

Not the best way, but it's doing the job. Will try a Perl script when i will have more time.

_________________
http://www.flickr.com/photos/dstg

Guy #1: Then You Post Those Fatties!
Guy #2: No can do. The forum limits attachments to 1600 x 1600.
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic     Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
phpBB SEO
All times are GMT - 8 Hours

Help us keep advertisements off this site. Donate today!