I was having trouble building the pdf file in /doc/manual. Checking the
manual.log I saw the following error on the title.tex file:
! Package inputenc Error: Invalid UTF-8 byte 246.
See the inputenc package documentation for explanation.
Type H <return> for immediate help.
...
l.18 Rainer Schˆ
pf
?
! Emergency stop.
...
l.18 Rainer Schˆ
pf
The document does not appear to be in UTF-8 encoding.
Try adding \UseRawInputEncoding as the first line of the file
or specify an encoding such as \usepackage [latin1]{inputenc}
in the document preamble.
Alternatively, save the file in UTF-8 using your editor or another tool
bottom line:
byte 246 in title.tex without declaring an input encoding. Previously this
would silently fall through and make whatever character happened to be in that
position in the font encoding.
Tex Live 2018 assumes UTF-8 if no encoding is specified and so this fails.
I added to the portfile:
reinplace "s|pdflatex|pdflatex '\\\\UseRawInputEncoding \\\\input'|g"
${docsrcdir}/mkpdf.sh
to process existing tex files without requiring those files to be edited. This
works for the pdf, but now I have to figure out how to patch this line:
mk4ht htlatex ${JOBNAME} ${CONFIG},${SECTIONINGDEPTH}
in ${docsrcdir}/mkhtml.sh
Mark Brethen
[email protected]
> On Sep 16, 2018, at 10:33 PM, Joshua Root <[email protected]> wrote:
>
> On 2018-9-17 08:11 , Mark Brethen wrote:
>> Solved. The port I needed is texlive-fonts-recommended. However I need
>> to modify a tex file using reinplace but cannot get it to work. I don’t
>> think I understand regex within tcl. Essentially I need to replace
>> ‘Schˆpf' with 'Sch\”opf’ where ^ and \” are literals.
>
> Reinplace uses sed under the hood, not Tcl's regexp. I'd suggest
> wrapping your pattern in braces so you're dealing with one less level of
> backslash substitution. The main.log will show the exact sed command
> that ends up being run.
>
> Please show your code if you still can't get it to work.
>
> - Josh