--- Log opened Mon Mar 28 00:00:52 2011 20110328 00:10:11-!- zookeeper [~l@wesnoth/developer/zookeeper] has quit [] 20110328 01:34:35< AI0867> shadowmaster: %.-like specs? 20110328 01:34:48< shadowmaster> and %interpolation 20110328 01:34:53< shadowmaster> er, $interpolation, even 20110328 01:35:00< shadowmaster> also, document #error and #warning 20110328 01:35:02< shadowmaster> :p 20110328 01:35:04< AI0867> er, right 20110328 01:37:46< AI0867> there are a couple cases of "WTF is this line of perl supposed to do" =P 20110328 01:40:08< AI0867> the easy way would probably be to modify lines 135 and 140 20110328 01:40:21< AI0867> add [^%$] at the front of the regex 20110328 01:40:42< AI0867> though that'd fail for character at the start of the string 20110328 01:40:43< shadowmaster> AI0867: yeah, well, that'd not help in all cases 20110328 01:41:07< shadowmaster> notice that I'm using the g flag 20110328 01:41:44< AI0867> also, not for wml vars 20110328 01:41:57< AI0867> ugh, looks like we may need to tokenize 20110328 01:42:42< AI0867> I don't see how the qw() stuff works btw 20110328 01:42:58< AI0867> I don't see any commas in there or anything 20110328 01:43:22< AI0867> does it use whitespace to separate its arguments? 20110328 01:43:28< shadowmaster> yes 20110328 01:43:42< shadowmaster> whitespace being anything that isspace() would recognize as such, including newlines 20110328 01:44:55< shadowmaster> basically it's equivalent to passing the argument as the string parameter in split /\s+/, $foo 20110328 01:45:56< AI0867> if we're going to properly skip wml vars, we need to do something similar to the interpolator, which manually walks the string 20110328 01:45:59< AI0867> want me to do that? 20110328 01:46:13< AI0867> do you have a testcase for the tool? 20110328 01:48:02< shadowmaster> any ang@latin.po that contains interpolated WML variables/symbol table entries I guess 20110328 01:48:25< shadowmaster> wesnoth/ang@latin.po should do 20110328 01:49:06< shadowmaster> and yeah, it'd be great if you could figure out how to skip variables like that (and the aforementioned format specifications) if you get the time 20110328 01:49:29< shadowmaster> as you can see, you don't even have to bother with the po file format 20110328 01:49:36< shadowmaster> that's all done for you prior to the transliterate() call 20110328 01:49:47< AI0867> I'm missing a module 20110328 01:50:06< AI0867> Can't locate Locale/PO.pm in @INC 20110328 01:50:20< shadowmaster> sudo apt-get install liblocale-po-perl 20110328 01:50:53< shadowmaster> squeeze's version works fine. 20110328 02:04:05< AI0867> shadowmaster: what's the best way (for some values of best, as you can do everything at least 3 different ways in perl) to iterate over a string you intend to change? 20110328 02:05:30< shadowmaster> haven't figured it out myself, especially not with multibyte strings 20110328 02:06:04< shadowmaster> http://perldoc.perl.org/functions/split.html 20110328 02:06:12< shadowmaster> "As a special case for split, the empty pattern // specifically matches the empty string; this is not be confused with the normal use of an empty pattern to mean the last successful match." 20110328 02:06:38< shadowmaster> you could probably use that 20110328 02:06:47< shadowmaster> again, I don't know what will happen with strings composed of multibyte characters 20110328 02:06:54< shadowmaster> (hilarity may ensue) 20110328 02:14:59-!- Blueblaze [~Blueblaze@adsl-99-4-146-155.dsl.hstntx.sbcglobal.net] has quit [Quit: Blueblaze] 20110328 02:35:42-!- un214 [~un214@99-100-164-27.lightspeed.frokca.sbcglobal.net] has joined #wesnoth-umc-dev 20110328 02:38:48< AI0867> I don't want to split, that'll turn into a horrible mess 20110328 02:39:11< AI0867> I have to properly tokenize it, or at least pretend to do so in order to find which parts are translatable 20110328 02:47:03< AI0867> I need: 20110328 02:47:10< AI0867> -find the first occurrence of % or $ 20110328 02:47:21< AI0867> if it's a %, ignore the next character 20110328 02:48:06< AI0867> if it's a $ and the next character is a (, tokenize it as a formula string, until the matching ) is found ( ')'s can be found in comments and strings) 20110328 02:49:07< AI0867> otherwise, use normal WML variable interpolation for it. That is, count $s and |s, until you reach 0 or encounter a character that can't be a variable name 20110328 02:50:05< AI0867> and I just read that split(//, ... ) may actually be my best option... 20110328 02:54:01< AI0867> shadowmaster: what do the {en,de}code('UTF-8',...) calls do? 20110328 02:54:29< AI0867> what does perl work with internally? 20110328 02:57:33< AI0867> okay, literal bytes unless you use "use utf8;" 20110328 03:11:38< AI0867> ugh, malformed utf8 errors... 20110328 03:12:58-!- Blueblaze [~Blueblaze@adsl-99-4-146-155.dsl.hstntx.sbcglobal.net] has joined #wesnoth-umc-dev 20110328 03:33:11< AI0867> I'm tempted to just port the entire thing to python =P 20110328 03:33:47< Espreon> Noooooooooooo... 20110328 03:34:18< Espreon> It'll take too long... 20110328 03:34:49< AI0867> it's already taken me an hour just to (partially) understand perl's issues here 20110328 03:34:58< Espreon> No, I meant for it to transliterate. 20110328 03:35:04< Espreon> Then again... 20110328 03:35:07< Espreon> I'm not Ivanovic. 20110328 03:35:10< Espreon> So... do what you wish. 20110328 03:36:48-!- PolarPanda [~pete@unaffiliated/peterporty] has quit [Remote host closed the connection] 20110328 03:38:46< AI0867> Espreon: that problem (wmlxgettext) was that the python version was bristling with features that made a different approach necessary 20110328 03:39:16< Espreon> Ah, I see. 20110328 03:39:26< Espreon> Speaking of wmlxgettext, someone really needs to speed it up. 20110328 03:39:29< AI0867> the perl version was a relatively simple regex thing, while the python one was an actual parser because you can't hack away with regexes for somethins 20110328 03:39:53< AI0867> do *you* wan't to port it to C++? 20110328 03:40:04< Espreon> I'd love to, but I can't. 20110328 03:40:39< Espreon> I want mah # po: support 20110328 03:40:55< Espreon> If we want plurals in WML and shit... yeah... 20110328 03:41:05< Espreon> Well... 20110328 03:41:16< Espreon> No, things like poedit fix the files. 20110328 03:42:01< Espreon> No. 20110328 03:42:07< Espreon> We still need some sort of support. 20110328 03:42:11< Espreon> ... I think. 20110328 03:50:27< AI0867> yeah, well, I wanted to add plural support, but I didn't want to touch wmlxgettext 20110328 03:51:19< Espreon> Plural support... would be fucking awesome. 20110328 03:58:02< AI0867> gah, I'm having serious trouble figuring out wtf this perl is doing... 20110328 04:01:54-!- loonycyborg [~sergey@wesnoth/developer/loonycyborg] has quit [Quit: Zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz] 20110328 04:02:21-!- loonybot [~loonybot@wesnoth/bot/loonybot] has quit [Remote host closed the connection] 20110328 04:04:29-!- un214 [~un214@99-100-164-27.lightspeed.frokca.sbcglobal.net] has quit [Remote host closed the connection] 20110328 04:35:13-!- fendrin [~fabi@88-134-182-183-dynip.superkabel.de] has quit [Remote host closed the connection] 20110328 04:36:30-!- fendrin [~fabi@88-134-182-183-dynip.superkabel.de] has joined #wesnoth-umc-dev 20110328 04:45:43-!- Aethaeryn [~Michael@wesnoth/umc-dev/developer/aethaeryn] has quit [Quit: ...] 20110328 05:06:18-!- vultraz [~chatzilla@124.109.10.174] has quit [Ping timeout: 250 seconds] 20110328 05:08:42<+CIA-44> wesnoth-umc-dev: ai0867 * r9097 /branches/maintenance-toolchain/anglat2futhorc.py: Add reimplementation of anglat2futhorc in python 20110328 05:09:07< shadowmaster> AI0867: ASFDFGF 20110328 05:09:13< shadowmaster> CLZKXMVVIALSFDE 20110328 05:09:33< shadowmaster> Gambit: help me here 20110328 05:09:43< Gambit> :O 20110328 05:10:01< Gambit> AI0867: Perl is superior for digesting text :O 20110328 05:10:10< Gambit> [citation_needed] 20110328 05:10:18< Espreon> Gambit: Shut up. 20110328 05:10:36< AI0867> apparently not in this case 20110328 05:10:37< shadowmaster> Espreon: 00:09:32 Gambit: help me here 20110328 05:10:44< shadowmaster> Espreon: :| 20110328 05:10:48< Espreon> But, he's killing it! 20110328 05:10:54< Espreon> He's fucking killing it! 20110328 05:11:00< Gambit> [citation_needed] 20110328 05:11:05< Espreon> shadowmaster: SEE? 20110328 05:11:11< Gambit> -trollface.png- 20110328 05:11:22-!- mode/#wesnoth-umc-dev [+q *!*@wesnoth/developer/grickit] by ChanServ 20110328 05:11:23< shadowmaster> yeah 20110328 05:11:32< Espreon> I like it! 20110328 05:11:33< shadowmaster> 'twas the bad idea 20110328 05:14:10-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has quit [Remote host closed the connection] 20110328 05:14:12-!- Gambit [~Gambit@wesnoth/developer/grickit] has quit [Read error: Connection reset by peer] 20110328 05:14:42< shadowmaster> Espreon: okay, you can replace me in your translation credits 20110328 05:15:07< Espreon> Yes, once I generate some transliterations. 20110328 05:15:48< Espreon> shadowmaster: http://wiki.wesnoth.org/OldEnglishTranslation ... You've been in here for a bit. 20110328 05:16:14< shadowmaster> s/replace/remove/ 20110328 05:16:26< shadowmaster> I'm not taking part in this foolish Python lark. 20110328 05:16:45< Espreon> Ah. 20110328 05:18:02< Espreon> Done. 20110328 05:18:27< shadowmaster> :( 20110328 05:18:38< Espreon> Sorry... 20110328 05:19:20-!- mode/#wesnoth-umc-dev [-q *!*@wesnoth/developer/grickit] by ChanServ 20110328 05:23:32< Espreon> AI0867: Does it not touch Pango, help, and man markup? 20110328 05:29:53<+CIA-44> wesnoth-umc-dev: ai0867 * r9098 /branches/maintenance-toolchain/anglat2futhorc.py: Make printf-style interpolation work 20110328 05:31:11< AI0867> Espreon: it's nowhere near that point yet 20110328 05:31:33< AI0867> r9097 copied the features of the perl version 20110328 05:31:42< AI0867> r9098 makes it avoid %d like stuff 20110328 05:32:15< AI0867> pango and such shouldn't be in translatable strings to begin with... 20110328 05:32:59< AI0867> shadowmaster: I had more trouble wrestling with perl than with the actual problem 20110328 05:33:28< AI0867> after reading a page describing the unicode issues of perl I decided it would be quicker to just rewrite it in python 20110328 05:34:06< Espreon> Well, some scripts don't have italics and shit. 20110328 05:34:12< Espreon> So.. yeah. 20110328 05:34:33< Espreon> Perl... Unicode problems? 20110328 05:34:45< Espreon> Oh noez! 20110328 05:34:59< shadowmaster> AI0867: I should note that there's lots of outdated literature on the subject 20110328 05:37:43< shadowmaster> in other news, CIA bot, which is written in friggin' Python, does not like Hiragana 20110328 05:38:08< shadowmaster> I'll ask shikadibot, which is written in friggin' Perl, what she thinks about this issue 20110328 05:38:14< shadowmaster> shikadibot: log HEAD 20110328 05:38:17<+shikadibot> shadowmaster: Revision 9099 (shikadilord) on Mon Mar 28 03:37:08 2011: 20110328 05:38:21<+shikadibot> shadowmaster: anglat2futhroc: さよなら 20110328 05:38:22<+shikadibot> shadowmaster: Web interface URL: http://wesnoth-umc-dev.svn.sourceforge.net/viewvc/wesnoth-umc-dev?view=rev&revision=9099 20110328 05:38:40< Espreon> shadowmaster: NO! さようなら。。。 20110328 05:39:05< shadowmaster> Espreon: you are noty focusing on the point 20110328 05:39:24< Espreon> There is an actual difference. 20110328 05:39:31< Espreon> You see, Japanese has this thing called gemination... 20110328 05:39:33< shadowmaster> Espreon: tell me about it in ##shadowm 20110328 05:39:41< shadowmaster> back to the POINT though 20110328 05:40:04< shadowmaster> CIAA bot: Python 20110328 05:40:14< shadowmaster> Rei 2 IRC Bot: Perl 20110328 05:40:21< shadowmaster> CIA bot: hates Unicode 20110328 05:40:30< shadowmaster> Rei 2 IRC Bot: uses Unicode* 20110328 05:40:37< shadowmaster> (* probably in an unsafe manner, but whatever) 20110328 05:40:57< shadowmaster> Rei2: q shadowmaster -4 @ CIA-44 20110328 05:40:59<+Rei2> CIA-44: あんたばか? 20110328 05:53:11< AI0867> right 20110328 05:54:05< AI0867> anyway, I'm willing to wrestle some perl to write some code, but if I run into unicode issues, I prefer to deal with them in a language where I know how to do that properly 20110328 06:26:59-!- mysticX [oaldygc@72.133.164.193.static.giga-dns.com] has quit [Quit: other challenges await..] 20110328 06:46:11<+CIA-44> wesnoth-umc-dev: shikadilord * r9100 /trunk/After_the_Storm/maps/09_The_Triad_part_2.map: AtS 9 part 2: develop the map further 20110328 07:16:33<+CIA-44> wesnoth-umc-dev: shikadilord * r9101 /trunk/After_the_Storm/masks/09_The_Triad_part_2_1.mask: AtS 9 part 2: add terrain mask --- Log opened Mon Mar 28 07:39:07 2011 20110328 07:39:24-!- lobby [~wesnoth@wesnoth/bot/lobby] has joined #wesnoth-umc-dev 20110328 07:39:24-!- Topic for #wesnoth-umc-dev: 10000th commit gets cake | Wesnoth-UMC-Dev Project discussion and support channel | http://wesnoth-umc-dev.ai0867.net | Staff: AI0867, Espreon, shadowmaster | Blog: http://wesnoth-umc-dev.ai0867.net/blog/ | IRC logs: http://irclogs.wesnoth.org, http://irclogs.ai0867.net 20110328 07:39:24-!- Topic set by Rei2 [ayanami@unaffiliated/shadowmaster/bot/rei2] [Sun Mar 20 21:16:53 2011] 20110328 07:39:24[Users #wesnoth-umc-dev] 20110328 07:39:24[@ChanServ ] [+wesbot ] [ esr ] [ noy ] 20110328 07:39:24[+CIA-44 ] [ AI0867 ] [ fendrin] [ shadowm_laptop] 20110328 07:39:24[+Rei2 ] [ Blueblaze] [ iwaim_ ] [ shadowmaster ] 20110328 07:39:24[+shikadibot] [ Espreon ] [ lobby ] [ Vorpal ] 20110328 07:39:24-!- Irssi: #wesnoth-umc-dev: Total of 16 nicks [1 ops, 0 halfops, 4 voices, 11 normal] 20110328 07:39:24-!- Home page for #wesnoth-umc-dev: http://wesnoth-umc-dev.ai0867.net 20110328 07:39:45-!- Channel #wesnoth-umc-dev created Mon Mar 31 16:51:24 2008 20110328 07:41:09-!- Irssi: Join to #wesnoth-umc-dev was synced in 120 secs 20110328 07:59:03-!- fabi [~fabi@88-134-182-183-dynip.superkabel.de] has joined #wesnoth-umc-dev 20110328 08:02:45-!- fendrin [~fabi@88-134-182-183-dynip.superkabel.de] has quit [Ping timeout: 276 seconds] 20110328 08:02:50-!- fabi is now known as fendrin 20110328 08:05:26-!- esr [~chatzilla@wesnoth/developer/esr] has quit [Ping timeout: 255 seconds] 20110328 08:06:05-!- esr [~chatzilla@static-71-162-243-5.phlapa.fios.verizon.net] has joined #wesnoth-umc-dev 20110328 08:40:23-!- zookeeper [~l@wesnoth/developer/zookeeper] has joined #wesnoth-umc-dev 20110328 09:07:01-!- Blueblaze [~Blueblaze@adsl-99-4-146-155.dsl.hstntx.sbcglobal.net] has quit [Quit: Blueblaze] 20110328 09:28:44-!- vultraz [~chatzilla@124.109.10.174] has joined #wesnoth-umc-dev 20110328 09:39:12<+CIA-44> rei2: shadowm * rdbadc8c7ee4f /lib/Rei2/VCSChannel/SVN.pm: 20110328 09:39:12<+CIA-44> rei2: Rei2::VCSChannel::SVN: report svn commits with empty usernames correctly 20110328 09:39:12<+CIA-44> rei2: (Noticed when logging revision 1 on Wesnoth.) 20110328 09:52:51-!- Blueblaze [~Blueblaze@adsl-99-4-146-155.dsl.hstntx.sbcglobal.net] has joined #wesnoth-umc-dev 20110328 09:56:54-!- Blueblaze [~Blueblaze@adsl-99-4-146-155.dsl.hstntx.sbcglobal.net] has quit [Client Quit] 20110328 10:08:12-!- shadowm_laptop [ignacio@wesnoth/developer/shadowmaster] has quit [Ping timeout: 246 seconds] 20110328 10:08:17-!- Rei2 [ayanami@unaffiliated/shadowmaster/bot/rei2] has quit [Ping timeout: 240 seconds] 20110328 10:46:02-!- BfWEthnographer [~BfWEthnog@151.76.135.174] has joined #wesnoth-umc-dev 20110328 10:46:16-!- BfWEthnographer [~BfWEthnog@151.76.135.174] has left #wesnoth-umc-dev [] 20110328 11:18:56-!- Crendgrim [~crend@77-22-173-219-dynip.superkabel.de] has joined #wesnoth-umc-dev 20110328 11:35:51-!- Crendgrim [~crend@77-22-173-219-dynip.superkabel.de] has quit [Remote host closed the connection] 20110328 11:36:41-!- Crendgrim [~crend@77-22-173-219-dynip.superkabel.de] has joined #wesnoth-umc-dev 20110328 12:55:06-!- noy [~Noy@wesnoth/developer/noy] has quit [Quit: noy] 20110328 13:58:20-!- loonybot [~loonybot@wesnoth/bot/loonybot] has joined #wesnoth-umc-dev 20110328 13:58:23-!- mode/#wesnoth-umc-dev [+v loonybot] by ChanServ 20110328 13:58:57-!- loonycyborg [~sergey@wesnoth/developer/loonycyborg] has joined #wesnoth-umc-dev 20110328 14:48:15-!- Gambit [~Gambit@wesnoth/developer/grickit] has joined #wesnoth-umc-dev 20110328 14:55:34-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has joined #wesnoth-umc-dev 20110328 14:55:35-!- mode/#wesnoth-umc-dev [+v janebot] by ChanServ 20110328 15:45:34-!- mysticX [hgklf@72.133.164.193.static.giga-dns.com] has joined #wesnoth-umc-dev 20110328 17:41:28< vultraz> gtg bye 20110328 17:41:46-!- vultraz [~chatzilla@124.109.10.174] has quit [Quit: bye all] 20110328 17:58:12-!- Blueblaze [~Blueblaze@adsl-99-4-146-155.dsl.hstntx.sbcglobal.net] has joined #wesnoth-umc-dev 20110328 18:34:45-!- Aethaeryn [~Michael@wesnoth/umc-dev/developer/aethaeryn] has joined #wesnoth-umc-dev 20110328 18:53:22-!- Aethaeryn [~Michael@wesnoth/umc-dev/developer/aethaeryn] has quit [Quit: ...] 20110328 19:44:16<+CIA-44> wesnoth-umc-dev: ai0867 * r9102 /branches/maintenance-toolchain/anglat2futhorc.py: Update to anglat2futhorc.py that seems to do the job (WML var ignoring). Needs heavier testing though. 20110328 19:44:24< AI0867> Espreon: ^ 20110328 19:44:32< AI0867> pango is still on my todo list 20110328 19:44:38< AI0867> but go test that first 20110328 19:53:35< AI0867> the manual stuff will be horrible... 20110328 19:53:54< AI0867> I'll need to actually check for 'text=' 20110328 20:17:37-!- zaroth [~zaroth@host9.natpool.mwn.de] has joined #wesnoth-umc-dev 20110328 20:17:37-!- zaroth [~zaroth@host9.natpool.mwn.de] has quit [Changing host] 20110328 20:17:37-!- zaroth [~zaroth@unaffiliated/zaroth] has joined #wesnoth-umc-dev 20110328 20:29:38-!- Crendgrim [~crend@77-22-173-219-dynip.superkabel.de] has quit [Remote host closed the connection] 20110328 20:48:52-!- noy [~Noy@wesnoth/developer/noy] has joined #wesnoth-umc-dev 20110328 21:22:19-!- inferno8 [b2246067@gateway/web/freenode/ip.178.36.96.103] has joined #wesnoth-umc-dev 20110328 21:26:56-!- inferno8 [b2246067@gateway/web/freenode/ip.178.36.96.103] has quit [Client Quit] 20110328 21:44:17-!- Rei2 [ayanami@unaffiliated/shadowmaster/bot/rei2] has joined #wesnoth-umc-dev 20110328 21:44:20-!- mode/#wesnoth-umc-dev [+v Rei2] by ChanServ 20110328 21:44:21-!- shadowm_laptop [ignacio@wesnoth/developer/shadowmaster] has joined #wesnoth-umc-dev 20110328 22:36:07-!- monochromatic [~monochrom@pool-74-109-69-218.phlapa.east.verizon.net] has joined #wesnoth-umc-dev 20110328 22:54:00-!- zookeeper [~l@wesnoth/developer/zookeeper] has quit [] 20110328 23:17:31<+CIA-44> wesnoth-umc-dev: espreon * r9103 /trunk/Era_of_Magic/translations/de/LC_MESSAGES/wesnoth-Era_of_Magic.mo: Updated the German translation. 20110328 23:18:16-!- monochromatic is now known as elvish_sovereign 20110328 23:24:25<+CIA-44> wesnoth-umc-dev: chefu-orbivm * r9104 /branches/1.8/Alfhelm/ (4 files in 3 dirs): Fixed problems related to the missing ice-bear unit. I gave it the fe_snow (regular issaelfr) movetype. --- Log closed Tue Mar 29 00:00:03 2011