[web2py] Re: Is it possible to generate a file containing the update for book 4th to 5th?
BTW: Another enhancement request: would it be possible to display changes ordered by date/time? I completely missed this post, sorry. Now its correctly ordered ^_^ -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: Is it possible to generate a file containing the update for book 4th to 5th?
not to question your method, I'd just like to know better the requirements.. line numbers change (a lot) between commits. They'll be valid only in the context of the commit, i.e. they will be exact pointers only referring to the past status of the source file. Ok, I guess is a better idea to search trough the text files for the context of a line to edit, but I sometimes use the line number to jump somewhere near that context as an alternative to the first method. That of course doesn't work if the file had a significant change of its original structure, as you mentioned. Anyway, the diffbook is ok to me as it is; there's no need of adding those line numbers if you think it serves no purpose. -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: Is it possible to generate a file containing the update for book 4th to 5th?
you mean both on the original and on the new stacks ? I suppose is enough if they are appended to the right side stack. That's what I'd use for browsing the places to modify in the chapter files. -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: Is it possible to generate a file containing the update for book 4th to 5th?
not to question your method, I'd just like to know better the requirements.. line numbers change (a lot) between commits. They'll be valid only in the context of the commit, i.e. they will be exact pointers only referring to the past status of the source file. What will happen is head^2 1. lorem ipsum 1.dolor sit amet 2. dolor sit amet 2. head^1 1. dolor sit amet 1.dolor sit amet 2.2.consectetur adipisicing elit head 1.dolor sit amet 1.haha, big joke 2.consectur adipiscing elit 2.removed alltogether If I were a translator at head^2, I'd just watch for new sections and removed ones, searching by context (that's why diffbook outputs some lines before and after each changed line) then I'll insert new sections translating what's necessary. At that point linenumbers are just unhelpful (unless you managed to keep linenumbers in sync with the original source, hard to believe . but in that case either, you want to translate from head^2 to head, possibly skipping the partials between head^2 -- head^1 and head^1 -- head ) tl;dr : How can line numbers be helpful on a commit-by-commit base? On Friday, March 29, 2013 11:02:12 PM UTC+1, Alan Etkin wrote: you mean both on the original and on the new stacks ? I suppose is enough if they are appended to the right side stack. That's what I'd use for browsing the places to modify in the chapter files. -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: Is it possible to generate a file containing the update for book 4th to 5th?
I can make this. Translators need it. On Wednesday, 13 March 2013 06:01:01 UTC-5, david xiao wrote: Just wondering, if it's possible, i think i will be helpful to know the new features. I have a problem when diffing some chapters. I have used the command in the Github readme for each chapter. The diffs from chapters 01, 03 and 04 almost double the original files in size. Were they completely changed or is there a problem with the use of diff? Here is what I run: git diff -r 5a78edad03160fff97836b8a8d93d185b34d378d \ sources/29-web2py-english/number.markmin \ ~/w2pbookdiff/number.diff -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: Is it possible to generate a file containing the update for book 4th to 5th?
they were edited at least one time for each line, so the diff kinda reports all the removed and all the added lines alltogether. That's one of the reasons I made diffbook hunks commit by commit. On Thursday, March 28, 2013 12:51:54 PM UTC+1, Alan Etkin wrote: I can make this. Translators need it. On Wednesday, 13 March 2013 06:01:01 UTC-5, david xiao wrote: Just wondering, if it's possible, i think i will be helpful to know the new features. I have a problem when diffing some chapters. I have used the command in the Github readme for each chapter. The diffs from chapters 01, 03 and 04 almost double the original files in size. Were they completely changed or is there a problem with the use of diff? Here is what I run: git diff -r 5a78edad03160fff97836b8a8d93d185b34d378d \ sources/29-web2py-english/number.markmin \ ~/w2pbookdiff/number.diff -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: Is it possible to generate a file containing the update for book 4th to 5th?
they were edited at least one time for each line, so the diff kinda reports all the removed and all the added lines alltogether. That's one of the reasons I made diffbook hunks commit by commit. Ok, I will check the diffbook then. Thanks. -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: Is it possible to generate a file containing the update for book 4th to 5th?
made it better just now ignoring EOL diffs.thanks for the hint. If you want to reproduce the behaviour, git diff --ignore-space-at-eol .. On Thursday, March 28, 2013 1:36:10 PM UTC+1, Alan Etkin wrote: they were edited at least one time for each line, so the diff kinda reports all the removed and all the added lines alltogether. That's one of the reasons I made diffbook hunks commit by commit. Ok, I will check the diffbook then. Thanks. -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: Is it possible to generate a file containing the update for book 4th to 5th?
made it better just now ignoring EOL diffs Niphlod, the diffbook now looks really cool! An enhancement request: could you add references to line numbers somewhere to the next version? Thank you -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: Is it possible to generate a file containing the update for book 4th to 5th?
you mean both on the original and on the new stacks ? On Thursday, March 28, 2013 11:00:31 PM UTC+1, Alan Etkin wrote: made it better just now ignoring EOL diffs Niphlod, the diffbook now looks really cool! An enhancement request: could you add references to line numbers somewhere to the next version? Thank you -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: Is it possible to generate a file containing the update for book 4th to 5th?
There are some steps involved, but I used fabric to automate that. Code runs on my pc at home, and basically it: - syncs git repo of the book - launches some git commands to generate the diffs - copies over the generated diff folder - changes routes.py - starts web2py webserver - launches wget to staticize the output - a sed oneliner to correct the static path - commits the changes to the gh-pages branch of the diffbook repo -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: Is it possible to generate a file containing the update for book 4th to 5th?
regenerated the diffbook. Hopefully now for large chunks is more understandable in regards of what has changed. On Wednesday, March 13, 2013 1:42:35 PM UTC+1, Alan Etkin wrote: I can make this. Translators need it. About different versions, the spanish translation first chapters are translated against the 4th edition (about the 4th chapter), while the rest is being translated against the current github repo files. I can see that this not too sound way of translating. Should we mark the old translations for update inside the documents? (I think so). Any suggestion on how to deal with this issue? -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: Is it possible to generate a file containing the update for book 4th to 5th?
where is it? On Thursday, 14 March 2013 16:12:04 UTC-5, Niphlod wrote: regenerated the diffbook. Hopefully now for large chunks is more understandable in regards of what has changed. On Wednesday, March 13, 2013 1:42:35 PM UTC+1, Alan Etkin wrote: I can make this. Translators need it. About different versions, the spanish translation first chapters are translated against the 4th edition (about the 4th chapter), while the rest is being translated against the current github repo files. I can see that this not too sound way of translating. Should we mark the old translations for update inside the documents? (I think so). Any suggestion on how to deal with this issue? -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: Is it possible to generate a file containing the update for book 4th to 5th?
here. http://niphlod.github.com/diffbook/ On Thursday, March 14, 2013 11:02:33 PM UTC+1, Massimo Di Pierro wrote: where is it? On Thursday, 14 March 2013 16:12:04 UTC-5, Niphlod wrote: regenerated the diffbook. Hopefully now for large chunks is more understandable in regards of what has changed. On Wednesday, March 13, 2013 1:42:35 PM UTC+1, Alan Etkin wrote: I can make this. Translators need it. About different versions, the spanish translation first chapters are translated against the 4th edition (about the 4th chapter), while the rest is being translated against the current github repo files. I can see that this not too sound way of translating. Should we mark the old translations for update inside the documents? (I think so). Any suggestion on how to deal with this issue? -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: Is it possible to generate a file containing the update for book 4th to 5th?
Nice. :-) it is automatic? Does it get updated when we update the book? On Thursday, 14 March 2013 17:15:34 UTC-5, Niphlod wrote: here. http://niphlod.github.com/diffbook/ On Thursday, March 14, 2013 11:02:33 PM UTC+1, Massimo Di Pierro wrote: where is it? On Thursday, 14 March 2013 16:12:04 UTC-5, Niphlod wrote: regenerated the diffbook. Hopefully now for large chunks is more understandable in regards of what has changed. On Wednesday, March 13, 2013 1:42:35 PM UTC+1, Alan Etkin wrote: I can make this. Translators need it. About different versions, the spanish translation first chapters are translated against the 4th edition (about the 4th chapter), while the rest is being translated against the current github repo files. I can see that this not too sound way of translating. Should we mark the old translations for update inside the documents? (I think so). Any suggestion on how to deal with this issue? -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: Is it possible to generate a file containing the update for book 4th to 5th?
Just wondering, if it's possible, i think i will be helpful to know the new features. 1) Grab the first 4th edition markmin chapters 2) Grab the last 5th edition markmin chapters 3) for each chapter number do $ diff 4th edition chapter.markmin 5th edition chapter.markmin chapter number.diff Niphlod has shared a git repo with diffs. Check this post https://groups.google.com/d/msg/web2py/Jqi-pkrKIxs/eJLZbObX7c0J And for web2py versions, just found this: http://www.web2py.com/examples/default/changelog -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: Is it possible to generate a file containing the update for book 4th to 5th?
I can make this. Translators need it. On Wednesday, 13 March 2013 06:01:01 UTC-5, david xiao wrote: Just wondering, if it's possible, i think i will be helpful to know the new features. -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: Is it possible to generate a file containing the update for book 4th to 5th?
I can make this. Translators need it. About different versions, the spanish translation first chapters are translated against the 4th edition (about the 4th chapter), while the rest is being translated against the current github repo files. I can see that this not too sound way of translating. Should we mark the old translations for update inside the documents? (I think so). Any suggestion on how to deal with this issue? -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.