Georg Baum wrote: > They should be found. Are you really sure that the regexes do not trigger?
Yes. See the debug statements in the attached patch. > Do they trigger if you remove the .* at the end? No. The strange thing is: not even a simple regex like "File: .*" finds these lines. I have attached the log file. The lines in question are 87 and 98. > I don't understand why > that is there, it should also work without. It doesn't. Complex lines are not found then. > Georg Jürgen
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4) (format=pdflatex 2006.11.27) 14 FEB 2007 08:14 entering extended mode **log_test.tex (./log_test.tex LaTeX2e <2003/12/01> Babel <v3.8d> and hyphenation patterns for american, french, german, ngerman, b ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto, e stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk, polis h, portuges, romanian, russian, serbian, slovak, slovene, spanish, swedish, tur kish, ukrainian, nohyphenation, loaded. (/usr/share/texmf/tex/latex/base/article.cls Document Class: article 2004/02/16 v1.4f Standard LaTeX document class (/usr/share/texmf/tex/latex/base/size10.clo File: size10.clo 2004/02/16 v1.4f Standard LaTeX file (size option) ) [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] \abovecaptionskip=\skip41 \belowcaptionskip=\skip42 \bibindent=\dimen102 ) (/usr/share/texmf/tex/latex/base/fontenc.sty Package: fontenc 2004/02/22 v1.99f Standard LaTeX package (/usr/share/texmf/tex/latex/base/t1enc.def File: t1enc.def 2004/02/22 v1.99f Standard LaTeX file LaTeX Font Info: Redeclaring font encoding T1 on input line 43. )) (/usr/share/texmf/tex/latex/base/inputenc.sty Package: inputenc 2004/02/05 v1.0d Input encoding file (/usr/share/texmf/tex/latex/base/latin9.def File: latin9.def 2004/02/05 v1.0d Input encoding file )) (/usr/share/texmf/tex/latex/graphics/graphicx.sty Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR) (/usr/share/texmf/tex/latex/graphics/keyval.sty Package: keyval 1999/03/16 v1.13 key=value parser (DPC) [EMAIL PROTECTED]@=\toks14 ) (/usr/share/texmf/tex/latex/graphics/graphics.sty Package: graphics 2001/07/07 v1.0n Standard LaTeX Graphics (DPC,SPQR) (/usr/share/texmf/tex/latex/graphics/trig.sty Package: trig 1999/03/16 v1.09 sin cos tan (DPC) ) (/usr/share/texmf/tex/latex/graphics/graphics.cfg File: graphics.cfg 2005/02/03 v1.3 graphics configuration of teTeX/TeXLive ) Package graphics Info: Driver file: pdftex.def on input line 80. (/usr/share/texmf/tex/latex/graphics/pdftex.def File: pdftex.def 2002/06/19 v0.03k graphics/color for pdftex [EMAIL PROTECTED] )) [EMAIL PROTECTED]@height=\dimen103 [EMAIL PROTECTED]@width=\dimen104 ) (/usr/share/texmf/tex/generic/babel/babel.sty Package: babel 2004/11/20 v3.8d The Babel package (/usr/share/texmf/tex/generic/babel/english.ldf Language: english 2004/06/14 v3.3o English support from the babel system (/usr/share/texmf/tex/generic/babel/babel.def File: babel.def 2004/11/20 v3.8d Babel common definitions [EMAIL PROTECTED] [EMAIL PROTECTED] ) [EMAIL PROTECTED] = a dialect from [EMAIL PROTECTED] [EMAIL PROTECTED] = a dialect from [EMAIL PROTECTED] [EMAIL PROTECTED] = a dialect from [EMAIL PROTECTED] [EMAIL PROTECTED] = a dialect from [EMAIL PROTECTED] [EMAIL PROTECTED] = a dialect from [EMAIL PROTECTED] )) No file log_test.aux. \openout1 = `log_test.aux'. LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 13. LaTeX Font Info: ... okay on input line 13. LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 13. LaTeX Font Info: ... okay on input line 13. LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 13. LaTeX Font Info: ... okay on input line 13. LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 13. LaTeX Font Info: ... okay on input line 13. LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 13. LaTeX Font Info: ... okay on input line 13. LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 13. LaTeX Font Info: ... okay on input line 13. <0_home_juergen_test_New_Folder_hsa_bh.jpg, id=1, 513.92pt x 513.92pt> File: 0_home_juergen_test_New_Folder_hsa_bh.jpg Graphic file (type jpg) <use 0_home_juergen_test_New_Folder_hsa_bh.jpg> Overfull \hbox (183.91873pt too wide) in paragraph at lines 14--15 [][] [] LaTeX Warning: File `/home/juergen/test/New Folder/hsa bh.jpg' not found on inp ut line 16. </home/juergen/test/New Folder/hsa bh.jpg, id=2, 513.92pt x 513.92pt> File: /home/juergen/test/New Folder/hsa bh.jpg Graphic file (type jpg) <use /home/juergen/test/New Folder/hsa bh.jpg> Overfull \hbox (341.5469pt too wide) in paragraph at lines 16--17 []\T1/cmr/m/n/10 Folder/hsa bh.jpg Folder/hsa bh.jpg [] [] [1 {/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map} <./0_home_juergen_test_New_ Folder_hsa_bh.jpg>] [2 </home/juergen/test/New Folder/hsa bh.jpg>] (./log_test. aux) ) Here is how much of TeX's memory you used: 1092 strings out of 94499 12186 string characters out of 1172809 63307 words of memory out of 3500000 4298 multiletter control sequences out of 10000+50000 4403 words of font info for 15 fonts, out of 500000 for 2000 580 hyphenation exceptions out of 1000 25i,4n,19p,185b,113s stack positions out of 1500i,500n,5000p,200000b,5000s PDF statistics: 10 PDF objects out of 300000 0 named destinations out of 131072 11 words of extra memory for PDF output out of 65536 </var/cache/fonts/pk/ljfour/jknappen/ec/ecrm1000.600pk> Output written on log_test.pdf (2 pages, 90577 bytes).
Index: src/LaTeX.C =================================================================== --- src/LaTeX.C (Revision 17164) +++ src/LaTeX.C (Arbeitskopie) @@ -799,7 +799,8 @@ string const logfile = onlyFilename(changeExtension(file.absFilename(), ".log")); static regex reg1(".*\\([^)]+.*"); - static regex reg2("File: ([^ ]+).*"); + //static regex reg2("File: ([^ ]+).*"); + static regex reg2("File: ([^\\.]+\\.[^ ]+).*"); static regex reg3("No file ([^ ]+)\\..*"); static regex reg4("\\\\openout[0-9]+.*=.*`([^ ]+)'\\..*"); // If an index should be created, MikTex does not write a line like @@ -845,10 +846,12 @@ // file are in the file system encoding. token = to_utf8(from_filesystem8bit(token)); + lyxerr << "Log: " << token << endl; + if (regex_match(token, sub, reg1)) { // search for strings in (...) that must not contain // a blank, but must contain a dot - static regex reg1_1("\\(([^()]+\\.+[^ ()]+)"); + static regex reg1_1("\\(([^()]+\\.[^ ()]+)"); smatch what; string::const_iterator first = token.begin(); string::const_iterator end = token.end(); @@ -857,8 +860,11 @@ first = what[0].second; handleFoundFile(what.str(1), head); } - } else if (regex_match(token, sub, reg2)) + } else if (regex_match(token, sub, reg2)) { + lyxerr << ">>>>>>>>>>>>>> regex match: " << token << endl; + lyxerr << ">>>>>>>>>>>>>> passing: " << sub.str(1) << endl; handleFoundFile(sub.str(1), head); + } else if (regex_match(token, sub, reg3)) handleFoundFile(sub.str(1), head); else if (regex_match(token, sub, reg4))