Author Topic: Traify issue with line breaks  (Read 1694 times)

Offline Miloch

  • Barbarian
  • Planewalker
  • *****
  • Posts: 1032
  • Gender: Male
Traify issue with line breaks
« on: August 09, 2009, 08:20:21 PM »
I posted this here too but here it is again for redundancy's sake:
Quote
I think there is an issue in WeiDU with traifying strings that have a line break in them, for example, journal entries. I'm getting LEXER WARNINGs near text "unterminated comment", PARSE ERRORs and syntax errors when trying that. I've tried removing them manually hoping to reinsert them manually as well. It progresses the traification but, well, there's a lot of them and it only chokes later on with similar journal entries.

Attached linked are the files I'm trying to retraify, if anyone can help reproduce and troubleshoot. The syntax I'm using is: weidu --traify agtomtha.d --traify-old-tra agtomtha.tra --out agtomtha-new --traify-comment.
The particular line in the .d it seems to be choking on is below. Though it will choke on any others that add journal entries with line breaks if I remove the journal reference from this particular one (and there are many of these).
Quote
++ @27 /* ~How much would you be willing to pay?~ */ DO ~SetGlobal("ag_tom_nice","GLOBAL",1) IncrementGlobal("ag_tomruby","GLOBAL",1) AddJournalEntry(@28,QUEST)~ + ag_tom_gems_1
And the relevant .tra entries are:
Quote
@27   = ~How much would you be willing to pay?~
@28   = ~A Love of Rubies

Tomthal, the gnome who runs Aurora's Shoes at night, turns out to be an avid ruby collector. I will likely be able to sell him any I find for more than the usual market value.~
« Last Edit: August 10, 2009, 01:32:37 PM by Miloch »

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: Traify issue with line breaks
« Reply #1 on: August 10, 2009, 06:54:18 AM »
Give me the pre-traification .d file (or fix your link) and you might have a chance I don't simply ignore this.
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

Offline Miloch

  • Barbarian
  • Planewalker
  • *****
  • Posts: 1032
  • Gender: Male
Re: Traify issue with line breaks
« Reply #2 on: August 10, 2009, 01:33:45 PM »
Give me the pre-traification .d file (or fix your link)
Doh, fixed. I'd've attached it here too if this forum let me do that.

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: Traify issue with line breaks
« Reply #3 on: August 10, 2009, 03:12:53 PM »
The .d file is broken because it has a '@@@' at line 527.

Aside from that, fixed by removing the ~~s in the comment section when output by --traify-comment.
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

Offline Miloch

  • Barbarian
  • Planewalker
  • *****
  • Posts: 1032
  • Gender: Male
Re: Traify issue with line breaks
« Reply #4 on: August 10, 2009, 06:27:24 PM »
The .d file is broken because it has a '@@@' at line 527.
Doh again. Must've left a proofreading marker in there.
Quote
Aside from that, fixed by removing the ~~s in the comment section when output by --traify-comment.
Cheers. I can probably use Isaya's workaround in the meantime, unless you want to shoot me a prerelease (to be used only for this and testing, obviously). I've got at least a couple other similar dialogues to retraify.

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: Traify issue with line breaks
« Reply #5 on: August 10, 2009, 06:48:38 PM »
Certainly. Real man can get the source code and compile it, lazy people can wait till I remember to run upload_weidu --beta and send you the link.
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: