htlatex replacing fi and ffi with NUL in HTML











up vote
0
down vote

favorite












I'm seeing the same problem as described at htlatex converting all occurences of 'ff' and 'fi' to null characters in HTML output in that fi and fii characters in standard text are replaced with NUL in the HTML output. I think I have the same fixes applied as per the first answer but I can't get clean HTML.



Any pointers to what I'm doing wrong would be much appreciated. Thanks.



My source .tex file is:



documentclass{article}
begin{document}
This is my Official test
How to find the answer\
The end
end{document}


My .cfg file myconfig.cfg is:



Preamble{xhtml}
begin{document}
EndPreamble


The pdf output using pdflatex test.tex is fine



The htlatex command I'm using is as follows and I have no .sty file defined:



htlatex test "myconfig, charset=utf-8" " -utf8 -cunihtf" "" -shell-escape


The setup is:



This is pdfTeX, Version 3.14159265-2.6-1.40.19 (MiKTeX 2.9.6840 64-bit) (preloaded format=latex 2018.10.24)  21 NOV 2018 10:58


The html body section I get is:



<body>
<!--l. 4--><p class="noindent" >This is my ONULcial test<br class="newline" />How to NULnd the answer<br class="newline" >The end</p>




I've tried lots of combinations of NoFonts, -css, etc. but nothing prevents the NUL characters.










share|improve this question









New contributor




timl is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Could you try to replace -cunihtf with -cmozhtf? Or try make4ht -u -s -c myconfig.cfg test.tex, which is equivalent to your htlatex call.
    – michal.h21
    yesterday










  • Looks ok on my miktex. Run the htlatex on the command line and copy the terminal output, then I can compare.
    – Ulrike Fischer
    18 hours ago










  • A reinstallation of tex4ht using the latest package from the MiKTeX Console, without any other changes to the source file, seemed to do the trick and it's now all working. Thanks for your support.
    – timl
    16 hours ago















up vote
0
down vote

favorite












I'm seeing the same problem as described at htlatex converting all occurences of 'ff' and 'fi' to null characters in HTML output in that fi and fii characters in standard text are replaced with NUL in the HTML output. I think I have the same fixes applied as per the first answer but I can't get clean HTML.



Any pointers to what I'm doing wrong would be much appreciated. Thanks.



My source .tex file is:



documentclass{article}
begin{document}
This is my Official test
How to find the answer\
The end
end{document}


My .cfg file myconfig.cfg is:



Preamble{xhtml}
begin{document}
EndPreamble


The pdf output using pdflatex test.tex is fine



The htlatex command I'm using is as follows and I have no .sty file defined:



htlatex test "myconfig, charset=utf-8" " -utf8 -cunihtf" "" -shell-escape


The setup is:



This is pdfTeX, Version 3.14159265-2.6-1.40.19 (MiKTeX 2.9.6840 64-bit) (preloaded format=latex 2018.10.24)  21 NOV 2018 10:58


The html body section I get is:



<body>
<!--l. 4--><p class="noindent" >This is my ONULcial test<br class="newline" />How to NULnd the answer<br class="newline" >The end</p>




I've tried lots of combinations of NoFonts, -css, etc. but nothing prevents the NUL characters.










share|improve this question









New contributor




timl is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Could you try to replace -cunihtf with -cmozhtf? Or try make4ht -u -s -c myconfig.cfg test.tex, which is equivalent to your htlatex call.
    – michal.h21
    yesterday










  • Looks ok on my miktex. Run the htlatex on the command line and copy the terminal output, then I can compare.
    – Ulrike Fischer
    18 hours ago










  • A reinstallation of tex4ht using the latest package from the MiKTeX Console, without any other changes to the source file, seemed to do the trick and it's now all working. Thanks for your support.
    – timl
    16 hours ago













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I'm seeing the same problem as described at htlatex converting all occurences of 'ff' and 'fi' to null characters in HTML output in that fi and fii characters in standard text are replaced with NUL in the HTML output. I think I have the same fixes applied as per the first answer but I can't get clean HTML.



Any pointers to what I'm doing wrong would be much appreciated. Thanks.



My source .tex file is:



documentclass{article}
begin{document}
This is my Official test
How to find the answer\
The end
end{document}


My .cfg file myconfig.cfg is:



Preamble{xhtml}
begin{document}
EndPreamble


The pdf output using pdflatex test.tex is fine



The htlatex command I'm using is as follows and I have no .sty file defined:



htlatex test "myconfig, charset=utf-8" " -utf8 -cunihtf" "" -shell-escape


The setup is:



This is pdfTeX, Version 3.14159265-2.6-1.40.19 (MiKTeX 2.9.6840 64-bit) (preloaded format=latex 2018.10.24)  21 NOV 2018 10:58


The html body section I get is:



<body>
<!--l. 4--><p class="noindent" >This is my ONULcial test<br class="newline" />How to NULnd the answer<br class="newline" >The end</p>




I've tried lots of combinations of NoFonts, -css, etc. but nothing prevents the NUL characters.










share|improve this question









New contributor




timl is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I'm seeing the same problem as described at htlatex converting all occurences of 'ff' and 'fi' to null characters in HTML output in that fi and fii characters in standard text are replaced with NUL in the HTML output. I think I have the same fixes applied as per the first answer but I can't get clean HTML.



Any pointers to what I'm doing wrong would be much appreciated. Thanks.



My source .tex file is:



documentclass{article}
begin{document}
This is my Official test
How to find the answer\
The end
end{document}


My .cfg file myconfig.cfg is:



Preamble{xhtml}
begin{document}
EndPreamble


The pdf output using pdflatex test.tex is fine



The htlatex command I'm using is as follows and I have no .sty file defined:



htlatex test "myconfig, charset=utf-8" " -utf8 -cunihtf" "" -shell-escape


The setup is:



This is pdfTeX, Version 3.14159265-2.6-1.40.19 (MiKTeX 2.9.6840 64-bit) (preloaded format=latex 2018.10.24)  21 NOV 2018 10:58


The html body section I get is:



<body>
<!--l. 4--><p class="noindent" >This is my ONULcial test<br class="newline" />How to NULnd the answer<br class="newline" >The end</p>




I've tried lots of combinations of NoFonts, -css, etc. but nothing prevents the NUL characters.







htlatex






share|improve this question









New contributor




timl is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




timl is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited yesterday









siracusa

4,43911127




4,43911127






New contributor




timl is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked yesterday









timl

1




1




New contributor




timl is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





timl is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






timl is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • Could you try to replace -cunihtf with -cmozhtf? Or try make4ht -u -s -c myconfig.cfg test.tex, which is equivalent to your htlatex call.
    – michal.h21
    yesterday










  • Looks ok on my miktex. Run the htlatex on the command line and copy the terminal output, then I can compare.
    – Ulrike Fischer
    18 hours ago










  • A reinstallation of tex4ht using the latest package from the MiKTeX Console, without any other changes to the source file, seemed to do the trick and it's now all working. Thanks for your support.
    – timl
    16 hours ago


















  • Could you try to replace -cunihtf with -cmozhtf? Or try make4ht -u -s -c myconfig.cfg test.tex, which is equivalent to your htlatex call.
    – michal.h21
    yesterday










  • Looks ok on my miktex. Run the htlatex on the command line and copy the terminal output, then I can compare.
    – Ulrike Fischer
    18 hours ago










  • A reinstallation of tex4ht using the latest package from the MiKTeX Console, without any other changes to the source file, seemed to do the trick and it's now all working. Thanks for your support.
    – timl
    16 hours ago
















Could you try to replace -cunihtf with -cmozhtf? Or try make4ht -u -s -c myconfig.cfg test.tex, which is equivalent to your htlatex call.
– michal.h21
yesterday




Could you try to replace -cunihtf with -cmozhtf? Or try make4ht -u -s -c myconfig.cfg test.tex, which is equivalent to your htlatex call.
– michal.h21
yesterday












Looks ok on my miktex. Run the htlatex on the command line and copy the terminal output, then I can compare.
– Ulrike Fischer
18 hours ago




Looks ok on my miktex. Run the htlatex on the command line and copy the terminal output, then I can compare.
– Ulrike Fischer
18 hours ago












A reinstallation of tex4ht using the latest package from the MiKTeX Console, without any other changes to the source file, seemed to do the trick and it's now all working. Thanks for your support.
– timl
16 hours ago




A reinstallation of tex4ht using the latest package from the MiKTeX Console, without any other changes to the source file, seemed to do the trick and it's now all working. Thanks for your support.
– timl
16 hours ago















active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






timl is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461089%2fhtlatex-replacing-fi-and-ffi-with-nul-in-html%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes








timl is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















timl is a new contributor. Be nice, and check out our Code of Conduct.













timl is a new contributor. Be nice, and check out our Code of Conduct.












timl is a new contributor. Be nice, and check out our Code of Conduct.















 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461089%2fhtlatex-replacing-fi-and-ffi-with-nul-in-html%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

サソリ

広島県道265号伴広島線

Accessing regular linux commands in Huawei's Dopra Linux