reitzig / ltx2any

Yet another LaTeX build wrapper, with one or two nifty features
GNU General Public License v3.0
59 stars 4 forks source link

Parsing of fontspec errors is bad #84

Closed reitzig closed 7 years ago

reitzig commented 8 years ago

For instance, we may get:

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
./testC.tex:103: fontspec error: "font-not-found"
! 
! The font "LMRoman10" cannot be found.
! 
! See the fontspec documentation for further information.
! 
! For immediate help type H <return>.
!...............................................  

l.103 }]{DHRPG_Character_Sheet_Print-n-Fill.pdf}
                                              %
|'''''''''''''''''''''''''''''''''''''''''''''''
| A font might not be found for many reasons.
| Check the spelling, where the font is installed etc. etc.
| 
| When in doubt, ask someone for help!
|...............................................

Currently, this leads to many error messages:

 *  **Error**                                                  `./testC.tex:103`

        fontspec error: "font-not-found"

                                                                       `log:778`

 *  **Error**                                                      `./testC.tex`

                                                                       `log:779`

 *  **Error**                                                      `./testC.tex`

        The font "LMRoman10" cannot be found.

                                                                       `log:780`

 *  **Error**                                                      `./testC.tex`

                                                                       `log:781`

 *  **Error**                                                      `./testC.tex`

        See the fontspec documentation for further information.

                                                                       `log:782`

 *  **Error**                                                      `./testC.tex`

                                                                       `log:783`

 *  **Error**                                                      `./testC.tex`

        For immediate help type H <return>.
        !...............................................

                                                                  `log:784--785`

We should treat lines with only a ! as continuations, not starts of new messages.