User login

 
 
New Content
Syndicate content

 
 
 
 

 
 
Lunarpages Affiliate

Lunarpages.com Web Hosting


 
 
 
 

Well. Week one is complete, and it seems as though the postings are either too short of too infrequent. The way OA is written, plot points happen across multiple sections, making the story difficult and/or tedious to follow, just reading a section every other day.

So last night I worked with Alex and developed a Perl script that would take metrics of sections. Below are my findings.

  1. Section: 1076 characters, ending on line 83
  2. Section: 7098 characters, ending on line 163
  3. Section: 2194 characters, ending on line 179
  4. Section: 1567 characters, ending on line 201
  5. Section: 2302 characters, ending on line 229
  6. Section: 2891 characters, ending on line 257
  7. Section: 2476 characters, ending on line 307
  8. Section: 1151 characters, ending on line 321
  9. Section: 2292 characters, ending on line 349
  10. Section: 2739 characters, ending on line 381
  11. Section: 2757 characters, ending on line 401
  12. Section: 3640 characters, ending on line 427
  13. Section: 10132 characters, ending on line 565
  14. Section: 4687 characters, ending on line 649
  15. Section: 3778 characters, ending on line 695
  16. Section: 1153 characters, ending on line 709
  17. Section: 6445 characters, ending on line 817
  18. Section: 7772 characters, ending on line 923
  19. Section: 5430 characters, ending on line 1011
  20. Section: 4196 characters, ending on line 1071
  21. Section: 6928 characters, ending on line 1145
  22. Section: 5531 characters, ending on line 1213
  23. Section: 2850 characters, ending on line 1255
  24. Section: 4002 characters, ending on line 1311
  25. Section: 3294 characters, ending on line 1359
  26. Section: 4759 characters, ending on line 1399
  27. Section: 7756 characters, ending on line 1479
  28. Section: 11349 characters, ending on line 1627
  29. Section: 6290 characters, ending on line 1695
  30. Section: 2807 characters, ending on line 1733
  31. Section: 9607 characters, ending on line 1823
  32. Section: 12648 characters, ending on line 1955
  33. Section: 3153 characters, ending on line 1987
  34. Section: 1755 characters, ending on line 2007
  35. Section: 2699 characters, ending on line 2053
  36. Section: 1454 characters, ending on line 2075
  37. Section: 8871 characters, ending on line 2193
  38. Section: 2378 characters, ending on line 2227
  39. Section: 4584 characters, ending on line 2267
  40. Section: 1853 characters, ending on line 2279
  41. Section: 2957 characters, ending on line 2323
  42. Section: 2421 characters, ending on line 2361
  43. Section: 6297 characters, ending on line 2421
  44. Section: 4372 characters, ending on line 2481
  45. Section: 5461 characters, ending on line 2555
  46. Section: 5816 characters, ending on line 2639
  47. Section: 5640 characters, ending on line 2719
  48. Section: 5647 characters, ending on line 2795
  49. Section: 3817 characters, ending on line 2847
  50. Section: 5125 characters, ending on line 2939
  51. Section: 4616 characters, ending on line 3005
  52. Section: 7898 characters, ending on line 3095
  53. Section: 1287 characters, ending on line 3115
  54. Section: 4258 characters, ending on line 3173
  55. Section: 6501 characters, ending on line 3249
  56. Section: 6183 characters, ending on line 3331
  57. Section: 5528 characters, ending on line 3397
  58. Section: 13813 characters, ending on line 3641
  59. Section: 5399 characters, ending on line 3697
  60. Section: 5323 characters, ending on line 3769
  61. Section: 4366 characters, ending on line 3827
  62. Section: 3734 characters, ending on line 3885
  63. Section: 2573 characters, ending on line 3923
  64. Section: 7414 characters, ending on line 4039
  65. Section: 4645 characters, ending on line 4099
  66. Section: 2744 characters, ending on line 4131
  67. Section: 6190 characters, ending on line 4233
  68. Section: 4727 characters, ending on line 4305
  69. Section: 2259 characters, ending on line 4343
  70. Section: 22491 characters, ending on line 4629
  71. Section: 2354 characters, ending on line 4657
  72. Section: 5896 characters, ending on line 4727
  73. Section: 1852 characters, ending on line 4763
  74. Section: 3218 characters, ending on line 4807
  75. Section: 7402 characters, ending on line 4926
  76. Section: 3829 characters, ending on line 4992
  77. Section: 1828 characters, ending on line 5032
  78. Average section length: 4671.35802469136

There seem to be quite a number of outliers, but the end result is that the average section length is just over half the length of the first posting (which I found to be a good length for every other day). What this effectively means is that I need to either post longer sections, or post them more frequently.

So, given that I still need time to write, I'm going to try to make future postings a more appropriate length, alternating days between editing the day's posting, and writing more from scratch.

Also, my perl script is below:

  1. #!/usr/bin/perl
  2.  
  3. $file = 'OA.tex';
  4.  
  5. open(INFO, $file);
  6.  
  7. @contents = <INFO>;
  8.  
  9. $count = 0;
  10. $linecount = 0;
  11. $sum = 0;
  12. $sectioncount = 0;
  13.  
  14. foreach $line (@contents) {
  15.         $linecount++;
  16.         if (not ($line =~ m/^\s*$/)) { $count+= length $line; $sum+= length $line; }
  17.         if ($line =~ m/(sectionbreak|chapter)/) {
  18.                 print "Section: " . $count . " characters, ending on line " . $linecount . "\n";
  19.                 $count = 0;
  20.                 $sectioncount++;
  21.         }
  22. }
  23.  
  24. print "Average section length: " . $sum / $sectioncount . "\n";
  25.  
  26. close(INFO);

I can't help but wonder if there are any other writers who use LaTeX, make, perl and sed as tools for their projects.

0
Your rating: None

Reply

 
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre> <b> <i> <u> <img> <center> <blockquote> <hr> <small> <big> <h1> <h2> <h3> <h4> <h5> <h6>
  • Web page addresses and e-mail addresses turn into links automatically.
  • Internal paths in double quotes, written as "internal:node/99", for example, are replaced with the appropriate absolute URL or relative path.
  • You may insert videos with [video:URL]
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
1 + 2 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.