summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/tests
AgeCommit message (Collapse)Author
6 daysUpdate comment for OptHandler class data.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@71654 c570f23f-e606-0410-a88d-b1316a301751
6 daysRevert "Get rid of temp 'line' for reading and writing text files."Andreas Scherer
This reverts commit 9e10d9728a3a121dfeb2c951045fe6c6cf7396e0. git-svn-id: svn://tug.org/texlive/trunk@71652 c570f23f-e606-0410-a88d-b1316a301751
6 daysGet rid of temp 'line' for reading and writing text files.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@71649 c570f23f-e606-0410-a88d-b1316a301751
7 daysMerge 'with' and 'try..except'.Andreas Scherer
No need to store the file handles in 'self'. git-svn-id: svn://tug.org/texlive/trunk@71644 c570f23f-e606-0410-a88d-b1316a301751
7 days[WEB] Avoid external adjustment.Andreas Scherer
'next_line()' returns the 'part, section, line_number' of the line returned. (Note the exception for CWEB's '@i'nclude command.) Also, fix a section number in 'gftype.ch'. (All other observed change files are unaffected from the recent changes to 'f-c-l'.) git-svn-id: svn://tug.org/texlive/trunk@71640 c570f23f-e606-0410-a88d-b1316a301751
7 daysFix comment according to last change.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@71639 c570f23f-e606-0410-a88d-b1316a301751
7 days[C/WEB] Simpler check for 'change section'.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@71638 c570f23f-e606-0410-a88d-b1316a301751
11 daysSimplify 'fix-changefile-lines.py' script.Andreas Scherer
"In every large program there's a small one struggling to get out." Back to basics (Thanks, Tyge!), with just enough flexibility. In this reduced form, 'f-c-l' handles 'tex.ch', 'ctie-k.ch', 'tie-w2c.ch', 'weave.ch' and the whole slew of CWEB's '*-w2c.ch' monsters correctly. Plus it corrects a few tags in 'bibtex.ch' just for fun. git-svn-id: svn://tug.org/texlive/trunk@71613 c570f23f-e606-0410-a88d-b1316a301751
12 daysPurge redundancy.Andreas Scherer
're.sub()' does the right thing: When the 'pattern' doesn't 'match', it simply returns the (unmodified) string. git-svn-id: svn://tug.org/texlive/trunk@71607 c570f23f-e606-0410-a88d-b1316a301751
12 daysMake the transformation from old to new more clear.Andreas Scherer
Handle the disection of 'old_line' and the assembly of 'new_line' simultaneously under the control of the command-line options. git-svn-id: svn://tug.org/texlive/trunk@71606 c570f23f-e606-0410-a88d-b1316a301751
12 daysOptionally replace optional tags.Andreas Scherer
Now we can update changefiles that only have 'l.NNN' line numbers, without duplicating these (as part of the 'text'). git-svn-id: svn://tug.org/texlive/trunk@71604 c570f23f-e606-0410-a88d-b1316a301751
12 daysRevert "Catch spurious @y."Andreas Scherer
This reverts commit bb3967e5add1994021eb0374d48aa8cbcc2dad0e. Oops, the 'self._pos += 1' shifts things badly. git-svn-id: svn://tug.org/texlive/trunk@71600 c570f23f-e606-0410-a88d-b1316a301751
12 daysCatch spurious @y.Andreas Scherer
The author of the change most likely mistyped @y for @z. Note that we can not catch an @x in place of @z at this time. The f-c-l script starts a change hunk whenever it encounters @x. Only a second @x triggers an error---in slight deviation from CWEB's behavior. git-svn-id: svn://tug.org/texlive/trunk@71599 c570f23f-e606-0410-a88d-b1316a301751
12 daysTry to match error messages with CWEB.Andreas Scherer
We could (a) calculate the distance of a mismatch and print "! Hmm... N of the preceeding lines failed to match." (b) issue a warning/error about a missing @z. git-svn-id: svn://tug.org/texlive/trunk@71598 c570f23f-e606-0410-a88d-b1316a301751
12 daysCatch another exceptional situation.Andreas Scherer
'WebReader.next_line()' will never set 'tex_line' to 'None' of its own. In the case that it reaches the end of the '_web_lines' array---say the change expects more lines after the last line in the original file---, it returns a single 'None' that gets assigned to the '(p,s,l)' triplet. However, the 'tex_line' is not changed and still holds the last matching line from an earlier 'next_line()' (either in the 'for' loop or in the 'while' loop). We assign 'tex_line = None' when catching the 'TypeError' exception, because the author of the change file might accidentally duplicate a line in the '@x..@y' part of the change hunk. git-svn-id: svn://tug.org/texlive/trunk@71597 c570f23f-e606-0410-a88d-b1316a301751
12 daysCatch exceptional situation.Andreas Scherer
The simple 'return None' does not suit the assignment to the complex '(part, section, line_number), tex_line' and raises a 'TypeError' exception. git-svn-id: svn://tug.org/texlive/trunk@71596 c570f23f-e606-0410-a88d-b1316a301751
2024-06-18[CTIE] Recreate change file with 'f-c-l -ph ctie.w ctie-k.ch'.Andreas Scherer
A few changes to 'fix-changefile-lines.py': * Print 'Old:' vs 'New:' differences to 'stderr'. * Avoid double space when using option '-h'. git-svn-id: svn://tug.org/texlive/trunk@71555 c570f23f-e606-0410-a88d-b1316a301751
2024-06-16Amend error message for unknown cli option.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@71541 c570f23f-e606-0410-a88d-b1316a301751
2024-06-16Don't repeat yourself.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@71540 c570f23f-e606-0410-a88d-b1316a301751
2024-06-16Vamp up 'fix-changefile-lines.py' script.Andreas Scherer
'main()' does not mainly deal with the options. Use OptHandler class. Extended USAGE message including the set of options and their purpose. git-svn-id: svn://tug.org/texlive/trunk@71539 c570f23f-e606-0410-a88d-b1316a301751
2024-06-15[WEB] Conservative substitutions.Andreas Scherer
weave.ch has '[148]' at the end of an '@x' line; don't mess with this. git-svn-id: svn://tug.org/texlive/trunk@71531 c570f23f-e606-0410-a88d-b1316a301751
2024-06-15[WEB] Output '@x' with optional information.Andreas Scherer
E.g., 'fix-changefile-lines -hlp dvicopy.{wen,ch}' prints only '@x [section] text' lines. ('[137/138]' was replaced with '[137]'.) git-svn-id: svn://tug.org/texlive/trunk@71530 c570f23f-e606-0410-a88d-b1316a301751
2024-06-09[CWEB] CWEB comments start with '@q'.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@71460 c570f23f-e606-0410-a88d-b1316a301751
2024-06-09[CWEB] Ignore @<comment@> in ctwill-w2c.ch.Andreas Scherer
Section 'Index' of COMMON.W is on Level 1, not 0. git-svn-id: svn://tug.org/texlive/trunk@71459 c570f23f-e606-0410-a88d-b1316a301751
2024-06-06Fix typo and support extension-less include files.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@71451 c570f23f-e606-0410-a88d-b1316a301751
2024-06-06Purge local variables.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@71450 c570f23f-e606-0410-a88d-b1316a301751
2024-06-06[CWEB] Add [part.section] l.ine information.Andreas Scherer
Apply some OO/C++ knowledge from the late nineties. git-svn-id: svn://tug.org/texlive/trunk@71449 c570f23f-e606-0410-a88d-b1316a301751
2024-06-05Reshuffle code amd comment.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@71442 c570f23f-e606-0410-a88d-b1316a301751
2024-06-05[WEB] Restore @x comments with square brackets.Andreas Scherer
The initial regex was too gready. git-svn-id: svn://tug.org/texlive/trunk@71440 c570f23f-e606-0410-a88d-b1316a301751
2024-06-05Restore @x comment.Andreas Scherer
Only replace leading '-' in @x comments. Also fix special case "@ @c" (with or without following space after '@'). git-svn-id: svn://tug.org/texlive/trunk@71439 c570f23f-e606-0410-a88d-b1316a301751
2024-06-05[WEB] Correctly count section start markers.Andreas Scherer
Both WEAVE.WEB and TANGLE.WEB have '@*' and '@ ' markers in their exposition. Only those at the beginning of a 'line' count. Make the 'fix-changefile-lines.py' self-executable (on Linux). git-svn-id: svn://tug.org/texlive/trunk@71437 c570f23f-e606-0410-a88d-b1316a301751
2024-06-03correct chapter/section/line numbers with script from TygeKarl Berry
git-svn-id: svn://tug.org/texlive/trunk@71417 c570f23f-e606-0410-a88d-b1316a301751
2024-03-26doc,syncKarl Berry
git-svn-id: svn://tug.org/texlive/trunk@70774 c570f23f-e606-0410-a88d-b1316a301751
2024-03-24\aftergroup \output routine fix from DRFKarl Berry
git-svn-id: svn://tug.org/texlive/trunk@70752 c570f23f-e606-0410-a88d-b1316a301751
2024-02-26avoid crashing on devious uses of \output and write braces, from DRF (pdftex ↵Karl Berry
and xetex only) git-svn-id: svn://tug.org/texlive/trunk@70173 c570f23f-e606-0410-a88d-b1316a301751
2024-02-01ptexenc: Add a new simple encoding conversion utility "ptekf"Takuji Tanaka
git-svn-id: svn://tug.org/texlive/trunk@69656 c570f23f-e606-0410-a88d-b1316a301751
2023-12-24{pdf,xe,ep,eup}tex: Avoid errors on parallel test processingTakuji Tanaka
git-svn-id: svn://tug.org/texlive/trunk@69208 c570f23f-e606-0410-a88d-b1316a301751
2023-11-24pdftex, {,e}uptex: Add test for file names with over-BMPTakuji Tanaka
git-svn-id: svn://tug.org/texlive/trunk@68953 c570f23f-e606-0410-a88d-b1316a301751
2023-10-10support new envvar TEXMF_OUTPUT_DIRECTORYKarl Berry
git-svn-id: svn://tug.org/texlive/trunk@68508 c570f23f-e606-0410-a88d-b1316a301751
2023-08-20bibtex: Make easier to test on WindowsTakuji Tanaka
git-svn-id: svn://tug.org/texlive/trunk@67993 c570f23f-e606-0410-a88d-b1316a301751
2023-08-20{,e}{,u}ptex: Make easier to test on WindowsTakuji Tanaka
git-svn-id: svn://tug.org/texlive/trunk@67990 c570f23f-e606-0410-a88d-b1316a301751
2023-03-29(e)(u)ptex: skip tests for Shift_JIS/EUC-JP if conversion failedTakuji Tanaka
git-svn-id: svn://tug.org/texlive/trunk@66702 c570f23f-e606-0410-a88d-b1316a301751
2023-02-26web2c/tests/fn-generate.perl: require perl 5.8.0Takuji Tanaka
git-svn-id: svn://tug.org/texlive/trunk@66168 c570f23f-e606-0410-a88d-b1316a301751
2023-02-14pdftex,xetex,(e)(u)ptex: Avoid errors on parallel tests (H.Kitagawa)Takuji Tanaka
git-svn-id: svn://tug.org/texlive/trunk@65831 c570f23f-e606-0410-a88d-b1316a301751
2022-12-28xetex, pdftex, (u)ptex: add test for filename with wide charactersTakuji Tanaka
git-svn-id: svn://tug.org/texlive/trunk@65380 c570f23f-e606-0410-a88d-b1316a301751
2022-12-23revert r65331Takuji Tanaka
git-svn-id: svn://tug.org/texlive/trunk@65338 c570f23f-e606-0410-a88d-b1316a301751
2022-12-22remove files with other-encoded namesKarl Berry
git-svn-id: svn://tug.org/texlive/trunk@65335 c570f23f-e606-0410-a88d-b1316a301751
2022-12-22xetex, pdftex: add test for filename with wide charactersTakuji Tanaka
git-svn-id: svn://tug.org/texlive/trunk@65331 c570f23f-e606-0410-a88d-b1316a301751
2022-12-22uptex-{sjis,euc}: accept file names with JIS X 0208 (H.Kitagawa)Takuji Tanaka
git-svn-id: svn://tug.org/texlive/trunk@65330 c570f23f-e606-0410-a88d-b1316a301751
2022-09-03((u)p)bibtex: check options before initialization of kpathsea paramsTakuji Tanaka
git-svn-id: svn://tug.org/texlive/trunk@64276 c570f23f-e606-0410-a88d-b1316a301751