Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(273)

Issue 652993005: Working insertion of hash values; added a few labels in spec (Closed)

Created:
6 years, 2 months ago by eernst
Modified:
6 years, 1 month ago
CC:
reviews_dartlang.org, ricow1
Visibility:
Public.

Description

Working insertion of hash values; added a few labels in spec Hash values are now computed for each "paragraph" starting with \LMHash (which includes subsequent grammar, dartCode, itemize blocks, but stops at \section-like commands). Now addlatexhash.dart expects three arguments (first the source latex file, then the destination simplified and hash-value-annotated latex source file, and finally a file name used to create the list of hash values emitted). Adjusted testing accordingly. Added a test for robustness of the hash value generation: It is checked that lots of different "unimportant" changes make no difference for the generated hash values (e.g., we can add/remove comments, change white space, add \commentary{..} etc. without changing the hash values). In order to ensure that all "structure" commands in the spec have a label, I added an \LMLabel{..} a handful of places, following the style which is used throughout the spec. In dart.sty, the \renewcommand that made \LMHash{} produce a fixed hash value has been removed such that the actual hash values are now inserted into the generated spec PDF/DVI file. Tests have been adjusted to handle this difference between the spec with and without hash values when comparing the two. R=gbracha@google.com, lrn@google.com, ricow@google.com Committed: https://code.google.com/p/dart/source/detail?r=41658 Reverted: https://code.google.com/p/dart/source/detail?r=41662 Committed: https://code.google.com/p/dart/source/detail?r=41687

Patch Set 1 #

Total comments: 29

Patch Set 2 : Response to reviews #

Patch Set 3 : Impl. sectioning; adjusted dart.sty; added Makefile #

Total comments: 10

Patch Set 4 : Adjusted according to review #

Total comments: 3

Patch Set 5 : Adjusted according to reviews ([ \t] fix) #

Patch Set 6 : Adjusted tricky RegExp to explicitly express the intention (and avoid issues with <NBSP> etc.) #

Patch Set 7 : Rebase after revert #

Patch Set 8 : Working insertion of hash values (fix: invokes dart with full path) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1396 lines, -86 lines) Patch
A docs/language/Makefile View 1 2 1 chunk +42 lines, -0 lines 0 comments Download
M docs/language/dart.sty View 1 2 2 chunks +2 lines, -6 lines 0 comments Download
M docs/language/dartLangSpec.tex View 1 2 3 4 5 6 7 6 chunks +7 lines, -0 lines 0 comments Download
M tests/standalone/io/addlatexhash_test.dart View 1 2 3 4 5 6 7 5 chunks +83 lines, -7 lines 0 comments Download
A tests/standalone/io/addlatexhash_test_src.tex View 1 2 3 4 5 6 1 chunk +825 lines, -0 lines 0 comments Download
M tools/addlatexhash.dart View 1 2 3 4 5 5 chunks +437 lines, -73 lines 0 comments Download

Messages

Total messages: 27 (3 generated)
eernst
Hash values are now computed by addlatexhash.dart and added to the LaTeX source. Testing revised ...
6 years, 2 months ago (2014-10-24 18:02:19 UTC) #2
gbracha
lgtm
6 years, 2 months ago (2014-10-24 20:32:20 UTC) #3
ricow1
+lasse for actually looking at the parsing (because he will use 1/5 of the time ...
6 years, 1 month ago (2014-10-27 10:08:03 UTC) #5
Lasse Reichstein Nielsen
drive-by comments https://codereview.chromium.org/652993005/diff/1/tools/addlatexhash.dart File tools/addlatexhash.dart (right): https://codereview.chromium.org/652993005/diff/1/tools/addlatexhash.dart#newcode176 tools/addlatexhash.dart:176: isArg(argRE, line) => argRE.firstMatch(line) != null; => ...
6 years, 1 month ago (2014-10-28 10:12:13 UTC) #6
Lasse Reichstein Nielsen
https://codereview.chromium.org/652993005/diff/1/tools/addlatexhash.dart File tools/addlatexhash.dart (right): https://codereview.chromium.org/652993005/diff/1/tools/addlatexhash.dart#newcode277 tools/addlatexhash.dart:277: gatheredLine += " " + cleanupLine(line); Even more "functional": ...
6 years, 1 month ago (2014-10-31 13:52:39 UTC) #7
Lasse Reichstein Nielsen
https://codereview.chromium.org/652993005/diff/1/tools/addlatexhash.dart File tools/addlatexhash.dart (right): https://codereview.chromium.org/652993005/diff/1/tools/addlatexhash.dart#newcode201 tools/addlatexhash.dart:201: const BRACE_END = 125; // char code for '}' ...
6 years, 1 month ago (2014-11-03 11:34:35 UTC) #8
eernst
Response to Lasse's review plus response to one comment by Rico. https://codereview.chromium.org/652993005/diff/1/tools/addlatexhash.dart File tools/addlatexhash.dart (right): ...
6 years, 1 month ago (2014-11-03 14:17:47 UTC) #9
Lasse Reichstein Nielsen
https://codereview.chromium.org/652993005/diff/1/tools/addlatexhash.dart File tools/addlatexhash.dart (right): https://codereview.chromium.org/652993005/diff/1/tools/addlatexhash.dart#newcode225 tools/addlatexhash.dart:225: afterEscape = true; break; Not to 'for' no. It's ...
6 years, 1 month ago (2014-11-03 16:32:04 UTC) #10
eernst
Implemented support for sectioning (i.e., the listing file now contains logical location markers like 'sec:ecmaScope' ...
6 years, 1 month ago (2014-11-04 15:30:20 UTC) #11
ricow1
https://codereview.chromium.org/652993005/diff/40001/tests/standalone/io/addlatexhash_test.dart File tests/standalone/io/addlatexhash_test.dart (right): https://codereview.chromium.org/652993005/diff/40001/tests/standalone/io/addlatexhash_test.dart#newcode63 tests/standalone/io/addlatexhash_test.dart:63: // set up /tmp directory to hold output that ...
6 years, 1 month ago (2014-11-11 07:04:09 UTC) #12
eernst
(Adding Florian on CC)
6 years, 1 month ago (2014-11-11 07:37:24 UTC) #14
eernst
Adjustments according to review. https://codereview.chromium.org/652993005/diff/40001/tests/standalone/io/addlatexhash_test.dart File tests/standalone/io/addlatexhash_test.dart (right): https://codereview.chromium.org/652993005/diff/40001/tests/standalone/io/addlatexhash_test.dart#newcode63 tests/standalone/io/addlatexhash_test.dart:63: // set up /tmp directory ...
6 years, 1 month ago (2014-11-11 08:00:40 UTC) #15
ricow1
I don't know if Lasse has more input, but lgtm
6 years, 1 month ago (2014-11-11 08:01:46 UTC) #16
Lasse Reichstein Nielsen
lgtm https://codereview.chromium.org/652993005/diff/60001/tools/addlatexhash.dart File tools/addlatexhash.dart (right): https://codereview.chromium.org/652993005/diff/60001/tools/addlatexhash.dart#newcode36 tools/addlatexhash.dart:36: final whitespaceRE = new RegExp(r"[ \t]{2,}"); Why is ...
6 years, 1 month ago (2014-11-11 08:13:49 UTC) #17
eernst
Fixed bug mentioned in review. https://codereview.chromium.org/652993005/diff/60001/tools/addlatexhash.dart File tools/addlatexhash.dart (right): https://codereview.chromium.org/652993005/diff/60001/tools/addlatexhash.dart#newcode36 tools/addlatexhash.dart:36: final whitespaceRE = new ...
6 years, 1 month ago (2014-11-11 09:04:54 UTC) #18
Lasse Reichstein Nielsen
https://codereview.chromium.org/652993005/diff/60001/tools/addlatexhash.dart File tools/addlatexhash.dart (right): https://codereview.chromium.org/652993005/diff/60001/tools/addlatexhash.dart#newcode36 tools/addlatexhash.dart:36: final whitespaceRE = new RegExp(r"[ \t]{2,}"); There is no ...
6 years, 1 month ago (2014-11-11 09:13:23 UTC) #19
eernst
On 2014/11/11 09:13:23, Lasse Reichstein Nielsen wrote: > https://codereview.chromium.org/652993005/diff/60001/tools/addlatexhash.dart > File tools/addlatexhash.dart (right): > > ...
6 years, 1 month ago (2014-11-11 09:46:30 UTC) #20
eernst
Improved tricky RegExp
6 years, 1 month ago (2014-11-11 09:48:34 UTC) #21
Lasse Reichstein Nielsen
lgtm
6 years, 1 month ago (2014-11-11 09:58:58 UTC) #22
eernst
Committed patchset #6 (id:100001) manually as 41658 (presubmit successful).
6 years, 1 month ago (2014-11-11 10:08:25 UTC) #23
eernst
Had to revert ('no such file'), patch set 7 is after revert.
6 years, 1 month ago (2014-11-11 11:53:07 UTC) #24
eernst
On 2014/11/11 11:53:07, eernst wrote: > Had to revert ('no such file'), patch set 7 ...
6 years, 1 month ago (2014-11-11 15:44:06 UTC) #25
eernst
A problem was caused by not having 'dart' on the PATH on buildbots; this was ...
6 years, 1 month ago (2014-11-12 08:41:25 UTC) #26
eernst
6 years, 1 month ago (2014-11-12 08:42:03 UTC) #27
Message was sent while issue was closed.
Committed patchset #8 (id:140001) manually as 41687 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698